cancel
Showing results for 
Search instead for 
Did you mean: 

File-splitting based on content.

Former Member
0 Kudos

Hi Experts,

This question is regarding file-splitting.

Its a BAI2 file with multiple records in it.

a)I need to split the file based on an identifier and make those many sub-files ( with header and trailer added to the file )

b)And can we ensure we have the same name for the files? ( with a count suffixed in the end )

The forum talks about BPM, Enhanced Interface/Receiver Determination, Message Mapping split etc..

Which would be the best approach for this?

Please advise.

Thank you,

Rakesh.

Accepted Solutions (0)

Answers (4)

Answers (4)

rajasekhar_reddy14
Active Contributor
0 Kudos

Hi Rakesh,

When you deal with BAI2 file formats, the main challenging part is converting BAI2 format file in to XML using standard file adapter really big challenge(as per my experience).

coming to you requirement splitting one file in to multiple sub files --best approach is using multi mapping message split.

handling counter big risky if you target file system not NFS,if it is NFS then use standard counter mechanism else you have to find some other way to achieve it.

Regards,

Raj

Former Member
0 Kudos

Hi Rakesh,

(a)

you have to do file splitting based on your requirement.

For this you can use udf or simple message mapping.

You can search for this in sdn.

(b)

yes you can have same file name with time-stamp or counter.

For this goto Integration Directory.

In receiver channel you will find "Processing Parameters".

There you will find a drop down for file construction mode.

Select "Add counter" instead of timestamp.

That will add a counter to the file name.

So you can have files having same name with different counter suffix.

Thanks

Rabi

Former Member
0 Kudos

Enhanced Interface/Receiver Determination is the best aproach to go with.

refer http://www.saptechnical.com/Tutorials/XI/RecvDetermination/Enhancement.htm

Former Member
0 Kudos

Hi,

Using Enhanced Interface/Receiver Determination approach is best one.

1.If your version is 7.1 and above, you can also try using enhanced interface determination. Please go through the below link

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/90dcc6f4-0829-2d10-b0b2-c892473f1...

2.In the Receiver Determination, you need to select " Extended" in the Type of Receeiver determination.

regards,

ganesh.