cancel
Showing results for 
Search instead for 
Did you mean: 

Problems with scenario: one file to several IDOCs

Former Member
0 Kudos

Hi all,

I have the followig scenario:

flat file --> XI --> IDOC

The structure of the file is:

"I1""P1"......

"I1""P2"......

"I1""P3"......

.

.

"I2""P1".......

"I2""P2".....

.

.

I want to generate so many IDOC as differents invoices (I1, I2, I3....) I have in the file.

In the IR,I have changed the occurence of the IDOC to "unbounded" in the mapping, but I make a test using the test tab and I can not see the split of the source structure in several IDOCs. What´s happening???.

Thanks in advance.

Pilar.

Accepted Solutions (0)

Answers (3)

Answers (3)

former_member214364
Active Contributor
0 Kudos

Hi,

You can do this scenario without BPM.

could you please send us source structure and how did you map IDOC segment in Target?

cheers,

Jag

Former Member
0 Kudos

I´ve solved one part of the problem. The mapping in IR is now correct.

The problem is now in the ID. I don´t know which are the correct parameters in the file content conversion in order to generate the proper structure.

The structure is: Global

Invoice

Invoice_det

The falt file has the structure:

Invoice1Posnr1 0000000010001

Invoice1Posnr2 0000000010002

Invoice2Posnr1 0000000020001

......

Using the File Content Conversion I get the XML file:

The parameters I´m using in the File Content Conversion are:

DocumentName: Global

Recorset Name: Invoice

Recordset structure: Invoice_det

Recordset secuence: Ascending

KeyFieldName: Number

Invoice_det.fieldFixedLengths 10,4

Invoice_det.fieldNames Number,Posnr

Invoice_det.processFieldNames fromConfiguration

Invoice_det.lastFieldsOptional YES

Invoice_det.keyFieldValue ????????????????

I don´t know how to solve it. Please, any help would be apreciated.

Thanks in advance.

Pilar.

Former Member
0 Kudos

Pilar,

There is no key field in your file. So you cannot use this option.

---Satish

Former Member
0 Kudos

Then, I must use BPM??????.

Thanks in advance.

Pilar.

Former Member
0 Kudos

HI,

See the below link

/people/anish.abraham2/blog/2005/12/22/file-to-multiple-idocs-xslt-mapping - File to Multiple IDocs

Regards

Chilla

Former Member
0 Kudos

Hi Chilla,

I´ve review the link and is also using BPM. Could you provide another way for solving it without using BPM?.

Thanks in advance.

Pilar.

Former Member
0 Kudos

Hi,

Genreally for such Scenarios,

Import the IDOC and export it as XSD and then re-import the XSD as External Definiotn and then do the mapping with the source file.

In such case you get multiple Idocs generated and I hope its called IDOC packaging.

Regards, Gopi M.

Former Member
0 Kudos

Hi,

We have two options , one is IDoc packaging , this is the one good option.

second one is not sure try , you can have three interface mappings (if you want 3 only) then use the interface mapping in determination. and continue with the business system option.

see the below links

IDoc Packages without BPM

take a look at the note : 814393.

Also see the below links

/people/stefan.grube/blog/2006/09/18/collecting-idocs-without-using-bpm

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

/people/sravya.talanki2/blog/2005/12/09/xiidoc-message-packages

/people/jin.shin/blog/2006/02/07/multi-mapping-without-bpm--yes-it146s-possible

How to serialize IDoc XML messages fed into XI - /people/community.user/blog/2006/11/04/how-to-serialize-idoc-xml-messages-fed-into-xi

Regards

Chilla

Former Member
0 Kudos

Pilar,

If the IDOC is of same type, then you can avoid a BPM. My previous replies were made in the assumption you had multiple IDOC types.

Just have a look at Michal's blog for IDOC bundling.

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

Regards,

Jai Shankar

Former Member
0 Kudos

Hi Pilar,

You need to use BPM transformation step. Here change the occurance of the IDOC to 1..unbounded in Message mapping and Interface mapping. Have you done this?

Regards,

Jai Shankar

Former Member
0 Kudos

Hi Jai,

I´ve never used thr BPM and now I haven´t enought time for studing it. Are there any other way for doing it without using BPM?.

Thanks in advance.

Pilar.

Former Member
0 Kudos

Pilar,

No way.:-( You have to use a BPM for your scenario.

If your scenario does not involve IDOCs then you could have skipped the BPM part, but now no way. But dont worry too much. Your BPM will be really simple.

Steps in your BPM

1. Receive

2. Transformation

3. Send

Regards,

Jai Shankar