Welcome To My BLOG

This site is to give a brief idea for the abap learners who are looking for some real time programs .It consists of collection of programs from my side . I hope these programs are very much used for all of the learners. Please check the links for any information in ABAP.
Please vote for my Blog. And please input me on this mail addrssess.Email me

Share this link with your friends

http://www.rebtel.com/u/15163104576

For every friend who signs up using this link and makes a payment, we'll give you 8 €!


Monday, December 13, 2010

ABAP - Printing Selection Screen Data On The Report Output.

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.

No comments: