on 10-21-2015 7:35 AM
Hi All,
I am working on IDoc to File interface, I have to place file with sequence number in the FTP server.
Could any one help me with this please..?
Thanks & Regards,
AK
If you are using NFS, you can set Add Counter in receiver file adapter.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ak,
Check this link http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/503e9bea-ea09-2e10-ec8a-cdf369de9...
Later you can use dynamic configuration to use those numbers to create name of the file.
Regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ak,
If you check the code first try to access to this file
File propertiesfile = new File("Sequence.properties");
....
properties.load(new FileInputStream(propertiesfile));
Later try to get the current sequence number:
String number = properties.getProperty(formatName);
And finally with the variable "counter", increment the file number value and to return this value.
You need to have a directory with you can read/write and to change the first sentence that i wrote, for example: "File propertiesfile = new File("/usr/sap/trans/Sequence.properties");". Ask to your basis if there is a directory with these premises.
Hope this helps.
Regards.
User | Count |
---|---|
88 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.