Skip to Content
0
Former Member
Nov 06, 2005 at 04:06 AM

problem with string length manipulation

37 Views

Hi All,

There is one requirement where I've to take a string with variable length. But this program is using 'Find String Offset off length len of var_string' syntax to find out a substring within this string.

What is happening right now is when I use this syntax , program is giving short dump which I'm attaching here - \

The reason for the exception is:

The running program, "SAPLXFOR", tried to access the field "LONG_TEXT_STR", which has a

length of 65535, using "SECTION OFFSET 409 LENGTH 65535". The SECTION addition is only correct if the substring specified in the offset/length lies entirely within the field "LONG_TEXT_STR".

Could anybody suggest me how I can prevent this dump.

What I believe that I've to increase the length of the variable of the string just before 'Find ' statement.

Thanks

Regards,

Alok