‎2006 Dec 07 3:49 PM
how to print the no of records value on the screen which is in internal table
is it by distinct i need full statement
‎2006 Dec 07 3:52 PM
Hi Chaya,
Use <b>DESCRIBE</b> statement to get the no of records in an internal table.
Try with this code.
DATA ITAB TYPE STANDARD TABLE OF MARA WITH HEADER LINE.
DATA V_LINES TYPE I.
DESCRIBE TABLE ITAB LINES V_LINES.
WRITE 'No of records in internal table are: ', V_LINES.
Check this link for DESCRIBE statement
http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/descri06.htm
Thanks,
Vinay
‎2006 Dec 07 3:51 PM
Hi,
data: line like sy-tabix.
describe table itab lines line.
Write: / 'Lines in itab:', line.
Regards, Dieter
‎2006 Dec 07 3:52 PM
Hi Chaya,
Use <b>DESCRIBE</b> statement to get the no of records in an internal table.
Try with this code.
DATA ITAB TYPE STANDARD TABLE OF MARA WITH HEADER LINE.
DATA V_LINES TYPE I.
DESCRIBE TABLE ITAB LINES V_LINES.
WRITE 'No of records in internal table are: ', V_LINES.
Check this link for DESCRIBE statement
http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/descri06.htm
Thanks,
Vinay
‎2006 Dec 07 3:55 PM
Hi,
Use this syntax..
data: lin(4) type n.
DESCRIBE TABLE itab lines lin.
write: 'No of records in ITAB', lin.
Regards,
Vinod.