cancel
Showing results for 
Search instead for 
Did you mean: 

Issue with multiple idocs in single file

monikandan_p
Active Participant
0 Kudos

Hi Experts,

   Can you suggest your approach for the below requirement:

Scenario:

    ECC (IDOC)->PI-> SFTP(csv file)

Need to handle multiple idocs in a single file,for that i did the append logic in SFTP adapter and all idocs msgs coming in one csv file but the header lines coming number of times in csv file based on the idocs created.So i need to eliminate the all header lines and make it as one header line in file.

kindly find the below approaches to handle this and suggest which approach is better one without performance issue in PI.

http://scn.sap.com/thread/1008099

http://scn.sap.com/people/pooja.pandey/blog/2005/07/27/idocs-multiple-types-collection-in-bpm

http://scn.sap.com/people/stefan.grube/blog/2006/09/18/collecting-idocs-without-using-bpm

Best Regards,

Monikandan

Accepted Solutions (0)

Answers (1)

Answers (1)

sahithi_moparthi
Contributor
0 Kudos
monikandan_p
Active Participant
0 Kudos

Hi Sahiti,

     Iam not getting header line from IDOCs,I have created the field name in receiver and configure as header in module config so that it getting repeating number of time based on the number of idocs created.

So need to avoid that field name.

Best Regards,

Monikandan

prasannakrishna_mynam
Contributor
0 Kudos

Hi Monikandan,

The mentioned approach in following blog holds good for your case, as this one will group all IDOCs in one xml file at ECC file server as single IDOC file and proceed with xml file pick and place apprach using file adapter.

http://scn.sap.com/people/stefan.grube/blog/2006/09/18/collecting-idocs-without-using-bpm

Regards,

Prasanna Mynam

pvishnuvardan_reddy
Active Contributor
0 Kudos

Hi Monikandan,

Can you please let us know whether for multiple IDOC's you need to create one file or always, for every IDOC message run, you want to append the generated file content to the existing file on the server.

If former is the case, then can you please refer the link provided by prasanna.

Regards