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

RK_PKOSA_MULTI_CREATE SAP ABAP Report - Create Multiple Product Cost Collectors for Production Versions







RK_PKOSA_MULTI_CREATE is a standard Executable ABAP Report 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 RK_PKOSA_MULTI_CREATE into the relevant SAP transactions such as SE38 or SE80


Transaction Code(s):

Below is a list of transaction codes which are relevant to this SAP report

KKF6M - Create Multiple Product Cost Coll.


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


Text pool values


Selection Text: PA_AUART = Order Type
Selection Text: PA_REM = Only Repetitive Mfg Mat.
Selection Text: PA_WERKS = Plant
Selection Text: SO_MATNR = Material
Title: Create Multiple Product Cost Collectors for Production Versions
Text Symbol: 001 = Select Production Versions
Text Symbol: 002 = Production Process


INCLUDES used within this REPORT RK_PKOSA_MULTI_CREATE

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:

FB0C_LIMIT_PROCESS call function 'FB0C_LIMIT_PROCESS' EXPORTING ID_TCODE = 'KKF6M' ID_NO_DIALOG = space IMPORTING ED_SUBRC = ld_subrc.

CM_F_MESSAGE call function 'CM_F_MESSAGE' EXPORTING arbgb = 'KOSA' msgnr = '125' msgty = 'E' object_dependent = space.

CM_F_MESSAGE * call function 'CM_F_MESSAGE' * exporting * arbgb = 'KOSA' * msgnr = '123' * msgty = 'S' * msgv1 = gt_selmat-matnr * msgv2 = pa_werks.

CKML_MGV_NAME_GROUP_UPDATE call function 'CKML_MGV_NAME_GROUP_UPDATE' EXPORTING is_name_groups = ls_name_groups EXCEPTIONS error_message = 1 others = 2.

CM_F_COLLECT_MESSAGE call function 'CM_F_COLLECT_MESSAGE' EXPORTING object_dependent = charx.

CM_F_SET_OBJECT call function 'CM_F_SET_OBJECT' EXPORTING object = gs_obj object_id = 'KOSA'.

CM_F_MESSAGE * call function 'CM_F_MESSAGE' * exporting * arbgb = 'KOSA' * msgnr = '124' * msgty = 'S' * msgv1 = gt_selmat-verid.

CM_F_SET_OBJECT * call function 'CM_F_SET_OBJECT' * exporting * object = gs_obj * object_id = 'KOSA'.

CM_F_MESSAGE call function 'CM_F_MESSAGE' EXPORTING arbgb = 'KOSA' msgnr = '122' msgty = 'S' msgv1 = g_success_number object_dependent = space.

CM_F_DISPLAY_LOG call function 'CM_F_DISPLAY_LOG'.

CM_F_PROTOCOL_PRINT call function 'CM_F_PROTOCOL_PRINT'.

KK_F_PKOSA_AUTHORITY call function 'KK_F_PKOSA_AUTHORITY' EXPORTING i_werks = p_werks i_actvt = c_actvt_create EXCEPTIONS no_authority = 1 error_message = 2 others = 3.

READ_T003O call function 'READ_T003O' EXPORTING i_auart = p_auart IMPORTING e_t003o = ls_t003o EXCEPTIONS not_found = 1 error_message = 2 others = 3.

KK_F_PKOSA_GENERATE call function 'KK_F_PKOSA_GENERATE' EXPORTING pkosa_imp = pkosa rueck_rele = charx EXCEPTIONS gsber_not_ok = 1 error_message = 2 others = 3.

CM_F_MESSAGE call function 'CM_F_MESSAGE' EXPORTING arbgb = 'KO' msgnr = '331' msgty = 'E' object_dependent = charx.

CM_F_COLLECT_MESSAGE call function 'CM_F_COLLECT_MESSAGE' EXPORTING object_dependent = charx.

