SAP Reports / Programs

RFGMARTTRD SAP ABAP Report - Archiving GM Total Records - Read Program







RFGMARTTRD is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). Below is the basic information available for this SAP report including which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC. Also check out the submitted Comments related to this SAP report or see any standard documentation available.

If you would like to execute this report or see the full code listing simply enter RFGMARTTRD 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 RFGMARTTRD. "Basic submit
SUBMIT RFGMARTTRD AND RETURN. "Return to original report after report execution complete
SUBMIT RFGMARTTRD 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: S_BUKRS = D .
Selection Text: S_FUND = D .
Selection Text: S_GRANT = D .
Title: Archiving GM Total Records - Read Program
Text Symbol: 010 = Selection
Text Symbol: 029 = Details to Table &1
Text Symbol: 102 = Column
Text Symbol: 103 = Content
Text Symbol: 221 = Dynamic Selections
Text Symbol: 222 = active


INCLUDES used within this REPORT RFGMARTTRD

RFGMARTT_GENERAL_INCL.


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:

ARCHIVE_OPEN_FOR_READ call function 'ARCHIVE_OPEN_FOR_READ' EXPORTING object = u_object IMPORTING archive_handle = c_archive_handle EXCEPTIONS others = 1.

ARCHIVE_GET_INFORMATION call function 'ARCHIVE_GET_INFORMATION' EXPORTING archive_handle = c_archive_handle IMPORTING object_number_in_file = gf_process_info-counter-total.

ARCHIVE_GET_NEXT_OBJECT call function 'ARCHIVE_GET_NEXT_OBJECT' EXPORTING archive_handle = u_archive_handle EXCEPTIONS end_of_file = 1.

ARCHIVE_READ_OBJECT_BY_HANDLE call function 'ARCHIVE_READ_OBJECT_BY_HANDLE' EXPORTING iv_handle = u_archive_handle CHANGING ct_obj_data = lt_object_data.

ARCHIVE_PROTOCOL_WRITE_APPL call function 'ARCHIVE_PROTOCOL_WRITE_APPL'.

ARCHIVE_CLOSE_FILE call function 'ARCHIVE_CLOSE_FILE' EXPORTING archive_handle = u_archive_handle.

REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING I_CALLBACK_PROGRAM = l_repid i_callback_user_command = 'USER_COMMAND' i_structure_name = gmar_allrecords TABLES t_outtab = gt_alvout.

DDIF_FIELDINFO_GET CALL FUNCTION 'DDIF_FIELDINFO_GET' EXPORTING tabname = uf_alvout-tabname TABLES dfies_tab = lt_dfies[] EXCEPTIONS others = 99.

LVC_ITEM_DETAIL CALL FUNCTION 'LVC_ITEM_DETAIL' EXPORTING i_title = l_title it_fieldcatalog = lt_fcat[] is_layout = ls_layout TABLES t_outtab = lt_outtab[].

PROGRESS_INDICATOR_APPL call function 'PROGRESS_INDICATOR_APPL' EXPORTING i_msgid = 'GRANTMGMT' i_msgno = '761' i_processed = gf_process_info-counter-processed i_total = gf_process_info-counter-total i_output_immediately = l_immidiate.

PROGRESS_INDICATOR_APPL call function 'PROGRESS_INDICATOR_APPL' EXPORTING i_msgid = 'GRANTMGMT' i_msgno = '761' i_processed = gf_process_info-counter-processed i_total = gf_process_info-counter-total i_output_immediately = l_immidiate IMPORTING e_progress_sent = l_progress_sent.

DB_COMMIT call function 'DB_COMMIT'. "otherwise messag will not appear in the job-log



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 RFGMARTTRD or its description.