on 06-29-2009 10:49 AM
Hi all,
We have a requirement where we are using file adpater at reciver end. We need to add a unique Sequence number at the end of file name for all the files procssed on that day.
Can anay body please suggest how to add a unique number at the end of file name. I am using FTP protocol.
Thanks
-Kulwant
Hi
use the Adapter Specific Message Attribute in the FTP Receiver Communication Channel,
and generate the file name in the Message Mapping at the node level.
In the code instead of get function use the put function.
Thanks
Rinku Gangwani
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Kulwant
If you are using PI7.1 it is simple.
Create one table and do the RFC lookup.
Create one function module in PI. With this RFC you take the file name and place it into the table. If fille already exist in the table increment and get the value as RFC lookup out. Use this file name in dynamic configuration and use it.
Regards
Ramesh
Hi,
>>>Can anay body please suggest how to add a unique number at the end of file name. I am using FTP protocol.
this is a standard just set Add Counter mode in the configuration for the file adapter
Regards,
Michal Krawczyk
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
>>>But that option is available only in NFS protocol. But not in FTP.
true (my bad I didn't notice you were talking about FTP)
so for the FTP there is no easy way in standard
you could create the filename in the ABAP mapping (using any of the number ranges from SAP)
but it would involve writing a small abap mapping (10 lines max)
and you could append it to any interface mapping which you use
Regards,
Michal Krawczyk
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.