‎2008 Feb 06 6:56 PM
Hi,
In the new ABAP debugger when you double click on a variable there is a little pencil icon to the change the content of the variable. If the variable has more than 255 characters or if you chnage the variable to a long text of more than 255 then it says only the first 255 characters will be transfered.
I wanted to know of there is a way to change longer texts than 255.
Thanks.
Yohan
‎2008 Feb 06 7:51 PM
If your string is e.g. 400 characters long you can use
lv_string+255(145) to change the characters after 255. It's a bit clumsy, but it works.
Regards,
Michael
‎2008 Feb 06 7:56 PM
Hi,
So you mean i type lv_image+255 in the debugger variable column.
I tried it and it doesnt recognise it lv_image any more.
Yohan
‎2008 Feb 06 8:05 PM
Yes, but you also have to specify the length you want to display.
variable+offset(length)
Only then you can change the value.
Regards,
Michael
‎2008 Feb 06 8:18 PM
Hi Michael,
I think your solution will work only if its the technical type is char, in my case he technical type is cString and if i try the offset it doesnt work. when i clicked on the message it gave me this.
If changes are made to LV_HTML, only the first 255 units are transferred
Message no. TPDA067
Diagnosis
You tried to change a variable value that is longer than 255 bytes or characters.
Only 255 elements of the value of a variable are passed between the Debugger and the debugged development object.
Therefore, you cannot change more than 255 elements of a variable value when changing a variable.
The remaining elements are set to the initial value, in the case of characters and X fields, or shortened to a length of 255 characters/bytes, in the case of strings and XSTRINGS.
Procedure
To change parts of a long Char field, you can use offset and length specifications.
Example:
To change the first character of a Char(1000) field C1000, use the variable name C10000(1) and change it in the variable fast display.+
Unfortunately, there is no solution for strings and XSTRINGS yet.
I guess in mycase there is no solution.
Thanks.
Yohan