on 09-11-2013 7:22 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Shana,
In my opinion, as Amit Srivastava 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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.