Skip to Content

Dynamic File Name for Receiver File Adapter

Hi All,

How can we use dynamic name for Receiver file adapter?

Can anyone help.

Thanks in Advance

Chemmanz

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Feb 09, 2006 at 09:57 AM

    Hi,

    all you have to do is to make the use specific adapter properties (filename) in the receiver file adapter

    and then populate the filename in the mapping:

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

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

    conf.put(key, "ournewfilename");

    Regards,

    michal

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Feb 09, 2006 at 10:02 AM

    Hi

    Check these blogs by jayakrishnan nair

    /people/jayakrishnan.nair/blog/2005/06/20/dynamic-file-name-using-xi-30-sp12-part--i

    /people/jayakrishnan.nair/blog/2005/06/28/dynamic-file-namexslt-mapping-with-java-enhancement-using-xi-30-sp12-part-ii

    Sameer

    Add comment
    10|10000 characters needed characters exceeded

  • Feb 09, 2006 at 12:02 PM

    Hi Chemmanz,

    The dynamic filename generation concept is as follows.

    In your filename field. just give a variable with % symbols. (eg: %file% ).

    Now, under the option Variable Name Substitution, you can give how the value has to be created.

    It can be your interface name, sender service name, etc or it can be some value dynamically from your payload.

    For the former, your give

    message:interface_name ,etc

    and for the payload part you give,

    Payload: "your element root which u wanna acecss"

    Just check this link out,

    http://help.sap.com/saphelp_nw04/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/content.htm

    And read the contents under variable substitution and it will help you understand the concepts better.

    If you have any clarifications, do get back,

    Regards,

    Bhavesh

    Add comment
    10|10000 characters needed characters exceeded