cancel
Showing results for 
Search instead for 
Did you mean: 

File Receiver Name

Former Member
0 Kudos

Hi,

I would like to receive the Receiver File name using this format %SenderFileName%

How to add prefix and suffix % to the sender filename without using mapping.

Using ASMA Receiver File name is same as the sender file name but I would like to place between %%.

Is there any way to do this;

Thanks,

Prasad

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member193376
Active Contributor
0 Kudos

Hi

Hi

In your receiver communication channel in the processing tab->Run operating system command after message processing, there you have to write a batch program.

for eg :

======================

open 10.4.71.145

mmdftp =========== username

Eimskip123======== password

cd /TestSource

get TestData1.xml

cd /TestTarget

put TestData1.xml

ren Testdata.xml %TestData1%.xml

quit

Batch File Content (File_Copy_Batch.bat)

=====================

This link will help you out

https://www.sdn.sap.com/irj/sdn/wiki?path=/display/xi/sap%2bxi%2bfile%2badapter%2bos%2bcommand%2blin...

Am sure this will solve your issue

Thanks

Saiyog

Former Member
0 Kudos

Hi,

I am trying to fix this without os level script.

Thanks,

Prasad

former_member181985
Active Contributor
0 Kudos

Hi,

Use "Run Operating System Command After Message Processing" under Receiver File Channel properties.

Write a script which reads all the files and renames them to %Filename%.

follow this doc:

[https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/bd994384-0a01-0010-92b5-c54f5a1d8ae5]

Thanks,

Gujjeti

Edited by: Praveen Gujjeti on Jun 3, 2008 5:16 PM

Edited by: Praveen Gujjeti on Jun 3, 2008 5:18 PM

Former Member
0 Kudos

hi,

With variable substitution %var1%

%var1% replaced with the var1 value

But I need to keep % in the file name, is there a way to escape the character %

like %%var1%%

Thanks,

Prasad