SAP Reports / Programs

ML_ALLOW_CLOSING_RUN SAP ABAP Report - Allow Closing Entries for Run







ML_ALLOW_CLOSING_RUN 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_RUN 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

CKMG_RUN - Allow Closing Entries for Run


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_CLOSING_RUN. "Basic submit
SUBMIT ML_ALLOW_CLOSING_RUN AND RETURN. "Return to original report after report execution complete
SUBMIT ML_ALLOW_CLOSING_RUN 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_APPL = D Application
Selection Text: P_GJAHR = D Fiscal year
Selection Text: P_POPER = D Posting period
Selection Text: P_RUNDAY = D Last Day of Period
Selection Text: P_RUNTYP = D Costing run
Title: Allow Closing Entries for Run
Text Symbol: 010 = Closing entries without error/warning allowed
Text Symbol: 011 = Closing entries with warning allowed
Text Symbol: 012 = Closing entries not allowed due to error


INCLUDES used within this REPORT ML_ALLOW_CLOSING_RUN

INCLUDE ML_ALLOW_CLOSING_RUN_SCREEN.
INCLUDE RKASMAWF.
INCLUDE SCHEDMAN_EVENTS.
INCLUDE CKML_RUN_SELSCREEN_PERIOD_EXT.
INCLUDE CKML_RUN_SELSCREEN_F4_EVENTS .


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_RUN_VALAREAS_GET CALL FUNCTION 'CKML_RUN_VALAREAS_GET' EXPORTING i_run_id = g_run_id i_run_type = p_runtyp i_last_day = p_runday IMPORTING et_valareas = lt_bwkey_info[].

CM_F_INITIALIZE CALL FUNCTION 'CM_F_INITIALIZE' EXPORTING aplid = ckru0_co_msg_aplid_run object_id = ckru0_co_msg_objid_run no_other_initialize = 'X' EXCEPTIONS OTHERS = 01.

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 = repid ** I_VARIANT = ** I_TCODE = SY-TCODE ** I_TEST = * i_run_type = p_runtyp * i_run_id = g_run_id * i_last_day = p_runday ** I_BWKEY = ** I_POPER = ** I_GJAHR = ** I_KALST = ** EXCEPTIONS ** no_pflid_created = 1 ** pflid_already_exists = 2 ** OTHERS = 3 * .

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 = ls_witem i_repid = repid "#EC DOM_EQUAL * I_TCODE = SY-TCODE * I_TEST = ' ' i_run_id = g_run_id .

CKML_RUN_PEP_SUBRECORD_OPEN * CALL FUNCTION 'CKML_RUN_PEP_SUBRECORD_OPEN' * EXPORTING * i_run_id = g_run_id * i_run_type = p_runtyp * i_last_day = p_runday * i_bwkey = lt_bwkey_info-bwkey * i_poper = lt_bwkey_info-poper * i_gjahr = lt_bwkey_info-gjahr ** I_KALST = * IMPORTING * e_pflis = subrecord_number ** EXCEPTIONS ** wrong_pflid = 1 ** OTHERS = 2 * .

CM_F_SET_OBJECT CALL FUNCTION 'CM_F_SET_OBJECT' EXPORTING object = lf_object object_id = ckru0_co_msg_objid_run EXCEPTIONS OTHERS = 0.

CM_F_MESSAGE CALL FUNCTION 'CM_F_MESSAGE' EXPORTING arbgb = 'C+' msgnr = '054' msgty = 'E' msgv1 = lt_bwkey_info-bwkey object_dependent = 'X' EXCEPTIONS OTHERS = 0.

CKML_F_CHECK_PRODUCTIVE_FLAG CALL FUNCTION 'CKML_F_CHECK_PRODUCTIVE_FLAG' EXPORTING bwkey = lt_bwkey_info-bwkey EXCEPTIONS bwkey_not_productive = 1 bwkey_not_active = 2.

CM_F_COLLECT_MESSAGE CALL FUNCTION 'CM_F_COLLECT_MESSAGE'.

CM_F_MESSAGE CALL FUNCTION 'CM_F_MESSAGE' EXPORTING arbgb = 'C+' msgnr = '829' msgty = 'E' msgv1 = lt_bwkey_info-poper msgv2 = lt_bwkey_info-gjahr object_dependent = 'X' EXCEPTIONS OTHERS = 0.

CM_F_MESSAGE CALL FUNCTION 'CM_F_MESSAGE' EXPORTING arbgb = 'C+' msgnr = '099' msgty = 'E' msgv1 = 'ML_ALLOW_CLOSING_RUN' msgv2 = '1' object_dependent = 'X' EXCEPTIONS OTHERS = 0.

