Skip to Content
avatar image
Former Member

How to get service interface name dynamically in the file to mail scenario

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.


Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Dec 22, 2014 at 06:52 AM

    Hi Vaibhav,

    I believe you can write the XML file name with Service Interface (using Variable Substitution approach) and later read this File Name in 2nd step of your mapping to do the required.

    Variable Substitution for Directory or File name.

    Regards,

    Azhar

    Add comment
    10|10000 characters needed characters exceeded

    • 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;
          }