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

what is difference between READ TABLE syntax & DESCRIBE TABLE

Former Member
0 Likes
1,580

hi all

thanks in advance

plz tell me what is difference between READ TABLE syntax & DESCRIBE TABLE

syntax and meaning of then

how to usefull for us this syntax......

thanks

7 REPLIES 7
Read only

Former Member
0 Likes
1,189

Hi,

Read table will read the table contents to a work area as per the conditions givn where as describe will describe the table in terms of data.

Please refer to the links below:

Regards,

Himanshu

Read only

Former Member
0 Likes
1,189

Hi,

U have an internal table....and it has 50 rows(assume)

now u have to read a row(any row from 1 to 50)....to do dat use READ TABLE syntax....the additions to this syntax specifiec which row(1 to 50) u want to read....

now u need to know one of the mentioned things of that itab..( no of lines/type/initial memory define(occurs n) ) ....use DESCRIBE TABLE syntax.......

Cheers,

jose.

Read only

0 Likes
1,189

hi

thanks

can u tell detail of this for deeply understanding

please tell me with example

that is use full for us

thanks

Read only

vinod_vemuru2
Active Contributor
0 Likes
1,189

Hi,

READ TABLE is used to READ single record at a time from the internal table.

EX: READ TABLE i_vbak INTO wa_vbak INDEX sy-tabix.

READ TABLE i_vbak INTO wa_vbak WITH KEY vbeln = '12345'.

So the above statements will read the record from the internal table i_vbak and places them in work area wa_vbak.

DESCRIBE TABLE is used to find the properties of the internal table like how many records the internal table have.

EX: DESCRIBE TABLE i_vbak LINE l_count.

after executing this l_count will contain a value equal to number of records in i_vbak.

Go to F1 help for more explanation and more additions.

Thanks,

VINOD.

Edited by: Vinod Vemuru on Feb 29, 2008 7:11 PM

Read only

Former Member
0 Likes
1,189

READ table will reads the value in the field.

Describe table will gives the number of records in the internal table.

Regards,

Ajay

Read only

Former Member
0 Likes
1,189

Ex:

---READ table itab with key vbeln = gv_vbeln.

now it reads the value of vbeln where it matches the gv_vbeln.

u will get itab-vbeln.

--- DESCRIBE ITAB into gv_variable.

gv_varible has the number of records in the internal table.

Regards,

Ajay

Read only

Clemenss
Active Contributor
0 Likes
1,189

Hi anand,

in ABAP editor, write DESCRIBE, put cursor on it, press F1. Repeat this process for the remaining commands. Come back with remaining questions.

Thanks a lot.

Regards,

Clemens

P.S: Come on Clemens...An H1 tag? -:)

Blag.

Edited by: Alvaro Tejada Galindo on Feb 29, 2008 10:14 AM