SAP Reports / Programs | Controlling | Product Cost Controlling | Actual Costing/Material Ledger(CO-PC-ACT) SAP CO

CKMLBB_PRICES_CHANGE SAP ABAP Report - Price Change with Alternative Prices







CKMLBB_PRICES_CHANGE 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 CKMLBB_PRICES_CHANGE 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

CKMLBB_PRICES_CHANGE - Price Change with Alternat. Prices


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 CKMLBB_PRICES_CHANGE. "Basic submit
SUBMIT CKMLBB_PRICES_CHANGE AND RETURN. "Return to original report after report execution complete
SUBMIT CKMLBB_PRICES_CHANGE 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: P_BDATJ = D .
Selection Text: P_BUDAT = D .
Selection Text: P_BUKRS = D .
Selection Text: P_EBEW = D .
Selection Text: P_FBBANZ = D .
Selection Text: P_POPER = D .
Selection Text: P_PRKZG = D .
Selection Text: P_QBEW = D .
Selection Text: P_TEST = D .
Selection Text: P_VARIAN = D .
Selection Text: S_BWTAR = D .
Selection Text: S_CURTP = D .
Selection Text: S_MATNR = D .
Selection Text: S_WERKS = D .
Title: Price Change with Alternative Prices
Text Symbol: SB1 = Material Selection
Text Symbol: SB2 = Selection of Prices
Text Symbol: SB3 = Posting of Prices
Text Symbol: SEL = Selection for Price Changes
Text Symbol: SFI = Price Selection using FIFO Variant
Text Symbol: SMA = Enter Price Selection Manually


INCLUDES used within this REPORT CKMLBB_PRICES_CHANGE

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:

MARV_SINGLE_READ CALL FUNCTION 'MARV_SINGLE_READ' EXPORTING bukrs = p_bukrs IMPORTING wmarv = gs_marv EXCEPTIONS OTHERS = 1.

LAST_DAY_IN_PERIOD_GET CALL FUNCTION 'LAST_DAY_IN_PERIOD_GET' EXPORTING i_gjahr = p_bdatj i_periv = l_periv i_poper = p_poper IMPORTING e_date = p_budat EXCEPTIONS OTHERS = 1. "#EC *

CKMLBB0_GET_FIFO_VARIANT CALL FUNCTION 'CKMLBB0_GET_FIFO_VARIANT' EXPORTING i_fifovar = p_varian.

FI_PERIOD_DETERMINE CALL FUNCTION 'FI_PERIOD_DETERMINE' EXPORTING i_budat = p_budat i_bukrs = p_bukrs IMPORTING e_gjahr = g_budat_gjahr e_poper = g_budat_poper.

MARV_SINGLE_READ CALL FUNCTION 'MARV_SINGLE_READ' EXPORTING bukrs = p_bukrs IMPORTING wmarv = gs_marv.

CKMLBB0_GET_FIFO_VARIANT CALL FUNCTION 'CKMLBB0_GET_FIFO_VARIANT' EXPORTING i_fifovar = p_varian IMPORTING o_fifo_variant = gs_fifo_variant EXCEPTIONS OTHERS = 0.

GET_BWKEY_CURRENCY_INFO CALL FUNCTION 'GET_BWKEY_CURRENCY_INFO' EXPORTING BWKEY = lt_t001k-bwkey TABLES T_CURTP_FOR_VA = lt_curtp.

TP_VALUATION_AUTHORITY CALL FUNCTION 'TP_VALUATION_AUTHORITY' EXPORTING I_BWKEY = lt_t001k-bwkey I_CVTYP = lt_curtp-curtp I_ACTVT = '02' IMPORTING E_XAUTH = l_xauth.

REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING i_callback_program = l_callback_prog i_callback_user_command = 'HANDLE_UCOMM' it_fieldcat = lt_fcat is_layout = ls_layout i_save = 'A' TABLES t_outtab = gt_outtab.

CM_F_INITIALIZE CALL FUNCTION 'CM_F_INITIALIZE'.

CM_F_CMFMSG_MESSAGES_PUT CALL FUNCTION 'CM_F_CMFMSG_MESSAGES_PUT' TABLES i_msgprot = ls_prch_pack-messages[] EXCEPTIONS not_active = 1 OTHERS = 2. "#EC *

CM_F_PROTOCOL_PRINT CALL FUNCTION 'CM_F_PROTOCOL_PRINT'.

CM_F_INITIALIZE CALL FUNCTION 'CM_F_INITIALIZE'.

CM_F_CMFMSG_MESSAGES_PUT CALL FUNCTION 'CM_F_CMFMSG_MESSAGES_PUT' TABLES i_msgprot = ls_prch_pack-messages[] EXCEPTIONS not_active = 1 OTHERS = 2.

