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.
ALSO READ:
- Creating The Listbox Using Macros.
- Restrict Values For The F4 (Value On Request) Help.
- Screen Field Validation Using Chain Endchain.
- Drop Down List Box In The Selection Screen.
- Creating Dynamic F4 (Value On Request) Help.
No comments:
Post a Comment