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

/BEV2/ED_SFRET_DEBI SAP ABAP Report - Tax Return BEER







/BEV2/ED_SFRET_DEBI 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/ED_SFRET_DEBI 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/ED_SFRET_DEBI. "Basic submit
SUBMIT /BEV2/ED_SFRET_DEBI AND RETURN. "Return to original report after report execution complete
SUBMIT /BEV2/ED_SFRET_DEBI 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: LIST_F = Output Format
Selection Text: P_HERST = Breakdown by Manufacturer
Selection Text: P_SEPART = Separate Individual Tax Return
Selection Text: P_SPALT = Columns (1 - 4)
Selection Text: SORT1 = Material
Selection Text: SORT2 = Degree Plato/Procurement
Selection Text: SORT3 = Degree Plato/Procurement/...
Selection Text: S_ALKO = Degree Plato
Selection Text: S_BUDAT = Posting Date
Selection Text: P_MEDIA = D .
Selection Text: P_STLAG = D .
Selection Text: P_STPER = D .
Selection Text: S_BESKZ = D .
Selection Text: S_MATNR = D .
Title: Tax Return BEER
Text Symbol: F11 = only prepared for forms output
Text Symbol: F10 = Column for self-brewed beer is
Text Symbol: F04 = Always Output in 4 Columns
Text Symbol: F03 = Breakdown by Manufact. Not Permitted
Text Symbol: F02 = List Evaluation by Matl Not Permitted
Text Symbol: F01 = For Output of Forms:
Text Symbol: 041 = SEPARATE TAXATION of Stock Ledger Grp 07000 (With Above Posting Date)
Text Symbol: 040 = Special Feature
Text Symbol: 033 = Col.for Port.of Self-Brewed B.
Text Symbol: 032 = Breakdown by Manufacturer
Text Symbol: 030 = Degr.Plato
Text Symbol: 029 = Beer
Text Symbol: 028 = Untaxed Returned
Text Symbol: 001 = Selection Criteria
Text Symbol: 002 = List Evaluat.
Text Symbol: 003 = Output
Text Symbol: 004 = TAX RETURN
Text Symbol: 005 = TWarehouse:
Text Symbol: 006 = Period:
Text Symbol: 007 = frm:
Text Symbol: 008 = Page:
Text Symbol: 009 = MATERIALS
Text Symbol: 010 = MANUFACT.





Text Symbol: 011 = Foreign Manufacturer
Text Symbol: 012 = TWarehouse Manuf.
Text Symbol: 013 = ED Number
Text Symbol: 014 = Brewery Number
Text Symbol: 015 = Degree Pl
Text Symbol: 016 = BEER
Text Symbol: 017 = Liable for tax
Text Symbol: 018 = Taxed, Returned Beer
Text Symbol: 019 = To Be Taxed
Text Symbol: 020 = Free Beverages for Staff
Text Symbol: 021 = Untaxed to Other
Text Symbol: 022 = TWarehouses in Tax Territ.
Text Symbol: 023 = Sold
Text Symbol: 024 = Sold Untaxed to Other Tax
Text Symbol: 025 = Warehouses in Other Member
Text Symbol: 026 = Countries
Text Symbol: 027 = Other Issues


INCLUDES used within this REPORT /BEV2/ED_SFRET_DEBI

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_DEFAULT_SLAGER CALL FUNCTION '/BEV2/ED_DEFAULT_SLAGER' EXPORTING i_yhvbart = p_vbs IMPORTING o_yhslager = p_stlag * tables * t_yhslager = EXCEPTIONS notfound = 1 OTHERS = 2.

/BEV2/ED_CHK_AUTH_REPS CALL FUNCTION '/BEV2/ED_CHK_AUTH_REPS' EXPORTING * I_PROGRAM = i_tcode = '/BEV2/EDTR' 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_vbs i_slager_p = p_stlag IMPORTING e_vbsart = gv_subst_vbsart e_slager = gv_subst_slager * TABLES * i_vbsart_s = s_vbs * i_slager_s = s_slager EXCEPTIONS OTHERS = 1.

/BEV2/ED_REA_SINGLE_SLAGER CALL FUNCTION '/BEV2/ED_REA_SINGLE_SLAGER' EXPORTING i_yhvbart = p_vbs i_yhslager = p_stlag I_DATUM = s_budat-high IMPORTING o_yh902 = lv_yh902 EXCEPTIONS notfound = 1 OTHERS = 2.

/BEV2/ED_F4_BESKZ_DYNP_READ CALL FUNCTION '/BEV2/ED_F4_BESKZ_DYNP_READ' EXPORTING i_yhvbart = p_vbs i_field_yhvbart = 'P_VBS' 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_vbs i_field_yhvbart = 'P_VBS' i_repid = gv_this_report i_dynnr = sy-dynnr IMPORTING e_yhbeskz = s_beskz-high EXCEPTIONS no_select = 1 OTHERS = 2.

/BEV2/ED_REA_ED_MATNR_BKRS CALL FUNCTION '/BEV2/ED_REA_ED_MATNR_BKRS' TABLES i_mat_tab = gt_mat * I_SEL_MATNR = o_yhmab = gt_yhmab EXCEPTIONS yhmab_not_found = 1 OTHERS = 2.

/BEV2/ED_REA_ED_PERIODE CALL FUNCTION '/BEV2/ED_REA_ED_PERIODE' EXPORTING i_yhvbart = p_vbs i_yhslager = p_stlag i_yhstper = p_stper * I_TABNEU = 'X' TABLES o_yh909 = xyh909 EXCEPTIONS notfound = 1 OTHERS = 2.

/BEV2/ED_REA_TITELZEILEN CALL FUNCTION '/BEV2/ED_REA_TITELZEILEN' EXPORTING i_yhvbart = p_vbs i_yhslager = p_stlag i_spras = sy-langu i_write = z_write i_linesize = z_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_vbs EXCEPTIONS not_found = 1 OTHERS = 2.

/BEV2/ED_REA_SINGLE_ED_WERK CALL FUNCTION '/BEV2/ED_REA_SINGLE_ED_WERK' EXPORTING i_datab = s_budat-low i_datbi = s_budat-high IMPORTING e_snr_bs = gv_bsnr CHANGING i_range_werks = rt_werks * E_YH903_S = i_select_yhvbart = i_vbs i_select_yhslager = i_stlag.

/BEV2/ED_REA_ED_EINHEITEN CALL FUNCTION '/BEV2/ED_REA_ED_EINHEITEN' EXPORTING i_tabnam = '/BEV2/ED915' i_yhvbart = p_vbs TABLES i_yh915 = xyh915 EXCEPTIONS not_found = 1 OTHERS = 2.

/BEV2/ED_CREA_WTAB_FROM_SEL CALL FUNCTION '/BEV2/ED_CREA_WTAB_FROM_SEL' EXPORTING i_flagnew = ' ' i_varname = 'YHSLAGER' TABLES i_seltab = i_stlag o_whtab = whtab EXCEPTIONS OTHERS = 1.

/BEV2/ED_CREA_WTAB_FROM_SEL * CALL FUNCTION '/BEV2/ED_CREA_WTAB_FROM_SEL' * EXPORTING * i_flagnew = ' ' * i_varname = 'WERKS' * TABLES * i_seltab = s_werks * o_whtab = whtab * EXCEPTIONS * OTHERS = 1. "^n_1475815

/BEV2/ED_CREA_WTAB_FROM_SEL CALL FUNCTION '/BEV2/ED_CREA_WTAB_FROM_SEL' EXPORTING i_flagnew = ' ' i_varname = 'MATNR' TABLES i_seltab = s_matnr o_whtab = whtab EXCEPTIONS OTHERS = 1.

/BEV2/ED_CREA_WTAB_FROM_SEL CALL FUNCTION '/BEV2/ED_CREA_WTAB_FROM_SEL' EXPORTING i_flagnew = ' ' i_varname = 'BUDAT' TABLES i_seltab = i_budat o_whtab = whtab EXCEPTIONS OTHERS = 1.

/BEV2/ED_CREA_WTAB_FROM_SEL CALL FUNCTION '/BEV2/ED_CREA_WTAB_FROM_SEL' EXPORTING i_flagnew = ' ' i_varname = 'YHBESKZ' TABLES i_seltab = s_beskz o_whtab = whtab EXCEPTIONS OTHERS = 1.

/BEV2/ED_EDDOC_REA_WTAB CALL FUNCTION '/BEV2/ED_EDDOC_REA_WTAB' EXPORTING i_yhvbart = p_vbs * I_GELOESCHTE = ' ' i_tabneu = 'X' TABLES i_whtab = whtab o_yhmse = xyhmse EXCEPTIONS notfound = 1 OTHERS = 2.

