SAP Reports / Programs | Materials Management | Inventory Management | Excise Duty(MM-IM-ED) SAP MM

/BEV2/EDBVBSB1 SAP ABAP Report - Inventory Note Beer







/BEV2/EDBVBSB1 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 /BEV2/EDBVBSB1 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 /BEV2/EDBVBSB1. "Basic submit
SUBMIT /BEV2/EDBVBSB1 AND RETURN. "Return to original report after report execution complete
SUBMIT /BEV2/EDBVBSB1 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: P_ALV = Display with ALV List
Selection Text: P_ANFBST = Display Initial Stock
Selection Text: P_BEST0 = Output of Zero Stock
Selection Text: P_LKZUS = List Header Addition
Selection Text: SORT1 = Total
Selection Text: SORT2 = Total Broken Down
Selection Text: SORT3 = per Degree Plato
Selection Text: SORT4 = per Degree Plato/Procurement
Selection Text: SORT5 = per Degree Plato/Procurement
Selection Text: S_TAG = Day
Selection Text: P_MEDIA = D .
Selection Text: P_MONAT = D .
Selection Text: P_VBSART = D .
Selection Text: S_BESKZ = D .
Selection Text: S_LGORT = D .
Selection Text: S_MATNR = D .
Selection Text: S_SLAGER = D .
Selection Text: S_WERKS = D .
Title: Inventory Note Beer
Text Symbol: 079 = Details
Text Symbol: 078 = Inventory Note Beer
Text Symbol: 077 = Unspecified Termination from Func. Module /BEV2/ED_CAL_STOCK
Text Symbol: 060 = Sett.Unit
Text Symbol: 059 = Settlement Unit
Text Symbol: 058 = Settlement Unit of Excise Duty Tax Type
Text Symbol: 057 = StockSett.
Text Symbol: 056 = Stock in Sett. Unit
Text Symbol: 055 = Stock in Settlement Unit
Text Symbol: 054 = Base Unit
Text Symbol: 053 = Base Unit of Meas.
Text Symbol: 052 = Stock BUoM
Text Symbol: 001 = Material Stocks List Format
Text Symbol: 002 = Sum Tax Warehouse &1:
Text Symbol: 004 = Stage 1: Current Stocks According to Table S032 Year/Month:
Text Symbol: 005 = TWarehouse No.
Text Symbol: 006 = TWarehouse:
Text Symbol: 008 = ED Inventory List for Date
Text Symbol: 009 = END of Output of Current Stocks





Text Symbol: 010 = Opening Stock :
Text Symbol: 011 = Clo. stock:
Text Symbol: 013 = Page:
Text Symbol: 014 = Total
Text Symbol: 015 = Tax Class:
Text Symbol: 016 = Degr.Plato
Text Symbol: 017 = TWarehouse Manufac.:
Text Symbol: 018 = Excise Duty Number:
Text Symbol: 019 = Brewery Number :
Text Symbol: 020 = Material DP E/F/L Inventory in Base Un. in
Text Symbol: 021 = Plnt Storage Location Inventory in Base Un. in
Text Symbol: 022 = Material DP E/F/L Inventory in Base Un. in
Text Symbol: 023 = Material DP E/F/L Inventory in Base Un. in
Text Symbol: 024 = Material DP E/F/L
Text Symbol: 025 = Dgr. Plato:
Text Symbol: 026 = Selection Criteria
Text Symbol: 027 = Output
Text Symbol: 029 = Created On:
Text Symbol: 030 = By:
Text Symbol: 031 = Tax Warehouse
Text Symbol: 032 = Tax Wareh./Degree Plato
Text Symbol: 050 = Stock in Base Unit of Measure
Text Symbol: 051 = Stock in Base UoM


INCLUDES used within this REPORT /BEV2/EDBVBSB1

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:

/BEV2/ED_F4_BESKZ_DYNP_READ CALL FUNCTION '/BEV2/ED_F4_BESKZ_DYNP_READ' EXPORTING i_yhvbart = p_vbsart i_field_yhvbart = 'P_VBSART' i_repid = gv_this_report i_dynnr = sy-dynnr IMPORTING e_yhbeskz = s_beskz-low EXCEPTIONS no_select = 1 OTHERS = 2.

