SAP Reports / Programs

RGRWSUBMIT SAP ABAP Report - Report Writer: Call Report with Variant







RGRWSUBMIT is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Starts the Report Writer report groups with a variant as a batch job or from the report tree...see full standard documentation available for this report. Also check out the submitted Comments related to this SAP report and the details below to see which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC.

If you would like to execute this report or see the full code listing simply enter RGRWSUBMIT into the relevant SAP transactions such as SE38 or SE80


ABAP code to call this SAP report using the submit statement

This report can be called from another progam/report simply by using the ABAP SUBMIT statement, see below for example ABAP code snipts of how to do this.






SUBMIT RGRWSUBMIT. "Basic submit
SUBMIT RGRWSUBMIT AND RETURN. "Return to original report after report execution complete
SUBMIT RGRWSUBMIT VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Selection Text: EXTR_KEY = Extract
Selection Text: INDXPWD = D Password
Selection Text: MODE_EXT = Call extract
Selection Text: MODE_JOB = Call report group
Selection Text: REPGROUP = D Report group
Selection Text: S_SCREEN = Execute with selection screen
Selection Text: VARIANT = D Variant
Title: Report Writer: Call Report with Variant


INCLUDES used within this REPORT RGRWSUBMIT

INCLUDE RKASMAWF. "449163


TABLES used within REPORT and the associated SELECT statement:





No SAP DATABASE tables are accessed within this REPORT code!


Function Modules used within report and the associated call statement:

GRW_JOB_SUBMIT CALL FUNCTION 'GRW_JOB_SUBMIT' EXPORTING i_report_group = i_rgjnr i_variant = i_variant i_mode = 'E' "507125 i_via_selscreen = i_via_selscreen i_and_return = 'X' i_gs_witem = l_gs_witem "449163 i_wf_okey = l_wf_okey "449163 i_gs_key = g_gs_key "449163 EXCEPTIONS report_group_invalid = 1 no_authority = 2 report_group_locked = 3 submit_not_possible = 4.

GRW_EXTRACT_SUBMIT CALL FUNCTION 'GRW_EXTRACT_SUBMIT' EXPORTING is_extract_key = is_extract_key it_params = lt_params EXCEPTIONS extract_invalid = 1 no_authority = 2 extract_locked = 3 submit_not_possible = 4.

RS_VARIANT_CATALOG CALL FUNCTION 'RS_VARIANT_CATALOG' EXPORTING report = l_progname dynnr = '1000' masked = 'X' variant = l_variant IMPORTING sel_variant = e_variant EXCEPTIONS no_report = 1 report_not_existent = 2 report_not_supplied = 3 no_variants = 4 no_variant_selected = 5 variant_not_existent = 6 OTHERS = 7.

GRW_JOB_SUBMIT_PREPARE CALL FUNCTION 'GRW_JOB_SUBMIT_PREPARE' EXPORTING i_report_group = i_rgroup i_program_type = grwj_c_progtype_execution IMPORTING e_subrc = e_subrc e_program_name = e_progname EXCEPTIONS report_group_invalid = 1 no_authority = 2 report_group_locked = 3.

DYNP_VALUES_READ CALL FUNCTION 'DYNP_VALUES_READ' EXPORTING dyname = l_repid dynumb = l_dynnr translate_to_upper = 'X' TABLES dynpfields = lt_dynpread.

KPEP_MONI_INIT_RECORD CALL FUNCTION 'KPEP_MONI_INIT_RECORD' EXPORTING LS_DETAIL = l_gs_detail LS_WITEM = l_gs_witem * LS_APPL = l_gs_appl * LD_WORKLIST_FLAG = ' ' * LD_DELAYED_UPDATE = ' ' * LD_SEND_MESSAGE = 'X' IMPORTING LS_KEY = p_gs_key * WILL_BE_SAVED = TABLES LT_SELKRIT = gt_selkrit * LT_PARAM = gt_selkrit .



Contribute (Add Comments)

Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.







The contribute/comments section below therefore offer's an opportunity for anyone to add additional information. This can be anything from useful hints, tips and screen shots to relevant SAP notes or anything else you feel is relevant to this report.

This will then be available for everyone to easily find by simply searching on the report name RGRWSUBMIT or its description.