cancel
Showing results for 
Search instead for 
Did you mean: 

Multi Mapping in IDocs

Former Member
0 Kudos

Hi,

         

               I am working on File To IDoc Scenario. I am implementing Multi Mapping in my scenario.

An IDoc is not getting generated because the below lines :

         

                             <ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge">

                            <ns0:Message1>

Can anyone please tell me how to remove the above lines.

Regards,

Deepthi Premnath.

Accepted Solutions (0)

Answers (5)

Answers (5)

madanmohan_agrawal
Contributor
0 Kudos

Hi Deepthi,

If u want to generatre multiple idocs then simply export your idoc structure and change the occurances to 0..Unbounded and use the new XSD structure to generate multiple IDOCs. Not required to go for multimapping.

Thanks,

Madan Agrawal.

Former Member
0 Kudos

hi Deepthi,

that is default tags for multi mapping because whenever we changed the occurrence in mapping for multi mapping then automatically added and can you post what is the exactly your requirement .

pls refer below doc for step by step procedure :

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/90dcc6f4-0829-2d10-b0b2-c892473f1...

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

>>>>  I am working on File To IDoc Scenario. I am implementing Multi Mapping in my scenario.

there is no need to use multi mapping to do IDOC split if you want to post multiple IDOCs from one file - just use my blog and you'll understand how to change your mapping to make it work

http://scn.sap.com/community/pi-and-soa-middleware/blog/2005/12/04/xi-idoc-bundling--the-trick-with-...

inside the mapping you work on a simple 1 - 1 mapping (you will just create many IDOC segments inside)

Regards,

Michal Krawczyk

rajasekhar_reddy14
Active Contributor
0 Kudos

When you change occurance in message mapping it automatically adds

  <ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge">

                            <ns0:Message1>

tags , this is multi mapping behaviour.

What is your requirement? explain your requirement we will help you how to achieve it.

Former Member
0 Kudos

Hi,

    

     We are getting fixed length flat file with more than 5 levels of hierarchy.

So we have the below process :

1. Developed a custom module to convert fixed length flat file to xml file.

2. Message mapping - To map xml file to IDoc ORDERS05.

A file consists multiple records and for every record i need to create an IDoc ORDERS05.

I have changed the occurance of ORDERS05 to 0..unbounded.

I have tested with a file consisting of 20 records. If any of the record in the file consists of error, the IDoc should not created for the particular record but IDoc should be created for the other files.

But in my case no IDoc is get created.

Is there any approach to achieve this?

Regards,

Deepthi Premnath.

Former Member
0 Kudos

I have tested with a file consisting of 20 records. If any of the record in the file consists of error, the IDoc should not created for the particular record but IDoc should be created for the other files.

But in my case no IDoc is get created.

as per my understanding, just u can use some satandard functions for ur equirement like exits,createif...

Approach 1: if idoc will be created based on any ITEm node then follw below logic

for ex:

in above logic, u can use any filed insted of header....

Approach2: if idoc will be created based on any field then follow belog logic

for ex:\

otherwise if above 2 approaches are not supported to ur logic then u ll post ur structures and examples....

thanks,

baskar_gopalakrishnan2
Active Contributor
0 Kudos

Are you using the same idoc type or different? Did you change the idoc segment 1 to unbounded occurence? After doing this test end to end, it will work. The above lines generate only in the test mapping tool. Test end to end.

Also you might want to see some blogs in SCN about idoc multimapping.

https://wiki.sdn.sap.com/wiki/display/XI/File%20to%20Multiple%20IDOC%20Splitting%20without%20BPM

http://scn.sap.com/people/rajasekhar.reddy14/blog/2011/02/24/multi-mapping-without-bpm-for-idoc-scen...