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

WSREO012 SAP ABAP INCLUDE - Routines for Processing Table MARC







WSREO012 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 WSREO012 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 WSREO012. "Basic submit
SUBMIT WSREO012 AND RETURN. "Return to original report after report execution complete
SUBMIT WSREO012 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 MARC


INCLUDES used within this REPORT WSREO012

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:

MARC_ARRAY_READ call function 'MARC_ARRAY_READ' exporting kzrfb = 'X' exceptions others = 4.

MARA_ARRAY_READ call function 'MARA_ARRAY_READ' exporting kzrfb = 'X'.

MARA_SINGLE_READ call function 'MARA_SINGLE_READ' exporting kzrfb = 'X' " TC 06.06.00

ME_CHECK_DOCUMENT_FOR_MATERIAL call function 'ME_CHECK_DOCUMENT_FOR_MATERIAL' exporting matnr = tab_marc-matnr werks = tab_marc-werks 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.

REQUIREMENTS_USED_MATERIAL call function 'REQUIREMENTS_USED_MATERIAL' exporting imatnr = tab_marc-matnr iwerks = tab_marc-werks tables exp_tab = exp_tab.

CO_SF_CHECK_PROD_ORDER call function 'CO_SF_CHECK_PROD_ORDER' exporting matnr = tab_marc-matnr * CHARGE = werk = tab_marc-werks exceptions existing_order = 1 others = 2.

CF_ST_MAT_USAGE_CHECK call function 'CF_ST_MAT_USAGE_CHECK' exporting matnr_imp = tab_marc-matnr werks_imp = tab_marc-werks exceptions no_fhm = 01 order_usage = 02 plan_usage = 03.

GET_MAST call function 'GET_MAST' exporting all = 'X' set = 'X' tables wa = tab_mastb exceptions no_record_found = 4.

GET_PRST call function 'GET_PRST' exporting all = 'X' set = 'X' tables wa = tab_prstb exceptions no_record_found = 4.

GET_KDST call function 'GET_KDST' exporting all = 'X' set = 'X' tables wa = tab_kdstb exceptions no_record_found = 4.

CS_WHERE_USED_MAT * call function 'CS_WHERE_USED_MAT' * exporting * datub = end_date * datuv = start_date * matnr = p_mat * werks = p_wrk * importing * topmat = tab_mc29s * tables * wultb = tab_stpov * equicat = tab_cscequi * kndcat = tab_cscknd * matcat = tab_cscmat * stdcat = tab_cscstd * tplcat = tab_csctpl * exceptions * call_invalid = 01 * material_not_found = 02 * no_where_used_rec_found = 03 * no_where_used_rec_selected = 04 * no_where_used_rec_valid = 05.

GET_MAST * call function 'GET_MAST' * exporting * all = 'X' * set = 'X' * tables * wa = tab_mastb * exceptions * no_record_found = 4.

CP_MA_MATNR_USED_IN_PLAN_CHECK call function 'CP_MA_MATNR_USED_IN_PLAN_CHECK' exporting matnr_imp = tab_marc-matnr tables rcpma_exp = tab_rcpma.

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

MC_PG_MITGLIEDER_GET call function 'MC_PG_MITGLIEDER_GET' exporting e_pgdata = e_prodgrp tables t_pgdata = t_prodgrp exceptions no_members = 04 "QHBS11K127470 pg_not_specified = 08.

MC_PG_VERWENDUNG_GET call function 'MC_PG_VERWENDUNG_GET' exporting e_pgdata = e_prodgrp tables t_pgdata = t_prodgrp exceptions matnr_not_specified = 04 no_verwendung = 08.

MG_BEZUG_MARA_CHECK call function 'MG_BEZUG_MARA_CHECK' exporting matnr = mara-matnr ip_test_on = test_on "Note 1050424 ip_attyp = mara-attyp "Note 1050424 * DIALOG = importing use = material_in_use tables it_var_tab = apre03 "Note 1050424 exceptions others = 0.

MG_BEZUG_MARC_CHECK call function 'MG_BEZUG_MARC_CHECK' exporting matnr = tab_marc-matnr werks = tab_marc-werks * DIALOG = importing use = material_in_use exceptions others = 0.

LOESCHEN_DISPOSITIONSTABELLE





call function 'LOESCHEN_DISPOSITIONSTABELLE' exporting * emdkp = mdkp. " TC 356666

MDVM_REORG_MARC call function 'MDVM_REORG_MARC' exporting i_matnr = del_tab_marc-matnr i_werks = del_tab_marc-werks i_disst = mara-disst changing e_dbcnt = nr_of_del_entries.

MDVMKEY_AUFBAUEN * CALL FUNCTION 'MDVMKEY_AUFBAUEN' * EXPORTING * disst = mara-disst * matnr = del_tab_marc-matnr * werks = del_tab_marc-werks * IMPORTING * mdvmkey = mdvm_key.

CF_ST_MAT_DELETE call function 'CF_ST_MAT_DELETE' exporting flg_test_imp = space mfhm_imp = mfhm_tmp flg_usage_chk_imp = ' ' flg_in_upd_task_imp = ' ' exceptions not_deleted = 01.

