09-28-2007 2:26 PM
I am verynew to ABAP so please help me...
I have written a report and now need the write the number of records in structure bank_format_check.
What is the syntax please...
thanks
Brian
09-28-2007 2:29 PM
Hi
let your final data is in internal table ITAB
declare a variable
data: v_lines type I.
Describe table ITAB lines v_lines.
write : / v_lines.
Regards
Anji
09-28-2007 2:29 PM
Hi
let your final data is in internal table ITAB
declare a variable
data: v_lines type I.
Describe table ITAB lines v_lines.
write : / v_lines.
Regards
Anji
09-28-2007 2:38 PM
Anji...
what code will I write to display the No. of Record (COUNT) on my report?
please help
thanks!
09-28-2007 5:56 PM
Hi Brian,
You can use the following sample code to write the numbe of records:
Internal table
DATA : BEGIN OF itab OCCURS 0,
a TYPE i,
b TYPE i,
END OF itab.
Var to hold the number of records
DATA : w_lines TYPE i.
DO 20 TIMES.
itab-a = sy-index.
itab-b = sy-index * 2 .
APPEND itab.
CLEAR itab.
ENDDO.
DESCRIBE TABLE itab LINES w_lines.
LOOP AT itab.
WRITE : / itab-a,
itab-b.
ENDLOOP.
WRITE : / 'The number of records are :', w_lines.
Hope this helps you.Please let me know if any doubts.
Regards,
Durga.