ML_ALLOW_CLOSING 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_CLOSING into the relevant SAP transactions such as SE38 or SE80
Below is a list of transaction codes which are relevant to this SAP report
CKMG - Allow Closing Entries
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.
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 Closing Entries
No INCLUDES are used within this REPORT code!
No SAP DATABASE tables are accessed within this REPORT code!
CKML_F_CHECK_PRODUCTIVE_FLAG CALL FUNCTION 'CKML_F_CHECK_PRODUCTIVE_FLAG' EXPORTING bwkey = p_bwkey.
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 .
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-ml08 * 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_pc 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 .
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.