SAP Reports / Programs | Controlling | Profitability Analysis | Profitability Analysis / Basic Functions(CO-PA-PMS) SAP CO

RK2B8500 SAP ABAP INCLUDE - documentation and ABAP source code







RK2B8500 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 RK2B8500 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 RK2B8500. "Basic submit
SUBMIT RK2B8500 AND RETURN. "Return to original report after report execution complete
SUBMIT RK2B8500 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 RK2B8500

INCLUDE RK2B8500_MAIN_TOP. "TYPEN / KONSTANTEN
INCLUDE RKEVRK2B_MAIN_ACC__FIX. "ALLGEMEINE ROUTINEN
INCLUDE RKEVRK2B_MAIN_ACC_TRANS__FIX. "TRANSFORMATION CO.. -> CE0
INCLUDE RK2B8500_MAIN_ACC_ACTUALIZE. "LESEROUTINE FÜR AKTUALISIEREN
INCLUDE RKEVRK2B_MAIN_ARCHIV_COST__FIX. "KONVERT. CE3+CE4->CE0
INCLUDE RKEVRK2B_MAIN_ARCHIV_ACC__FIX. "KONVERT. COSP/COSS+CE4->CE0
INCLUDE RKEVRK2B_MAIN_ACC_VALUTYP__FIX.


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_PACK_READ_ERKRS *+3PK CALL FUNCTION 'RKE_PACK_READ_ERKRS' "ECLU *+3PK EXPORTING i_erkrs = erkrs "ECLU *+3PK IMPORTING e_sel = l_esel. "ECLU

RKE_PACK_RECLUSTER_CE3 *+3PK CALL FUNCTION 'RKE_PACK_RECLUSTER_CE3' "ECLU *+3PK EXPORTING i_erkrs = erkrs "ECLU *+3PK i_t_ce3_packd = t_packd "ECLU *+3PK i_t_ce3_packt = t_packt "ECLU *+3PK IMPORTING e_t_ce3 = t_ce3. "ECLU

RKD_SEL_BUILD_WHERE_CLAUSE CALL FUNCTION 'RKD_SEL_BUILD_WHERE_CLAUSE' EXPORTING I_T_SEL = G_T_OTHERS_SEL IMPORTING E_T_CLAUSE = L_T_OTHERS_CLAUSE.

RKE_FILL_FIELD_TABLE CALL FUNCTION 'RKE_FILL_FIELD_TABLE' EXPORTING ERKRS = '8500' TABNAME = 'CE08500' PA_TYPE = '1' TABLES FIELDTAB = FIELDTAB.

RKE_CONVERT_SEL_TO_PERBL_SEL CALL FUNCTION 'RKE_CONVERT_SEL_TO_PERBL_SEL' EXPORTING ERKRS = ERKRS TABLES SELECTION_TABLE = SELTAB PERBL_PHYSNR_SEL = TIMESEL EXCEPTIONS INTERSECTION_EMPTY = 01.

OBJECT_NUMBER_GET_EO CALL FUNCTION 'OBJECT_NUMBER_GET_EO' EXPORTING PAOBJNR = OBJTAB-PAOBJNR ERKRS = '8500' IMPORTING OBJNR = OBJNR.

OBJECT_NUMBER_GET_EO CALL FUNCTION 'OBJECT_NUMBER_GET_EO' EXPORTING ERKRS = '8500' PAOBJNR = -PAOBJNR IMPORTING OBJNR = L_OBJNR.

RKD_SELTAB_TO_EXPRESSION CALL FUNCTION 'RKD_SELTAB_TO_EXPRESSION' TABLES SELECTION_TABLE = L_T_SELCO REP_TAB = H_SEL_CLAUSE.

K_COSPA_READ_MULTI CALL FUNCTION 'K_COSPA_READ_MULTI' EXPORTING FORMNAME = 'GET_COSP' PROGNAME = 'RK2B8500' TABLES T_COSEL = L_T_KREAD_SEL T_FGR = T_FGR.

K_COSSA_READ_MULTI CALL FUNCTION 'K_COSSA_READ_MULTI' EXPORTING FORMNAME = 'GET_COSS' PROGNAME = 'RK2B8500' TABLES T_COSEL = L_T_KREAD_SEL T_FGR = T_FGR.

OBJECT_KEY_GET_EO CALL FUNCTION 'OBJECT_KEY_GET_EO' EXPORTING OBJNR = COVP_WA-OBJNR IMPORTING ERKRS = ERKRS PAOBJNR = ICE0-PAOBJNR.

OBJECT_KEY_GET_EO CALL FUNCTION 'OBJECT_KEY_GET_EO' EXPORTING OBJNR = COVJ_WA-OBJNR IMPORTING ERKRS = ERKRS PAOBJNR = ICE0-PAOBJNR.

OBJECT_KEY_GET_EO CALL FUNCTION 'OBJECT_KEY_GET_EO' EXPORTING OBJNR = COSPA_WA-OBJNR IMPORTING ERKRS = ERKRS PAOBJNR = PAOBJNR.

OBJECT_KEY_GET_EO CALL FUNCTION 'OBJECT_KEY_GET_EO' EXPORTING OBJNR = COSSA_WA-OBJNR IMPORTING ERKRS = ERKRS PAOBJNR = PAOBJNR.

RKD_SELTAB_TO_EXPRESSION CALL FUNCTION 'RKD_SELTAB_TO_EXPRESSION' TABLES SELECTION_TABLE = SEL_TAB REP_TAB = SEL_CLAUSE.

RKE_GET_ERKRS_ATTR CALL FUNCTION 'RKE_GET_ERKRS_ATTR' EXPORTING ERKRS = ERKRS IMPORTING BLOCKFACTOR = BLOCKF.

RKE_GET_ERKRS_ATTR CALL FUNCTION 'RKE_GET_ERKRS_ATTR' EXPORTING ERKRS = ERKRS IMPORTING BLOCKFACTOR = BLOCKF.

RKE_COND_CHAR_USAGE CALL FUNCTION 'RKE_COND_CHAR_USAGE' EXPORTING i_erkrs = g_c_erkrs it_cen = l_t_ce0 * I_CEN_STRUCTURE = IMPORTING ETT_FIELDS = l_tt_char_usage EXCEPTIONS NO_EXCEPTIONS_MAINTAINED = 1.



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