Printing report selection criteria

New Site Address: http://abap.mirrorz.com

Make your own free website on Tripod.com



Home

Definitions
OK Code Values
Other Useful Tips
SAP and ABAP Links
SAP Functions
SAP Reports
SAP Tables
Source Code
Transaction Codes

Site Map (Index)

ABAP Keyword Help


Printing report selection criteria

This example shows how to print out the select options and parameters that the user has entered on the selection screen.


Source Code Listing
DATA: BEGIN OF MTAB_SEL_OPTIONS OCCURS 0,
        FLAG(1) TYPE C,
        OLENGTH TYPE X,
        LINE  LIKE RSVAR-INFOLINE,
      END OF MTAB_SEL_OPTIONS.
  CALL FUNCTION 'RS_COVERPAGE_SELECTIONS'
       EXPORTING
            REPORT            = 'ZREPORT1' ' Name of current report
            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.

New Site Address: http://abap.mirrorz.com


Send any hints or tips to ABAP Hints & Tips .
All submissions will be recognized along with the tip.

Get a cool web address
Free subdomains from
ShortURL.com