/BEV2/ED_F4_BESKZ_DYNP_READ CALL FUNCTION '/BEV2/ED_F4_BESKZ_DYNP_READ' EXPORTING i_yhvbart = p_vbsart i_field_yhvbart = 'P_VBSART' i_repid = gv_this_report i_dynnr = sy-dynnr IMPORTING e_yhbeskz = s_beskz-high EXCEPTIONS no_select = 1 OTHERS = 2.

/BEV2/ED_CHK_AUTH_REPS CALL FUNCTION '/BEV2/ED_CHK_AUTH_REPS' EXPORTING * I_PROGRAM = i_tcode = '/BEV2/EDIN' i_action = '03' EXCEPTIONS access_denied = 1 tcode_not_assigned = 2 missing_parameter = 3 OTHERS = 4.

/BEV2/EDHP_PREPARE_REP_SUBST CALL FUNCTION '/BEV2/EDHP_PREPARE_REP_SUBST' EXPORTING i_vbsart_p = p_vbsart * I_SLAGER_P = IMPORTING e_vbsart = gv_subst_vbsart e_slager = gv_subst_slager TABLES * i_vbsart_s = s_vbsart i_slager_s = s_slager EXCEPTIONS OTHERS = 1.

/BEV2/ED_CALC_STOCK CALL FUNCTION '/BEV2/ED_CALC_STOCK' EXPORTING i_edart = p_vbsart i_edslager = xyh902-yhslager * i_lose_ware = p_losew * i_yhbehtyp = p_typbeh * i_nilo_ware = p_nlosew i_nullbestand = p_best0 * I_BUKRS = * I_GEFINH = i_zieldat = gv_stichtag i_ae_flag = gv_ae_f i_scheme = con_scheme_performant * I_STARTDAT = * IMPORTING * E_VALID = TABLES it_werks = s_werks it_lgort = s_lgort it_matnr = s_matnr * IT_CHARG = it_alko = s_alko it_beskz = s_beskz * it_matgrp = s_mgrp * it_matgrp_s = s_mgrp_s it_yhslher = s_stlher it_yhvbsnr = s_vbsnr it_yhbraunr = s_braunr * ot_stock = gt_stock ot_bestand = fuba_bestand EXCEPTIONS startdat_nonexist = 1 bookingbottleneck = 2 none_remaining = 3 OTHERS = 4.

/BEV2/ED_REA_SINGLE_MAT_TXT CALL FUNCTION '/BEV2/ED_REA_SINGLE_MAT_TXT' EXPORTING i_matnr = bestand-matnr i_spras = sy-langu IMPORTING o_makt = xmakt EXCEPTIONS makt_not_found = 1 OTHERS = 2.

/BEV2/ED_REA_SINGLE_SAP_LGORT





CALL FUNCTION '/BEV2/ED_REA_SINGLE_SAP_LGORT' EXPORTING i_werks = bestand-werks i_lgort = bestand-lgort IMPORTING i_lgobe = bestand-lgobe EXCEPTIONS t001l_not_found = 1 OTHERS = 2.

/BEV2/ED_REA_SINGLE_ED_FUNC CALL FUNCTION '/BEV2/ED_REA_SINGLE_ED_FUNC' EXPORTING i_yhvbart = p_vbsart IMPORTING e_yh901 = xyh901 EXCEPTIONS yhvbart_not_found = 1 OTHERS = 2. "^n_1494744

/BEV2/ED_REA_STEUERLAGER CALL FUNCTION '/BEV2/ED_REA_STEUERLAGER' * exporting * I_TABNAM = /BEV2/ED903 * I_DATAB = * I_DATBI = TABLES * I_YH903 = i_yh902 = lv_yh902 i_select_yhvbart = lv_yhvbart_tab i_select_yhslager = s_slager EXCEPTIONS not_found = 1 OTHERS = 2.

