SAP Reports / Programs

RK2MR300 SAP ABAP INCLUDE - documentation and ABAP source code







RK2MR300 is a standard ABAP INCLUDE 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 RK2MR300 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 RK2MR300. "Basic submit
SUBMIT RK2MR300 AND RETURN. "Return to original report after report execution complete
SUBMIT RK2MR300 VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


INCLUDES used within this REPORT RK2MR300

INCLUDE RKEPL001.


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:

RKE_TRANSFORM_STRUCTURE CALL FUNCTION 'RKE_TRANSFORM_STRUCTURE' EXPORTING ERKRS = I_ERKRS FROM_AREA = CTH_CE0_TAB FROM_TABNAME = L_V_CE0_TAB TO_AREA_IMPORT = L_TH_CE4 TO_TABNAME = L_V_CE4_TAB IMPORTING TO_AREA_EXPORT = L_TH_CE4 EXCEPTIONS I_PHYSNR_INVALID = 1 OTHERS = 2.

RKE_GET_CRITERIA_FOR_CE4KEY CALL FUNCTION 'RKE_GET_CRITERIA_FOR_CE4KEY' EXPORTING I_ERKRS = I_ERKRS I_USE_TKEOE = 'X' * I_PA_TYPE = '1' TABLES OBJECT_TABLE = L_TH_CE4.

RKE_GET_CRITERIA_FOR_PAOBJNR * call function 'RKE_GET_CRITERIA_FOR_PAOBJNR' * exporting * erkrs = i_erkrs * use_tkeoe = 'X' * pa_type = '1' * tables * object_table = l_th_ce4 * exceptions * paobjnr_not_found = 1 * others = 2.

RKE_TRANSFORM_STRUCTURE CALL FUNCTION 'RKE_TRANSFORM_STRUCTURE' EXPORTING ERKRS = I_ERKRS FROM_AREA = L_TH_CE4 FROM_TABNAME = L_V_CE4_TAB to_area_import = cth_ce0_tab to_tabname = l_v_ce0_tab IMPORTING to_area_export = cth_ce0_tab EXCEPTIONS I_ERKRS_LEDGER_NOTFOUND = 1 I_ERKRS_NOTFOUND = 2 I_LEDGER_NOTFOUND = 3 I_LOGNR_INVALID = 4 I_PHYSNR_INVALID = 5 OTHERS = 6.

KEDR_COPA_DERIVE CALL FUNCTION 'KEDR_COPA_DERIVE' EXPORTING I_ERKRS = I_ERKRS I_ITEM = L_S_ENRICHEMENT * I_TAB_EXCEPTIONS = I_DERIVATION_DATE = I_DATBI * I_DERIVE_ANYWAY = * I_TRACE_MODE = * I_TABNAME = I_GLOBAL_FIELDS = L_S_GLOBAL_FIELDS IMPORTING E_ITEM = L_S_ENRICHEMENT * E_TRACE_HANDLE = * E_TAB_FIELDS_MODIFIED = EXCEPTIONS DERIVATION_FAILED = 1 OTHERS = 2.

RKE_TRANSFORM_STRUCTURE CALL FUNCTION 'RKE_TRANSFORM_STRUCTURE' EXPORTING ERKRS = I_ERKRS FROM_AREA = L_S_ENRICHEMENT from_tabname = l_v_ce0_tab TO_AREA_IMPORT = L_TH_CE4 TO_TABNAME = L_V_CE4_TAB IMPORTING TO_AREA_EXPORT = L_TH_CE4 EXCEPTIONS I_ERKRS_LEDGER_NOTFOUND = 1 I_ERKRS_NOTFOUND = 2 I_LEDGER_NOTFOUND = 3 I_LOGNR_INVALID = 4 I_PHYSNR_INVALID = 5 OTHERS = 6.

RKE_GET_CE4KEY CALL FUNCTION 'RKE_GET_CE4KEY' EXPORTING I_ERKRS = I_ERKRS * I_PA_TYPE = '1' TABLES OBJECT_TABLE = L_TH_CE4.

RKE_GET_OBJECT_NUMBER * call function 'RKE_GET_OBJECT_NUMBER' * exporting * erkrs = i_erkrs * pa_type = '1' * tables * object_table = l_th_ce4 * exceptions * others = 1.

RKE_TRANSFORM_STRUCTURE CALL FUNCTION 'RKE_TRANSFORM_STRUCTURE' EXPORTING ERKRS = I_ERKRS FROM_AREA = ITH_DELTA_TAB from_tabname = l_v_ce0_tab TO_AREA_IMPORT = L_TH_CE4 TO_TABNAME = L_V_CE4_TAB IMPORTING TO_AREA_EXPORT = L_TH_CE4 EXCEPTIONS I_ERKRS_LEDGER_NOTFOUND = 1 I_ERKRS_NOTFOUND = 2 I_LEDGER_NOTFOUND = 3 I_LOGNR_INVALID = 4 I_PHYSNR_INVALID = 5 OTHERS = 6.

RKE_GET_CE4KEY CALL FUNCTION 'RKE_GET_CE4KEY' EXPORTING I_ERKRS = I_ERKRS * I_PA_TYPE = '1' TABLES OBJECT_TABLE = L_TH_CE4.

RKE_GET_OBJECT_NUMBER * call function 'RKE_GET_OBJECT_NUMBER' * exporting * erkrs = i_erkrs * pa_type = '1' * tables * object_table = l_th_ce4 * exceptions * others = 1.

RKE_TRANSFORM_STRUCTURE CALL FUNCTION 'RKE_TRANSFORM_STRUCTURE' EXPORTING ERKRS = I_ERKRS FROM_AREA = ITH_DELTA_TAB FROM_TABNAME = L_V_CE0_TAB * POS = '1' TO_AREA_IMPORT = L_S_CE1 TO_TABNAME = L_V_CE1_TAB IMPORTING * POS = TO_AREA_EXPORT = L_S_CE1 EXCEPTIONS I_ERKRS_LEDGER_NOTFOUND = 1 I_ERKRS_NOTFOUND = 2 I_LEDGER_NOTFOUND = 3 I_LOGNR_INVALID = 4 I_PHYSNR_INVALID = 5 OTHERS = 6.

RKE_GET_ACT_DOC_NUMBER CALL FUNCTION 'RKE_GET_ACT_DOC_NUMBER' EXPORTING ERKRS = I_ERKRS GJAHR = L_S_CE1-GJAHR VRGAR = L_S_CE1-VRGAR IMPORTING BELNR = L_S_CE1-BELNR EXCEPTIONS DOC_NR_IV_NOT_EXISTS = 1 DOC_NR_IV_OVERFLOW = 2 OTHERS = 3.

RKE_POST_ACT_LINE_ITEM CALL FUNCTION 'RKE_POST_ACT_LINE_ITEM' EXPORTING ERKRS = I_ERKRS * BUTYP = 'R' * CHECK_BELNR = 'X' IS_REVERSAL = 'X' T_PALEDGER = L_T_PALEDGER TABLES LINE_ITEM_TAB = L_T_CE1 EXCEPTIONS ALREADY_EXISTS = 1 DOC_NR_IV_NOT_EXISTS = 2 DOC_NR_IV_OVERFLOW = 3 FOREIGN_LOCK = 4 SYSTEM_FAILURE = 5 OTHERS = 6.



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