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 a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Posted on 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 a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on 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 a comment
    10|10000 characters needed characters exceeded

  • Posted on 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 a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.