on 12-22-2014 4:36 AM
Hello Everyone,
Currently I am working on file to proxy scenario/mail scenario. Based on the condition in the receiver determination, I am triggering ABAP proxy or creating a xml file for file to mail scenario. My question is how to get the service interface name in the xml file dynamically, so that I can provide the service interface name in the mail content.
Please let me know if there is any workaround possible.
Waiting for your responses.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Azhar,
Thanks for the quick response.
Currently I am using SFTP adapter, so in that case I suppose I can't use variable substitution.
My simple requirement is I need to send the interface name in the content part of the mail. There are around 15 interfaces, for all interfaces I am creating just 1 file to mail scenario,but the content of the file should change dynamically based on the interface triggered.
Suppose for interface A condition fails in receiver determination then a mail should be triggered with content containing interface name A.
Thanks in advance.
Hi Vaibhav,
SFTP also supports Variable Substitution, pls chk the following:
You can read the FileName and pass it in the Mail Content in your 2nd step.
Suppose for interface A condition fails in receiver determination then a mail should be triggered with content containing interface name A
>>> Is the msg failing in this step? I believe you can catch the error using Alert configuration
Regards,
Azhar
Azhar,
Service interface can be accessed using below UDF code. Link.
public String getInterfaceName(Container container) throws StreamTransformationException {
String senderInterface = container.getInputHeader().getSenderInterface();
//String senderInterface = transformationInput.getInputHeader().getSenderInterface(); //Use this in Java Mapping
return senderInterface;
}
User | Count |
---|---|
81 | |
24 | |
11 | |
9 | |
7 | |
5 | |
5 | |
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.