Skip to Content
avatar image
Former Member

File to File Copy with Dynamic Naming

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Feb 18, 2014 at 01:09 PM

    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) - A Step-by-Step Simple File-to-File Scenario: SAP XI

    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

    Add comment
    10|10000 characters needed characters exceeded

  • Feb 18, 2014 at 01:18 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • Feb 18, 2014 at 02:00 PM

    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+scenario

     

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Feb 18, 2014 at 06:01 PM
    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.

    Add comment
    10|10000 characters needed characters exceeded