Skip to Content

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

generate idoc structure UDF

Hello All,

Need help with idoc mapping ...

I have to create an UDF or similar to make the next mapping

Source structure:

-->SourceNode (0..1)





Target structure (0..n):

-->TagetNode (IF EXISTS FIELD1)

--->target1 = constant value

--->target2 = field1

-->TagetNode (IF EXISTS FIELD2)

--->target1 = constant value

--->target2 = field2

-->TagetNode (IF EXISTS FIELD3)

--->target1 = constant value

--->target2 = field3

-->TagetNode (IF EXISTS FIELD4)

--->target1 = constant value

--->target2 = field4

Thanks in advance



why do u need UDF for this?? u can also achieve this using standard function..

duplicate target node(right click on "TargetMode" and duplicate it thrice) and then do ur mapping like this:

field1-existsIfWithoutElse (field1-then)---TagetNode

Constantvalue -



field2-existsIfWithoutElse (field2-then)---TagetNode

Constantvalue -



in the same way repeat it for the rest of the duplicated target node...

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question