on 11-05-2012 6:03 AM
Hi Experts,
I am currently working on idoc to file interface...where we collect all the files and store in temp folder on a daily basis by keep appending the files in it and send one FINAL file to the receiver at night.
The file structure has one header and multiple details.. each idoc triggere create a file which creates both header and details.
header1
detail1
header 2
detail2
headern
detailn
my requirement is,
I just need to have only one header(common for all details) and keep appending only the detail records...the first idoc which gets triggered should only create the header and rest all idocs should append only the detail records.
header
detail1
detail2
detail3
.
.
.
detailn
can someone suggest how i can achieve this.
thx
Hi,
Thanks for your reply....
I need to make an amedment to the file created as an output..idoc packaging will not do anything to delete the header record in the file.
Any other suggestion please
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Smith,
If you want append all iDoc into 1 file (n:1 interface), you a have to define when you want to stop appending, it could be duration, quantity even an event
You need a BPM to do this, use a loop into your BPM to append all iDoc, use break option for breaking loop, exit BPM and creating file.
Good luck,
Guislain
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Mr. Smith,
Try "iDoc packaging" option if you use PI 7.11
http://help.sap.com/saphelp_nwpi711/helpdata/en/ab/bdb13b00ae793be10000000a11402f/frameset.htm
This option alow you to
Regards,
Guislain
One easy way would be to have two scenarios;
1. idoc to file - without header
2. file to file - create header here
you can use scheduling to make sure that the 2nd interface is only triggered at the required time.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
67 | |
26 | |
9 | |
9 | |
7 | |
6 | |
4 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.