cancel
Showing results for 
Search instead for 
Did you mean: 

File Name and Target Directory name issue in FTP CC

Former Member
0 Kudos

Hi All ,

I am using following code to assing file name and directory name in UDF. I don;t want these parameters to be part of my target structure. Since i have created these files names in UDF, what are the values do i need to mention in FTP CC's "File access Parameter" which are mandatory fiels in CC ?

DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);

DynamicConfigurationKey key = DynamicConfigurationKey.create(u201Chttp://sap.com/xi/XI/System/Fileu201D,u201CFileNameu201D);

String myFileName =biz +".dat";

conf.put(key, myFileName);

//Similar code for direcotry

Thanks for your support.

MK

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Thanks,i will use the dummy values

Former Member
0 Kudos

Hi,

in ID in receiver file comm channel, just tick the option of Adapter Specific messge attributes and in it tick FileName and DirectoryName.............

the filename and directory you give in comm channel will be treated as dummy and the values will be taken from your UDF.......

Regards,

Rajeev Gupta

Former Member
0 Kudos

Hi MK,

You can give any value in the CC, these values will be treated as dummy values.

Values mentioned dynamically will be taken into the consideration as the Filename and Directory Name

regards,

Chandra Shekhar.