Showing results for 
Search instead for 
Did you mean: 

Dynamic File Name depending on the Source File name

Former Member
0 Kudos

Hi Experts,

I have the problem like, Depending on the source file name, I need to create a new directory and new file name with the same content. So for this i have done the following steps.

1.Create a mapping, Top node mapped with UDF as follows

//write your code here

DynamicConfiguration conf = (DynamicConfiguration) container



DynamicConfigurationKey key = DynamicConfigurationKey.create(



DynamicConfigurationKey key1 = DynamicConfigurationKey.create(



String source = conf.get(key);

String tar_fname =source.substring(19,21);

String tar_dirname =source.substring(14,18);

conf.put(key, tar_fname);

conf.put(key1, tar_dirname);

return " ";

2. Done the All the configuration in ID.

But I am getting the following FATAL error. Can you please suggest me what coulbd be the problem

My Error as follows:

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>

- <!-- Request Message Mapping


- <SAP:Error xmlns:SAP="" xmlns:SOAP="" SOAP:mustUnderstand="">





<SAP:P3>Fatal Error:</SAP:P3>

<SAP:P4 />

<SAP:AdditionalText />

<SAP:ApplicationFaultMessage namespace="" />

<SAP:Stack>During the application mapping com/sap/xi/tf/_MM_Target_File_determined_ a was thrown: Fatal Error:</SAP:Stack>



Please refer my other thread which help me to solve my problem partially.

Thanks in Advance,

Points will be awarded for helpful anwsers.

Warm Regards,


Thanks in Advance

Best Regards,


Message was edited by:

Gangisetty Vijaya Bhaskarudu

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos


U want to create same file name for sender and receiver:


Dynamic file name for Receiver :



Solution to the problem encountered using Variable Substitution with XI-SP12