Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

classical report on programs list.

Former Member
0 Likes
798

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.

6 REPLIES 6
Read only

Former Member
0 Likes
742

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

Read only

Former Member
0 Likes
742

HI Nilesh,

U have to press F4 instead of F8.

Bye

Murthy

Read only

0 Likes
742

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.

Read only

0 Likes
742

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.

Read only

Former Member
0 Likes
742

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.

Read only

Former Member
0 Likes
742

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