SAP Reports / Programs | Materials Management | Consumption-Based Planning (See Also PP-MRP)(MM-CBP) SAP MM

WFCS_WRFT_INIT_F01 SAP ABAP INCLUDE - WFCSWRFTINITF01







WFCS_WRFT_INIT_F01 is a standard ABAP INCLUDE 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 WFCS_WRFT_INIT_F01 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 WFCS_WRFT_INIT_F01. "Basic submit
SUBMIT WFCS_WRFT_INIT_F01 AND RETURN. "Return to original report after report execution complete
SUBMIT WFCS_WRFT_INIT_F01 VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


INCLUDES used within this REPORT WFCS_WRFT_INIT_F01

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:

WFCS_WLOAD_GET_FOR_WERKS_M CALL FUNCTION 'WFCS_WLOAD_GET_FOR_WERKS_M' EXPORTING pi_werks = pi_werks * PI_CHECK_DISMM = 'X' * PI_GET_RUNTIME = ' ' TABLES * TI_SEL_WERKS = ti_sel_matnr = ti_sel_matnr ti_sel_date = ti_sel_prdat ti_sel_perkz = ti_sel_perkz ti_sel_periv = ti_sel_periv ti_sel_prmod = ti_sel_prmod ti_sel_matkl = ti_sel_matkl te_pre01 = lt_pre01 *CHANGING * PE_RUNTIME_INFO = EXCEPTIONS no_key = 1 OTHERS = 2.

WFCS_PROGRESS_INDICATOR CALL FUNCTION 'WFCS_PROGRESS_INDICATOR' EXPORTING pi_init = wfcst_ctrue pi_increment = 1 pi_max = wa_art_num pi_message = wa_message pi_message_no = 2.

WFCS_WRFT_POST CALL FUNCTION 'WFCS_WRFT_POST' TABLES ti_wrft_insert = lt_wrft EXCEPTIONS update_error = 1 delete_error = 2 insert_error = 3 duplicate_keys_warning = 4 OTHERS = 5 .

WFCS_WRFT_POST CALL FUNCTION 'WFCS_WRFT_POST' TABLES ti_wrft_delete = lt_wrft ti_wrft_insert = lt_wrft EXCEPTIONS update_error = 1 delete_error = 2 insert_error = 3 duplicate_keys_warning = 4 OTHERS = 5.

WFCS_PROGRESS_INDICATOR CALL FUNCTION 'WFCS_PROGRESS_INDICATOR' EXPORTING pi_act = wa_art_num pi_msgv1 = wa_message-message_v1 pi_msgv2 = wa_message-message_v2.

DDIF_NAMETAB_GET CALL FUNCTION 'DDIF_NAMETAB_GET' EXPORTING tabname = 'WFCS_WRFT_INIT_FCST_V' TABLES dfies_tab = lt_dfies EXCEPTIONS not_found = 1 OTHERS = 2.

DDIF_NAMETAB_GET CALL FUNCTION 'DDIF_NAMETAB_GET' EXPORTING tabname = 'WFCS_WRFT_INIT_MARC_V' TABLES dfies_tab = lt_dfies EXCEPTIONS not_found = 1 OTHERS = 2.

DDIF_NAMETAB_GET CALL FUNCTION 'DDIF_NAMETAB_GET' EXPORTING tabname = 'WFCS_WRFT_INIT_MARA_V' TABLES dfies_tab = lt_dfies EXCEPTIONS not_found = 1 OTHERS = 2.

WFCS_TIMSER_BUFFER_GET_M_ABS CALL FUNCTION 'WFCS_TIMSER_BUFFER_GET_M_ABS' EXPORTING pi_dat_from = pi_pl_date pi_peran = 1 pi_offset = 0 * PI_DIRECTION = 'H' pi_perkz = wa_timser_prefetch-perkz pi_periv = wa_timser_prefetch-periv pi_fabkl = wa_timser_prefetch-fabkl * PI_REFRESH = ' ' CHANGING pe_timebucket = wa_timebucket EXCEPTIONS error_buffer_get = 1 periv_invalid = 2 perkz_invalid = 3 date_invalid = 4 fabkl_invalid = 5 unspecified_error = 6 OTHERS = 7.

WFCS_TIMSER_BUFFER_GET_M_ABS CALL FUNCTION 'WFCS_TIMSER_BUFFER_GET_M_ABS' EXPORTING pi_dat_from = pi_pl_date pi_peran = 1 pi_offset = wa_offset * PI_DIRECTION = 'H' pi_perkz = wa_timser_prefetch-perkz pi_periv = wa_timser_prefetch-periv pi_fabkl = wa_timser_prefetch-fabkl * PI_REFRESH = ' ' CHANGING pe_timebucket = wa_timebucket EXCEPTIONS error_buffer_get = 1 periv_invalid = 2 perkz_invalid = 3 date_invalid = 4 fabkl_invalid = 5 unspecified_error = 6 OTHERS = 7.

WFCS_TIMSER_BUFFER_CREATE_M CALL FUNCTION 'WFCS_TIMSER_BUFFER_CREATE_M' EXPORTING pi_dat_from = wa_timser_prefetch-dat_from pi_dat_to = wa_timser_prefetch-dat_to pi_perkz = wa_timser_prefetch-perkz pi_periv = wa_timser_prefetch-periv pi_fabkl = wa_fabkl * PI_ADD_BUFFER_INTERVAL = 'X' pi_timser_buffer_check = wfcst_ctrue EXCEPTIONS periv_invalid = 1 perkz_invalid = 2 date_invalid = 3 fabkl_invalid = 4 unspecified_error = 5 OTHERS = 6 .

