Sunday, March 20, 2011

Example of using Describe Table in ABAP Programming

DESCRIBE TABLE is used to count the Total rows in a table.

REPORT  Z_STUFFING_REPORT.

TABLES:   MARA.
       
select single * from MARA where ERSDA = '04/3/2011'.

DATA: LIN TYPE I.
      
DESCRIBE TABLE MARA LINES LIN.
 
write:/ 'Total Rows:', LIN.

No comments:

Post a Comment