cancel
Showing results for 
Search instead for 
Did you mean: 

How to get the Same File Name in Sender & Receiver FTP channel?

Former Member
0 Kudos

Hi,

   we are on PI 7.11 with SP8. We have a scenario wherein we are suppose to pick-up some file from SAP application server & FTP those files on to some other application server. For picking-up files i have used sender FTP Channel & to put a files i have used Receiver FTP channel.

The scenario is working fine but it is changing the file name while putting it on target directory.

   We want while putting the files it should have the same name as the source file.

Can anybody tell me how to do this? do we nned to use SFTP channel?

pl. explain me in detailed.

Regards,

Umesh

Accepted Solutions (1)

Accepted Solutions (1)

former_member184789
Active Contributor
0 Kudos
Former Member
0 Kudos

Hi Umesh,

Without Mapping & UDF also you can achieve it. 

1. First check the ASMA parameters in Sender Channel

2. Check the ASMA parameters in Receiver Channel

Try this and let me know.

Thanks,

Satish.

Former Member
0 Kudos

Hi Thanx Satish & Everybody,

    My problem got resolved without doing any Mapping & UDF.

I have used ASMA in both Sender as well as Receiver FTP Channel.

Regards,

Umesh

Former Member
0 Kudos

Hi Satish,

Basically my requirement to get Filename in idoc segments in order to validate the posting at month end.


Its an File to idoc scenario- GL Posting.


Please check attached UDF and it gives error. Kindly help. Thanks

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi Umesh,

Basically my requirement to get Filename in idoc segments in order to validate the posting at month end.


Its an File to idoc scenario- GL Posting.


Please check attached UDF and it gives error.  Kindly help. Thanks...

former_member190293
Active Contributor
0 Kudos

Hi, Rajesh!

Please check your code. It should look like:

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

You have wrong namespace and "," missing in your code.

Former Member
0 Kudos

Hello,

I assume that you are just picking the files and dumping it on FTP server, if so then there is no need to use mapping/UDFetc. just check ASMA -> Select File Name in sender and receiver file channel and you are done.

Thanks

Amit Srivastava

former_member184789
Active Contributor
0 Kudos

This can be done easily through dynamic configuration. Check out:

http://saptechnical.com/Tips/XI/ASMA/Index.htm

Former Member
0 Kudos

does that mean i will have to use the mapping & UDF ?

in my case i am not using any mapping?

how do i do this?

nabendu_sen
Active Contributor
0 Kudos

To achieve the functionality of ASMA, you need a Mapping and UDF.

rajasekhar_reddy14
Active Contributor
0 Kudos

Create dummy mapping then use dynamic config UDF, if you are dumping files from one FTP to other then use Script to achieve the same.

iaki_vila
Active Contributor
0 Kudos

Hi Umesh

If you are not using the design part you can use the apdater specific identifiers to keep the file name.

Check this Michal's answer:  http://scn.sap.com/message/2796729#2796729

Regards.

iaki_vila
Active Contributor
0 Kudos

Hi Umesh,

If you need a mapping you can follow Michal's blog: http://scn.sap.com/community/pi-and-soa-middleware/blog/2005/11/10/xi-the-same-filename-from-a-sende...

If you don't need a mapping, you can develop an scenario only in the integration directory passing the files as binary files.

Regards.

Former Member
0 Kudos

Hi,

  But as i told earlier, my problem is we want the same File Name while FTP it to target directory.

basically we want the same file name as source .

Regards,

Umesh