cancel
Showing results for 
Search instead for 
Did you mean: 

target name

Former Member
0 Kudos

Hi

target file name should be with a field name value in source structure.

how can we do it

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

1) Write one UDF & map Like this

Field1(sesha)-----UDF--


MT_Target

You will get the Target file name as sesha.xml ot txt what ever u want

2) Check the ASMA Option in Receiver Adapter Aloneu2026..

No need to check the ASMA Option in the Sender side

UDF Code:

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

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

String Outputfile = conf.put(key,a);

return Outputfile;

See this Screeshot for mapping

http://img225.imageshack.us/img225/4672/mappup2.jpg

You can take this as Refference

Reward Points If it helps you

Regards

Seshagiri

Edited by: N V Seshagiri on Jul 17, 2008 7:54 AM

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

Check this thread for target name creation:

Thanks,

Boopathi

Former Member
0 Kudos

Hi Venkata,

Best way is to use Dynamic Configuration.

See [this link|http://help.sap.com/saphelp_nw04/helpdata/en/43/03612cdecc6e76e10000000a422035/frameset.htm] for details.

Regards,

Riyaz

former_member190389
Active Contributor
0 Kudos

Use Adapter Specific Message Attributes for the target Comm Chanel check the indicator for filename in the advanced tab of CC

create a UDF with i/p as file name and

paste this code



DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
//conf.removeAll();
DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");

//String filename= conf.get(key);
conf.put(key, fileName);
key= null;

return fileName;

 

PS: use cache as value in UDF

ands assign the o/p of this UDF to a root node