SAP Reports / Programs

SAPRCKM_MR11 SAP ABAP Report - Maintain GR/IR Clearing Account







SAPRCKM_MR11 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 SAPRCKM_MR11 into the relevant SAP transactions such as SE38 or SE80


Transaction Code(s):

Below is a list of transaction codes which are relevant to this SAP report

MR11 - GR/IR account maintenance


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 SAPRCKM_MR11. "Basic submit
SUBMIT SAPRCKM_MR11 AND RETURN. "Return to original report after report execution complete
SUBMIT SAPRCKM_MR11 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: R_LONGN = Smart Number
Selection Text: SFIR_ID2 = Freight Settlement Document
Selection Text: TM_BEDAT = Purchase Order Date
Selection Text: TM_LONGN = Configurable Document Number
Selection Text: TRANSORD = Freight Order
Selection Text: TRSRVPR2 = Carrier
Selection Text: VOYAGEN2 = Trip Number
Selection Text: EBELNEXP = D .
Selection Text: EBELPEXP = D .
Selection Text: PA_AUTO = D .
Selection Text: PA_BZNKK = D .
Selection Text: PA_DPROZ = D .
Selection Text: PA_LISTE = D .
Selection Text: PA_REUEB = D .
Selection Text: PA_STAG = D .
Selection Text: PA_VARI = D .
Selection Text: PA_WEREK = D .
Selection Text: PA_WEUEB = D .
Selection Text: PA_WTABW = D .
Selection Text: RA_BSART = D .
Selection Text: RA_BSTYP = D .
Selection Text: RA_EBELN = D .
Selection Text: RA_EBELP = D .
Selection Text: RA_EKGRP = D .
Selection Text: RA_EKORG = D .
Selection Text: RA_FRLIF = D .
Selection Text: RA_LIFNR = D .
Selection Text: RA_WERKS = D .
Selection Text: TM_BSART = D .
Selection Text: TM_BSTYP = D .
Selection Text: TM_EBELN = D .
Selection Text: TM_EBELP = D .
Selection Text: TM_EKGRP = D .
Selection Text: TM_EKORG = D .
Selection Text: TM_FRLIF = D .
Selection Text: TM_LIFNR = D .
Selection Text: TM_WERKS = D .
Selection Text: RA_EXLIN = Configurable Item Number





Selection Text: RA_BEDAT = Purchase Order Date
Selection Text: PA_XERSY = Include ERS Purchase Orders
Selection Text: INVPART2 = Invoicing Party
Selection Text: FLIGHTN2 = Flight Number
Selection Text: BILLLAD2 = Bill of Lading
Selection Text: AIRWAYN2 = Air Waybill
Title: Maintain GR/IR Clearing Account
Text Symbol: 015 = Clear
Text Symbol: 014 = Surplus Types
Text Symbol: 013 = Value Variance Less Than/= To
Text Symbol: 012 = Processing
Text Symbol: 011 = Doc. Header Txt
Text Symbol: 010 = Reference
Text Symbol: 009 = Document Number
Text Symbol: 008 = Posting Date
Text Symbol: 007 = Company Code
Text Symbol: 006 = Document Type
Text Symbol: 005 = Document Date
Text Symbol: 004 = Document Header Data
Text Symbol: 003 = Choose
Text Symbol: 002 = Qty Var. Less Than/Equal To
Text Symbol: 001 = Percentage
Text Symbol: 016 = Delivery Cost Accounts
Text Symbol: 017 = ERS Purchase Orders
Text Symbol: 018 = Prepare List
Text Symbol: 019 = Layout
Text Symbol: 020 = Start of GR/IR Selection
Text Symbol: 021 = Start of Delivery Cost Selection
Text Symbol: 022 = Start of Data Processing
Text Symbol: 023 = ERS - Delivery Costs
Text Symbol: 024 = GR/IR Clearing Account
Text Symbol: 025 = Differential Invoicing
Text Symbol: 030 = Business Partner
Text Symbol: 055 = PO Reference
Text Symbol: 056 = Transportation Management
Text Symbol: 057 = ERS Documents
Text Symbol: 058 = Restrictions


