on 2018 Jun 27 8:57 PM
Hello,
I am trying to print out a table of prop 65 components per the standard property tree node. I can get the table to print properly, but what I cannot get is a blank compression to work as I am expecting. My code is as follows,
<11BRG001(M,SAP_EHS_1023_055;*)>
<11BRG002(S:POS;1)>
<13BNG011(+:01GESTRIDENT(I:NAM,SYN,))>
<03EHS_L_TEXT(CED-H03.00000001)[D:Chemical Name]> <03EHS_L_TEXT(CED-H02.00100020)[D:CAS-No.]>
<13CNG011>
<03EHS_L_TEXT(CED-U15.00000320)[D:This product does not contain any chemicals known to State of California to cause cancer,...]>
<13ENG011>
<11ERG002>
<11ERG001>
<11BRG003(M,SAP_EHS_1023_055;*)>
<11BRG004(S:POS;*)>
<13BNG012(+:01GESTRIDENT(I:NAM,SYN,))>
<01GESTRIDENT(I:NAM,SYN,)> <01GESTRIDENT(I:NUM,CAS,)>
<13ENG012>
<11ERG004>
<11ERG003>
What am I missing? As far as I read the code This should exit the blank compression if there is no NAM SYN present in the composition of the Prop 65 node, and then print the phrase "This product does not contain..." but this code outputs nothing when tested. Is this due to information being present without comp information being present? Sorry if this is rambling, I am new to WWI work in general.
Thanks,
Nate
Request clarification before answering.
Hi Nat,
I think (without reacoding it myslef) the issues is this part:
<11BRG002(S:POS;1)>
When you do not have a Cal. Prop 65. component present - there is no composition and therefore no S:POS 1! Therefore all the code under S:POS 1 is never executed.
I think you would need to solve this via a Stack. Push a value to the stack, when printing some Cal. Prop 65 substances. Later in a second step check if you have put anything on the stack: If you didn't put anything on the stack print the phrase "CED-U15.00000320 [D:This product does not contain any chemicals known to State of California to cause cancer,...]>".
Check: 1566397 - EH&S standard WWI processing methods on how to use the stack.
Hope this helps
Mark
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello
check may be: https://archive.sap.com/discussions/thread/3315991
or https://archive.sap.com/discussions/thread/1592855
or https://answers.sap.com/questions/464719/sap-wwi-conditional-output-multiple-operator.html
In the past the blog https://blogs.sap.com/2013/12/21/wwi-for-experts/
listed a huge number of other threads regarding "conditional output". But it "crashed" some year ago and no update was done yet
May be: https://blogs.sap.com/2013/10/28/report-template-conditional-output/
could be of interest
Generally your code checks only the first component; this is not a "good approach" in some areas but might be "ok"
C.B:
PS: check e.g. as well: https://blogs.sap.com/2014/01/22/wwi-techniques-blank-compression-and-user-defined-text/
https://archive.sap.com/discussions/thread/3366619
https://blogs.sap.com/2013/08/30/standard-wwi-processing-methods-wwi/
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 | |
3 | |
1 | |
1 | |
1 | |
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.