‎2008 Feb 29 1:29 PM
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
‎2008 Feb 29 1:34 PM
‎2008 Feb 29 1:39 PM
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.
‎2008 Feb 29 1:43 PM
hi
thanks
can u tell detail of this for deeply understanding
please tell me with example
that is use full for us
thanks
‎2008 Feb 29 1:39 PM
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
‎2008 Feb 29 1:44 PM
READ table will reads the value in the field.
Describe table will gives the number of records in the internal table.
Regards,
Ajay
‎2008 Feb 29 1:47 PM
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
‎2008 Feb 29 2:49 PM
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