on 03-21-2016 12:27 PM
Hello everyone,
after our mapping steps, we write an xml output file to an sftp server. Works fine, but ... we have the requirement to 'number' the output files.
Example :
First file is 01_xxxx, second file 02_xxxx, etc.
What is the best way to achieve this ? In case the server is restarted or the project redeployed (due to an update), the number can't restart from 0, but should continue numbering where it ended.
Right now, via an oData call we write a variable to a back-end system field, but if it can be achieved in a better way, yes please
Thanks!
HI Kevin,
In case of any kind of J2ee engine restart the counter will reset.
i could suggest you to write an RFC program to perform RFC lookup to increment the counter for file name but even in this case if the RFC program execute and then while response to PI it fails you will face problem.
The best way I see for your scenario is to have a file lookup.
Regards,
Vikas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Kevin,
Who is the sender? if it is ERP system you can use number range in ERP to generate sequence number and send it in the message and then by using variable substitution you can generate the receiver file.
Regards,
Praveen.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.