on 2022 Sep 20 8:42 AM
Dear SAP Experts,
I need to build a logic for displaying component value of a composition. The range will not be maintained in CG02.
We need to display a range instead of component value.
For Example: The Component composition value is 7% then the output should be >5 - <10%.
Likewise if 62.5% then output should be >60 - <65%. So essentially the range is 0-5, 6-10 .... 95-100.
I'm not sure if I can write WWI code with the help of Conditional Output for these many ranges.
So any other suggestion how can I build a logic here?
my plan is to create a custom FM. Define a logic to pick range and assign it to symbol 01GESTVCOMPA in the report as Method.
Kindly let me know your thoughts.
Regards,
Rohan Somji
Request clarification before answering.
Hello
using the standard "IF" technique available in WWI you can achieve the goal. The "exact" solution depends on many factors.
You could use a (quite long) nesting of "IFs". like
IF value <= 5 then print "0 - 5"
elseif (value > 5 and value <= 10) then print "5 - 10"
etc.
endif
The values like "0 - 5" etc. could be "hardcoded" in the WWI template but you can as well use a phrase
The main problem is the "UOM". You should seperate the "value" from "UOM" topic
E.g. value could have UOM like "%0", "PPM" etc.
Clearly: customer specific approach might be possible as well; but why not sticking to SAP standard ?
C.B.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
3 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.