‎2008 Jul 23 7:24 PM
Hi,
I need to hold text data in an internal table.
So I created a structure as follows:
data: begin of str,
val type c,
end of str.
later when I go and add text values to the internal table,it displayes only the first character of the texts that I append.
How do I define the length of "C"?or which data type can I use to store strings of variable length?
Could someone pelase help me with this?
Thanks,
Sudha.
‎2008 Jul 23 7:26 PM
Try this,
data: var1 type string.
TYPE C - Stores only 1 char by default. You may declare fixed length by saying
DATA: VAR1(10) TYPE C.
To store variable length use TYPE STRING.
Thanks,
SKJ
‎2008 Jul 23 7:26 PM
Try this,
data: var1 type string.
TYPE C - Stores only 1 char by default. You may declare fixed length by saying
DATA: VAR1(10) TYPE C.
To store variable length use TYPE STRING.
Thanks,
SKJ
‎2008 Jul 23 7:29 PM