Skip to Content
0
Former Member
Apr 28, 2010 at 06:13 PM

CONCATENATE issue : Character type: 255 limit

1934 Views

Hi folks,

I am facing an issue, i want to concatenate some char data type in a loop, but when the length of the variable exceeds 255 characters, its not transferring the data which is after 255 length. I debugged it and try to change manually, but in the debugger it says;

>The new value is too long; only 255 elements can be transferred

>Diagnosis

>The new variable value is too long.

>Only 255 elements of the value of a variable are passed between the Debugger and the debugged development object.

>Therefore, the new variable value cannot be longer than 255 elements.

>Procedure

>You can either shorten the value to be changed, or use offset length specifications when working with character-type fields (for example, change c1000+5(10))

Then after reading this; I have changed my concatenate stmt and now i'm using offset, but even then it's not transferring the data which is after 255th element.

I am using the following code to concatenate.

lv_strlen1 = STRLEN( lv_b ).
lv_strlen2 = STRLEN( lv_a ).
CONCATENATE lv_a lv_b  INTO lv_a+lv_strlen1(lv_strlen2).

lv_a is a character type data object with a length of 400. I know the solution for string, but I could not use it in my scenario.

This code is inside a loop. and this lv_a has the column information of ALV GRID. In every loop pass, it has next column data.

Thanks,

Please do not use code tags to format text.

Edited by: Rob Burbank on Apr 28, 2010 2:45 PM