on 09-09-2009 8:44 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
User | Count |
---|---|
83 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.