‎2009 Nov 12 6:44 AM
Dear all,
Is there any way to create an internal table with XSTRING data type.
Regards
Srini
‎2009 Nov 12 6:49 AM
Hi Srini,
Its a basic question.
TYPES: BEGIN OF ty_itab,
hex TYPE xstring,
END OF ty_itab.
DATA itab TYPE STANDARD TABLE OF ty_itab.
Thanks,
‎2009 Nov 12 6:51 AM
Hello,
Just like you create any internal table you can declare fields of the type XSTRING too. What problem are you facing in this?
Vikranth
‎2009 Nov 12 6:52 AM
Hi,
First define the TYPES with only one field of type XSTRING then do the data declaration of type declaed.
For ex:
types:
begin of ty_xstring,
field1 type xstring,
end of ty_xstring.
data: t_xstring type standard table of ty_xstring.
‎2009 Nov 12 6:53 AM
Hi,
The predefined data types string and xstring describe data objects of variable length (dynamic data objects). While the length of data objects in all other elementary data types is determined for its whole lifetime, the length of text and byte strings varies according to their content (the maximum size of a string is determined by profile parameter ztta/max_memreq_MB, see Maximum size of dynamic data objects).
data: itab1 TYPE STANDARD TABLE OF xstring.