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

/BEV2/EDSPANM1 SAP ABAP Report - Sparkling Wine Tax Filing







/BEV2/EDSPANM1 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/EDSPANM1 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/EDSPANM1. "Basic submit
SUBMIT /BEV2/EDSPANM1 AND RETURN. "Return to original report after report execution complete
SUBMIT /BEV2/EDSPANM1 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_STPER = Tax Period
Selection Text: S_STDAT = Date
Selection Text: S_SLAGER = Tax Warehouse
Selection Text: P_MEDIA = D Output Medium
Selection Text: P_FLSUM = Difference in Bottles
Selection Text: P_BESKZ = Subdivision Procurement
Selection Text: LIST_F = Form
Title: Sparkling Wine Tax Filing
Text Symbol: 033 = Form
Text Symbol: 034 = Subdivision Procurement
Text Symbol: 090 = Error in OPEN FORM
Text Symbol: 092 = Error in END FORM
Text Symbol: 093 = Error in WRITE FORM
Text Symbol: 094 = Error in CLOSE FORM
Text Symbol: K02 = Period :
Text Symbol: K03 = &1 - &2
Text Symbol: K05 = Stor.Loc. of Tax Warehouse:
Text Symbol: K06 = (No Reference to Tax Period)
Text Symbol: L01 = No Movements Relevant to Tax Filing in Period
Text Symbol: S01 = Period Selection
Text Symbol: S03 = Output Format
Text Symbol: S04 = Output Control
Text Symbol: T01 = TaxWarehouse:
Text Symbol: T02 = Tax Filing
Text Symbol: T03 = Page:
Text Symbol: T04 = ( &1 - &2 )
Text Symbol: T23 = Total Tax Amount :
Text Symbol: 032 = -Amount in Letters:
Text Symbol: 001 = Tax abatement, refund, reimbursmnt
Text Symbol: 002 = UoM
Text Symbol: 003 = Taxation
Text Symbol: 004 = (Tax relief) acc. to SW Tax Act
Text Symbol: 005 = Difference
Text Symbol: 006 = Amount
Text Symbol: 007 = (C. 3 ./. C. 4 & 5)
Text Symbol: 008 = (Liter = &1 &2)
Text Symbol: 009 = § 19
Text Symbol: 010 = §3 para.2,§18





Text Symbol: 011 = EUR
Text Symbol: 012 = | Ct
Text Symbol: 013 = 1. Sparling Wine with Alco. Strength frm 6 % Vol. - Tax Rate &1 &2/Liter
Text Symbol: 014 = 2. Sum Tax Amounts from No. 1
Text Symbol: 015 = 3. Sparkling Wine with Alc. Strength Under 6 % vol. - Tax Rate &1 &2/Liter
Text Symbol: 016 = 4. Sum Tax Amounts from No. 3
Text Symbol: 017 = 5. Total (No. 2 and No. 4)
Text Symbol: 018 = For abatement, refund, or reimbursement
Text Symbol: 019 = for payment
Text Symbol: 020 = 0.2 l BT
Text Symbol: 021 = 0.375 l BT
Text Symbol: 022 = 0.75 l BT
Text Symbol: 025 = in piece
Text Symbol: 026 = in liter
Text Symbol: 027 = (Liter X &1 &2)
Text Symbol: 030 = other
Text Symbol: 031 = Contain.


INCLUDES used within this REPORT /BEV2/EDSPANM1

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' " Anzeigen 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 = s_vbsart i_slager_p = s_slager 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_SET_SCRIPTFORM CALL FUNCTION '/BEV2/ED_SET_SCRIPTFORM' EXPORTING i_tdform = p_form i_yhvbart = s_vbsart i_yhslager = s_slager IMPORTING e_form = gv_form EXCEPTIONS OTHERS = 1.

/BEV2/ED_EDDOC_REA_WTAB CALL FUNCTION '/BEV2/ED_EDDOC_REA_WTAB' EXPORTING i_yhvbart = s_vbsart * i_GELOESCHTE = ' ' i_tabneu = 'X' TABLES i_whtab = whtab o_yhmse = xyhmse EXCEPTIONS notfound = 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 = EXCEPTIONS not_found = 1 OTHERS = 2.

