on 10-29-2013 6:51 AM
Hello Expert,
i have a requirement, i need to send sender side file name into proxy payload.
i can used dynamic configuration to fetch the file name, but its not available in ECC proxy payload.
AS proxy receiver adapter doesn't support ASMA.
how to embedded the file name into payload of proxy.
regards,
Phani
Hi China
In your proxy structure, add a field for file name ( for example ) fname. Then map the field fname woth the below UDF
String FileName_input = "";
try
{
DynamicConfiguration conf = (DynamicConfiguration)container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey Filekey = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
FileName_input=conf.get(Filekey);
return FileName_input;
}
catch (Exception e)
{
}
Make sure that you have choosen the ASMA attribute ( filename) in sender file adapter .
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Use dynamic configuration and get the file name and assign it to the target field of receiver interface.
then you will get the file name in the proxy payload.
Regards,
Sai
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
i have done the same and got below mapping error.
<SAP:Error SOAP:mustUnderstand="1" xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.