Skip to Content
author's profile photo Former Member
Former Member

Scenario Multiple Files to One File

Hi All,

I have this scenario.

R3 Generates

File_A.txt

File_B.txt

File_C.txt

File_D.txt

And I have to pick up and send to an FTP only one with the name FILE.txt but if a file exits in FTP (Legacy) I dont have to overwrite it.

Example:

R3

File_A.txt

File_B.txt

File_C.txt

File_D.txt

Legacy

FILE.txt --> does not exits and I will create it with content of File_A.txt

So, I dont have to send other ones (File_B.txt File_C.txt File_D.txt)

Any idea how to do it?

Thanks!

Cerbero.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • Best Answer
    Posted on Aug 24, 2013 at 02:35 AM

    Hi Cerbero,

    To process multiple files into single message, you need to use ccBPM.

    See below example for 2 files:

    http://saptechnical.com/Tutorials/XI/BPM/Fork1.htm

    For the requirement of not overwriting, see below:

    Select the File Construction Mode.

    ○ Create

    The file is created. The document received last is saved in each case.

    If you want the created file to be overwritten, set the Overwrite Existing File indicator. If you do not set the indicator, processing is stopped until the created file is processed.

    Regards,

    Nabendu.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 24, 2013 at 02:52 AM

    Hi Cerbero,

    What file name File_B.txt File_C.txt File_D.txt have to be written with ? Same as source ?

    Can u elaborate on your requirement pls.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 26, 2013 at 07:22 AM

    Hi,

    --->So, I dont have to send other ones (File_B.txt File_C.txt File_D.txt)

    Do you want to skip those files (File_B.txt File_C.txt File_D.txt)??

    Regards,

    Naveen

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 26, 2013 at 10:33 AM

    Hi Cerbero,

    As Naveen and Ambrish said if you only need the first source file you can do a simple scenario File to File, and if you dont need any transformation of the data file you can do it without ESR development (http://scn.sap.com/message/10868977#10868977)

    Regards.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 30, 2013 at 01:34 PM

    Hi All,

    Thanks for your coperation.

    @Nabendu, with your help, I found the option APPEND.

    Select the File Construction Mode.

    ○ Append

    So, I pick up several files, and I create only one appended.

    Thanks!

    Regards.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.