on 03-13-2012 3:07 AM
Hi Guys,
I am mapping an xml file to ORDERS05 IDOC.
When I am mapping to Items segment E1EDP01, how to count no. of line items in a order and also how to count no. orders in a xml file.
I have to map the item number to E1EDP01-POSEX in an increasing order.. like 10.. 20.. ...
if you have any documents for IDOC mapping.. please send to me.
Cheers
Sam
I have to map the item number to E1EDP01-POSEX in an increasing order.. like 10.. 20.. ...
that is very simple by using Standard function "Counter" of Arithmetic function group
Item -> E1EDP01
Counter -> POSEX
In Counter -> Initial value 10 and incremental value 10
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
line item node in XML --> E1EDP01
line item node in XML --> INDEX function (set initial value and increment to 10) --> E1EDP01-POSEX
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
it depends on how your XML document strcutured, based on that only you can complete the mapping.
Better to get only sample payload from source system people based on that you can define mapping logic.
request functional team to provide mappig document.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Well.. say a xml file has 2 orders and each one has 10 items, in that case do I directly map the orders and items into IDOC structure or I have to count no. of orders and assign it to the segment header say E1EDK01 and items to E1EDP01. or I use count function.
The xml structure is pretty simple..
<Orders>
<OrderNo>..
......
<Items>
<ItemDetails>
......
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
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.