Skip to Content
avatar image
Former Member

how to get the sender filename in the mapping

hi

I want to get the name of the target file placed by XI at the target into a mapping.I need this to correlate this file with the acknowledgement file to be received later by Xi from the target, which has the same name as the target file.

I have gone through the following link:[sender-filename-in-bpm]

however i'm unable to understand the precise steps involved in it.

am using a BPM.

as of now, my BPM has 3 step:receive , transform and send.

please help

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Apr 28, 2009 at 03:32 PM

    /people/shabarish.vijayakumar/blog/2009/03/26/dynamic-configuration-vs-variable-substitution--the-ultimate-battle-for-the-file-name that should give you a good idea of the usage.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 28, 2009 at 03:30 PM

    In ID sender communication channel

    check the checkboxes for

    setadapter- specific message attributes

    filename

    in message mapping---- create one target elemt for the filename

    Write a UDF to pass the sender filename to the target element

    The UDF is as below

    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);

    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");

    String ourSourceFileName = conf.get(key);

    return ourSourceFileName;

    I think this may help you.

    Add comment
    10|10000 characters needed characters exceeded