Skip to Content
0
Sep 27, 2016 at 01:48 PM

SO_OBJECT_READ : wrong line breaks

149 Views

Hello

We are using the function module SO_OBJECT_READ to read a certain text that we want to send by email. The table OBJCONT that is created by this function, contains the document text, split up in strings with length 255. (type table of SOLI).

1. It is possible that a new text line is created, in the middle of a word, e.g. conference. One line in the table OBJCONT ends with 'conf' and the next line starts with 'erence'.

2. Another possibility is that the text is split up between two words, e.g. this conference. One line in the table OBJCONT ends with 'this' and the next line start with 'conference'. The blank between 'this' and 'conference' is omitted in this case.

Now, when we want to rebuild the full text string by concatenating all different table lines of OBJCONT, we cannot know if we have to concatenate, separated by space of not.

If we use 'separated by space', we get in situation 1 : 'conf erence' and in situation 2 : 'this conference'.

If we use no separation during the concatenation, we get in situation 1 : 'conference' and in situation 2 : 'thisconference'.

Has anyone found the same problem, using SO_OBJECT_READ, or are we doing something wrong.

If this really is a problem, do you have another function module that you use, or some work around ?

Thank you

Koen