Skip to Content
Former Member
Oct 24, 2011 at 11:30 AM

IDOC - to - File with multiple File names for a unique(same) IDOC from R/3


Hi Experts ,

please give me your inputs on how to achieve the below requirement.

Scenario : IDOC - to - Flat File

I have u2018nu2019 number of pay runs running at back end. Each pay run will generate few IDocs with same PAYRUN ID and PAYRUN date.All the IDocs generated as a result of all pay runs will be collected at ABAP side and sent to PI at a time.

PI should process these IDocs and create u2018nu2019 flat files with 1 header and multiple line items .

For suppose 1st pay run resulted in 5 IDocs and 2nd pay run resulted in 6 IDocs, all the 11 IDocs will be sent to PI at a time .

And output will be 2 flat files (group the IDocs having same PAYRUNID) with 1st file having 1 header and 5 line items (corresponding to 5 IDocs of 1st pay run) and 2nd file having 1 header and 6 line items (corresponding to 6 IDocs of 2nd pay run)

Please give your views as soon as possible.

Thanks in advance.

Best Regards,