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

File name issue

Hi All,

My scenario is :

1. SAP (sender ) sends file name to BPM(e.g myfile1.txt)

2.BPM sends the same file name (e.g myfile1.txt) to a HTTP reciever.

3.Http receiver then responses with a file(around 30mb size of file)

4.Then the file can be send to a file system

I need to save the file in the file system with the same file name (e.g:myfile1.txt) which is requested in http request(e.g myfile1.txt). How can configure file adapter to achive this?

Regards,

Praveen

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Nov 30, 2007 at 03:58 AM

    hi praveen,

    for getting the same file name u need to set adapter specific message attributes.

    for setting at file adapter refer my article:

    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/70c89607-e4d9-2910-7280-f6746e964516

    for http adapter refer:

    http://help.sap.com/saphelp_nw04/helpdata/en/14/80243b4a66ae0ce10000000a11402f/frameset.htm

    [reward if helpful]

    regards,

    latika.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 30, 2007 at 03:52 AM

    hi Praveen,

    Check this blog whether it could be a help.

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

    regards

    Ramesh P

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 30, 2007 at 04:58 AM

    Hi All,

    My scenario is :

    1. SAP (sender ) sends file name to BPM(e.g myfile1.txt)

    2.BPM sends the same file name (e.g myfile1.txt) to a HTTP reciever.

    3.Http receiver then responses with a file(around 30mb size of file)

    4.Then the file can be send to a file system

    I need to save the file in the file system with the same file name (e.g:myfile1.txt) which is requested in http request(e.g myfile1.txt). How can I configure the receiver file adapter to achive this? Here there is no transformation step (hence no interface determination ,hence no message mapping between the http response to file interface) to define the dynamic file name.Bcoz no mapping possible between the sync and async messages.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 30, 2007 at 05:14 AM

    Hi Praveen,

    BY using the option of Variable subtitution in Receiver File Adapter CC, you can achieve this with the refrence of your paylaod and message.If the file name holding in the payload you can give the refrence of your structure which field is exactly holding the file name value.

    refer the following weblogs , how to use the Variable subtitution

    /people/sameer.shadab/blog/2005/09/23/an-interesting-usage-of-variable-substitution-in-xi

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

    Hope it will give an idea to get the same filename which is coming from HTTP response.

    Cheers

    Veera

    >>>Reward points, if it is needful

    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.