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

Create data type string

Former Member
0 Likes
991

HI

There is a way to create date type string using the command

Create data type "string"...

I know that I can create data type C but string dont have any restrication so how I can hanlde it ?

Regards

Joy

1 ACCEPTED SOLUTION
Read only

deepak_dhamat
Active Contributor
0 Likes
923

Hi ,

You can use string TYpe Data element .

i.e t_tab type <data element > which of type string .

regards

Deepak.

5 REPLIES 5
Read only

deepak_dhamat
Active Contributor
0 Likes
924

Hi ,

You can use string TYpe Data element .

i.e t_tab type <data element > which of type string .

regards

Deepak.

Read only

0 Likes
923

Hello Deepak ,

The issue here is that I need to create it dynamically so I cant use the data element...

Regards

Joy

Read only

0 Likes
923

Hi,

You can use the create data statement:


DATA: lo_data TYPE REF TO data.
FIELD-SYMBOLS: <str> TYPE ANY.

CREATE DATA lo_data TYPE string.

ASSIGN lo_data->* TO <str>.

Here <str> will be of type string.

Kr,

m.

Read only

0 Likes
923

Hi Joy ,

You can make use of Field Symbol .

regards

Deepak.

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
923

Hi Joy,

Please provide some part of your code with brief explanation for us to understand and provide good solutions.

Kesav