INCLUDES used within this REPORT SAPRCKM_MR11

INCLUDE SAPRCKM_MR11TOP.


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:

FI_DOCUMENT_TYPE_DATA CALL FUNCTION 'FI_DOCUMENT_TYPE_DATA' EXPORTING i_blart = pa_blart * I_KOART = ' ' * I_LANGU = SY-LANGU * X_DIALOG = ' ' IMPORTING e_t003 = s_t003.

REUSE_ALV_VARIANT_DEFAULT_GET CALL FUNCTION 'REUSE_ALV_VARIANT_DEFAULT_GET' EXPORTING i_save = c_save_variant CHANGING cs_variant = xs_variant EXCEPTIONS not_found = 2.

FI_COMPANY_CODE_DATA CALL FUNCTION 'FI_COMPANY_CODE_DATA' EXPORTING i_bukrs = pa_bukrs IMPORTING e_t001 = s_t001 EXCEPTIONS system_error = 1 OTHERS = 2.

FI_PERIOD_DETERMINE CALL FUNCTION 'FI_PERIOD_DETERMINE' EXPORTING i_budat = pa_budat i_bukrs = s_t001-bukrs * I_PERIV = ' ' * I_GJAHR = 0000 * I_MONAT = 00 * X_XMO16 = ' ' IMPORTING e_gjahr = f_gjahr e_monat = f_monat e_poper = f_poper EXCEPTIONS fiscal_year = 1 period = 2 period_version = 3 posting_period = 4 special_period = 5 version = 6 posting_date = 7 OTHERS = 8.

FI_PERIOD_CHECK CALL FUNCTION 'FI_PERIOD_CHECK' EXPORTING i_bukrs = pa_bukrs * I_OPVAR = ' ' i_gjahr = f_gjahr i_koart = '+' i_konto = '+' i_monat = f_poper EXCEPTIONS error_period = 1 error_period_acc = 2 * OTHERS = .

NUMBER_GET_INFO CALL FUNCTION 'NUMBER_GET_INFO' EXPORTING nr_range_nr = s_t003-numkr object = nrobj subobject = f_subobj toyear = f_gjahr IMPORTING interval = s_nriv EXCEPTIONS interval_not_found = 1 object_not_found = 2 OTHERS = 3.

NUMBER_GET_INFO CALL FUNCTION 'NUMBER_GET_INFO' EXPORTING nr_range_nr = s_t003r-numkr object = c_nrobj * SUBOBJECT = ' ' toyear = f_gjahr IMPORTING interval = s_nriv EXCEPTIONS interval_not_found = 1 object_not_found = 2 OTHERS = 3.

MARV_SINGLE_READ CALL FUNCTION 'MARV_SINGLE_READ' EXPORTING * KZRFB = ' ' * MAXTZ = 0 bukrs = pa_bukrs IMPORTING wmarv = s_marv EXCEPTIONS not_found = 1 wrong_call = 2 OTHERS = 3.

RS_SUBMIT_INFO CALL FUNCTION 'RS_SUBMIT_INFO' IMPORTING p_submit_info = s_info.

CM_F_INITIALIZE CALL FUNCTION 'CM_F_INITIALIZE' EXPORTING aplid = 'GRIR' refresh_old_log = 'X'.

CM_F_INITIALIZE CALL FUNCTION 'CM_F_INITIALIZE' EXPORTING aplid = 'GRIR' refresh_old_log = 'X'.

GRIR_ALV_LIST_WERE CALL FUNCTION 'GRIR_ALV_LIST_WERE' EXPORTING is_bkopf = s_header is_variant = gs_variant is_prt = es_prt i_show_document = ' ' i_msprot = error_prot i_archive_display = g_archive_display IMPORTING es_exit_caused_by_user = es_exit TABLES it_header = tab_head it_item = tab_item.