/BEV2/ED_CHK_BESCHAFFUNG CALL FUNCTION '/BEV2/ED_CHK_BESCHAFFUNG' EXPORTING i_yhvbart = p_vbsart TABLES i_select_beskz = s_beskz EXCEPTIONS not_right = 1.

DYNP_VALUES_READ CALL FUNCTION 'DYNP_VALUES_READ' EXPORTING dyname = mf_hlp_repid dynumb = sy-dynnr TABLES dynpfields = mf_dynpfields EXCEPTIONS invalid_abapworkarea = 01 invalid_dynprofield = 02 invalid_dynproname = 03 invalid_dynpronummer = 04 invalid_request = 05 no_fielddescription = 06 undefind_error = 07.

CONVERSION_EXIT_PERI_INPUT CALL FUNCTION 'CONVERSION_EXIT_PERI_INPUT' EXPORTING input = mf_dynpfields-fieldvalue no_message = 'X' IMPORTING output = mf_monat.

POPUP_TO_SELECT_MONTH CALL FUNCTION 'POPUP_TO_SELECT_MONTH' EXPORTING actual_month = mf_monat IMPORTING selected_month = mf_monat return_code = mf_returncode EXCEPTIONS factory_calendar_not_found = 01 holiday_calendar_not_found = 02 month_not_found = 03.

/BEV2/ED_DEFAULT_VBART CALL FUNCTION '/BEV2/ED_DEFAULT_VBART' IMPORTING o_yhvbart = p_vbsart * tables * T_YHVBART = EXCEPTIONS notfound = 1 OTHERS = 2.

/BEV2/ED_DEFAULT_SLAGER CALL FUNCTION '/BEV2/ED_DEFAULT_SLAGER' EXPORTING i_yhvbart = p_vbsart * importing * o_yhslager = TABLES t_yhslager = s_slager EXCEPTIONS notfound = 1 OTHERS = 2.

/BEV2/ED_GET_LAST_DAY_PREPERI * call function '/BEV2/ED_GET_LAST_DAY_PREPERI' * exporting * i_yhvbart = p_vbsart * i_aktdat = * importing * o_enddat = lv_enddat * exceptions * others = 1.

/BEV2/ED_REA_TITELZEILEN CALL FUNCTION '/BEV2/ED_REA_TITELZEILEN' EXPORTING i_yhvbart = p_vbsart i_yhslager = gv_yhslager i_spras = sy-langu i_write = con_x i_linesize = sy-linsz TABLES xyh922t = xyh922t EXCEPTIONS not_found = 1 OTHERS = 2.

/BEV2/ED_REA_ED_FUNKTIONEN_TXT * CALL FUNCTION '/BEV2/ED_REA_ED_FUNKTIONEN_TXT' ** exporting ** I_TABNAM = /BEV2/ED901T * TABLES * I_YH901T = XYH901T * I_SELECT_YHVBART = I_VBSART * EXCEPTIONS * NOT_FOUND = 1 * OTHERS = 2.

/BEV2/ED_REA_ED_MATERIALIEN * CALL FUNCTION '/BEV2/ED_REA_ED_MATERIALIEN' * TABLES * I_SEL_YHVBART = I_VBSART * I_SEL_MATNR = S_MATNR * O_YHMAA = XYHMAA * EXCEPTIONS * YHMAA_NOT_FOUND = 1 * OTHERS = 2.

/BEV2/ED_REA_ED_MATNR_BKRS * CALL FUNCTION '/BEV2/ED_REA_ED_MATNR_BKRS' * TABLES ** i_sel_matnr = gv_mattab " Alte Logik * I_MAT_TAB = GV_ITAB_VBS_MAT " Neue Logik * O_YHMAB = XYHMAB * EXCEPTIONS * YHMAB_NOT_FOUND = 1 * OTHERS = 2.

/BEV2/ED_REA_ED_MATNR_WERK * CALL FUNCTION '/BEV2/ED_REA_ED_MATNR_WERK' * TABLES ** i_sel_matnr = gv_mattab " Alte Logik * I_MAT_TAB = GV_ITAB_VBS_MAT " Neue Logik * O_YHMAC = XYHMAC * EXCEPTIONS * YHMAC_NOT_FOUND = 1 * OTHERS = 2.

