on 08-26-2010 6:35 AM
Hello Guru's,
Guide me if I am duplicating my question here in SDN.
I am new to SAP PI.
I am working on one scenario which is
Pick up .csv file from server -> convert it to xml -> Do message mapping on XML to IDOC structure and send it to SAP
Special condition here is:
For each row in .csv file, I have to create 2 Idocs.
For this:
I have created:
2 different message mapping based on logic
and tried to use both the message mapping in Interface mapping.
When I do that I get error however, If I use single message mapping records get processed.
Please help.
Thanks
Hi ,
No need to create two mappings at all, if you wnat to send same IDoc to Receiver twice,
I am thinking that you want to ORDERS05 IDoc to SAP,
use simple trick, create duplicate structure of IDoc in target side, right click on IDoc select Duplicate structure, then your target will become like below
<ORDERS05>
<IDoc>
<IDoc>
That means Two IDocs, so you can do same mapping for two structures and execute it will work.
Regards,
Raj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
2 different message mapping based on logic
and tried to use both the message mapping in Interface mapping.
Two mappings wont help. You can create two instances of the same IDOC (IDOC bundling), however you cannot created two different IDOCs.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi pankaj,
Please refer the below blog for creating multiple idocs:
/people/michal.krawczyk2/blog/2005/12/04/xi-idoc-bundling--the-trick-with-the-occurance-change
Also, no need to create 2 separate mappings.
In one mapping itself you can put the condition for the IDOC node and generate multiple idocs.
-Supriya.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.