Skip to Content

sending file name to proxy XML using ASMA??

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Oct 29, 2013 at 07:33 AM

    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 .

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 29, 2013 at 07:01 AM

    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

    Add comment
    10|10000 characters needed characters exceeded