cancel
Showing results for 
Search instead for 
Did you mean: 

merging 2 files without bpm

sahana_ps
Participant
0 Kudos

Hi all,

I have a requirement I need to merge two files without using BPM

Content of file 1

Header

Row1

Row2

….

….

Row N

Trailer

Content of file 2

RowA

RowB

….

….

Row N

The merged file content should look like below.

Header

Row1

Row2

….

….

Row N

RowA

RowB

….

….

Row N

Trailer

Accepted Solutions (0)

Answers (6)

Answers (6)

praveen_sutra
Active Contributor
0 Kudos

HI Sahana,

could you please explain the scenario in lil more details.

As mentioned by experts its possible by java mapping also.

Will there be always only two files or you want to merge a set of files.

thanks and regards,

Praveen T

sahana_ps
Participant
0 Kudos

There will be only 2 files always

nitinlpatil12
Participant
0 Kudos

Hi Sahana,

refer link - http://scn.sap.com/message/13940183

and in particular see Raja's reply.

I hope this will help.

Regards,

Nitin Patil

markangelo_dihiansan
Active Contributor
0 Kudos

Hello,

In the file sender adapter, there is an option there called Additional File(s). It allows you to select more than one file (the next file(s) would be an attachment). You can then read the attachment in graphical mapping or java mapping.

Regards,

Mark

sahana_ps
Participant
0 Kudos

You can then read the attachment in graphical mapping or java mapping.

Can you please provide me more input on this.How it can achieved?

gagandeep_batra
Active Contributor
0 Kudos

Hi Sahana,

I think you can do this by scheduling the channel in proper manner..

first pick the first A and crate two files from that file1 & file 2

then pick the second file (file B) and add to first file in append mode(in file1)

then pick the second file( file2) and append it to first file(file1).

for this that can possible...

Regards

Gagan

iaki_vila
Active Contributor
0 Kudos

Hi Shana,

In my opinion, as suggest the best way is with BPM.

You have other options, but they are worse:

1. Using java mapping if you are sure that the two files come together or you know when throw the scenario when the two files had arrived.

2. Make two scenarios. The first one puts the first file in one path and the second file is moved to that path in the before file in append mode. The second sceario takes this new megued file and it does the mapping.

Regards.

Former Member
0 Kudos

Hello,

I don't think that it would be possible without BPM.

But i am not sure why u want to avoid using BPM for this collect pattern requirement? Any specific reasons?

Thanks

Amit Srivastava