SAP Reports / Programs

WIP_CLOSE_ACTIVITY SAP ABAP Report - WIP Closing Entry for Activity Types







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

COMLI - Post WIP Closing for Activities


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 WIP_CLOSE_ACTIVITY. "Basic submit
SUBMIT WIP_CLOSE_ACTIVITY AND RETURN. "Return to original report after report execution complete
SUBMIT WIP_CLOSE_ACTIVITY 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_TEST = D .
Selection Text: P_STORE = D .
Selection Text: P_RUNTYP = D .
Selection Text: P_POPER = D .
Selection Text: P_BTCHRQ = D .
Selection Text: P_BDATJ = D .
Selection Text: P_STORNO = Reverse
Selection Text: P_SIZE = Packet Size
Selection Text: P_MANU = Change Period Status Manually
Title: WIP Closing Entry for Activity Types
Text Symbol: H03 = Processing Options
Text Symbol: H02 = Last.Creat.Date
Text Symbol: H01 = Costing Run
Text Symbol: F01 = Activity/Process
Text Symbol: A06 = Reverse
Text Symbol: A05 = Closing Entry
Text Symbol: A04 = Background
Text Symbol: A03 = Dialog
Text Symbol: A02 = Test Run
Text Symbol: A01 = Update Run
Text Symbol: 100 = Processing Options
Text Symbol: 002 = /
Text Symbol: 001 = Period/ Application


INCLUDES used within this REPORT WIP_CLOSE_ACTIVITY

INCLUDE RCKMATOP_ABLAUFSCHALTER.


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:

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_MGVZ_CALC_RUN CALL FUNCTION 'CKML_MGVZ_CALC_RUN' EXPORTING r_appl_strg = ld_strg r_basic_matlist = r_act_tbl[] IMPORTING r_statistics = r_statistics_tbl[] CHANGING r_mgv_runcontrol = ld_mgv_runcontrol EXCEPTIONS appl_error_message = 1.

CM_F_COLLECT_MESSAGE CALL FUNCTION 'CM_F_COLLECT_MESSAGE'.

CM_F_STORE CALL FUNCTION 'CM_F_STORE' EXPORTING aplid = ckru0_co_msg_aplid_run in_update_task = 'X' IMPORTING e_cmf_nr = gd_param-protnr EXCEPTIONS OTHERS = 1.

CM_F_MESSAGE CALL FUNCTION 'CM_F_MESSAGE' EXPORTING arbgb = 'C+' msgnr = '718' msgty = 'I' msgv1 = gd_param-protnr EXCEPTIONS OTHERS = 0.

CM_F_MESSAGE CALL FUNCTION 'CM_F_MESSAGE' EXPORTING arbgb = 'C+' msgnr = '719' msgty = 'E' EXCEPTIONS OTHERS = 0.

CM_F_PROTOCOL_PRINT CALL FUNCTION 'CM_F_PROTOCOL_PRINT' EXPORTING aplid = ckru0_co_msg_aplid_run EXCEPTIONS OTHERS = 0.

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 * HEADLINE = ' ' * OCS_ACTIV = ' ' * OCS_SEND_IMMEDIATE = ' ' skip_info_screen = h_skip_info_screen * DISPLAY_IN_NEW_TASK = ' ' * TITLEBAR = ' ' * TITLE = ' ' * OBJECT = ' ' * WITH_OBJECTINDEPENDENT = 'X' * ADDITIONAL_INFO = * MSG_EXITCALL_ICON = ' ' grid_display = 'X' alv_variant = ckru0_co_msg_alv_variant.

CKML_RUN_VALAREAS_GET CALL FUNCTION 'CKML_RUN_VALAREAS_GET' EXPORTING i_run_type = p_runtyp i_poper = p_poper i_gjahr = p_bdatj i_appl = p_appl IMPORTING et_valareas = gd_bwkey_info_tbl.

CKML_RUN_PERIOD_GET CALL FUNCTION 'CKML_RUN_PERIOD_GET' EXPORTING i_run_type = p_runtyp i_poper = p_poper i_gjahr = p_bdatj i_appl = p_appl IMPORTING es_runperiod = gd_runperiod.

CKMLWIP_CHECK_WIP_RELEVANT CALL FUNCTION 'CKMLWIP_CHECK_WIP_RELEVANT' EXPORTING i_runid = gd_runperiod-run_id IMPORTING e_xwip_relevant = lx_wip_relevant.

CKML_WIP_SELECT_ACTIVITIES CALL FUNCTION 'CKML_WIP_SELECT_ACTIVITIES' EXPORTING i_bwkey = gd_bwkey_info-bwkey i_bdatj = gd_bwkey_info-gjahr i_poper = gd_bwkey_info-poper i_bdatj_prev = ld_prev_bdatj i_poper_prev = ld_prev_poper i_runid = gd_runperiod-run_id i_vorgang = gd_param-vorgang IMPORTING et_activities = ld_act_tbl.

REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_program_name = gd_program i_internal_tabname = gd_tabname i_inclname = gd_program i_bypassing_buffer = 'X' CHANGING ct_fieldcat = r_fieldcat_tbl EXCEPTIONS inconsistent_interface = 1 program_error = 2 OTHERS = 3.

REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING * I_INTERFACE_CHECK = ' ' * I_BUFFER_ACTIVE = ' ' i_callback_program = ld_callb_prog i_callback_pf_status_set = ld_cb_status i_callback_user_command = ld_cb_ucom * I_STRUCTURE_NAME = is_layout = s_layout it_fieldcat = gd_llist_fieldcat * IT_EXCLUDING = * IT_SPECIAL_GROUPS = * IT_SORT = * IT_FILTER = * IS_SEL_HIDE = * I_DEFAULT = 'X' * I_SAVE = ' ' * IS_VARIANT = ' ' it_events = t_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 = * ES_EXIT_CAUSED_BY_USER = TABLES t_outtab = gd_alv_lar_tbl * EXCEPTIONS * PROGRAM_ERROR = 1 * OTHERS = 2 .

REUSE_ALV_COMMENTARY_WRITE CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE' EXPORTING it_list_commentary = gd_glist_top_of_list.

K_BATCH_REQUEST CALL FUNCTION 'K_BATCH_REQUEST' EXPORTING par_dialg = 'X' par_jname = ld_jobname par_print = 'X' par_rname = gd_param-repid par_sdmsg = 'X' par_abend = 'X' TABLES tab_selpa = gd_selektionen.

CKML_F_SET_BWKEY CALL FUNCTION 'CKML_F_SET_BWKEY' EXPORTING bwkey = rf_bwkey_info-bwkey.

CKML_F_GET_WWO





CALL FUNCTION 'CKML_F_GET_WWO' IMPORTING wwo = ld_wwo.

CKML_F_GET_PREVIOUS_PERIOD CALL FUNCTION 'CKML_F_GET_PREVIOUS_PERIOD' EXPORTING input_period = rf_bwkey_info-poper input_year = rf_bwkey_info-gjahr input_periv = ld_wwo-periv IMPORTING previous_period = rd_prev_poper previous_year = rd_prev_bdatj.

CKML_F_POSTING_PERIODS_GET CALL FUNCTION 'CKML_F_POSTING_PERIODS_GET' EXPORTING bwkey = v_bwkey TABLES t_periode = lt_periode 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 WIP_CLOSE_ACTIVITY or its description.