Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

File to File Scenario (File splitting)

Experts,

I am working on B2B scenario. I have a source purchase order flat file with multiple orders in it I want to converted that into EDI file and create individual file for each purchase order.

I am able to convert he file however i want to know how to split the files or create individual files. Do i have to write any java function for that?

eg.

Sourcefile

Order1, Vendor, date

Order1,Vendor, Line1

Order1,Vendor, Line2

Order2,Vendor, date

Order2,Vendor, Line1

Order2,Vendor,Line2

Order2,Vendor,Line3

Expected output

File1

Order1, Vendor, date

Order1,Vendor, Line1

Order1,Vendor, Line2

File2

Order2,Vendor, date

Order2,Vendor, Line1

Order2,Vendor,Line2

Order2,Vendor,Line3

Thanks,

Nishant

replied

Hi Nishant - Go to the signature tab and change the occurrence to 0..unbounded of your message tyep ASC850_****

Then you'll get two additional segment.. messages..messages1


After changing the occurrence ->apply the above logic to your Message type i.e. ASC850_***

Have a look at the below blog for reference

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/600b455f-01cd-2b10-0cab-a50e47a8f800?QuickLink=index&…

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question