SAP Reports / Programs

/BEV2/ED_SFRET_DEMO_PDF SAP ABAP Report - Tax Return Excise Duties (Example)







/BEV2/ED_SFRET_DEMO_PDF 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_DEMO_PDF 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_DEMO_PDF. "Basic submit
SUBMIT /BEV2/ED_SFRET_DEMO_PDF AND RETURN. "Return to original report after report execution complete
SUBMIT /BEV2/ED_SFRET_DEMO_PDF 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: S_MGRP_S = D .
Selection Text: S_MGRP = D .
Selection Text: S_BUDAT = D .
Selection Text: S_BESKZ = D .
Selection Text: P_STPER = D .
Selection Text: P_SLAGER = D .
Selection Text: MEDIA = D .
Selection Text: S_ALKO = Alcoholic Strength
Selection Text: P_LKZUS = List Header Addition
Selection Text: LISTBOX = Output Format
Title: Tax Return Excise Duties (Example)
Text Symbol: 054 = Tax Warehouse: &1
Text Symbol: 055 = Line Index
Text Symbol: 056 = Index
Text Symbol: 057 = Description of Lines
Text Symbol: 058 = Line Desc.
Text Symbol: 059 = Start Date
Text Symbol: 060 = End Date
Text Symbol: 061 = Qty in HL
Text Symbol: 062 = Taxable Quantity in HL
Text Symbol: 063 = Taxable Qty in HL
Text Symbol: 064 = Taxable Qty
Text Symbol: H01 = Tax Return
Text Symbol: H02 = for period
Text Symbol: H03 = CustomsOff
Text Symbol: H04 = TWarehouse:
Text Symbol: H05 = From
Text Symbol: 053 = &1 &2 &3 &4
Text Symbol: 001 = In the stated period, the following was removed from the tax warehouse, removed for
Text Symbol: 002 = consumption, brought into the tax warehouse:
Text Symbol: 003 = Qty in hl
Text Symbol: 004 = Subject to Tax
Text Symbol: 005 = Qty in hl
Text Symbol: 006 = Receipts Subject to Tax Susp.
Text Symbol: 007 = From Returns
Text Symbol: 008 = Other Receipts Sub.to
Text Symbol: 009 = Tax Suspension
Text Symbol: 010 = Receipts with Tax Refund





Text Symbol: 011 = Taxed Issues
Text Symbol: 012 = Issues to Inland Tax Wh.
Text Symbol: 013 = Issues to TWh Abroad
Text Symbol: 014 = Other Issues Abroad
Text Symbol: 015 = Other Issues
Text Symbol: 016 = Total Taxable Quantities
Text Symbol: 017 = Amount in
Text Symbol: 018 = Amount in Words
Text Symbol: 019 = I confirm, to the best of my knowledge, that this information is accurate
Text Symbol: 021 = Location
Text Symbol: 022 = Date
Text Symbol: 023 = Name/Stamp
Text Symbol: 026 = Document Selection
Text Symbol: 027 = Output
Text Symbol: 050 = Tax Return: &1
Text Symbol: 051 = From: &1
Text Symbol: 052 = For Period &1 - &2


INCLUDES used within this REPORT /BEV2/ED_SFRET_DEMO_PDF

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_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_GET_ED_WORKAREA CALL FUNCTION '/BEV2/EDHP_GET_ED_WORKAREA' IMPORTING e_yhvbart = p_vbsart e_yhslager = p_slager EXCEPTIONS db_error = 1 user_abort = 2 no_authority = 3 no_twh_defined = 4 OTHERS = 5.

/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 keine_steuerart = 2 OTHERS = 3.

/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 keine_steuerart = 2 OTHERS = 3.

/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.

/BEV2/ED_REA_SINGLE_SLAGER CALL FUNCTION '/BEV2/ED_REA_SINGLE_SLAGER' EXPORTING i_yhvbart = p_vbsart i_yhslager = p_slager i_datum = s_budat-high IMPORTING o_yh902 = lv_yh902 EXCEPTIONS notfound = 1 OTHERS = 2.

/BEV2/ED_REA_ED_PERIODE CALL FUNCTION '/BEV2/ED_REA_ED_PERIODE' EXPORTING i_yhvbart = p_vbsart i_yhslager = p_slager i_yhstper = p_stper * I_TABNEU = 'X' TABLES o_yh909 = xyh909 EXCEPTIONS notfound = 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.

