SAP Reports / Programs | Materials Management | Materials Management | Inventory Controlling(MM-IS-IC) SAP MM

RMCBNEWD SAP ABAP Report - Setup of Statistical Data BCO







RMCBNEWD is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for This is an auxiliary program for the simplified user guide for setting up statistical data in Inventory Controlling...see full standard documentation available for this report. Also check out the submitted Comments related to this SAP report and the details below to see which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC.

If you would like to execute this report or see the full code listing simply enter RMCBNEWD into the relevant SAP transactions such as SE38 or SE80


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 RMCBNEWD. "Basic submit
SUBMIT RMCBNEWD AND RETURN. "Return to original report after report execution complete
SUBMIT RMCBNEWD 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: NEWBW = D Extraction Structures BW
Selection Text: MCINF_ST = Info Structure Stocks
Selection Text: MCINF_MV = Info Structure Movements
Selection Text: F_DCIDX = Delete / Create Indices
Selection Text: FLG_INI = Delete Version '000'
Selection Text: BUKRS = D Company Code
Selection Text: BUDAT = D Posting Date
Title: Setup of Statistical Data BCO
Text Symbol: 112 = Determine Documents in Open Periods
Text Symbol: 111 = Materials Management and Fin. Accounting
Text Symbol: 110 = In the Areas
Text Symbol: 105 = Recompilation finished successfully
Text Symbol: 104 = Recompilation of Accounting Data (Open Periods)
Text Symbol: 103 = Recompilation of Accounting Data (Closed Periods)
Text Symbol: 102 = Recompilation of Movement Data (Open Items)
Text Symbol: 101 = Recompilation of Movement Data (Closed Periods)
Text Symbol: 100 = Recompilation of Stock Data
Text Symbol: 009 = Message
Text Symbol: 006 = Recompilation Inventory Controlling
Text Symbol: 003 = Movement Data Restriction
Text Symbol: 001 = Spec. for Target Structures


INCLUDES used within this REPORT RMCBNEWD

INCLUDE: RMCSNTOP,
RMCBNEAV.


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:

SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING percentage = 2 text = text-100.

SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING percentage = 20 text = text-112.

SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING percentage = 25 text = text-101.

SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING percentage = 45 text = text-102.

SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING percentage = 65 text = text-103.

SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING percentage = 85 text = text-104.

MCS_TMC4_F4 CALL FUNCTION 'MCS_TMC4_F4' EXPORTING i_flg_evaluation ='X' " also show S031, S032 etc.

MCS_INFO_FEATURES_GENER CALL FUNCTION 'MCS_INFO_FEATURES_GENER' EXPORTING * Copy-Management-Coding i_type = 'R' i_gstru = int_tmc4-gstru IMPORTING e_reportname = del_report EXCEPTIONS generation_failed = 01.

DB_COMMIT CALL FUNCTION 'DB_COMMIT'.

DOCU_OBJECT_NAME_CONCATENATE CALL FUNCTION 'DOCU_OBJECT_NAME_CONCATENATE' EXPORTING docu_id = dokcl element = msg_id addition = msg_nr IMPORTING object = obj EXCEPTIONS OTHERS = 0.

DOCU_OBJECT_NAME_SPLIT * call function 'DOCU_OBJECT_NAME_SPLIT' * exporting * docu_id = 'NA' * object = dokna * importing * element = help_info-messageid * addition = help_info-messagenr * exceptions * others = 0.

MESSAGE_PREPARE CALL FUNCTION 'MESSAGE_PREPARE' EXPORTING msg_id = help_info-messageid msg_no = help_info-messagenr msg_var1 = help_info-msgv1 msg_var2 = help_info-msgv2 msg_var3 = help_info-msgv3 msg_var4 = help_info-msgv4 IMPORTING msg_text = help_info-message EXCEPTIONS function_not_completed = 1 message_not_found = 2.

DOCU_GET_FOR_F1HELP CALL FUNCTION 'DOCU_GET_FOR_F1HELP' EXPORTING id = 'NA' langu = sy-langu object = dokna IMPORTING head = overlay_header TABLES line = textlines EXCEPTIONS ret_code = 04.

