Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Internal table with XSRTING data type

Former Member
0 Likes
1,928

Dear all,

Is there any way to create an internal table with XSTRING data type.

Regards

Srini

4 REPLIES 4
Read only

awin_prabhu
Active Contributor
0 Likes
1,140

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,

Read only

Former Member
0 Likes
1,140

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

Read only

Former Member
0 Likes
1,140

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.

Read only

NAeda
Contributor
0 Likes
1,140

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.