Google Search - Blog...........

ABAP -Printing The Selection Screen Data On The Report Program.


This is possible by using the function module PRINT_SELECTIONS .

Check this example for printing the data on the selection screen , You need to call this function module after writing the data in report .

report ztests.

types: begin of t_varinfo,
flag type c,
olength type x,
line like raldb-infoline,
end of t_varinfo.


parameters: p_test(20) type c ,
p_test1 type i,
p_test2 type i .

data:tables type TRDIR-NAME occurs 0 with header line ,
infotab type t_varinfo occurs 0 with header line.



start-of-selection .

write:/ p_test ,
p_test1,
p_test2 .

CALL FUNCTION 'PRINT_SELECTIONS'
EXPORTING
mode = tables
rname = sy-repid "program name
rvariante = 'TEST' "varient name
TABLES
infotab = infotab
.

LOOP AT infotab.
WRITE / infotab-line.
ENDLOOP.


I have created the variant TEST with these values shown below .




Run the program this will gives you the output along with the selection screen data like this .





ALSO READ:

- Changing Selection Screen Design Through Tcode SE51.

- F4 (Value On Request) On Field BUKRS On Selection Screen.

- F4 (Value On Request) On Logical File On selection Screen.

- Display Icon On Selection Screen.

- Sample Program To Display Icon On Selection Screen.

No comments:

Post a Comment