SAP Reports / Programs | Controlling | Product Cost Controlling | Product Cost by Period(CO-PC-OBJ-PER) SAP CO

MKKP2FPA SAP ABAP INCLUDE - documentation and ABAP source code







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

No INCLUDES are used within this REPORT code!


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:

SPTA_PARA_PROCESS_START_2 CALL FUNCTION 'SPTA_PARA_PROCESS_START_2' EXPORTING server_group = rfc_group "MAX_NO_OF_TASKS = 1 before_rfc_callback_form = 'BEFORE_RFC_VARIANCES' in_rfc_callback_form = 'IN_RFC_VARIANCES' after_rfc_callback_form = 'AFTER_RFC_VARIANCES' callback_prog = ld_repid show_status = ' ' CHANGING user_param = ld_user_param EXCEPTIONS invalid_server_group = 1 NO_RESOURCES_AVAILABLE = 2 OTHERS = 3 .

CM_F_MESSAGE CALL FUNCTION 'CM_F_MESSAGE' EXPORTING arbgb = arbgb msgnr = msgnr msgty = sy-msgty msgv1 = sy-msgv1 msgv2 = sy-msgv2 msgv3 = sy-msgv3 msgv4 = sy-msgv4 msg_on_screen = ' ' object_dependent = space.

KPEP_WLA_RFC_CONTEXT_PREPARE CALL FUNCTION 'KPEP_WLA_RFC_CONTEXT_PREPARE' IMPORTING wl_context = ld_taskparams-context.

SPTA_INDX_PACKAGE_ENCODE CALL FUNCTION 'SPTA_INDX_PACKAGE_ENCODE' EXPORTING data = ld_taskparams IMPORTING indxtab = pt_rfcdata.

SPTA_INDX_PACKAGE_DECODE CALL FUNCTION 'SPTA_INDX_PACKAGE_DECODE' EXPORTING indxtab = p_rfcdata IMPORTING data = ld_taskparams.

CM_F_INITIALIZE CALL FUNCTION 'CM_F_INITIALIZE' EXPORTING aplid = 'KKP' object_id = 'KKP' smsg_initialize = 'X' no_display_on_abort = 'X' no_other_initialize = 'X'.

KPEP_WLA_RFC_CONTEXT_INIT CALL FUNCTION 'KPEP_WLA_RFC_CONTEXT_INIT' EXPORTING wl_context = ld_taskparams-context .

CM_F_SMSG_MESSAGES_READ CALL FUNCTION 'CM_F_SMSG_MESSAGES_READ' "CO-Messages ergänzen EXPORTING append_same_msg = 'X' object_dependent = 'X' smsg_messages_stop = ' '.

CM_F_MESSAGES_GET CALL FUNCTION 'CM_F_MESSAGES_GET' EXPORTING aplid = 'KKP' TABLES e_msgprot = ld_taskparams-cmfmsg EXCEPTIONS not_active = 1.

KPEP_WLA_RFC_CONTEXT_EXIT CALL FUNCTION 'KPEP_WLA_RFC_CONTEXT_EXIT' IMPORTING wl_context = ld_taskparams-context .

SPTA_INDX_PACKAGE_ENCODE CALL FUNCTION 'SPTA_INDX_PACKAGE_ENCODE' EXPORTING data = ld_taskparams IMPORTING indxtab = p_rfcdata.

SPTA_INDX_PACKAGE_DECODE CALL FUNCTION 'SPTA_INDX_PACKAGE_DECODE' EXPORTING indxtab = p_rfcdata IMPORTING data = ld_taskparams.

KPEP_WLA_RFC_CONTEXT_INTERPRET CALL FUNCTION 'KPEP_WLA_RFC_CONTEXT_INTERPRET' EXPORTING wl_context = ld_taskparams-context .

CM_F_CMFMSG_MESSAGES_PUT CALL FUNCTION 'CM_F_CMFMSG_MESSAGES_PUT' EXPORTING append_same_msg = 'X' aplid = 'KKP' TABLES i_msgprot = ld_taskparams-cmfmsg EXCEPTIONS not_active = 1.

CM_F_MESSAGE CALL FUNCTION 'CM_F_MESSAGE' EXPORTING arbgb = 'SPTA' msgnr = '003' msgty = 'E' msgv1 = -obj_id msgv2 = p_imp-taskdest msgv3 = p_rfcsubrc msgv4 = p_rfcmsg object_dependent = 'X'.



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