FM to get variant values


 

data wt_values type table of RSPARAMS.

CALL FUNCTION 'RS_VARIANT_CONTENTS'
    EXPORTING
      REPORT                      = 'PROG_NAME'
      VARIANT                     = 'VARIANT_NAME'
    TABLES
      VALUTAB                     = wt_values
            .
    IF SY-SUBRC <> 0.

    ENDIF.

Leave a comment

Your email address will not be published. Required fields are marked *