on 04-17-2007 9:33 AM
Hi Experts,
I have a source XML:
<Inventory>
<MaterialNo>Z001</MaterialNo>
<InventoryLineItem>
<BatchNo>B001</BatchNo>
<Quantity>100</Quantity>
</InventoryLineItem>
<InventoryLineItem>
<BatchNo>B002</BatchNo>
<Quantity>120</Quantity>
</InventoryLineItem>
<InventoryLineItem>
<BatchNo>B003</BatchNo>
<Quantity>50</Quantity>
</InventoryLineItem>
</Inventory>
I want the target output as: This is a RFC function module which has an internal table ITAB_STOCK as the input parameter.
YGET_STOCK
ITAB_STOCK
Item
MM - Z001
Batch - B001
Qty - 100
Item
MM - Z001
Batch - B002
Qty - 120
Item
MM - Z001
Batch - B003
Qty - 50
What I am getting is:
YGET_STOCK
ITAB_STOCK
Item
MM - Z001
Batch - B001
Qty - 100
Item
Batch - B002
Qty - 120
Item
Batch - B003
Qty - 50
The MaterialNo (MM) is not coming in all the items. What could be the problem in my graphical mapping? How to achieve the expected target uisng graphical mapping?
Kindly help!
Thanks
Gopal
Hello,
Just do the below mapping you will get it...
Map InventoryLineItem to Item in your table.
Then MaterialNo--->CopyValue---->MM
[0]
You will get it let me know if not.
Regards,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi gopal,
have u tried with my reply?
what is occurance of MM node??? plz check that its not 1...it should be 1 to unbound.
Thanks,
Maheshwari.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Use <b>useOneAsMany</b> function
it has 3 inputs:
1. MaterialNo >useOneAsMany>MM
2. BatchNo>RemoveContext->useOneAsMany
3. BatchNo-->useOneAsMany.
Thanks,
Maheshwari.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Use the function,
<b>useOneAsMany</b>
It has 3 inputs.
1. MaterialNo
2. InventoryLineItem
3. InventoryLineItem
Map the output to target.
Regards,
Jai Shankar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.