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

MKGALFA5 SAP ABAP INCLUDE - documentation and ABAP source code







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

INCLUDE MKGALFX5.


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_POST_ACT_LINE_ITEM CALL FUNCTION 'RKE_POST_ACT_LINE_ITEM' EXPORTING ERKRS = CHECK_BELNR = SPACE IS_REVERSAL = G_PA_ACTUAL_REVERSAL_FLAG T_PALEDGER = GT_PALEDGER I_SCHEDMAN_KEY = GS_KEY TABLES LINE_ITEM_TAB = CE1_TAB EXCEPTIONS ALREADY_EXISTS = 01 * DOC_NR_IV_NOT_EXISTS = 00 * DOC_NR_IV_OVERFLOW = 00 FOREIGN_LOCK = 02 SYSTEM_FAILURE = 03.

RKE_POST_PLAN_LINE_ITEMS CALL FUNCTION 'RKE_POST_PLAN_LINE_ITEMS' EXPORTING * erkrs = * pa_type = patype_costing ERKRS = L_ERKRS PA_TYPE = L_PA_TYPE I_SCHEDMAN_KEY = GS_KEY TABLES CE0_TAB = CE0_TAB.

COPA_GET_BSTRA CALL FUNCTION 'COPA_GET_BSTRA' EXPORTING I_ERKRS = I_VRGAR = VRGAR_RECEIVER I_VRGNG = ACTIVITY IMPORTING E_BSTRA = L_BSTRA EXCEPTIONS VAL_NOT_ACTIVE = 1.

RKE_PRICING_INTERFACE_ACT CALL FUNCTION 'RKE_PRICING_INTERFACE_ACT' EXPORTING I_ERKRS = I_BSTRA = L_BSTRA IS_COPA_ITEM_INPUT = CE1_TAB IMPORTING ES_COPA_ITEM_OUTPUT = CE1_TAB TABLES IT_FIELDTAB = FIELDTAB EXCEPTIONS VALUATION_ERROR = 1 OTHERS = 2.

COPA_GET_BSTRA CALL FUNCTION 'COPA_GET_BSTRA' EXPORTING I_ERKRS = I_VRGAR = VRGAR_RECEIVER I_VERSI = CE0_TAB-VERSI I_VRGNG = ACTIVITY IMPORTING E_BSTRA = L_BSTRA EXCEPTIONS VAL_NOT_ACTIVE = 1.

RKE_PRICING_INTERFACE_PLAN CALL FUNCTION 'RKE_PRICING_INTERFACE_PLAN' EXPORTING I_BSTRA = L_BSTRA RKE_EINZELPOSTEN = CE0_TAB STICHTAG = CE0_TAB-BUDAT TABNAME = CE0_NAME VERSI = CE0_TAB-VERSI IMPORTING BEWERTETER_EP = CE0_TAB TABLES DBTAB = FIELDTAB EXCEPTIONS VALUATION_ERROR = 1 OTHERS = 2.



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