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:
Calday | Payer | Material | Range | Amount |
---|---|---|---|---|
20150101 | AAA | X | 101 to 300 | 100 |
20150102 | AAA | X | 101 to 300 | 200 |
20150103 | AAA | X | 101 to 300 | 300 |
20150104 | BBB | X | 301 to 600 | 400 |
20150105 | BBB | X | 301 to 600 | 500 |
DSO2:
Calday | Payer | Material | Tax | Count |
---|---|---|---|---|
20150101 | AAA | X | 5 | 1 |
20150102 | AAA | X | 10 | 1 |
20150103 | AAA | X | 15 | 1 |
20150104 | BBB | X | 20 | 1 |
20150105 | BBB | X | 30 | 1 |
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 |
---|---|---|---|---|
201501 | 101 to 300 | 600 | 60 | (5 + 10 + 15) / (1 + 1 + 1) = 10 |
201501 | 401 to 600 | 900 | 36 | (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) |
---|---|---|---|---|
201501 | 101 to 300 | 600 | 37.5 | (5 + 10 + 15 + 20 + 30) / (1 + 1 + 1 + 1 + 1) = 16 |
201501 | 401 to 600 | 900 | 56.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