2007 Jul 18 5:25 PM
hi ,
is the declaration wrong?
data str(10) type c value 'character'.
write:/ str.
and dont we have string data type in abap,,,
thank you
praveen
2007 Jul 18 5:28 PM
there is nothing wrong with that declaration, whats the problem??
we do have STRING datatype in abap
data : str type string.
2007 Jul 18 5:28 PM
there is nothing wrong with that declaration, whats the problem??
we do have STRING datatype in abap
data : str type string.
2007 Jul 18 5:29 PM
Nothing wrong.
and there is strind data type
data v_str type string.
2007 Jul 18 5:30 PM
hi
data str type string value 'character'.
data st(10) type c value 'character'.
write / str.
write / st.
It will show character, both
2007 Jul 19 5:13 AM
Hi Praveen,
Strings allocate the memory at the runtime , whereas character type is static memory allocation .
Generally for the text lines we will use string types
<b>Reward pts if found usefull :)</b>
regards
Sathish
2007 Jul 19 5:17 AM
Hi,
Nothing wrong.
data str(10) type c - For this you will ahve to specify the charecter length, in this case 10.
dara str type string - Length specification is not required.
Regards,
Shruthi R