CKML_PROCESS_CONNECT call function 'CKML_PROCESS_CONNECT' EXPORTING if_prod_ord_data = ls_prod_ord_data IMPORTING e_process = coas-procnr EXCEPTIONS error_message = 1 others = 2.

CM_F_COLLECT_MESSAGE call function 'CM_F_COLLECT_MESSAGE' EXPORTING object_dependent = charx.

CM_F_MESSAGE





call function 'CM_F_MESSAGE' EXPORTING arbgb = 'KOSA' msgnr = '108' msgty = 'E' object_dependent = charx.

KK_F_PKOSA_INSERT call function 'KK_F_PKOSA_INSERT' EXPORTING commit_imp = ' ' no_message_imp = 'X' IMPORTING pkosanr_exp = pkosa-aufnr objnr_exp = coas-objnr EXCEPTIONS insert_not_ok = 1 no_settlement_rule = 2 error_message = 3 others = 4.

RM_CREATE_REPPOINT_FOR_PKOSA call function 'RM_CREATE_REPPOINT_FOR_PKOSA' EXPORTING i_pkosa = pkosa i_procparam = ls_procparam i_date = ld_datum i_protocol = charx i_object_dependent = charx.

CM_F_MESSAGE call function 'CM_F_MESSAGE' EXPORTING arbgb = 'KO' msgnr = '332' msgty = 'S' msgv1 = pkosa-aufnr object_dependent = charx.

CM_F_MESSAGE call function 'CM_F_MESSAGE' EXPORTING arbgb = 'KOSA' msgnr = '110' msgty = 'S' msgv1 = pkosa-aufnr msgv2 = coas-procnr object_dependent = charx.

CM_F_MESSAGE call function 'CM_F_MESSAGE' EXPORTING arbgb = 'KO' msgnr = '328' msgty = 'E' msgv1 = l_rc msgv2 = 'KK_F_PKOSA_INSERT' object_dependent = charx.

CM_F_MESSAGE call function 'CM_F_MESSAGE' EXPORTING arbgb = 'KO' msgnr = '311' msgty = 'E' object_dependent = charx.

CM_F_COLLECT_MESSAGE call function 'CM_F_COLLECT_MESSAGE' EXPORTING object_dependent = charx.

CKML_SINGLE_ORDER_BUFFER_RESET call function 'CKML_SINGLE_ORDER_BUFFER_RESET' EXPORTING i_procnr = l_procnr.

ENQUEUE_EMMKALE call function 'ENQUEUE_EMMKALE' EXPORTING mandt = sy-mandt matnr = p_matnr werks = p_werks _scope = '2' _wait = ' ' EXCEPTIONS foreign_lock = 1 system_failure = 2 others = 3.

CM_F_MESSAGE call function 'CM_F_MESSAGE' EXPORTING arbgb = 'KOSA' msgnr = '005' msgty = 'E' msgv1 = p_matnr msgv2 = p_werks msgv3 = sy-msgv1 object_dependent = charx.

CM_F_MESSAGE call function 'CM_F_MESSAGE' EXPORTING arbgb = 'KO' msgnr = '232' msgty = 'E' object_dependent = charx.

DEQUEUE_EMMKALE call function 'DEQUEUE_EMMKALE' EXPORTING mandt = sy-mandt matnr = p_matnr werks = p_werks _scope = '3' _synchron = ' '.

CM_F_INITIALIZE call function 'CM_F_INITIALIZE' EXPORTING aplid = 'KOSA' object_id = 'KOSA'.

MARA_SINGLE_READ call function 'MARA_SINGLE_READ' EXPORTING matnr = gt_selmat-matnr IMPORTING wmara = ls_mara EXCEPTIONS others = 1.

CK_F_ORG_ELEMENTS_PLANT call function 'CK_F_ORG_ELEMENTS_PLANT' exporting werk = gt_selmat-werks importing organisationselemente = l_ckiwerk exceptions others = 1.

