Application of Generic Stack Function with Conditional Output in WWI Template
source link: https://answers.sap.com/questions/13766723/application-of-generic-stack-function-with-conditi.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Application of Generic Stack Function with Conditional Output in WWI Template
Dear All,
I have following Business Requirement,
I need to display components with specific details as below for a particular Real Sub.
Below components are maintained in VAT SAP_EHS_1012_022 i.e. Hazardous Ingredients (GHS).
Also I have a condition that out of the below components I only need to further display the components who have Regulatory List TSCA maintained in VAT SAP_EHS_1023_012 (Notification status) and Notification value as “Yes” for each Component.
Lets Say in the components, the Notification status data is maintained for Spec 1 and Spec 2 as Regulatory List TSCA and Notification value as “Yes” then below should be my final Output.
If Data is not maintained for any of the components then I need to display below output.
***********************************************************************************************************************************
Now below is the piece of code I have written,
<01GESTRSUBID(M:C14N_SYMBOL_STACK_NEW)[D:Specification]>
<11BRG046(M,SAP_EHS_1012_022 ;*)>
<11BRG047(S:POS;*)>
<11BRG048(M,SAP_EHS_1023_012;*)>
<15BIF049(AND:01G1023012B1 LK "TSCA",01G1023012C1 LK "Yes")>
<01GESTRSUBID(M:C14N_SYMBOL_STACK_PUSH)[D:Specification]>
<15EIF049>
<11ERG048>
<11ERG047>
<11ERG046>
<13BNG066(*:01GESTRSUBID(M:C14N_SYMBOL_STACK_TOP))>
<13CNG066>
13ENG066>
When I try to execute the code below is my output,
The output of 'Value' is blank. The reason I understood is when I pass the code of conditional output with Repetition group of SAP_EHS_1023_012 (Notification status) whose Value Category is C i.e. Composition, The code now tries to fetch composition output of 'Value' from SAP_EHS_1023_012 (Notification status) where there is no data maintained. So it returns me a blank value. But I need the value to be fetched from SAP_EHS_1012_022 i.e. Hazardous Ingredients (GHS) from the main Real Sub.
Can you please check my code and let me know what correction should I make to get output as below,
Regards,
Rohan
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK