cancel
Showing results for 
Search instead for 
Did you mean: 

File name issue

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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-f6746e96...

for http adapter refer:

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

[reward if helpful]

regards,

latika.

Answers (3)

Answers (3)

Former Member
0 Kudos

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

Former Member
0 Kudos

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.

Former Member
0 Kudos

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