SAP Reports / Programs | Controlling | Product Cost Controlling | Product Cost Planning(CO-PC-PCP) SAP CO

CKPCCKSA SAP ABAP INCLUDE - documentation and ABAP source code







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

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:

CKPC31_IPPE_FIND CALL FUNCTION 'CKPC31_IPPE_FIND' EXPORTING matnr = matnr plant = werks lotsize = 1 date = sy-datum EXCEPTIONS no_suitable_ippe_found = 1 no_ippe_found = 2.

CK31_PRODUCTION_VERSION_READ CALL FUNCTION 'CK31_PRODUCTION_VERSION_READ' EXPORTING matnr = matnr werks = werks verid = verid IMPORTING mkal_exp = l_mkal EXCEPTIONS not_found = 1.

CM_F_COLLECT_MESSAGE CALL FUNCTION 'CM_F_COLLECT_MESSAGE' EXPORTING object_dependent = 'X'.

CKPC31_IPPE_FIND CALL FUNCTION 'CKPC31_IPPE_FIND' EXPORTING matnr = kvmk_exp-matnr plant = kvmk_exp-werks lotsize = kvmk_exp-sumlo date = kvmk_exp-aldat IMPORTING mkal_exp = lf_mkal CHANGING "note 785585 CMPEXT_NONCOL = kvmk_exp-cmpext_noncol "note 785585 CCODE = kvmk_exp-ccode "note 785585 EXCEPTIONS no_suitable_ippe_found = 1 no_ippe_found = 2.

CM_F_COLLECT_MESSAGE CALL FUNCTION 'CM_F_COLLECT_MESSAGE' EXPORTING msg_on_screen = msg_on_screen object_dependent = 'X'.

CK31_PRODUCTION_VERSION_READ CALL FUNCTION 'CK31_PRODUCTION_VERSION_READ' EXPORTING matnr = l_matnr "note 785585 werks = kvmk_exp-werks verid = l_verid "note 785585 IMPORTING mkal_exp = lf_mkal.

PVSMC_OPEN CALL FUNCTION 'PVSMC_OPEN' EXPORTING message_handler = l_message_handler EXCEPTIONS message_handler_already_set = 0.

PPEEXPL_EXPLOSION_CO CALL FUNCTION 'PPEEXPL_EXPLOSION_CO' EXPORTING is_co_input = lf_ippe_explosion * IV_MSG_HANDLING = 'A' * IV_BYPASS_LIBUFFER = PPET_FALSE iv_init_ecm = y_x iv_ccode = kvmk_exp-ccode "note 785585 * IV_ECM_STATUS_ACTIVE = IMPORTING EV_COPRDCT_EXIST = l_coprod_exist es_cmp_head = lf_cmp_head * ES_ACT_HEAD = et_pvs_positions = lt_ippe_items * ET_ACTIVITIES = * ET_PNODID = * ET_CMP_STRUCTUR = * ET_ACT_STRUCTUR = * ET_ACT_SEQUENCE = EXCEPTIONS no_entry_found = 1 OTHERS = 2.

CM_F_MESSAGE CALL FUNCTION 'CM_F_MESSAGE' EXPORTING arbgb = 'CKPC' dispo = kvmk_exp-dispo ekgrp = kvmk_exp-ekgrp labor = kvmk_exp-labor msgnr = '005' msgty = y_cmf-e msgv1 = kvmk_exp-matnr msgv2 = kvmk_exp-werks msg_on_screen = msg_on_screen object_dependent = y_x vagrp = kvmk_exp-vagrp EXCEPTIONS OTHERS = 1.

CM_F_MESSAGE CALL FUNCTION 'CM_F_MESSAGE' EXPORTING arbgb = 'CKPC' dispo = kvmk_exp-dispo ekgrp = kvmk_exp-ekgrp labor = kvmk_exp-labor msgnr = '002' msgty = y_cmf-e msgv1 = kvmk_exp-matnr msgv2 = kvmk_exp-werks msgv3 = kvmk_exp-verid msg_on_screen = msg_on_screen object_dependent = y_x vagrp = kvmk_exp-vagrp EXCEPTIONS OTHERS = 1.

CM_F_COLLECT_MESSAGE CALL FUNCTION 'CM_F_COLLECT_MESSAGE' EXPORTING object_dependent = 'X'.

PVSMC_CLOSE CALL FUNCTION 'PVSMC_CLOSE' EXPORTING save_protocol = ' '.

PVSMC_RESET * CALL FUNCTION 'PVSMC_RESET'.

CKPC31_IPPE_ITEM_CHECK CALL FUNCTION 'CKPC31_IPPE_ITEM_CHECK' EXPORTING costing_variant = f_globaldata-klvar qty_structure_date = kvmk_header-aldat header_plant = kvmk_header-werks ippe_item = lf_ippe_item_exp check_matstat_wo_message = 'X' IMPORTING matnr = lf_ippe_item_imp-matnr plant = lf_ippe_item_imp-plant quantity = lf_ippe_item_imp-quantity quantity_unit = lf_ippe_item_imp-baseunit mat_data = lf_ippe_item_imp-mat_data mat_plant_data_found = l_mat_plant_data_found EXCEPTIONS not_costing_relevant = 1 quantity_not_convertable = 4 OTHERS = 5.

CM_F_COLLECT_MESSAGE CALL FUNCTION 'CM_F_COLLECT_MESSAGE' EXPORTING object_dependent = 'X'.

MARA_SINGLE_READ CALL FUNCTION 'MARA_SINGLE_READ' EXPORTING MATNR = l_matnr_noncol IMPORTING WMARA = lf_mara.

CM_F_MESSAGE CALL FUNCTION 'CM_F_MESSAGE' EXPORTING arbgb = 'CKPC' dispo = kvmk_header-dispo ekgrp = kvmk_header-ekgrp labor = kvmk_header-labor msgnr = '003' msgty = y_cmf-i msgv1 = kvmk_header-matnr msgv2 = kvmk_header-werks msgv3 = kvmk_header-verid object_dependent = y_x vagrp = kvmk_header-vagrp EXCEPTIONS OTHERS = 1.

PVSMC_GET_LATEST_MESSAGES CALL FUNCTION 'PVSMC_GET_LATEST_MESSAGES' IMPORTING latest_messages = lt_ippe_messages EXCEPTIONS message_not_found = 0.

CM_F_COLLECT_MESSAGE





CALL FUNCTION 'CM_F_COLLECT_MESSAGE' EXPORTING msgid = l_message-msgid msgno = l_message-msgno msgty = l_message-msgty msgv1 = l_message-msgv1 msgv2 = l_message-msgv2 msgv3 = l_message-msgv3 msgv4 = l_message-msgv4 msg_on_screen = l_message_on_screen 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 CKPCCKSA or its description.