Y_HB1_REA_DAT_STEUERLAGER * CALL FUNCTION 'Y_HB1_REA_DAT_STEUERLAGER' * EXPORTING * I_TABNAM = 'YH903' * dat_v = *p_monat * dat_b = *p_monat * TABLES * I_YH903 = XYH903 * I_YH902 = XYH902 * I_S_LAGER = S_SLAGER " aus Select-Options * I_S_VBSART = I_VBSART " aus Select-Options * EXCEPTIONS * NOT_FOUND = 1 * OTHERS = 2.

/BEV2/ED_REA_ED_EINHEITEN * CALL FUNCTION '/BEV2/ED_REA_ED_EINHEITEN' * EXPORTING * I_TABNAM = 'YH915' * i_yhvbart = p_vbsart * TABLES * I_YH915 = XYH915 * EXCEPTIONS * NOT_FOUND = 1 * OTHERS = 2.

/BEV2/ED_REA_LIS_STATISTIK * CALL FUNCTION '/BEV2/ED_REA_LIS_STATISTIK' ** exporting ** I_BESTDATUM = SY-DATUM * IMPORTING * O_TSTLO = GV_TSTLO_S032 * TABLES ** i_gv_mattab = gv_mattab " Alte Logik * I_MAT_TAB = GV_ITAB_VBS_MAT " Neue logik * I_WERKS_TAB = S_WERKS * I_LGORT_TAB = S_LGORT * O_S032 = XS032 * EXCEPTIONS * NOT_FOUND = 1 * DB_BUSY = 2 * OTHERS = 3.

/BEV2/ED_REA_SINGLE_MAT_TXT CALL FUNCTION '/BEV2/ED_REA_SINGLE_MAT_TXT' EXPORTING i_matnr = bestand-matnr i_spras = sy-langu IMPORTING o_makt = xmakt EXCEPTIONS makt_not_found = 1 OTHERS = 2.

/BEV2/ED_REA_SINGLE_SAP_LGORT CALL FUNCTION '/BEV2/ED_REA_SINGLE_SAP_LGORT' EXPORTING i_werks = bestand-werks i_lgort = bestand-lgort IMPORTING i_lgobe = bestand-lgobe EXCEPTIONS t001l_not_found = 1 OTHERS = 2.




/BEV2/ED_GET_PRINT_PARAMETERS CALL FUNCTION '/BEV2/ED_GET_PRINT_PARAMETERS' EXPORTING i_yhvbart = p_vbsart i_uname = sy-uname i_repid = lv_repid i_yhslager = lv_slager i_dialog = i_dialog i_mode = p_media i_listform = con_l IMPORTING o_pri_params = params o_arc_params = arc_parameter o_fehlflag = fehlflag o_listtyp = lv_listtyp EXCEPTIONS fix_params_not_found = 1 arc_params_not_found = 2 listform_false = 3 not_entry_toaom = 4 printer_not_found = 5 OTHERS = 6.

/BEV2/ED_WRITE_ARCDOC_ID CALL FUNCTION '/BEV2/ED_WRITE_ARCDOC_ID' EXPORTING i_listform = con_l i_listtyp = lv_listtyp is_params = arc_parameter i_vbart = p_vbsart * i_slager = s_slager IMPORTING out_arc_params = arc_parameter TABLES it_budat = r_stichtag * it_vbart = it_slager = s_slager EXCEPTIONS budat_false = 1 budat_not_find = 2 not_entry_toaom = 3 OTHERS = 4.

/BEV2/ED_UMRECHNUNG_RAUMVOL CALL FUNCTION '/BEV2/ED_UMRECHNUNG_RAUMVOL' EXPORTING i_yhvbart = p_vbsart i_material = bestand-matnr i_mengevon = lv_von i_meinvon = bestand-basme i_meinnach = xyh915-yhabrmein i_dezstellen = xyh915-yhnkvol IMPORTING o_mengenach = lv_nach EXCEPTIONS conversion_not_found = 1 different_dimension = 2 division_by_zero = 3 material_not_found = 4 overflow = 5 t006d_entry_missing = 6 t006_entry_missing = 7 type_invalid = 8 units_missing = 9 others_unknown = 10 OTHERS = 11.

