cancel
Showing results for 
Search instead for 
Did you mean: 

how to cahnge file name while archiving(at sender adapter)

Former Member
0 Kudos

Hi ,

How to change the file name while archiving(sender file adapter level only) as below explained.

Ex : My source file name invoice.dat and after archive it will be the empl.dat only at archive folder, but I want it as invoice_invoicenumber.dat (invoice number from the file).

thanks.

Hari.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

hi Harish

use an OS command after process to copy your source file by renaming it.

[http://wiki.sdn.sap.com/wiki/display/XI/SAPXIFileAdapterOSCommandLine+Feature]

Mickael

Former Member
0 Kudos

Hi,

For Harish to rename the file from invoice to invoice_invoicenumber.... You would have to use a UDF to accomplisth this.....

But to change the file name while archiving, the approach mentioned by Michael can be used.

I am more keen to know how the OS command would be for renaming a file.

The link mentioned by MIckael is for copying the file in two different locations.

One more question was how this batch file is copied in the FTP?

rajasekhar_reddy14
Active Contributor
0 Kudos

we done have any standard way od doing this.. archive files using OS command it should work

or

create one more receiver file channel to post messages archive folder.

Regards,

Raj