cancel
Showing results for 
Search instead for 
Did you mean: 

splitting based on length

Former Member
0 Kudos

i have a requirement as follows

file is as below

aaaa bbbb cccccc

dddd eeee ffffffff

ggg hhhh iii

jjj kkkk llllllll

mm nnnn ooooooo

It is an input fixed length file

my requirment is such that if the file length has more than 2 records, it is to be split into different files.

i.e the above file would be as follows

file1

aaaa bbbb cccccc

dddd eeee ffffffff

file2

ggg hhhh iii

jjj kkkk llllllll

file3

mm nnnn ooooooo

How can i achieve this?

Can this be done through mapping or can we like create the input data type in such a way that it will be automatically split.

Please help.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

thx

bhavesh_kantilal
Active Contributor
0 Kudos

Neha / Pratichi

Most of the questions you have raised today can be answered if you read help.sap and do a little bit of reading and searching.

To me this looks like a interview question and I must admit its a good one.If you have read on Content Conversion and worked on it , you would have seen a parameter called Recordsets Per Message. This is parameter is used exactly for this purpose.

http://help.sap.com/saphelp_nw04/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/content.htm

Check this link and another such question without any search would lead to thread being deleted.

Regards

Bhavesh