Skip to Content
author's profile photo Former Member
Former Member

Dynamic File Name

Hi All,

I have a scenario in that the sender Proxy sends a file name to BPM then BPM sends same file name to a Http application (Http adapter) by using a dynamic url.Then that Http application sends a file (around 2mb) as response to the BPM.Then BPM needs to send the same file to a file receiver channel. The file should be saved with the same file name at the receiver (file system).

Here my problem is,am able to get files from http but not able give the dynamic file name to the receiver . I went through lot of blogs for dynamic file generation,but this can be possible when ever the message mapping is performed between the source and target messages.Here the response message (file) from http is absrtact synchronous and my receiver is abstarct asynchronous,so I can't do interface mapping between them.Even the received file contents doesn't contain the file name inside. Please let me know how to assign the dynamic file name to the receiver(file system).

Regards,

Praveen

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Dec 05, 2007 at 05:20 AM

    Hi

    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.

    U want to create same file name for sender and receiver:

    /people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14

    Dynamic file name for Receiver :

    /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

    Solution to the problem encountered using Variable Substitution with XI-SP12

    /people/sravya.talanki2/blog/2005/08/11/solution-to-the-problem-encountered-using-variable-substitution-with-xi-sp12

    Thanks

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 05, 2007 at 05:26 AM

    HTTP application send you the file.

    You are using a HTTP sender adapter. correct?

    If so, you should be looking at using the URL parameters in HTTP sender channel.

    In the sender communication channel selectt Adapter Specific Message Attributes. Click on Apply URL Parameters. In Parameter1 put file-name. U can query any URL parameter by giving its name as in the HTTP URL..

    Check if you can see this value under dynamic configuration in SXMB_MONI. If you get it, then you can use dynamic configuration with keyName UrlParamOne in mapping to retrieve its value and assign to the target file name.

    Jai Shankar

    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.