AnsweredAssumed Answered

Business rule conditions check for repeated segment structure

Question asked by mounika on Jul 23, 2018
Latest reply on Jul 23, 2018 by aarthi_sridhar

Hi All,

I have an IDOC request xml data which is having multiple <Z1TGMFP> segment .I need to check for 2 conditions , whether <Z1TGMFP> exists & <ZTM> field is equal to CA or US then only the document need to proceed further for mapping.

Sample IDOC request with multiple <Z1TGMFP>


<Z1TGMFP SEGMENT="1">
            <ZFPC>0000000000556645233</ZFPC>
            <ZGTIN>10020800400043</ZGTIN>
              <ZTM>US</ZTM>
            <ZUOM>CS</ZUOM>
</Z1TGMFP>
<Z1TGMFP SEGMENT="1">
            <ZFPC>000000000055555553</ZFPC>
            <ZGTIN>11111111111</ZGTIN>
            <ZTM>PR</ZTM>
            <ZUOM>IT</ZUOM>
            <ZBUOMFLAG>X</ZBUOMFLAG>
</Z1TGMFP>
<Z1TGMFP SEGMENT="1">
               <ZFPC>0000000001524687</ZFPC>
               <ZGTIN>12345678</ZGTIN>
                  <ZTM>US</ZTM>
               <ZUOM>IT</ZUOM>
            <ZBUOMFLAG>X</ZBUOMFLAG>
</Z1TGMFP>


i have used the Business rule as below. But the docuemnt is going to Rejected path as one of the <Z1TGMFP> <ZTM> field is having PR.

 

 

Please Help.

 

Thanks,

Mounika

Outcomes