PP_FHM_ARCHIVE_OBJECT call function 'PP_FHM_ARCHIVE_OBJECT' exporting archive_handle = arch_handle fhmar = 'M' fhm_rcfky = s_rcfky object_delete_flag = archive_run exceptions class_not_intialized = 1 wrong_access_to_archive = 2 others = 3.

MD_MRP_CHECK_DB_CLIENT call function 'MD_MRP_CHECK_DB_CLIENT' exceptions dibr_not_active = 1 others = 2.

REORGANISATION_MDMA call function 'REORGANISATION_MDMA' exporting i_archive_run = archive_run tables del_tab_marc = del_tab_marc arch_tab_mdma = arch_tab_mdma * EXCEPTIONS * NOT_DELETED = 1 * OTHERS = 2 .

CLFM_DELETE_VARIANT_CLASSIF call function 'CLFM_DELETE_VARIANT_CLASSIF' exporting echt_lauf = 'X' type = 'X' tables cuobtab = inob_table exceptions foreign_lock = 1 system_failure = 2 date_not_allowed = 3 table_not_found = 4 others = 5.

MARC_ARRAY_READ call function 'MARC_ARRAY_READ' exporting kzrfb = 'X' exceptions others = 4.

MARC_READ_WITH_MATNR call function 'MARC_READ_WITH_MATNR' exporting matnr = p_matnr * KZRFB = ' ' kzrfb = 'X' * SPERRMODUS = ' ' * STD_SPERRMODUS = ' ' tables marc_tab = p_tab_marc exceptions not_found = 1 lock_on_marc = 2 lock_system_error = 3 enqueue_mode_changed = 4 others = 5.

MARC_SINGLE_READ call function 'MARC_SINGLE_READ' exporting * KZRFB = ' ' * MAXTZ = 0 matnr = p_matnr werks = p_werks * SPERRMODUS = ' ' * STD_SPERRMODUS = ' ' importing wmarc = p_marc exceptions lock_on_marc = 1 lock_system_error = 2 wrong_call = 3 not_found = 4 others = 5.

WLK1_READ_MULTIPLE_FUNCTIONS call function 'WLK1_READ_MULTIPLE_FUNCTIONS' exporting kzrfb = 'X' " TC 06.06.00

WLK1_READ_MULTIPLE_FUNCTIONS call function 'WLK1_READ_MULTIPLE_FUNCTIONS' exporting kzrfb = 'X' wlk1_single_select = hs_wlk1 function = 'D' " Lesen für einen Artikel tables wlk1_results = lt_wlk1_help exceptions no_rec_found = 1 others = 2.

ASSORTMENT_GET_USERS_OF_ASORT call function 'ASSORTMENT_GET_USERS_OF_ASORT' exporting valid_per_date = sy-datum " note 640416 date_to = max_datum " note 640416 * SELECT_INVALID_ASORT = ' ' tables assortment_users = ht_wrsz assortment_asorts = ht_wrs1 exceptions no_asort_to_select = 1 no_user_found = 2 others = 3.

ME_CHK_SOURCE_OF_SUPPLY_FOR_MA call function 'ME_CHK_SOURCE_OF_SUPPLY_FOR_MA' exporting matnr = tab_marc-matnr * BMATN = werks = tab_marc-werks deletion_date = date * PLANT_INITIAL = ' ' * EXISTENCE_CHECK = ' ' * BWKEY = * MPROF = importing source_flag = source_flag quota_flag = quota_flag ampl_flag = ampl_flag.

MB_ALL_MOVEMENTS_VALUATED call function 'MB_ALL_MOVEMENTS_VALUATED' exporting * I_BUDAT = * I_BUKRS = * I_KOKRS = i_werks = tab_marc-werks * I_OBJNR = * I_PKOSA_AUFNR = * I_BYPASSING_BUFFER = * IMPORTING * E_STATUS = exceptions exception_internal_error = 1 non_valuated_record_found = 2 others = 3 .

CU_CONFIG_ARCHIVE_OBJECT call function 'CU_CONFIG_ARCHIVE_OBJECT' exporting archive_handle = arch_handle object_delete_flag = 'X' instance = h_instance instance_obtab = h_instance_obtab instance_keyfields = h_instance_keyfields exceptions wrong_access_to_archive = 1 unknown_object_table = 2 others = 3.

CU_CONFIG_ARCHIVE_OBJECT call function 'CU_CONFIG_ARCHIVE_OBJECT' exporting archive_handle = arch_handle object_delete_flag = 'X' instance = h_instance instance_obtab = h_instance_obtab instance_keyfields = h_instance_keyfields exceptions wrong_access_to_archive = 1 unknown_object_table = 2 others = 3.

QAMB_MATERIAL_CHECK_QALS call function 'QAMB_MATERIAL_CHECK_QALS' exporting i_material = tab_marc-matnr i_werk = tab_marc-werks importing e_used = material_in_use.

HU_HELP_SELSCREEN call function 'HU_HELP_SELSCREEN' exporting if_selection = space importing et_vepo = lt_vepo tables ct_seloptions = ct_seloptions 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 WSREO012 or its description.