cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple IDocs...But the same type To One Flat File

Former Member
0 Kudos

Hello All,

Sender SAP IDOC - (Multiple IDocs but same type)

The receiver a File

sends 1 file containing invoices and credit notes sold to xxxx.

This file is made of multiple blocks, each block being formatted by different record types :

-


Block1 - rec-type 1 = Header record / Start of a block (1 per block)

- rec-type 2 = Invoice Detail record ( N per block)

- rec-type 3 = Credit Note record (N per block)

- rec-type 4 = End of block (1 per block)

-


Any suggessions....How we can achieve this XI.

Thanks in Advance,

SV

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

In case of mapping N (IDOCs) to 1 (file) you have to use BPM.

steps in BPM

1) collect IDOCs

2) create transformation from multiline to one message

3) send message

steps in file adapter:

1) create conversion to flat file

Regards,

wojciech

Former Member
0 Kudos

Hello wojciech,

Could you please step by step

Thanks

SV

Former Member
0 Kudos

Here is some more details:

Inside BPM you have to define one multiline container variable to hold data from IDOCs and in the later step you should map (use mapping many:1) it to file structure (you can define temporary message in IR which later will be simply transformed to final structure). Result of the BPM should be this temporary file message. Later configure file adapter to tranform it to flat file.

1) how to collect messages:

http://help.sap.com/saphelp_nw04/helpdata/en/08/16163ff8519a06e10000000a114084/content.htm

2) how to make a tranformation on file adapter

http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/content.htm

Regards,

Wojciech