cancel
Showing results for 
Search instead for 
Did you mean: 

changing filename portion from sender to receiver using DC without ESR objects

Former Member
0 Kudos

Hi Experts,

We are working on a requirement to place the same file from source to target without ESR part as no mapping involved. It's a file to file bypass scenario.

Issue that we have seen as below:

If we get filename say "ABC.txt" from sender system then we need to create filename as "ABC_Process.txt" at receiver.

But using dynamic configuration and ASMA parameters. we are getting resultant filename as ABC.txt_Process.txt

Need to know is there anyway to create required filename without mapping and no ESR objects.

i.e replacing ".txt" from sender filename with "_process.txt"

Here: "_process.txt" is a constant term used in receiver filename.

Regards

Deepak

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Done it through Java mapping....

using below link for coding:

http://wiki.sdn.sap.com/wiki/display/XI/Dynamic+file+name+for+pass-through+scenario

S@p Technic@l :   http://saptechnical.com/Tips/XI/ASMA/Index.htm

Used dummy Data types , message types and SI out  and SI in to put Java mapping.

Regards
Deepak

Answers (2)

Answers (2)

ambrish_mishra
Active Contributor
0 Kudos

Deepak,

You have your answer in the below thread.

http://scn.sap.com/thread/3373138

Inside this you have http://scn.sap.com/thread/1609007  this is the solution I would recommend since it is simple and straight forward.

Hope it helps!

Ambrish

Former Member
0 Kudos

Hi Ambrish,

We are using OS windows and need to know what exactly syntax required for relpacing  ".txt " with "_Process.txt"

Regards
Deepak

ambrish_mishra
Active Contributor
0 Kudos

Hi Deepak,

I suggest to get in touch with Basis team in your project who can modify the script suggested in http://scn.sap.com/thread/1609007 to suit your requirement.

Hope it helps!

Ambrish

allamudi_loordh
Active Participant
0 Kudos

Hi Deepak,

you can achieve this by using custom adapter module. Please let me if you want to go with this approach so that i can write code and publish the same.

Regards,

Loordh

Former Member
0 Kudos

Hi Loordh,

Please share Custom Adapter Module and process to deploy the same.

I am looking if we can acheive this with OS command.

We are using Windows as OS.So need to know what OS command at receiver channel will work for my requirement.

I am not sure about OS Command syntax also.

Regards
Deepak

Former Member
0 Kudos

Hello,

Refer this:

http://wiki.sdn.sap.com/wiki/display/Snippets/Dynamic+file+name+in+a+File+to+File+pass+through+scena...

IMO, creating a AM is a better option than OS commands...but choice is yours

Thanks

Amit Srivastava