cancel
Showing results for 
Search instead for 
Did you mean: 

Creating multiple idoc

Former Member
0 Kudos

Hi Experts,

I am doing file to idoc Scenario. the file contains one header with multiple item lines. if i send one header with multiple line item it wll create one idoc with one header with multiple idoc. suppose if i send a file which contains multiple header with multiple item lines then it should create as many idoc as header in the file.

ex:

Header1

+++itemline1

+++itemline2

Header2

+++itemline1

+++itemline2

the above example should create 2 idoc .

plz provide some solution.

Thanks in advance,

Venu

Accepted Solutions (0)

Answers (7)

Answers (7)

Former Member
0 Kudos

Hi

My scenario is working if i send file with 1 header with multiple item lines, but if send multiple header with multiple item line it is producing one Idoc that is for first header line. For other header it is not creating. wat wll be the problem

as per your problem , you have to change the occurence for the idoc as ..unbounded in the target side.

if you still face the problem please reply me back.

Thanks

Rinku

Former Member
0 Kudos

Hi

if you want the occurence for the idoc as 0..unbounded then you have to put the occurence for the idoc as 0..unbounded .

after change the occurence for the idoc as 0..unbounded you have to map the header with the IDoc, so that for each header there will a separate IDoc.

if you still face the problem please reply me back.

Thanks

Rinku

Former Member
0 Kudos
Former Member
0 Kudos

Hi,

If you want to create multiple IDocs in one step you have to do some manual work, since the IDoc metadata usually just allows one IDoc per mapping.

Have a look at this weblog to see what I mean:

<a href="/people/michal.krawczyk2/blog/2005/12/04/xi-idoc-bundling--the-trick-with-the-occurance-change: IDOC bundling - the "trick" with the occurance change</a>.

Hope this helps (please reward me if it does).

Regards, Joerg

former_member614185
Contributor
0 Kudos

Hi,

Go thru this blog,

/people/michal.krawczyk2/blog/2005/12/04/xi-idoc-bundling--the-trick-with-the-occurance-change

Former Member
0 Kudos

Hi

1) use the BPM for splitting your file based on the Header.

2) after spliting the file use N:1 mapping

Thanks

sudhir sharma

Former Member
0 Kudos

If you map correctly, this will work...

You will need to map header as 1:1.

So for every new header, it will create the multiple segments.

Former Member
0 Kudos

Hello Barry Neaves ,

My scenario is working if i send file with 1 header with multiple item lines, but if send multiple header with multiple item line it is producing one Idoc that is for first header line. For other header it is not creating. wat wll be the problem

Former Member
0 Kudos

Hi,

I assume the problem is that you are mapping the header line and the resulting IDoc. The standard metadata exported by the integration builder allows only one IDoc to be created (1..1). You have to adjust the metadata using one of the methods referred to above and change the occurrence to 1..unbounded. The rest should be clear from then on.

Regards, Joerg