Hi All,
I have a requirement where in i need to add one file header to a file in append mode .
The requirement is as follows :
In a day , SAP sends certain number of IDOCs to XI . For the first IDOC that comes in ,XI has to create a file and later for the rest of the IDOCs ,XI just has to append the file content .
- At the End of the Day , the target system picks this file for processing.
My file structure is as follows:
File Header
seg1
seg2
seg3
seg1
seg2
seg2
seg3
seg3
While creating a file in append mode at receiver , the header record gets appended multiple times which is not desirable.
Please suggest me ways to make sure that the file gets written in the above format with the file header only once .
Thanks for your help,
Pooja
Request clarification before answering.
Thank you,
I achieved the desired output with the help of a UDF that checks the presence of target file (at the mentioned path) and the absence serves as an indicator to create the header.
Thanks,
Pooja
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 4 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.