11-26-2009 10:27 AM
Hi,
In my requirement, I want Number of Entries icon on my report selection screen.
Means when i insert the required selection parameter's, then i want to see the total number of entries, which is come after the execution of my report.
Please let me know that how can i do it...
Regards..
11-26-2009 10:35 AM
HI.
I have extract the part from the above link.
if u want to display the no of line items, as shown in SE16, u create a SET STATUS with a push button with name No of Entries on the report screen.For that status, u write the code as to display no of lines in ur table by using either
DESCRIBE TABLE itab LINES lin.
lin gives the no of line items.
or
select count(*) from vbap.
write sy-dbcnt.
U got require output, when ur pressing No of entries button, then this will display on the output screen.
Thanks and Regards
Sachin Sharma
11-26-2009 10:56 AM
11-26-2009 11:38 AM
Hi,
You can do it in very simple way...
put the Parameter as no. of entries and take the number into p_var
use some thing like this" select * into table it_mara from mara up to p_var rows."
Regards,
Naresh.