/BEV2/ED_GET_DATE_PERI CALL FUNCTION '/BEV2/ED_GET_DATE_PERI' EXPORTING i_yhvbart = s_vbsart " Sind Parameter auf i_yhslager = s_slager " dem Selektionsbild i_yhstper = s_stper IMPORTING e_datab = lv_datum_ab e_datbi = lv_datum_bis EXCEPTIONS notfound = 1 OTHERS = 2.

/BEV2/ED_REA_STEUERSATZ CALL FUNCTION '/BEV2/ED_REA_STEUERSATZ' EXPORTING i_yhvbart = s_vbsart i_yhland = xyh902-yhland i_stdatum = lv_datum_ab TABLES o_yh918 = xyh918 EXCEPTIONS notfound = 1 OTHERS = 2.

/BEV2/EDHP_CPY_PRTOPT_SCRIPT CALL FUNCTION '/BEV2/EDHP_CPY_PRTOPT_SCRIPT' EXPORTING pri_params = params IMPORTING itcpo = options EXCEPTIONS OTHERS = 1.

OPEN_FORM CALL FUNCTION 'OPEN_FORM' EXPORTING * APPLICATION = 'TX' archive_index = arc_index archive_params = arc_parameter device = z_medium dialog = 'X' form = gv_form * LANGUAGE = SY-LANGU options = options * language = * new_archive_params = * result = EXCEPTIONS canceled = 1 device = 2 form = 3 options = 4 unclosed = 5 OTHERS = 6.

/BEV2/ED_REA_TITELZEILEN





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

START_FORM CALL FUNCTION 'START_FORM' EXPORTING * ARCHIVE_INDEX = ' ' form = gv_form * LANGUAGE = ' ' * STARTPAGE = ' ' * PROGRAM = ' ' * importing * language = EXCEPTIONS form = 1 format = 2 unended = 3 unopened = 4 unused = 5 OTHERS = 6.

WRITE_FORM CALL FUNCTION 'WRITE_FORM' EXPORTING element = z_element * FUNCTION = 'SET' * TYPE = 'BODY' window = z_window * importing * pending_lines = EXCEPTIONS element = 1 function = 2 type = 3 unopened = 4 unstarted = 5 window = 6 OTHERS = 7.

END_FORM CALL FUNCTION 'END_FORM' IMPORTING RESULT = RESULT exceptions unopened = 1 OTHERS = 2.

CLOSE_FORM CALL FUNCTION 'CLOSE_FORM' IMPORTING RESULT = RESULT * tables * OTFDATA = exceptions unopened = 1 OTHERS = 2.

/BEV2/EDHP_VAR_IN_TEXTZEILE CALL FUNCTION '/BEV2/EDHP_VAR_IN_TEXTZEILE' EXPORTING var1 = gv_var_dat1 var2 = gv_var_dat2 CHANGING textzeile = gv_text.

/BEV2/ED_DEFAULT_SLAGER CALL FUNCTION '/BEV2/ED_DEFAULT_SLAGER' EXPORTING i_yhvbart = s_vbsart IMPORTING o_yhslager = s_slager * tables * T_YHSLAGER = EXCEPTIONS notfound = 1 OTHERS = 2.

/BEV2/ED_GET_LAST_ED_PERIODE CALL FUNCTION '/BEV2/ED_GET_LAST_ED_PERIODE' EXPORTING i_yhvbart = s_vbsart i_yhslager = s_slager IMPORTING o_yh909 = xyh909 EXCEPTIONS notfound = 1 OTHERS = 2.

/BEV2/ED_GET_PRINT_PARAMETERS CALL FUNCTION '/BEV2/ED_GET_PRINT_PARAMETERS' EXPORTING i_yhvbart = s_vbsart i_uname = sy-uname i_repid = lv_repid i_yhslager = s_slager i_dialog = lv_dialog i_mode = p_media i_listform = lv_listform 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 = lv_listform i_listtyp = lv_listtyp is_params = arc_parameter i_vbart = s_vbsart i_slager = s_slager IMPORTING out_arc_params = arc_parameter TABLES it_budat = r_stdat * it_vbart = * it_slager = EXCEPTIONS budat_false = 1 budat_not_find = 2 not_entry_toaom = 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_PERIODE CALL FUNCTION '/BEV2/ED_REA_ED_PERIODE' EXPORTING i_yhvbart = s_vbsart i_yhslager = s_slager i_yhstper = s_stper * I_TABNEU = 'X' TABLES o_yh909 = xyh909 EXCEPTIONS notfound = 1 OTHERS = 2.

