Friday, December 24, 2010
Function Module RS_COVERPAGE_SELECTIONS is used to print user input on selection screen to report.
REPORT zpwtest.
TABLES : mara .

DATA: BEGIN OF mtab_sel_options OCCURS 0,
flag(1) TYPE c,
olength TYPE x,
line  LIKE rsvar-infoline,
END OF mtab_sel_options.

PARAMETERS p_matnr TYPE mara-matnr.

SELECT-OPTIONS : s_matnr FOR mara-matnr .

*&----------------------------------------------------------&*
* Start of Selection
*&----------------------------------------------------------&*

START-OF-SELECTION.

CALL FUNCTION 'RS_COVERPAGE_SELECTIONS'
EXPORTING
report            = sy-repid
variant           = ''
no_import         = 'X'
TABLES
infotab           = mtab_sel_options
EXCEPTIONS
error_message     = 1
variant_not_found = 2
OTHERS            = 3.

LOOP AT mtab_sel_options.
WRITE: / mtab_sel_options-line.
ENDLOOP.

0 comments:

Post a Comment

Your useful comments, suggestions are appreciated.Your comments are moderated.

Followers

Contact Form

Name

Email *

Message *

Web Dynpro ABAP Book

An SAP Consultant

Follow US


Want to Contribute ?

If you are interested in writing about the new stuff you learn everyday while working, please write to the.sap.consultants@gmail.com.

Click on Contribution for more details.