cancel
Showing results for 
Search instead for 
Did you mean: 

Mapping Logic Required

Former Member
0 Kudos

Hi Experts,

I am working on file to IDoc scenario, logic as follows

1)IDoc creation is based on Pick ticket number, if pick ticket number is same then i need to create one IDoc.this logic working fine.

2)Genrating BELNR in IDoc is depend on PO Number, but this logic not working,i want to populate PO number for Pick ticket number, but not sure about the logic.

any help apprecited

Best Regards,

SAP Help

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos
markangelo_dihiansan
Active Contributor
0 Kudos

Hello,

1)IDoc creation is based on Pick ticket number, if pick ticket number is same then i need to create one IDoc.this logic working fine.

Based on your logic and the sample data that you have given, only one IDOC should be created right?

Regards,

Mark

Former Member
0 Kudos

Hi,

You can check below mapping:

Do remember to change the context of PO_Number and Per_Tick_Number (right click -> change context) to MT_*.

I am also assuming that "Per_Tick_Number" is already sorted in the input structure, if in case no, then u have to use "sort by key" function also...let me know if u face any difficulty while doing the same.

Testig Results:

Thanks

Amit Srivastava

Answers (1)

Answers (1)

iaki_vila
Active Contributor
0 Kudos

Hi,

Correct me if im wrong. You want so many IDOC like different Pick ticket numbers, in your example four idocs.

If im right you could do then the next mappings:

This solution need the XML source sorted by Picket_Number, also you could aply the node function sort after taking Picket_Number if that sort doesn't exists originally.

Regards.

Message was edited by: Iñaki Vila