on 11-12-2015 3:24 PM
Hello Community,
I have the following problem: the payload of the message has no reference to any organisation. But the pathname has.
The sender-adapter is FTP - receiver is RFC. Is it possible to transfer the server - pathname to the rfc-function?
LG Matthias
Hi Matthias,
Try this UDF to get file name
Best Regards,
Vladimir
public String Filename(Container container) throws StreamTransformationException{
DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
String SourceFileName = "";
if (conf != null) {
DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
SourceFileName = ""+conf.get(key);
} else {SourceFileName = "no filename";}
return SourceFileName;
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Mark and Vladimir,
thanks for the answers. In the next days I'm not in the office but then I'll try it
Matthias
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Matthias,
The host and the directory should be retrievable by using dynamic configuration.
Configuring the Sender FTP Adapter - Advanced Adapter Engine - SAP Library
Regards,
Mark
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 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.