CM_F_DISPLAY_LOG CALL FUNCTION 'CM_F_DISPLAY_LOG' EXPORTING skip_info_screen = 'X'.

CKML_F_DOCUMENT_SHOW_RFC CALL FUNCTION 'CKML_F_DOCUMENT_SHOW_RFC' EXPORTING i_belnr = l_belnr i_kjahr = g_budat_gjahr.

LVC_FIELDCAT_COMPLETE CALL FUNCTION 'LVC_FIELDCAT_COMPLETE' EXPORTING i_complete = 'X' CHANGING ct_fieldcat = lt_fcat[].

LVC_TRANSFER_TO_SLIS CALL FUNCTION 'LVC_TRANSFER_TO_SLIS' EXPORTING it_fieldcat_lvc = lt_fcat[] IMPORTING et_fieldcat_alv = et_fcat[].

CKML_BUFFER_REFRESH_ALL





CALL FUNCTION 'CKML_BUFFER_REFRESH_ALL' EXPORTING i_called_by = 'FIFOPC' EXCEPTIONS error_message = 1.

CK_F_ORG_ELEMENTS_VAL_AREA CALL FUNCTION 'CK_F_ORG_ELEMENTS_VAL_AREA' EXPORTING bwkey = ls_prch-bwkey IMPORTING f_ckibwkey = ls_ckibwkey EXCEPTIONS bukrs_not_found = 1 bwkey_not_found = 2 kokrs_not_found = 3 OTHERS = 4.

MATERIAL_READ_MAKF CALL FUNCTION 'MATERIAL_READ_MAKF' EXPORTING schluessel = ls_mtcom IMPORTING matdaten = ls_mt08l return = ls_mtcor matper = ls_mtper EXCEPTIONS material_not_found = 1 lock_on_account = 2 account_not_found = 3 lock_on_material = 4 lock_system_error = 5 sa_material = 6 wv_material = 7 OTHERS = 8.

DATE_TO_PERIOD_CONVERT CALL FUNCTION 'DATE_TO_PERIOD_CONVERT' EXPORTING i_date = p_budat i_periv = ls_ckibwkey-periv IMPORTING e_buper = l_poper e_gjahr = l_bdatj EXCEPTIONS input_false = 1 t009_notfound = 2 t009b_notfound = 3.

MARV_SINGLE_READ CALL FUNCTION 'MARV_SINGLE_READ' EXPORTING bukrs = ls_ckibwkey-bukrs IMPORTING wmarv = ls_marv EXCEPTIONS not_found = 1 wrong_call = 2 OTHERS = 3.

CKMS_HEADER_READ_WITH_ITAB CALL FUNCTION 'CKMS_HEADER_READ_WITH_ITAB' TABLES in_kalnr = lt_kalnr out_ckmlhd = lt_ckmlhd out_ckmlpr = lt_ckmlpr EXCEPTIONS no_data_found = 1 input_data_inconsistent = 2 lock_system_failure = 3 internal_error = 4 no_data_requested = 5 OTHERS = 6.

CKMS_PERIOD_READ_WITH_ITAB CALL FUNCTION 'CKMS_PERIOD_READ_WITH_ITAB' EXPORTING i_refresh_buffer = ' ' i_build_smbew = 'X' i_bdatj_1 = l_bdatj i_poper_1 = l_poper TABLES t_kalnr = lt_kalnr t_ckmlcr = lt_ckmlcr t_ckmlpp = lt_ckmlpp EXCEPTIONS no_data_found = 1 input_data_inconsistent = 2 buffer_inconsistent = 3 OTHERS = 4.

CM_F_INITIALIZE CALL FUNCTION 'CM_F_INITIALIZE' EXPORTING APLID = 'CKPF'.

PRICES_CHANGE CALL FUNCTION 'PRICES_CHANGE' EXPORTING actual_bdatj = l_bdatj actual_poper = l_poper budat = p_budat bukrs = ls_ckibwkey-bukrs TABLES t_matpr = lt_matpr EXCEPTIONS error_message = 1 invalid_period = 2 OTHERS = 3.

CM_F_MESSAGES_GET CALL FUNCTION 'CM_F_MESSAGES_GET' EXPORTING APLID = 'CKPF' TABLES e_msgprot = lt_msg.

PRICES_POST CALL FUNCTION 'PRICES_POST' EXPORTING bukrs = ls_ckibwkey-bukrs IMPORTING o_belnr = l_belnr TABLES t_matpr = lt_matpr EXCEPTIONS error_message = 1.

CM_F_MESSAGES_GET CALL FUNCTION 'CM_F_MESSAGES_GET' EXPORTING APLID = 'CKPF' TABLES e_msgprot = lt_msg.



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