HELP_DOCULINES_SHOW CALL FUNCTION 'HELP_DOCULINES_SHOW' EXPORTING cucol = start_column curow = start_row help_infos = help_info not_help = 'X' overlay_header = overlay_header classic_sapscript = 'X' IMPORTING help_popup_cancel = p_canceled TABLES excludefun = exclude helplines = lines_tmp.

JOB_OPEN CALL FUNCTION 'JOB_OPEN' EXPORTING * DELANFREP = ' ' * JOBGROUP = ' ' jobname = hlp_job_name IMPORTING jobcount = job_id EXCEPTIONS cant_create_job = 1 invalid_job_data = 2 jobname_missing = 3 OTHERS = 4.

JOB_CLOSE CALL FUNCTION 'JOB_CLOSE' EXPORTING jobcount = job_id jobname = hlp_job_name strtimmed = 'X' IMPORTING job_was_released = job_started EXCEPTIONS cant_start_immediate = 1 invalid_startdate = 2 jobname_missing = 3 job_close_failed = 4 job_nosteps = 5 job_notex = 6 lock_failed = 7 OTHERS = 9.

ENQUEUE_EMMKPF CALL FUNCTION 'ENQUEUE_EMMKPF' EXCEPTIONS foreign_lock = 1 system_failure = 2 OTHERS = 3.

ENQUEUE_EFBKPF CALL FUNCTION 'ENQUEUE_EFBKPF' EXCEPTIONS foreign_lock = 1 system_failure = 2 OTHERS = 3.

DEQUEUE_EMMKPF





CALL FUNCTION 'DEQUEUE_EMMKPF'.

DEQUEUE_EFBKPF CALL FUNCTION 'DEQUEUE_EFBKPF'.

FIRST_DAY_IN_PERIOD_GET CALL FUNCTION 'FIRST_DAY_IN_PERIOD_GET' EXPORTING i_gjahr = marv-lfgja i_periv = periv i_poper = hlp_period IMPORTING e_date = p_perio1-low "#EC DOM_EQUAL EXCEPTIONS input_false = 1 t009_notfound = 2 t009b_notfound = 3 OTHERS = 4.

LAST_DAY_IN_PERIOD_GET CALL FUNCTION 'LAST_DAY_IN_PERIOD_GET' EXPORTING i_gjahr = marv-lfgja i_periv = periv i_poper = hlp_period IMPORTING e_date = p_perio1-high "#EC DOM_EQUAL EXCEPTIONS input_false = 1 t009_notfound = 2 t009b_notfound = 3 OTHERS = 4.

FIRST_DAY_IN_PERIOD_GET CALL FUNCTION 'FIRST_DAY_IN_PERIOD_GET' EXPORTING i_gjahr = marv-vmgja i_periv = periv i_poper = hlp_period IMPORTING e_date = p_perio2-low "#EC DOM_EQUAL EXCEPTIONS input_false = 1 t009_notfound = 2 t009b_notfound = 3 OTHERS = 4.

LAST_DAY_IN_PERIOD_GET CALL FUNCTION 'LAST_DAY_IN_PERIOD_GET' EXPORTING i_gjahr = marv-vmgja i_periv = periv i_poper = hlp_period IMPORTING e_date = p_perio2-high "#EC DOM_EQUAL EXCEPTIONS input_false = 1 t009_notfound = 2 t009b_notfound = 3 OTHERS = 4.

FIRST_DAY_IN_PERIOD_GET CALL FUNCTION 'FIRST_DAY_IN_PERIOD_GET' EXPORTING i_gjahr = t001b-frye1 i_periv = periv i_poper = hlp_period IMPORTING e_date = p_perio1-low "#EC DOM_EQUAL EXCEPTIONS input_false = 1 t009_notfound = 2 t009b_notfound = 3 OTHERS = 4.

LAST_DAY_IN_PERIOD_GET CALL FUNCTION 'LAST_DAY_IN_PERIOD_GET' EXPORTING i_gjahr = t001b-toye1 i_periv = periv i_poper = hlp_period IMPORTING e_date = p_perio1-high "#EC DOM_EQUAL EXCEPTIONS input_false = 1 t009_notfound = 2 t009b_notfound = 3 OTHERS = 4.

