cancel
Showing results for 
Search instead for 
Did you mean: 

Determining new segments for an idoc.

Former Member
0 Kudos

hi guys,

i have to map data on an idoc. the problem is that in the idoc there can be header and item segments. using an element referred as Id , i must be able to create a new segment for the idoc.

can anyone please help me.

thanks in advance

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

You can use CreateIf Node function to create the segments based on the condition.

<Condition>-CreateIf NodeFuction--<Node of the target segment>.

The target segment will be created only if the condition is true.

See the below link for more details.

http://help.sap.com/saphelp_nw04/helpdata/en/14/80243b4a66ae0ce10000000a11402f/frameset.htm

Regards,

Shweta

Former Member
0 Kudos

Hi,

i was able to find the solution (on SCN itself). the occurrences of the element referred as header should be modified to allow it to occur more than once. minOccur = 0 and maxOccur = unbounded.

Also in my case a simple user defined function must be created to collect all the id of the records in order to determine the number of id and hence the number of idoc.