cancel
Showing results for 
Search instead for 
Did you mean: 

Unique serial Number in File name

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Answers (1)

Answers (1)

MichalKrawczyk
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Hi

Thanks for the reply. But that option is available only in NFS protocol. But not in FTP.

Is there any other way out.

-Kulwant

MichalKrawczyk
Active Contributor
0 Kudos

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