/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 = p_slager * TABLES * t_yhslager = s_slager EXCEPTIONS notfound = 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 = p_slager i_dialog = lv_dialog i_mode = 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_vbsart i_slager = p_slager IMPORTING out_arc_params = arc_parameter TABLES it_budat = s_budat * it_vbart = * it_slager = EXCEPTIONS budat_false = 1 budat_not_find = 2 not_entry_toaom = 3 OTHERS = 4.

DYNP_VALUES_READ CALL FUNCTION 'DYNP_VALUES_READ' EXPORTING dyname = lv_repid dynumb = sy-dynnr translate_to_upper = con_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 = p_slager 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_vbsart i_stlager = p_slager * display = IMPORTING e_stper = p_stper * TABLES * T_VBSART = * T_STLAGER = EXCEPTIONS noselect = 1 OTHERS = 2.

SPELL_AMOUNT CALL FUNCTION 'SPELL_AMOUNT' EXPORTING amount = lv_wert currency = t001-waers language = sy-langu IMPORTING in_words = lv_summe EXCEPTIONS OTHERS = 4.

/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 = p_slager i_dialog = con_x i_mode = 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_vbsart i_slager = p_slager IMPORTING out_arc_params = arc_parameter TABLES it_budat = s_budat * it_vbart = * it_slager = EXCEPTIONS budat_false = 1 budat_not_find = 2 not_entry_toaom = 3 OTHERS = 4.

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

/BEV2/ED_REA_SINGLE_ED_TEXT CALL FUNCTION '/BEV2/ED_REA_SINGLE_ED_TEXT' EXPORTING i_yhvbart = p_vbsart i_spras = sy-langu IMPORTING o_yhbesch = gv_vbs_text EXCEPTIONS yh901t_not_found = 1 OTHERS = 2.

SPELL_AMOUNT CALL FUNCTION 'SPELL_AMOUNT' EXPORTING amount = lv_summe_wert currency = gv_waers language = sy-langu IMPORTING in_words = lv_spell_amount EXCEPTIONS OTHERS = 4.

/BEV2/ED_SUBST_SMARTTFORM * CALL FUNCTION '/BEV2/ED_SUBST_SMARTTFORM' * EXPORTING * i_form = ssf_name * i_edart = p_vbsart * i_edslager = p_slager * i_datum = s_budat-high * IMPORTING * e_form = ssf_name.

FP_FUNCTION_MODULE_NAME CALL FUNCTION 'FP_FUNCTION_MODULE_NAME' EXPORTING i_name = ssf_name IMPORTING e_funcname = func_mod_name.

FP_JOB_OPEN CALL FUNCTION 'FP_JOB_OPEN' CHANGING ie_outputparams = ls_outputparams EXCEPTIONS cancel = 1 usage_error = 2 system_error = 3 internal_error = 4 OTHERS = 5.

FP_JOB_CLOSE CALL FUNCTION 'FP_JOB_CLOSE' * IMPORTING * e_result = ls_close_job_result EXCEPTIONS usage_error = 1 system_error = 2 internal_error = 3 OTHERS = 4.

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

/BEV2/ED_REA_SINGLE_ED_TEXT CALL FUNCTION '/BEV2/ED_REA_SINGLE_ED_TEXT' EXPORTING i_yhvbart = p_vbsart i_spras = sy-langu IMPORTING o_yhbesch = vbs_text EXCEPTIONS yh901t_not_found = 1 OTHERS = 2.

SD_ADDRESS_GET CALL FUNCTION 'SD_ADDRESS_GET' EXPORTING fif_address_number = t001-adrnr IMPORTING fes_address = xvbadr EXCEPTIONS OTHERS = 1.




/BEV2/ED_CHK_AUTH_REPS CALL FUNCTION '/BEV2/ED_CHK_AUTH_REPS' EXPORTING * I_PROGRAM = i_tcode = '/BEV2/EDL2' 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' " Anzeigen EXCEPTIONS access_denied = 1 tcode_not_assigned = 2 missing_parameter = 3 OTHERS = 4.

/BEV2/ED_REA_ED_EINHEITEN CALL FUNCTION '/BEV2/ED_REA_ED_EINHEITEN' EXPORTING * I_TABNAM = '/BEV2/ED915' i_yhvbart = p_vbsart TABLES i_yh915 = lt_ed915 EXCEPTIONS not_found = 1 OTHERS = 2.

/BEV2/ED_READ_ARCHIVE_ENTRIES CALL FUNCTION '/BEV2/ED_READ_ARCHIVE_ENTRIES' EXPORTING i_vbart = p_vbsart i_slager = p_slager TABLES t_datum = s_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_DEMO_PDF or its description.