cancel
Showing results for 
Search instead for 
Did you mean: 

File to File Copy with Dynamic Naming

former_member181959
Contributor
0 Kudos

Dear All,

I have a requirement that I need to copy a flat file from one server to another Application Server. While doing that based one the file extension i need to rename the file at destination side. After that I need to call an RFC to invoke the workflow in R3 to process those files from application server Destination Folder).

Here my questions are,

1. How can i do file to file copy with out FCC? Or so should i use FCC because i need to dynamic configuration?

2. How can i call RFC after the file is being saved? (Shall i add one more interface mapping under interface determination? ) So will dynamic values can be exchanged between the steps, so that i can pass new file name from step one to RFC input?

Please let me know your comments on the same. Thanks for all your inputs.

Regards,

Prasad.

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos
While doing that based one the file extension i need to rename the file at destination side.

Hi Prabhu,

If file renaming on target is based only on the source file extension, try using ASMA[Adapter specific Message Attributes] option.

Hope, that can be used for your requirement.

so , basically, 1st requirement can be achieved using File-to-File ICO using ASMA.

santosh.

Former Member
0 Kudos

Hello,

By looking ur thread, i believe u want to dynamically rename files also while dumping it on target location?

If yes, then check below links u can either use AM or JM to do the same.

Adapter module:

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

 

Java mapping:

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

Regarding ur second question, it's a very usual stuff in ECC u have to schedule a job (program) in ECC which will read ur files and process the same.

Thanks

Amit Srivastava

former_member191435
Contributor
0 Kudos

Hi Prasad,

IN PI you just go ahead with file to file interface as suggest by Harish.... Second interface not required, it will be handled by ABAP side.

Once if you place the file in the second application server.. from their ABAP will read that and do the process.Take help of ABAPER.

Thanks,

Sreenivas

Harish
Active Contributor
0 Kudos

Hi Prasad,

1. How can i do file to file copy with out FCC? Or so should i use FCC because i need to dynamic configuration?

-- No need to do FCC, you can pick the file with file adapter and post in to another location. as per your required you did not need to perform the transformation.

reference doc (the mapping and content conversion part is not req) -

2. How can i call RFC after the file is being saved? (Shall i add one more interface mapping under interface determination? ) So will dynamic values can be exchanged between the steps, so that i can pass new file name from step one to RFC input?

-- This can be handle in ECC. ABAP program can read the file and trigger the work flow.

Hope it help.

Regards,

Harish