on 05-21-2007 12:45 PM
hi xi professionals.
i just want to know how we can get filename in message mapping and map it to targer message type.
is it through java functions.
here the thing is that iam not having netweaver developer studio.
waiting for ur excellent response.
bye.
regards.
seeta ram.
Hi
Refer this blog
/people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14
then use the code below in ur mapping (simple user defined function) to get the filename:
try
{
DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
ourSourceFileName = conf.get(key);
}
catch (Exception e)
{
//return e.toString();
}
return ourSourceFileName;
If this could help u refer these
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
><i>is it through java functions.</i>
You need to write a User defined Function in the mapping.
The code to be used in this UDF will be as follows,
http://help.sap.com/saphelp_nw04/helpdata/en/43/03612cdecc6e76e10000000a422035/content.htm
><i>here the thing is that iam not having netweaver developer studio.</i>
You do not need NWDS for this.
Regards
Bhavesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.