CM_F_MESSAGE CALL FUNCTION 'CM_F_MESSAGE' EXPORTING arbgb = 'C+' msgnr = '828' msgty = 'I' msgv1 = lt_bwkey_info-poper msgv2 = lt_bwkey_info-gjahr msgv3 = lf_ckmlo-absuser msgv4 = lf_ckmlo-absdat object_dependent = 'X' EXCEPTIONS OTHERS = 0.

CM_F_MESSAGE CALL FUNCTION 'CM_F_MESSAGE' EXPORTING arbgb = 'C+' msgnr = '833' msgty = 'I' msgv1 = p_runtyp object_dependent = 'X' EXCEPTIONS OTHERS = 0.

CM_F_MESSAGE CALL FUNCTION 'CM_F_MESSAGE' EXPORTING arbgb = 'C+' msgnr = '001' msgty = 'E' msgv1 = 'CKMLO' object_dependent = 'X' EXCEPTIONS OTHERS = 0.

CKML_RUN_PEP_SUBRECORD_CLOSE * CALL FUNCTION 'CKML_RUN_PEP_SUBRECORD_CLOSE' * EXPORTING * I_PFLIS = SUBRECORD_NUMBER * I_APLSTAT = APLSTAT_BWKEY * I_OBJECTS = 1 ** I_APLID = ** I_OBJECT_ID = ** I_NR = ** EXCEPTIONS ** wrong_pflid = 1 ** OTHERS = 2 * .

CM_F_STORE CALL FUNCTION 'CM_F_STORE' EXPORTING aplid = ckru0_co_msg_aplid_run * IN_UPDATE_TASK = 'X' * I_CMF_NR = 0 IMPORTING e_cmf_nr = prot_nr EXCEPTIONS not_active = 0 store_and_load_not_activ = 0 OTHERS = 0.

CKML_RUN_PEP_RECORD_CLOSE * CALL FUNCTION 'CKML_RUN_PEP_RECORD_CLOSE' * EXPORTING * i_aplstat = aplstat * i_objects = number_of_bwkey * i_aplid = ckru0_co_msg_aplid_run * i_object_id = ckru0_co_msg_objid_run * i_nr = prot_nr * EXCEPTIONS ** wrong_pflid = 1 ** no_pflid = 2 * OTHERS = 3 * .

CKML_SCHEDMAN_RECORD_CLOSE CALL FUNCTION 'CKML_SCHEDMAN_RECORD_CLOSE' EXPORTING i_objects = number_of_bwkey i_aplication_status = aplstat i_prot_number = prot_nr i_scma_event = ls_scma_event.

REUSE_ALV_FIELDCATALOG_MERGE





CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_internal_tabname = 'LT_ALV' i_structure_name = 'CKML_BWKEY_INFO' CHANGING ct_fieldcat = lt_fieldcat.

REUSE_ALV_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' EXPORTING * I_INTERFACE_CHECK = ' ' i_buffer_active = 'X' i_callback_program = repid i_callback_pf_status_set = 'ALV_PF_STATUS_SET' i_callback_user_command = 'ALV_USER_COMMAND' * I_STRUCTURE_NAME = is_layout = lf_layout it_fieldcat = lt_fieldcat * IT_EXCLUDING = * IT_SPECIAL_GROUPS = * IT_SORT = * IT_FILTER = * IS_SEL_HIDE = * I_DEFAULT = 'X' i_save = 'U' * IS_VARIANT = ' ' it_events = lt_events * IT_EVENT_EXIT = * IS_PRINT = * IS_REPREP_ID = * I_SCREEN_START_COLUMN = 0 * I_SCREEN_START_LINE = 0 * I_SCREEN_END_COLUMN = 0 * I_SCREEN_END_LINE = 0 * IMPORTING * e_exit_caused_by_caller = p_exit_caused_by_caller * es_exit_caused_by_user = fp_exit_caused_by_user TABLES t_outtab = lt_alv.

CM_F_INFO CALL FUNCTION 'CM_F_INFO' EXPORTING * ALL = 'X' aplid = ckru0_co_msg_aplid_run * OBJECT = ' ' * OBJECT_ID = ' ' * WILDCARD_SEARCH = ' ' IMPORTING * APLIDENT = * A_MSG_COUNTER_PRO = * A_MSG_COUNTER_SCR = * E_MSG_COUNTER_PRO = * E_MSG_COUNTER_SCR = * I_MSG_COUNTER_PRO = * I_MSG_COUNTER_SCR = * MAX_SEVERITY_PRO = * MAX_SEVERITY_SCR = * MSGTY_PRO = * MSGTY_SCR = msg_counter_pro = h_msg_counter_pro.

CM_F_DISPLAY_LOG CALL FUNCTION 'CM_F_DISPLAY_LOG' EXPORTING aplid = ckru0_co_msg_aplid_run skip_info_screen = h_skip_info_screen grid_display = 'X' alv_variant = ckru0_co_msg_alv_variant EXCEPTIONS OTHERS = 0.



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