Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

checking if source node exists in IDoc

Dear All,

I am checking if the source Idoc node exists using node function exists . I have an issue when passing the source values to the output node.

For eg in a shipment idoc SHPMNT05 . I am checking if source E1EDT43 segment exists if it does not then I need to create as many E1EDT43 segments in the target as there are E1EDL37 segments in the source. In PI my mapping is as below.

                               then E1EDT43   

E1EDT43 - exists - if                          --> target E1EDT43

                              else E1EDL37

If there are 2 E1EDT43 segments in the source it produces the corresponding 2 E1EDT43 segments in the target but if  E1EDT43 segments does not exists in the source and there are 2 E1EDL37 segments in the source it produces only 1 E1EDT43 segment in the target.

Can you please advice as to how I can produce 2 E1EDT43 segments in the target when there are 2 E1EDL37 segments in the source?

Thanks for your help.

Teresa

Former Member
replied

Please do, that is the only way to make it work without resorting to UDF

1 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question