WFCS_TIMSER_BUFFER_GET_M_ABS CALL FUNCTION 'WFCS_TIMSER_BUFFER_GET_M_ABS' EXPORTING pi_dat_from = pi_pl_date pi_peran = 1 pi_offset = wa_offset pi_direction = wfcst_chistory pi_perkz = wa_timser_prefetch-perkz pi_periv = wa_timser_prefetch-periv pi_fabkl = wa_timser_prefetch-fabkl CHANGING pe_timebucket = wa_timebucket EXCEPTIONS error_buffer_get = 1 periv_invalid = 2 perkz_invalid = 3 date_invalid = 4 fabkl_invalid = 5 unspecified_error = 6 OTHERS = 7.

WFCS_TIMSER_BUFFER_GET_M CALL FUNCTION 'WFCS_TIMSER_BUFFER_GET_M' EXPORTING pi_dat_from = pi_pl_date pi_perkz = wa_timser_prefetch-perkz pi_periv = wa_timser_prefetch-periv pi_fabkl = wa_timser_prefetch-fabkl CHANGING pe_timebucket = wa_timebucket EXCEPTIONS error_buffer_get = 1 periv_invalid = 2 perkz_invalid = 3 date_invalid = 4 fabkl_invalid = 5 unspecified_error = 6 OTHERS = 7.

WFCS_TIMSER_BUFFER_GET_M_ABS CALL FUNCTION 'WFCS_TIMSER_BUFFER_GET_M_ABS' EXPORTING pi_dat_from = pi_pl_date pi_peran = 1 pi_offset = wa_offset pi_direction = wfcst_chistory pi_perkz = wa_timser_prefetch-perkz pi_periv = wa_timser_prefetch-periv pi_fabkl = wa_timser_prefetch-fabkl CHANGING pe_timebucket = wa_timebucket EXCEPTIONS error_buffer_get = 1 periv_invalid = 2 perkz_invalid = 3 date_invalid = 4 fabkl_invalid = 5 unspecified_error = 6 OTHERS = 7.

WFCS_TIMSER_BUFFER_GET_M CALL FUNCTION 'WFCS_TIMSER_BUFFER_GET_M' EXPORTING pi_dat_from = pi_time_interval-dat_from pi_dat_to = pi_time_interval-dat_to pi_perkz = s_period_props-perkz pi_periv = s_period_props-periv pi_fabkl = s_period_props-fabkl * PI_REFRESH = ' ' TABLES te_timebucket = st_timebucket EXCEPTIONS error_buffer_get = 1 periv_invalid = 2 perkz_invalid = 3 date_invalid = 4 fabkl_invalid = 5 unspecified_error = 6 OTHERS = 7 .

WFCS_WRFT_GET_M CALL FUNCTION 'WFCS_WRFT_GET_M' TABLES ti_wrft_key_3 = ti_wrft_key_3 te_wrft = lt_wrft EXCEPTIONS not_found = 1 no_selection = 2 OTHERS = 3.

WFCS_TIMSER_BUFFER_CREATE_M CALL FUNCTION 'WFCS_TIMSER_BUFFER_CREATE_M' EXPORTING pi_dat_from = wa_timser_prefetch-dat_from pi_dat_to = wa_timser_prefetch-dat_to pi_perkz = wa_timser_prefetch-perkz pi_periv = wa_timser_prefetch-periv pi_fabkl = wa_fabkl * PI_ADD_BUFFER_INTERVAL = 'X' pi_timser_buffer_check = wfcst_ctrue EXCEPTIONS periv_invalid = 1 perkz_invalid = 2 date_invalid = 3 fabkl_invalid = 4 unspecified_error = 5 OTHERS = 6 .

WFCS_TIMSER_BUFFER_GET_M_ABS CALL FUNCTION 'WFCS_TIMSER_BUFFER_GET_M_ABS' EXPORTING pi_dat_from = pi_pl_date pi_peran = -peran pi_perkz = -perkz pi_periv = -periv pi_fabkl = wa_fabkl TABLES te_timebucket = lt_timebucket EXCEPTIONS error_buffer_get = 1 periv_invalid = 2 perkz_invalid = 3 date_invalid = 4 fabkl_invalid = 5 unspecified_error = 6 OTHERS = 7 .

ENQUEUE_EMRP_RUN





CALL FUNCTION 'ENQUEUE_EMRP_RUN' EXPORTING * MODE_EMRP_RUN = 'E' * MANDT = SY-MANDT mdobj = 'P' * PLSCN = werks = pi_werks * X_MDOBJ = ' ' * X_PLSCN = ' ' * X_WERKS = ' ' * _SCOPE = '2' * _WAIT = ' ' * _COLLECT = ' ' EXCEPTIONS foreign_lock = 1 system_failure = 2 OTHERS = 3.

DEQUEUE_EMRP_RUN CALL FUNCTION 'DEQUEUE_EMRP_RUN' EXPORTING * MODE_EMRP_RUN = 'E' * MANDT = SY-MANDT mdobj = 'P' * PLSCN = werks = pi_werks.



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