RWVLB007 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 RWVLB007 into the relevant SAP transactions such as SE38 or SE80
Below is a list of transaction codes which are relevant to this SAP report
WLB3 - Autom. opt. PO-based load building
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.
Selection Text: P_AUTOPO = Create PO automatically
Selection Text: P_BBTYP = Plant category
Selection Text: P_BOPNR = Restriction profile
Selection Text: P_CHKSA = Include variants of gen. mat.
Selection Text: P_LTSSPL = New PO per vendor sub-range
Selection Text: P_MINUT = Activate log for LB run
Selection Text: P_NOFREI = Include released POs
Selection Text: P_RELIF = Use regular vendor only
Selection Text: P_STDQTY = Round to standard order qty
Selection Text: P_SUBMI = Collective number
Selection Text: S_EKGRP = Purchasing group
Selection Text: S_EKORG = Purchasing organization
Selection Text: S_WERKS = Plant
Title: Automatic Load Building
Text Symbol: 900 = Get purchase order info records
Text Symbol: A10 = Control parameters
Text Symbol: T36 = No messages in log
Text Symbol: T37 = Messages
Text Symbol: T38 = Vendor VSR No Plnt Restr.pr Run Date Only Sim VSR Split Entry Results list
Text Symbol: T39 = Log of automatic load building run
INCLUDE MWVLBT07.
INCLUDE FM06ICOM.
No SAP DATABASE tables are accessed within this REPORT code!
WLB_DEL_OLD_SIM_LOGGING CALL FUNCTION 'WLB_DEL_OLD_SIM_LOGGING' EXPORTING i_s_twbo0 = g_s_twbo0 EXCEPTIONS OTHERS = 99.
RS_REFRESH_FROM_SELECTOPTIONS CALL FUNCTION 'RS_REFRESH_FROM_SELECTOPTIONS' EXPORTING curr_report = program TABLES selection_table = param_tab EXCEPTIONS not_found = 1 no_report = 2 OTHERS = 3.
DEQUEUE_ALL CALL FUNCTION 'DEQUEUE_ALL' EXCEPTIONS OTHERS = 1.
WLB_DEL_OLD_SIM_LOGGING *$ CALL FUNCTION 'WLB_DEL_OLD_SIM_LOGGING' *$ EXPORTING *$ i_s_twbo0 = g_s_twbo0 *$ EXCEPTIONS *$ OTHERS = 99.
WRITE_MESSAGE_NEW CALL FUNCTION 'WRITE_MESSAGE_NEW' EXPORTING msgid = l_i_wbom2-msgid msgno = l_i_wbom2-msgno msgty = l_i_wbom2-msgty msgv1 = l_i_wbom2-msgv1 msgv2 = l_i_wbom2-msgv2 msgv3 = l_i_wbom2-msgv3 msgv4 = l_i_wbom2-msgv4 msgv5 = ' ' IMPORTING * error = i_error messg = l_message * msgln = i_length EXCEPTIONS error_message = 4.
WRITE_MESSAGE_NEW CALL FUNCTION 'WRITE_MESSAGE_NEW' EXPORTING msgid = l_i_wbom2-msgid msgno = l_i_wbom2-msgno msgty = l_i_wbom2-msgty msgv1 = l_i_wbom2-msgv1 msgv2 = l_i_wbom2-msgv2 msgv3 = l_i_wbom2-msgv3 msgv4 = l_i_wbom2-msgv4 msgv5 = ' ' IMPORTING * error = i_error messg = l_message * msgln = i_length EXCEPTIONS error_message = 4.
MD_CALC_RESTRICTIONS * CALL FUNCTION 'MD_CALC_RESTRICTIONS' * EXPORTING * i_bopnr = g_wlb0003-bopnr * i_kzrefresh = 'X' * IMPORTING * e_res_meins = l_resme * EXCEPTIONS * restriction_not_found = 1 * OTHERS = 3.
MD_CALC_RESTRICTIONS * CALL FUNCTION 'MD_CALC_RESTRICTIONS' * EXPORTING * i_bopnr = g_wlb0003-bopnr * i_kzrefresh = 'X' * IMPORTING * e_res_meins = l_resme * EXCEPTIONS * restriction_not_found = 1 * OTHERS = 3.
MD_CALC_RESTRICTIONS CALL FUNCTION 'MD_CALC_RESTRICTIONS' EXPORTING i_bopnr = g_wlb0003-bopnr i_kzrefresh = 'X' IMPORTING e_res_meins = l_resme EXCEPTIONS restriction_not_found = 1 OTHERS = 3.
MD_CALC_RESTRICTIONS CALL FUNCTION 'MD_CALC_RESTRICTIONS' EXPORTING i_bopnr = g_wlb0003-bopnr i_kzrefresh = 'X' IMPORTING e_res_meins = l_resme EXCEPTIONS restriction_not_found = 1 OTHERS = 3.
MATERIAL_READ CALL FUNCTION 'MATERIAL_READ' EXPORTING schluessel = l_mtcom IMPORTING matdaten = mara return = l_mtcor TABLES seqmat01 = l_t_void EXCEPTIONS account_not_found = 1 batch_not_found = 2 forecast_not_found = 3 lock_on_account = 4 lock_on_material = 5 lock_on_plant = 6 lock_on_sales = 7 lock_on_sloc = 8 lock_on_batch = 9 lock_system_error = 10 material_not_found = 11 plant_not_found = 12 sales_not_found = 13 sloc_not_found = 14 slocnumber_not_found = 15 sloctype_not_found = 16 text_not_found = 17 unit_not_found = 18 invalid_mch1_matnr = 19 invalid_mtcom = 20 waart_error = 21 sa_material = 22 wv_material = 23 error_message = 25 OTHERS = 24.
WLB_AUTOLB_1_SELECT_RECS CALL FUNCTION 'WLB_AUTOLB_1_SELECT_RECS' EXPORTING i_params = g_wlb0003 i_t_vwlts = l_t_vwlts TABLES * i_t_autolb = expanded_sltab i_t_autolb = sltab e_t_autolb = dbtab ch_t_wbom1 = g_t_wbom1_save ch_t_wbom2 = g_t_wbom2_save i_t_matnr = r_matnr i_t_matkl = r_matkl i_t_idnlf = r_idnlf i_t_ltsnr = r_ltsnr i_t_ekorg = r_ekorg i_t_ekgrp = r_ekgrp EXCEPTIONS input_table_was_empty = 1 OTHERS = 2.
WLB_AUTOLB_2_UPDATE_RECS CALL FUNCTION 'WLB_AUTOLB_2_UPDATE_RECS' EXPORTING i_params = g_wlb0003 i_t_vwlts = l_t_vwlts TABLES i_t_autolb = dbtab i_t_items_all = sltab e_t_autolb = lbtab ch_t_wbom1 = g_t_wbom1_save ch_t_wbom2 = g_t_wbom2_save i_matnr = if_matnr EXCEPTIONS input_table_was_empty = 1 OTHERS = 2.
WLB_AUTOLB_3_BUILD_RECS CALL FUNCTION 'WLB_AUTOLB_3_BUILD_RECS' EXPORTING i_params = g_wlb0003 i_t_vwlts = l_t_vwlts TABLES i_t_autolb = lbtab i_t_items_all = sltab e_t_autolb = prtab ch_t_wbom1 = g_t_wbom1_save ch_t_wbom2 = g_t_wbom2_save EXCEPTIONS input_table_was_empty = 1 OTHERS = 2.
MARD_ARRAY_GEN_READ_PLANTS CALL FUNCTION 'MARD_ARRAY_GEN_READ_PLANTS' EXPORTING kzrfb = 'X' EXCEPTIONS not_found = 1 OTHERS = 2.
WLB_QOO_MDBS_BUF CALL FUNCTION 'WLB_QOO_MDBS_BUF' EXPORTING i_kzrfb = 'X' EXCEPTIONS no_input = 1 no_output = 2 OTHERS = 3.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.