MBEW_SINGLE_READ call function 'MBEW_SINGLE_READ' exporting matnr = gt_selmat-matnr bwkey = l_ckiwerk-bwkey bwtar = space importing wmbew = ls_mbew exceptions others = 1.

CKML_MGV_RULE_READ call function 'CKML_MGV_RULE_READ' exporting i_material = gt_selmat-matnr i_werks = gt_selmat-werks i_ptyp = c_ptyp_bf * I_Application = space, damit kein Popup erscheint i_application = space changing rf_rules = ls_rule_line exceptions rule_not_found = 1 error_message = 2 others = 3.

CM_F_MESSAGE * call function 'CM_F_MESSAGE' * exporting * arbgb = 'KOSA' * msgnr = '126' * msgty = 'E' * msgv1 = gt_selmat-matnr.

CKML_MGV_PROCESSES_READ call function 'CKML_MGV_PROCESSES_READ' exporting iv_werks = gt_selmat-werks iv_matnr = gt_selmat-matnr iv_btyp = c_ptyp_bf * IV_PKOSA_Status = space, damit alle Prozesse gelesen werden iv_pkosa_status = space importing et_process_tbl = gt_process exceptions error_message = 1 others = 2.




CM_F_COLLECT_MESSAGE * call function 'CM_F_COLLECT_MESSAGE'.

CM_F_MESSAGE * call function 'CM_F_MESSAGE' * exporting * arbgb = 'KOSA' * msgnr = '123' * msgty = 'S' * msgv1 = gt_selmat-matnr * msgv2 = pa_werks.

CM_F_COLLECT_MESSAGE call function 'CM_F_COLLECT_MESSAGE'.

CM_F_MESSAGE * call function 'CM_F_MESSAGE' * exporting * arbgb = 'KOSA' * msgnr = '123' * msgty = 'S' * msgv1 = gt_selmat-matnr * msgv2 = pa_werks.

REUSE_ALV_EVENTS_GET call function 'REUSE_ALV_EVENTS_GET' EXPORTING i_list_type = 0 IMPORTING et_events = gt_events[].

REUSE_ALV_GRID_DISPLAY_LVC call function 'REUSE_ALV_GRID_DISPLAY_LVC' EXPORTING i_callback_program = 'RK_PKOSA_MULTI_CREATE ' i_grid_title = text-001 is_layout_lvc = ls_layout it_fieldcat_lvc = lt_field_tab it_events = gt_events IMPORTING es_exit_caused_by_user = l_exit_tab TABLES t_outtab = lt_selmat EXCEPTIONS program_error = 1 others = 2.

T001W_SINGLE_READ call function 'T001W_SINGLE_READ' EXPORTING t001w_werks = pa_werks EXCEPTIONS others = 1.

CKML_MGV_PLANT_DATA_UPDATE call function 'CKML_MGV_PLANT_DATA_UPDATE' EXPORTING i_werks = pa_werks i_application = 'P'.

CKML_MGV_PROCALTN_TEXT_READ call function 'CKML_MGV_PROCALTN_TEXT_READ' EXPORTING i_kalnr = gt_pkosa_created-procnr i_language = sy-langu IMPORTING e_valid_name = l01_entry EXCEPTIONS others = 2.

REUSE_ALV_GRID_DISPLAY call function 'REUSE_ALV_GRID_DISPLAY' EXPORTING i_callback_program = 'RK_PKOSA_MULTI_CREATE' i_callback_user_command = 'CALL_KKF7' it_fieldcat = lt_field_tab TABLES t_outtab = gt_pkosa_created EXCEPTIONS others = 1.

KK_F_PKOSA_DISPLAY call function 'KK_F_PKOSA_DISPLAY' EXPORTING i_pkosa = gt_pkosa_created-aufnr i_mode = charx EXCEPTIONS others = 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 RK_PKOSA_MULTI_CREATE or its description.