/BEV2/ED_UMRECHNUNG_RAUMVOL CALL FUNCTION '/BEV2/ED_UMRECHNUNG_RAUMVOL' EXPORTING i_yhvbart = p_vbsart i_material = bestand-matnr i_mengevon = 1 i_meinvon = bestand-basme i_meinnach = xyh915-yhabrmein IMPORTING o_mengenach = lv_nach EXCEPTIONS conversion_not_found = 1 different_dimension = 2 division_by_zero = 3 material_not_found = 4 overflow = 5 t006d_entry_missing = 6 t006_entry_missing = 7 type_invalid = 8 units_missing = 9 others_unknown = 10 OTHERS = 11.

/BEV2/EDHP_VAR_IN_TEXTZEILE CALL FUNCTION '/BEV2/EDHP_VAR_IN_TEXTZEILE' EXPORTING var1 = gv_var_lag CHANGING textzeile = gv_text.

/BEV2/EDHP_VAR_IN_TEXTZEILE CALL FUNCTION '/BEV2/EDHP_VAR_IN_TEXTZEILE' EXPORTING var1 = gv_var_lag CHANGING textzeile = gv_text.

/BEV2/EDHP_VAR_IN_TEXTZEILE CALL FUNCTION '/BEV2/EDHP_VAR_IN_TEXTZEILE' EXPORTING var1 = gv_var_lag CHANGING textzeile = gv_text.

/BEV2/ED_REA_SINGLE_STEUER_LIS CALL FUNCTION '/BEV2/ED_REA_SINGLE_STEUER_LIS' EXPORTING i_mcinf = 'S466' IMPORTING o_tmc4 = xtmc4 EXCEPTIONS tmc4_not_found = 1 OTHERS = 2.

/BEV2/ED_REA_LIS_MONAT_30 CALL FUNCTION '/BEV2/ED_REA_LIS_MONAT_30' EXPORTING i_s_monat = lv_monat IMPORTING o_tstlo = gv_tstlo_s466 TABLES * i_gv_mattab = gv_mattab " Alte Logik i_mat_tab = gv_itab_vbs_mat " Neue Logik i_werks_tab = s_werks i_lgort_tab = s_lgort i_yh903 = xyh903 o_s466 = xs466 EXCEPTIONS not_found = 1 db_busy = 2 OTHERS = 3.

/BEV2/ED_REA_SINGLE_STEUER_LIS CALL FUNCTION '/BEV2/ED_REA_SINGLE_STEUER_LIS' EXPORTING i_mcinf = 'S465' IMPORTING o_tmc4 = xtmc4 EXCEPTIONS tmc4_not_found = 1 OTHERS = 2.

/BEV2/ED_REA_LIS_TAG_30 CALL FUNCTION '/BEV2/ED_REA_LIS_TAG_30' EXPORTING i_tag_von = z_dat_von i_tag_bis = z_dat_bis IMPORTING o_tstlo = gv_tstlo_s465 TABLES * i_mattab = gv_mattab " Alte Logik i_mat_tab = gv_itab_vbs_mat " Neue Logik i_werks_tab = s_werks i_lgort_tab = s_lgort i_yh903 = xyh903 o_s465 = xs465 EXCEPTIONS s465_not_found = 1 db_busy = 2 OTHERS = 3.

/BEV2/ED_UMRECHNUNG_RAUMVOL CALL FUNCTION '/BEV2/ED_UMRECHNUNG_RAUMVOL' EXPORTING i_yhvbart = p_vbsart i_material = bestand-matnr i_mengevon = lv_von i_meinvon = bestand-basme i_meinnach = xyh915-yhabrmein IMPORTING o_mengenach = lv_nach EXCEPTIONS conversion_not_found = 1 different_dimension = 2 division_by_zero = 3 material_not_found = 4 overflow = 5 t006d_entry_missing = 6 t006_entry_missing = 7 type_invalid = 8 units_missing = 9 others_unknown = 10 OTHERS = 11.