/BEV2/ED_REA_STEUERLAGER CALL FUNCTION '/BEV2/ED_REA_STEUERLAGER' EXPORTING * I_TABNAM = /BEV2/ED903 * I_DATAB = i_datbi = xyh909-datbi TABLES i_yh903 = xyh903 i_yh902 = xyh902 i_select_yhvbart = range_yhvbart i_select_yhslager = range_yhslager EXCEPTIONS not_found = 1 OTHERS = 2.

/BEV2/ED_REA_SINGLE_SAP_LGORT CALL FUNCTION '/BEV2/ED_REA_SINGLE_SAP_LGORT' EXPORTING i_werks = lv_werks i_lgort = lv_lgort IMPORTING i_lgobe = lv_text EXCEPTIONS t001l_not_found = 1 OTHERS = 2.

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

/BEV2/EDHP_VAR_IN_TEXTZEILE CALL FUNCTION '/BEV2/EDHP_VAR_IN_TEXTZEILE' EXPORTING var1 = gv_var_dat1 var2 = gv_var_dat2 CHANGING textzeile = gv_text.

/BEV2/ED_REA_STEUERLAGER CALL FUNCTION '/BEV2/ED_REA_STEUERLAGER' * exporting * I_TABNAM = /BEV2/ED903 * I_DATAB = * I_DATBI = TABLES i_yh903 = xyh903 i_yh902 = xyh902 i_select_yhvbart = range_yhvbart i_select_yhslager = range_yhslager EXCEPTIONS not_found = 1 OTHERS = 2.

/BEV2/ED_REA_ED_PERIODE CALL FUNCTION '/BEV2/ED_REA_ED_PERIODE' EXPORTING i_yhvbart = s_vbsart i_yhslager = s_slager i_yhstper = s_stper i_tabneu = 'X' TABLES o_yh909 = xyh909 EXCEPTIONS notfound = 1 OTHERS = 2.

DDIF_FIELDINFO_GET CALL FUNCTION 'DDIF_FIELDINFO_GET' EXPORTING TABNAME = lv_tabname LANGU = SY-LANGU TABLES DFIES_TAB = lv_fieldtab EXCEPTIONS NOT_FOUND = 1 INTERNAL_ERROR = 2 OTHERS = 3.

SPELL_AMOUNT CALL FUNCTION 'SPELL_AMOUNT' EXPORTING amount = lv_steuersumme * CURRENCY = ' ' * FILLER = ' ' * LANGUAGE = SY-LANGU IMPORTING in_words = lv_spell EXCEPTIONS not_found = 1 too_large = 2 OTHERS = 3.




SPELL_AMOUNT CALL FUNCTION 'SPELL_AMOUNT' EXPORTING amount = lv_steuersumme * CURRENCY = ' ' * FILLER = ' ' * LANGUAGE = SY-LANGU IMPORTING in_words = lv_spell EXCEPTIONS not_found = 1 too_large = 2 OTHERS = 3.

/BEV2/EDHP_VAR_IN_TEXTZEILE CALL FUNCTION '/BEV2/EDHP_VAR_IN_TEXTZEILE' EXPORTING halter1 = '&1' var1 = lv_zahltext halter2 = '&2' var2 = lv_inwaers * HALTER3 = '&3' * VAR3 = * HALTER4 = '&4' * VAR4 = CHANGING textzeile = lv_outtext EXCEPTIONS OTHERS = 1.

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_BESCHAFFUNGSART' * 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.

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

DYNP_VALUES_READ CALL FUNCTION 'DYNP_VALUES_READ' EXPORTING dyname = '/BEV2/EDSPANM1' 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 = s_vbsart i_stlager = s_slager * display = IMPORTING e_stper = s_stper * tables * T_VBSART = * T_STLAGER = EXCEPTIONS noselect = 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_SW_FLASCHENDIFF' * importing * cancelled = EXCEPTIONS text_not_found = 1 OTHERS = 2.

/BEV2/ED_READ_ARCHIVE_ENTRIES CALL FUNCTION '/BEV2/ED_READ_ARCHIVE_ENTRIES' EXPORTING i_vbart = s_vbsart i_slager = s_slager TABLES t_datum = r_stdat.



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