I want to send multiple IDocs(at a time) to File(.CSV) in XI without using BPM.The target file structure should be one row of data for each IDoc.There should not be multiple Files for Multiple IDocs.All the IDoc data should be copied into single .CSV file in the destination.How I can achieve this .Please help me out.
Output strucure should be something like.
|Data1||Data 2||Data 3||Data 4||Data 5||Data 6||Data 7||Data n|
|IDoc1_Data1||IDoc1_Data2||.||.||.||.||.||IDoc 1_Data n|
You can append data to file for each IDOC. Use processing mode as "Append" in your file CC. Your 1st IDOC of the day will create the file and subsequent IDOCs will be written to file in append mode. You can also use ATP settings to activate and deactivate channels and send final written file for the entire day to receiver systems.
The only drawback of using IDOC packaging is that if even a single IDOC is erroneous and fails in mapping it will fail the entire IDOC package and you will have to resend correct IDOCs again. If you can make sure that your mapping will not fail in any case and will ignore erroneous data, IDOC packaging is best option to go for.
with sender IDOC adapter packaging functionality you can receiver multiple IDOCs from ERP in one message to PI (to one mapping) - if you can do the mapping to CSV from there then you're home
Other ways of collecting IDOCs from my blog: