on 10-24-2007 7:33 AM
Hello Experts,
I am doing a File - RFC scenario.
I need the scenario in such a way that the name of the sender file should be placed in one field of RFC
What should I map with the field of RFC to hold filename in MM?
how do I achieve this?
Regards,
Nikhil.
Hi nikil,
>>What should I map with the field of RFC to hold filename in MM?
1. Select the option Adapter-Specific Message Attributes and File Name in the sender file CC.
2. Use the following UDF to retreive the filename from the Dynamic configuration payload & return the filename.
public String getFileName(Container container)
{
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);
return ourSourceFileName;
}
>>how do I achieve this?
Map the UDF to the target filed.
getFileName ---> one field of RFC.
Regards
San
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
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.