Skip to Content
0
Former Member
Jan 21, 2011 at 01:42 PM

Creating a file in append mode

34 Views

Hi All,

I have a requirement where in i need to create a flat file in append mode . The requirement is as follows :

- In a week , SAP sends certain number of IDOCs to XI . For the first IDOC that comes in ,XI has create a file and later for the rest of the IDOCs ,XI just has to append the file contents .

- During the End of the week , the target system picks this file for processing.

My file structure is as follows:

Header

seg1

seg2

seg2

seg3

seg3

seg1

seg2

seg2

seg3

seg3

Trailer.

So ,while creating a file in append mode , is there any way apart from creating one more interface to pick the finally created file , i can make sure that the file gets written in the above format without header and trailer getting repeated.

Regards

Vinay P.