Quantcast
Channel: SCN : All Content - SAP Business Explorer (SAP BEx)
Viewing all articles
Browse latest Browse all 3763

Explain CONSTANT SELECTION in SIMPLEST way...

$
0
0

Hi guyz,

 

Can anyone explain the USE of CONSTANT SELECTION? Where and when do we use it? Can anyone cite an example other than the example found in the link below?

 

Please don't explain using the "technical" definition:

 

https://help.sap.com/saphelp_nw70/helpdata/EN/e7/5f983c1a356858e10000000a114084/content.htm

 

 

Because at first, I thought CONSTANT SELECTION will do a "JOIN" in the query wherein I can use it so as to avoid doing a LOOKUP if I have one (1) object that doesn't belong in one (1) of my providers..

 

 

For example, I have these providers:

 

DSO1:

 

CaldayPayerMaterialRangeAmount
20150101AAAX101 to 300100
20150102AAAX101 to 300200
20150103AAAX101 to 300300
20150104BBBX301 to 600400
20150105BBB

X

301 to 600500

 

 

DSO2:

 

CaldayPayerMaterialTaxCount
20150101AAAX51
20150102AAAX101
20150103AAAX151
20150104BBBX201
20150105BBBX301

 

 

On top of them is a MULTIPROVIDER..Can I have this report using only CONSTANT SELECTION? I know we can achieve this by adding the RANGE object in DSO2 and doing a LOOKUP to DSO1 based on PAYER and MATERIAL..But I'm just curious if using the CONSTANT SELECTION is valid in this kind of scenario..

 

 

This should be the "CORRECT OUTPUT" of the REPORT if I did a lookup in DSO2 to DSO1:

 

Calmonth

 

Range

 

Amount

 

Value (Formula) =

Amount / Ave Tax

Ave Tax = Tax / Count

201501101 to 30060060(5 + 10 + 15) / (1 + 1 + 1) = 10
201501401 to 60090036(20 + 30) / (1 + 1) = 25

 

 

 

But when using the CONSTANT SELECTION, I "THINK" this will be the OUTPUT:

 

Calmonth

 

Range

 

Amount

 

Value (Formula) =

Amount / Ave Tax

Ave Tax = Tax / Count

(using CONSTANT SELECTION for RANGE)

201501101 to 30060037.5(5 + 10 + 15 + 20 + 30) / (1 + 1 + 1 + 1 + 1) = 16
201501401 to 60090056.25(5 + 10 + 15 + 20 + 30) / (1 + 1 + 1 + 1 + 1) = 16

 

 

 

If the 2nd output will be the BEHAVIOR of CONSTANT SELECTION, so this scenario is not the "RIGHT" usage of CONSTANT SELECTION..So LOOKUP will still be the SOLUTION for this kind of scenario..Am I right? Or "CAN WE STILL USE" constant selection for this kind of problem? If so, how will I use it?

 

 

Thank you!

 

Loed


Viewing all articles
Browse latest Browse all 3763