SAP Reports / Programs | Logistics - General | Logistics Basic Data | Material Master(LO-MD-MM) SAP LO

WSREO014 SAP ABAP INCLUDE - Routines for Processing Table MBEW







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


Text pool values


Title: Routines for Processing Table MBEW


INCLUDES used within this REPORT WSREO014

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:

MBEW_ARRAY_READ call function 'MBEW_ARRAY_READ' exporting kzrfb = 'X' exceptions others = 1.

MBEW_EXTEND *CALL FUNCTION 'MBEW_EXTEND' " TC 18.10.99

MBEW_EXTEND call function 'MBEW_EXTEND' exporting kzrfb = 'X' tables mbew_tab = h_mbew.

MBEW_EXTEND call function 'MBEW_EXTEND' exporting kzrfb = 'X' tables mbew_tab = h_mbew.

CK_F_COSTING_EXISTENCE call function 'CK_F_COSTING_EXISTENCE' exporting * KALNR = DEL_TAB_MBEW-KALNR kalnr = tab_mbew-kalnr * KALN1 = DEL_TAB_MBEW-KALN1 kaln1 = tab_mbew-kaln1 exceptions costing_existent = 1 others = 2.

CKML_F_CKML1_REORG_CHECK call function 'CKML_F_CKML1_REORG_CHECK' exporting kaln1 = tab_mbew-kaln1 exceptions abrechnungswerte_vorhanden = 1 others = 2.

CKML_F_CKML1_REORG_CHECK * call function 'CKML_F_CKML1_REORG_CHECK' "HB 19.03.96

CKML_F_CKML1_REORG_DELETE * call function 'CKML_F_CKML1_REORG_DELETE' * exceptions * others = 1.

CKML_F_CKML1_REORG_CHECK call function 'CKML_F_CKML1_REORG_CHECK' exporting kaln1 = del_tab_mbew-kaln1 exceptions abrechnungswerte_vorhanden = 1 others = 2.

CKML_F_CKML1_REORG_DELETE call function 'CKML_F_CKML1_REORG_DELETE' exporting "OSS 122346 i_in_update_task = space "OSS 122346 tables arch_stat = lt_arch_stat_help "note1034343 exceptions others = 1.

DELETE_MATERIAL_INFLATION_DATA call function 'DELETE_MATERIAL_INFLATION_DATA' tables t_mbew = del_tab_mbew exceptions j_1ainfmbw_delete_error = 1 others = 2.

FIND_REF_PLANT call function 'FIND_REF_PLANT' exporting p_werks = del_tab_marc_calc-werks importing p_vlgw1 = lv_vlgw1 p_vlgw2 = lv_vlgw2 p_kzrefplant = lv_kzrefplant exceptions plant_not_found = 1 ref_plant_not_defined = 2 dist_chain_not_found = 3 others = 4.

ME_CHECK_DOCUMENT_FOR_MATERIAL call function 'ME_CHECK_DOCUMENT_FOR_MATERIAL' exporting matnr = tab_mbew-matnr werks = h_werks bwkey = tab_mbew-bwkey bwart = tab_mbew-bwtar existence_check = 'X' importing contract_flag = me_contract delplan_flag = me_delplan info_flag = me_info req_flag = me_request po_flag = me_purchase_order rfq_flag = me_rfq tables xekdoc = bme_einkauf.

L_MAT_REORG_CHECK_WM call function 'L_MAT_REORG_CHECK_WM' exporting i_matnr = tab_mbew-matnr i_werks = werks-low * I_LGORT = * I_LGNUM = * I_CHARG = importing e_return = result_of_check exceptions intolerable_parameter = 1 no_t320_entry = 2 others = 3.

CO_SF_CHECK_PROD_ORDER call function 'CO_SF_CHECK_PROD_ORDER' exporting matnr = tab_mbew-matnr * CHARGE = * WERK = werk = werks-low " TCO 4.6B

MBEW_ARRAY_READ call function 'MBEW_ARRAY_READ' exporting kzrfb = 'X' exceptions others = 1.

MBEW_READ_WITH_MATNR call function 'MBEW_READ_WITH_MATNR' exporting matnr = p_matnr * KZRFB = ' ' kzrfb = 'X' * SPERRMODUS = ' ' * STD_SPERRMODUS = ' ' tables mbew_tab = p_tab_mbew exceptions not_found = 1 lock_on_mbew = 2 lock_system_error = 3 enqueue_mode_changed = 4 others = 5.

MBEW_READ_WITH_BWKEY call function 'MBEW_READ_WITH_BWKEY' exporting matnr = p_matnr bwkey = p_bwkey tables mbew_tab = p_mbew exceptions others = 0.

CKML_F_KALNR_REORG_MAT





call function 'CKML_F_KALNR_REORG_MAT' importing entries_deleted = entries_deleted tables it_mbew = del_tab_mbew arch_stat = arch_stat_help. "note1034343



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