cancel
Showing results for 
Search instead for 
Did you mean: 

EHS WWI coding

holger_hartung
Contributor
424

Hi,

i create these WWI logic but something isn't correct:

Only if BIF000 and BIF001 are valid, phrase and BUQ should be present...

<100DYNTXT(4,7)><11BRG088(D;*)><15BIF000(OR:02Z_LGL_MANU(;1) NE "Externer rechtli. Hersteller")><15BIF001(OR:02Z_PROD_TYP(;1) LK "010",02Z_PROD_TYP(;1) LK "020")><03LABEL_TEXT(EHSXP-000000000002221)[D:Qty]> <02GCG_BUQ[D:Basismenge]><02GCG_BUQ(M:ZEHS_SET_GCG_BUQ)[D:Basismenge]> <11BRG001(G,T:REGION,L:EN;*)><02Z_BME[D:Basismengeneinheit (BME)]><11ERG001><13BNG000(*:02EHS_MATNR(M:ZEHS_GET_AME_UMRECHNUNG_ST))> (<02EHS_MATNR(M:ZEHS_GET_AME_UMRECHNUNG_ST)[D:Materialnummer]>)<13ENG000><15EIF001><15EIF000><11ERG088>

Thanks

View Entire Topic
Mark-Pfister
Active Contributor
0 Kudos

Hi Holger,

Add "debugging" out-put to your template:

  • Output/print the symbols that you are using in your if statements  ("02Z_PROD_TYP(;1)" and "02Z_LGL_MANU(;1)")
  • Output/print text like - "First IF true" or "Second IF true"  (and an ELSE part as well to be extra sure 🙂 )

this will give you more insight into why it is not working as you expect.

It could be wrong formatting - i.e things are hidden that shouldn't be etc.

Or the text is not always German - i.e. Z_LGL_MANU <> "Externer rechtli. Hersteller" if you use English as report language etc... Or the discrete repeating group doesn't work as you expect it to...

 

<100DYNTXT(4,7)>
<11BRG088(D;*)>
<15BIF000(OR:02Z_LGL_MANU(;1) NE "Externer rechtli. Hersteller")>
  <15BIF001(OR:02Z_PROD_TYP(;1) LK "010",02Z_PROD_TYP(;1) LK "020")>

    <03LABEL_TEXT(EHSXP-000000000002221)[D:
Qty]>
    <02GCG_BUQ[D:Basismenge]>
    <02GCG_BUQ(M:ZEHS_SET_GCG_BUQ)[D:Basismenge]>

    <11BRG001(G,T:REGION,L:EN;*)>
       <02Z_BME[D:Basismengeneinheit (BME)]>
    <11ERG001>
    <13BNG000(*:02EHS_MATNR(M:ZEHS_GET_AME_UMRECHNUNG_ST))>
      (<02EHS_MATNR(M:ZEHS_GET_AME_UMRECHNUNG_ST)[D:Materialnummer]>)
    <13ENG000>

  <
15EIF001>
<15EIF000>
<11ERG088>

Mark-Pfister
Active Contributor
0 Kudos

Hi Holger,

You need to put the G - repeating group on the outside of all other repeating groups and if statements.

 

Best Regards

Mark