/BEV2/ED_GET_PRINT_PARAMETERS CALL FUNCTION '/BEV2/ED_GET_PRINT_PARAMETERS' EXPORTING i_yhvbart = p_vbs i_uname = sy-uname i_repid = lv_repid i_yhslager = p_stlag i_dialog = lv_dialog i_mode = p_media i_listform = con_l IMPORTING o_pri_params = params o_arc_params = arc_parameter o_fehlflag = z_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_vbs i_slager = p_stlag IMPORTING out_arc_params = arc_parameter TABLES it_budat = i_budat * it_vbart = * it_slager = EXCEPTIONS budat_false = 1 budat_not_find = 2 not_entry_toaom = 3 OTHERS = 4.

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

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

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

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_DES_ANMELDUNG_BI' * importing * cancelled = EXCEPTIONS text_not_found = 1 OTHERS = 2.

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_DES_ANMELDUNG_BI' * importing * cancelled = EXCEPTIONS text_not_found = 1 OTHERS = 2.

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_DES_ANMELDUNG_BI' * importing * cancelled = EXCEPTIONS text_not_found = 1 OTHERS = 2.

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_SAP_SCRIPT_FORMULAR' * importing * cancelled = * EXCEPTIONS * text_not_found = 1 * OTHERS = 2.

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_SPALTEN' * importing * cancelled = EXCEPTIONS text_not_found = 1 OTHERS = 2.

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_HERSTELLER' * importing * cancelled = EXCEPTIONS text_not_found = 1 OTHERS = 2.




DYNP_VALUES_READ CALL FUNCTION 'DYNP_VALUES_READ' EXPORTING dyname = '/BEV2/EDBVBSB3' 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_vbs * DISPLAY = ' ' IMPORTING e_yhslager = p_stlag EXCEPTIONS noselect = 1 OTHERS = 2.

DYNP_VALUES_READ CALL FUNCTION 'DYNP_VALUES_READ' EXPORTING dyname = '/BEV2/EDBVBSB3' 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_STPER CALL FUNCTION '/BEV2/ED_F4_STPER' EXPORTING i_vbsart = p_vbs i_stlager = p_stlag * display = IMPORTING e_stper = p_stper * tables * T_VBSART = * T_STLAGER = EXCEPTIONS noselect = 1 OTHERS = 2.

/BEV2/ED_SUBST_SMARTTFORM CALL FUNCTION '/BEV2/ED_SUBST_SMARTTFORM' EXPORTING i_form = ssf_name i_edart = p_vbs i_edslager = p_stlag i_datum = i_budat-high IMPORTING e_form = ssf_name.

SSF_FUNCTION_MODULE_NAME CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME' EXPORTING formname = ssf_name * VARIANT = ' ' * DIRECT_CALL = ' ' IMPORTING fm_name = func_mod_name EXCEPTIONS OTHERS = 1.

SSF_READ_ERRORS CALL FUNCTION 'SSF_READ_ERRORS' IMPORTING errortab = lt_errortab.

NAST_PROTOCOL_UPDATE CALL FUNCTION 'NAST_PROTOCOL_UPDATE' EXPORTING msg_arbgb = -msgid msg_nr = -msgno msg_ty = -msgty msg_v1 = -msgv1 msg_v2 = -msgv2 msg_v3 = -msgv3 msg_v4 = -msgv4 EXCEPTIONS OTHERS = 1.

/BEV2/ED_GET_PRINT_PARAMETERS CALL FUNCTION '/BEV2/ED_GET_PRINT_PARAMETERS' EXPORTING i_yhvbart = p_vbs i_uname = sy-uname i_repid = lv_repid i_yhslager = p_stlag i_dialog = con_x i_mode = p_media i_listform = con_f IMPORTING o_pri_params = params o_arc_params = arc_parameter o_fehlflag = z_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_f i_listtyp = lv_listtyp is_params = arc_parameter i_vbart = p_vbs i_slager = p_stlag IMPORTING out_arc_params = arc_parameter TABLES it_budat = i_budat * it_vbart = * it_slager = EXCEPTIONS budat_false = 1 budat_not_find = 2 not_entry_toaom = 3 OTHERS = 4.

/BEV2/ED_READ_ARCHIVE_ENTRIES CALL FUNCTION '/BEV2/ED_READ_ARCHIVE_ENTRIES' EXPORTING i_vbart = p_vbs i_slager = p_stlag TABLES t_datum = i_budat.



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