Skip to Content
avatar image
Former Member

File-splitting based on content.

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • avatar image
    Former Member
    Nov 11, 2011 at 08:34 AM

    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-c892473f1571?QuickLink=index&overridelayout=true

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

    Illustration of Enhanced Receiver Determination - SP16

    regards,

    ganesh.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 11, 2011 at 09:55 AM

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

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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 11, 2011 at 11:51 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • Nov 11, 2011 at 05:28 PM

    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

    Add comment
    10|10000 characters needed characters exceeded