cancel
Showing results for 
Search instead for 
Did you mean: 

Scenario Multiple Files to One File

Former Member
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

nabendu_sen
Active Contributor
0 Kudos

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.

Answers (4)

Answers (4)

Former Member
0 Kudos

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.

iaki_vila
Active Contributor
0 Kudos

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.

naveen_chichili
Active Contributor
0 Kudos

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

ambrish_mishra
Active Contributor
0 Kudos

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.