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.
Pooja,
Is there a flag/identifer that would tell PI that the IDOC being sent is the first IDOC in the day?
If not what you are asking for cannot be achieved with simple design. Until the source system sends any kind of identifier this is not possible.
The other round about way of doing this, is to read the file you have create thorugh out the day, read it back into PI and remove the header whereever not required.
Ambrish, not sure what property file you are refering to here? Do you have any link that we can go through. Even if the property file solution works, I think it would be a very rigid design as it will be dependent on 24hr clock.
-Vicky.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 5 | |
| 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.