on 07-30-2008 7:54 AM
hi experts,
here iam doing IDoc to file scenario, when i push data from BD10 the data will come to XI and i want that material number as file name.
can any one explains me how to do that dynamic configuration.
thanks in advance.
JOHN
there are two ways.1)use variable substitution 2) write UDF in meg mapping, pass material number as input parameter , write code:
DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
String ourSourceFileName = conf.get(key);
String newFileName = materialnumber;
conf.put(key,newFileName );
return ourSourceFileName;
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi John,
U dont have code any thing.
Just follow the things given in below link........... in receiver file adapter.
http://www.saptechnical.com/Tutorials/XI/Variable/substitution.htm
Thanks,
Mahi
Edited by: Maheshwari Morbale on Jul 30, 2008 9:47 AM
You can do this with dynamic configuration. You just need to write following UDF in mapping
DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
conf.put(key,a); // a is Material no that you need to pass to UDF
String ourSourceFileName = conf.get(key);
return ourSourceFileName;
in mapping
MaterialNo---->UDF ---> Target Root node
Also set Adapter Specific Message Attributes in receiver file adapter. there tick filename
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Use variable substitution in ur file channel to get the filename as material no from payload.
http://help.sap.com/saphelp_nw04/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/content.htm
Regards,
Prateek
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.