cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic File name in FTP Communication Channel

Former Member
0 Kudos

Hi All,

We have requirement where ,we create a filenames dynamically ( runtime).These filenames whihc do change for every execution needs to be added in FTP communication channel.

1. How can we add the this generated file name in FTP CC Communication Channel.

2. Does this file needs to part of target structure during graphical mapping ?

3. Can we also dynamically append the Directory name to file names aswell ?

Please provide your valuable sugestions.

Thanks for your support.

Accepted Solutions (0)

Answers (6)

Answers (6)

Former Member
0 Kudos

Resolved.

Former Member
0 Kudos

Hi,

Please refer this link.

/people/shabarish.vijayakumar/blog/2009/03/26/dynamic-configuration-vs-variable-substitution--the-ultimate-battle-for-the-file-name

Regards,

Madhav

Former Member
0 Kudos

This message was moderated.

former_member200962
Active Contributor
0 Kudos
1. How can we add the this generated file name in FTP CC Communication Channel.

3. Can we also dynamically append the Directory name to file names aswell ?

to get the FileName:

DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");

To get the Directory:

DynamicConfigurationKey key1 = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","Directory");

Then append:

key+key1

And then in the CC select the Directory checkbox under the ASMA properties...

2. Does this file needs to part of target structure during graphical mapping ?

The file which is sent using the CC will have the FileName as configured in the UDF of the graphical mapping....and if i am not wrong then the target structure resembles the file (if there is no FCC done)....

Regards,

Abhishek.

former_member556412
Active Participant
0 Kudos

Hi,

Please refer to the following links

https://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/1888. [original link is broken] [original link is broken] [original link is broken]

Regards,

Bhanu

Edited by: nanduri bhanu on Jun 30, 2009 7:26 AM

prateek
Active Contributor
0 Kudos

1. How can we add the this generated file name in FTP CC Communication Channel.

Use Dynamic Configuration and check Adapter specific attributes in communication channel.

/people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14

2. Does this file needs to part of target structure during graphical mapping ?

Not necessarily. However, if you want, it could be.

3. Can we also dynamically append the Directory name to file names aswell ?

Yes. Using the same Dynamic Configuration as said above.

Regards,

Prateek