CO_RU_UNIT_CONVERSION CALL FUNCTION 'CO_RU_UNIT_CONVERSION' EXPORTING * BASIS = ' ' * KRUND = ' ' matnr = xs466-matnr meinh = xs466-basme meins = bestand-basme mgame = lv_von * UMREN = 1 * UMREZ = 0 IMPORTING o_mglme = lv_nach EXCEPTIONS conversion_not_found = 1 different_dimension = 2 division_by_zero = 3 material_not_found = 4 overflow = 5 t006d_entry_missing = 6 t006_entry_missing = 7 type_invalid = 8 units_missing = 9 OTHERS = 10.

MATERIAL_UNIT_CONVERSION * call function 'MATERIAL_UNIT_CONVERSION' * exporting * input = lv_von * kzmeinh = ' ' * matnr = xs466-matnr * meinh = xs466-basme * meins = bestand-basme * EXTENDED_CONV = ' ' * TYPE_UMR = ' ' * NO_OUTPUT = ' ' * importing * output = lv_nach * addko = * meins = lv_meins * UMREN = * UMREZ = o_mengenach = lv_nach * exceptions * conversion_not_found = 1 * input_invalid = 2 * material_not_found = 3 * meinh_not_found = 4 * meins_missing = 5 * no_meinh = 6 * output_invalid = 7 * overflow = 8 * others = 9.

/BEV2/EDHP_VAR_IN_TEXTZEILE CALL FUNCTION '/BEV2/EDHP_VAR_IN_TEXTZEILE' EXPORTING var1 = gv_var_lag CHANGING textzeile = gv_text.

POPUP_DISPLAY_TEXT CALL FUNCTION 'POPUP_DISPLAY_TEXT' EXPORTING * LANGUAGE = SY-LANGU popup_title = sy-title * START_COLUMN = 10 * START_ROW = 3 text_object = '/BEV2/ED_AUFLOESUNG_BI' * importing * cancelled = EXCEPTIONS text_not_found = 1 OTHERS = 2.

DYNP_VALUES_READ CALL FUNCTION 'DYNP_VALUES_READ' EXPORTING dyname = '/BEV2/EDBVBSB1' dynumb = sy-dynnr translate_to_upper = 'X' TABLES dynpfields = dynpfields EXCEPTIONS invalid_abapworkarea = 01 invalid_dynprofield = 02 invalid_dynproname = 03 invalid_dynpronummer = 04 invalid_request = 05 no_fielddescription = 06 undefind_error = 07.

/BEV2/ED_F4_SLAGER CALL FUNCTION '/BEV2/ED_F4_SLAGER' EXPORTING i_yhvbart = p_vbsart * DISPLAY = ' ' IMPORTING e_yhslager = s_slager-low EXCEPTIONS noselect = 1 OTHERS = 2.

DYNP_VALUES_READ CALL FUNCTION 'DYNP_VALUES_READ' EXPORTING dyname = '/BEV2/EDBVBSB1' dynumb = sy-dynnr translate_to_upper = 'X' TABLES dynpfields = dynpfields EXCEPTIONS invalid_abapworkarea = 01 invalid_dynprofield = 02 invalid_dynproname = 03 invalid_dynpronummer = 04 invalid_request = 05 no_fielddescription = 06 undefind_error = 07.

/BEV2/ED_F4_SLAGER CALL FUNCTION '/BEV2/ED_F4_SLAGER' EXPORTING i_yhvbart = p_vbsart * DISPLAY = ' ' IMPORTING e_yhslager = s_slager-high EXCEPTIONS noselect = 1 OTHERS = 2.

/BEV2/ED_REA_SINGLE_ED_FUNC CALL FUNCTION '/BEV2/ED_REA_SINGLE_ED_FUNC' EXPORTING i_yhvbart = p_vbsart IMPORTING e_yh901 = is_901 EXCEPTIONS yhvbart_not_found = 1 OTHERS = 2.



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 /BEV2/EDBVBSB1 or its description.