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

ML_ALLOW_SETTLEMENT SAP ABAP Report - Allow Price Determination







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

CKMF - Allow Price Determination


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 ML_ALLOW_SETTLEMENT. "Basic submit
SUBMIT ML_ALLOW_SETTLEMENT AND RETURN. "Return to original report after report execution complete
SUBMIT ML_ALLOW_SETTLEMENT 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 Fiscal year
Selection Text: P_BUKRS = D Company code
Selection Text: P_BWKEY = D Valuation area
Selection Text: P_POPER = D Posting period
Selection Text: P_WERKS = D Plant
Title: Allow Price Determination


INCLUDES used within this REPORT ML_ALLOW_SETTLEMENT

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:

CKML_F_CHECK_PRODUCTIVE_FLAG CALL FUNCTION 'CKML_F_CHECK_PRODUCTIVE_FLAG' EXPORTING bwkey = p_bwkey.

CKML_F_SET_BWKEY * CALL FUNCTION 'CKML_F_SET_BWKEY' * EXPORTING * bwkey = ip_bwkey * exceptions * bwkey_not_found = 1 * internal_error = 2 * aschema_not_found = 3 * OTHERS = 4.

CKML_F_GET_WWO * CALL FUNCTION 'CKML_F_GET_WWO' * IMPORTING * wwo = l_wwo.

LAST_DAY_IN_PERIOD_GET * CALL FUNCTION 'LAST_DAY_IN_PERIOD_GET' * EXPORTING * i_gjahr = ip_bdatj ** I_MONMIT = 00 * i_periv = l_wwo-periv * i_poper = ip_poper * IMPORTING * e_date = l_budat"#EC DOM_EQUAL ** EXCEPTIONS ** input_false = 1 ** t009_notfound = 2 ** t009b_notfound = 3 ** OTHERS = 4 * .

CKML_RUN_PEP_RECORD_OPEN * CALL FUNCTION 'CKML_RUN_PEP_RECORD_OPEN' * EXPORTING * i_function = ckru0_pepfunction-ml01 * i_activity = ckru0_pepaction-n16 * i_repid = l_repid ** I_VARIANT = ** I_TCODE = SY-TCODE ** I_TEST = ** I_RUN_TYPE = * i_last_day = l_budat * i_bwkey = ip_bwkey * i_poper = ip_poper * i_gjahr = ip_bdatj ** I_KALST = * EXCEPTIONS * no_pflid_created = 1 * pflid_already_exists = 2 * OTHERS = 3.

CKML_RUN_RUN_ID_FOR_VA_GET CALL FUNCTION 'CKML_RUN_RUN_ID_FOR_VA_GET' EXPORTING i_bwkey = ip_bwkey i_gjahr = ip_bdatj i_poper = ip_poper i_appl = ckru0_co_appl_act * I_VERSION = '000' IMPORTING e_run_id = l_run_id EXCEPTIONS not_found = 1 * OTHERS = 2 .

CKML_SCHEDMAN_RECORD_OPEN CALL FUNCTION 'CKML_SCHEDMAN_RECORD_OPEN' EXPORTING i_function = ckru0_sm_function-allow_pd i_activity = ckru0_pepaction-n16 * I_SCMA_WITEM = i_repid = l_repid"#EC DOM_EQUAL * I_TCODE = SY-TCODE * I_TEST = ' ' i_run_id = l_run_id .

CKML_RUN_PEP_RECORD_CLOSE * CALL FUNCTION 'CKML_RUN_PEP_RECORD_CLOSE' * EXPORTING * i_aplstat = ip_aplstat * i_objects = ip_objects ** I_APLID = ** I_OBJECT_ID = ** I_NR = * EXCEPTIONS * wrong_pflid = 1 * no_pflid = 2 * OTHERS = 3.

CKML_SCHEDMAN_RECORD_CLOSE CALL FUNCTION 'CKML_SCHEDMAN_RECORD_CLOSE' EXPORTING i_objects = ip_objects i_aplication_status = ip_aplstat * I_PROT_NUMBER = EXCEPTIONS no_open_record_found = 0 * 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 ML_ALLOW_SETTLEMENT or its description.