CM_F_INFO CALL FUNCTION 'CM_F_INFO' EXPORTING aplid = 'GRIR' IMPORTING msg_counter_pro = h_msg_counter_pro.

CM_F_INITIALIZE CALL FUNCTION 'CM_F_INITIALIZE' EXPORTING aplid = 'GRIR'.

CM_F_PROTOCOL_PRINT CALL FUNCTION 'CM_F_PROTOCOL_PRINT' EXPORTING aplid = 'GRIR'.

CKMLGRIR_BUILD_GRIR_MAINTAIN CALL FUNCTION 'CKMLGRIR_BUILD_GRIR_MAINTAIN' EXPORTING i_grir_stear = i_grir_stear i_header = s_header TABLES lt_grirpos = t_grirpos_package lt_ekbe = tab_ekbe lt_ekbz = tab_ekbz lt_ekbe_ma = tab_ekbe_ma lt_ekbz_ma = tab_ekbz_ma CHANGING i_error_prot = error_prot.

CKMLGRIR_POST_GRIR_MAINTAIN CALL FUNCTION 'CKMLGRIR_POST_GRIR_MAINTAIN' EXPORTING i_grir_stear = i_grir_stear CHANGING i_jahr = i_jahr i_belnr = i_belnr i_error_prot = error_prot.

CM_F_PROTOCOL_PRINT CALL FUNCTION 'CM_F_PROTOCOL_PRINT'.

CM_F_MESSAGE CALL FUNCTION 'CM_F_MESSAGE' EXPORTING arbgb = 'M8' msgnr = '060' msgty = 'S' msgv1 = i_belnr.




CKMLGRIR_BUILD_GRIR_MAINTAIN CALL FUNCTION 'CKMLGRIR_BUILD_GRIR_MAINTAIN' EXPORTING i_grir_stear = i_grir_stear i_header = s_header TABLES lt_grirpos = t_grirpos_package lt_ekbe = tab_ekbe lt_ekbz = tab_ekbz lt_ekbe_ma = tab_ekbe_ma lt_ekbz_ma = tab_ekbz_ma CHANGING i_error_prot = error_prot.

CKMLGRIR_POST_GRIR_MAINTAIN CALL FUNCTION 'CKMLGRIR_POST_GRIR_MAINTAIN' EXPORTING i_grir_stear = i_grir_stear CHANGING i_jahr = i_jahr i_belnr = i_belnr i_error_prot = error_prot.

CM_F_PROTOCOL_PRINT CALL FUNCTION 'CM_F_PROTOCOL_PRINT'.

CM_F_MESSAGE CALL FUNCTION 'CM_F_MESSAGE' EXPORTING arbgb = 'M8' msgnr = '060' msgty = 'S' msgv1 = i_belnr EXCEPTIONS mesage_type_not_valid = 1 no_sy_message = 2 OTHERS = 3.

CM_F_INFO CALL FUNCTION 'CM_F_INFO' EXPORTING aplid = 'GRIR' IMPORTING msg_counter_pro = h_msg_counter_pro.

CM_F_MESSAGES_GET CALL FUNCTION 'CM_F_MESSAGES_GET' EXPORTING aplid = y_objectid TABLES e_msgprot = lt_msgprot EXCEPTIONS not_active = 1 OTHERS = 2.

CM_F_DISPLAY_LOG CALL FUNCTION 'CM_F_DISPLAY_LOG' EXPORTING skip_info_screen = h_skip_info_screen grid_display = 'X' alv_variant = '1SAP01'.

CM_F_INITIALIZE CALL FUNCTION 'CM_F_INITIALIZE' EXPORTING aplid = 'GRIR'.

CM_F_PROTOCOL_PRINT CALL FUNCTION 'CM_F_PROTOCOL_PRINT' EXPORTING aplid = 'GRIR'.



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