‎2006 Nov 09 1:58 PM
I've to create report to display abap/4 program names list.
when i am giving full program name in parameter,it is generating the report but when i am giving initial few characters followed by *(star) and pressing f8 key, it is not working.
please provide me the solution for this report generation with key f8.
regards,
Nilesh Gaikwad.
‎2006 Nov 09 2:02 PM
use select-options and give a range.
then keeping low and high initial use f8
u get all the data..make sure u use the select-option in the select stmnt.
santhosh
‎2006 Nov 09 2:02 PM
‎2006 Nov 09 2:08 PM
i want to execute report using key f8.
and i've to take parameters for selection.
i do not have to use funtion for f4 key.
please provide me the solution.
regards,
nilesh gaikwad.
‎2006 Nov 09 2:09 PM
Hi again,
1. Pls read my above post.
2. its the same as u want-- F8 (execute)
3. On execution (F8), it will display the
reports
eg. Y*
ZABC*
regards,
amit m.
‎2006 Nov 09 2:03 PM
Hi nilesh,
1. if we use LIKE
then we have to give % (and not *)
2. to work with *,
we can REPLACE it with %
3. Just copy paste to get a taste of it.
(it will list out the program names
eg. z*
4.
REPORT ABC.
DATA : PRG TYPE REPOSRC-PROGNAME OCCURS 0 WITH HEADER LINE.
DATA : MYPROG TYPE REPOSRC-PROGNAME.
*----
parameters : PROGNAME TYPE REPOSRC-PROGNAME.
MYPROG = PROGNAME.
REPLACE ALL OCCURRENCES OF '*' IN MYPROG WITH '%'.
SELECT PROGNAME FROM
REPOSRC
INTO TABLE PRG
WHERE PROGNAME LIKE MYPROG.
LOOP AT PRG.
WRITE 😕 PRG.
ENDLOOP.
regards,
amit m.
‎2006 Nov 09 2:04 PM
Hi Nilesh,
If you want to use the parameter and select the data for some input like zreport* then you should make sure you have the select query like this
SELECT from <DB TABLE> WHERE prog_name LIKE '%zreport%'
replace the * with % and then do a select. If you are using select options then what santhosh mentioned should work.
Cheers