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

Runtime type of a variable defined in the program

Former Member
0 Likes
1,047

Hello,

Is there any method to get the runtime type of a variable defined in the program.

Eg

Data: LV_date type d.

Runtime I want to know the type of lv_date.

Thanks,

V

1 ACCEPTED SOLUTION
Read only

ThomasZloch
Active Contributor
0 Likes
883

check out ABAP statement

DESCRIBE FIELD ... TYPE ...

7 REPLIES 7
Read only

former_member386202
Active Contributor
0 Likes
883

Hi,

Goto table tab in debug mode and double click on variable u will get the details.

Regards,

Prashant

Read only

former_member386202
Active Contributor
0 Likes
883

Hi,

Goto table tab in debug mode and double click on variable.

Regards,

Prashant

Read only

ThomasZloch
Active Contributor
0 Likes
884

check out ABAP statement

DESCRIBE FIELD ... TYPE ...

Read only

Former Member
0 Likes
883

hi ,

references. The DESCRIBE FIELD statement returns various type attributes of variables at run time .

regards ,

sandeep patel

Read only

Former Member
0 Likes
883

Use DESCRIBE FIELD statement.

like:

data: l_typ type char1.

DESCRIBE FIELD v_date

TYPE l_typ.

Regards,

Joy.

Read only

bpawanchand
Active Contributor
0 Likes
883

Hi

REPORT yh1140_sample .

DATA :

w_i TYPE i,

w_c.

DESCRIBE FIELD w_i TYPE w_c.

WRITE :

w_c.

Regards

Pavan

Read only

Former Member
0 Likes
883

hi

One method is debug and find double click the variable u ll get

second is use Use DESCRIBE statement

Amit