FIRST_DAY_IN_PERIOD_GET CALL FUNCTION 'FIRST_DAY_IN_PERIOD_GET' EXPORTING i_gjahr = t001b-frye2 i_periv = periv i_poper = hlp_period IMPORTING e_date = p_perio2-low "#EC DOM_EQUAL EXCEPTIONS input_false = 1 t009_notfound = 2 t009b_notfound = 3 OTHERS = 4.

LAST_DAY_IN_PERIOD_GET CALL FUNCTION 'LAST_DAY_IN_PERIOD_GET' EXPORTING i_gjahr = t001b-toye2 i_periv = periv i_poper = hlp_period IMPORTING e_date = p_perio2-high "#EC DOM_EQUAL EXCEPTIONS input_false = 1 t009_notfound = 2 t009b_notfound = 3 OTHERS = 4.

SELECT_OPTIONS_RESTRICT CALL FUNCTION 'SELECT_OPTIONS_RESTRICT' EXPORTING restriction = restrict EXCEPTIONS too_late = 1 repeated = 2 selopt_without_options = 3 selopt_without_signs = 4 invalid_sign = 5 empty_option_list = 6 invalid_kind = 7 repeated_kind_a = 8 OTHERS = 9.

MCB_REBUILD_MM CALL FUNCTION 'MCB_REBUILD_MM' EXPORTING vrsio = p_vrsio setup_bw = p_flg_bw run_name = hlp_rname stop_date = p_stop_date stop_time = p_stop_time flg_ale = p_flg_ale logsys = p_logsys IMPORTING next_to_process = hlp_mblnr TABLES sel_mcinf = p_selinf[] sel_mblnr = hlp_sel_docs sel_budat = hlp_periods sel_mjahr = hlp_mjahr sel_werks = p_plants EXCEPTIONS time_out = 1 OTHERS = 2.

MCB_REBUILD_FI CALL FUNCTION 'MCB_REBUILD_FI' EXPORTING vrsio = p_vrsio setup_bw = p_flg_bw bukrs = p_bukrs run_name = hlp_rname stop_date = p_stop_date stop_time = p_stop_time flg_ale = p_flg_ale logsys = p_logsys IMPORTING next_to_process = hlp_belnr TABLES sel_mcinf = p_selinf[] sel_budat = hlp_periods sel_belnr = hlp_sel_docs sel_gjahr = hlp_gjahr EXCEPTIONS time_out = 1 OTHERS = 2.

MCB_REBUILD_MM CALL FUNCTION 'MCB_REBUILD_MM' EXPORTING vrsio = p_vrsio setup_bw = p_flg_bw run_name = hlp_rname stop_date = p_stop_date stop_time = p_stop_time flg_ale = p_flg_ale logsys = p_logsys IMPORTING next_to_process = hlp_mblnr year_next_doc = act_mjahr TABLES sel_mcinf = p_selinf[] sel_mblnr = hlp_sel_docs sel_budat = hlp_periods sel_mjahr = hlp_mjahr sel_werks = p_plants EXCEPTIONS time_out = 1 OTHERS = 2.

MCB_REBUILD_FI CALL FUNCTION 'MCB_REBUILD_FI' EXPORTING vrsio = p_vrsio setup_bw = p_flg_bw bukrs = p_bukrs run_name = hlp_rname stop_date = p_stop_date stop_time = p_stop_time flg_ale = p_flg_ale logsys = p_logsys IMPORTING next_to_process = hlp_belnr year_next_doc = act_gjahr TABLES sel_mcinf = p_selinf[] sel_belnr = hlp_sel_docs sel_budat = hlp_periods sel_gjahr = hlp_gjahr EXCEPTIONS time_out = 1 OTHERS = 2.

MCS_DROP_CREATE_INDEX CALL FUNCTION 'MCS_DROP_CREATE_INDEX' EXPORTING i_mcinf = wa_mcinf-low flag_dc = p_mode IMPORTING e_gstru = di_gstru e_index = di_index EXCEPTIONS no_gstru = 1 no_create_index = 2 OTHERS = 3.



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