SAP ENTER_TAXES Function Module for
ENTER_TAXES is a standard enter taxes SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.
See here to view full function module documentation and code listing for enter taxes FM, simply by entering the name ENTER_TAXES into the relevant SAP transaction such as SE37 or SE38.
Function Group: TAX1
Program Name: SAPLTAX1
Main Program: SAPLTAX1
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function ENTER_TAXES pattern details
In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.CALL FUNCTION 'ENTER_TAXES'".
EXPORTING
* I_AKTYP = ' ' "
I_BKPF = "Company code
* I_TITLE = ' ' "Title for entry screen
* I_XDISP = ' ' "X = display only
* I_XFWBT = ' ' "X = display FC amounts
* I_XPROP = ' ' "X = no default values(tax basis)
* I_FUNCL = "Function class
* I_COMPLETE = "Only complete documents can be parked
IMPORTING
E_FCODE = "Returned F-Key
E_ITXDAT = "Total of entered taxes
E_XMWST = "Calculate field taxes
E_XSTVR = "Taxes were changed
E_XUSVR = "US control on detail level
E_KDIFF = "Exchange Rate Difference for Tax Postings
E_TXKRS = "
E_VATDATE = "Tax Reporting Date
TABLES
T_BSEG = "Table of line items
EXCEPTIONS
USER_EXIT = 1
IMPORTING Parameters details for ENTER_TAXES
I_AKTYP -
Data type: T020-AKTYPDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_BKPF - Company code
Data type: BKPFOptional: No
Call by Reference: No ( called with pass by value option)
I_TITLE - Title for entry screen
Data type: RTAX1-TITLEDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_XDISP - X = display only
Data type: BKPF-XMWSTDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_XFWBT - X = display FC amounts
Data type: BKPF-XMWSTDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_XPROP - X = no default values(tax basis)
Data type: BKPF-XMWSTDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_FUNCL - Function class
Data type: FUNCL_020Optional: Yes
Call by Reference: No ( called with pass by value option)
I_COMPLETE - Only complete documents can be parked
Data type: XCMPL_FOPTOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for ENTER_TAXES
E_FCODE - Returned F-Key
Data type: RF05A-PFKAGOptional: No
Call by Reference: No ( called with pass by value option)
E_ITXDAT - Total of entered taxes
Data type: ITXDATOptional: No
Call by Reference: No ( called with pass by value option)
E_XMWST - Calculate field taxes
Data type: BKPF-XMWSTOptional: No
Call by Reference: No ( called with pass by value option)
E_XSTVR - Taxes were changed
Data type: BKPF-XMWSTOptional: No
Call by Reference: No ( called with pass by value option)
E_XUSVR - US control on detail level
Data type: BKPF-XUSVROptional: No
Call by Reference: No ( called with pass by value option)
E_KDIFF - Exchange Rate Difference for Tax Postings
Data type: RTAX1-KDIFFOptional: No
Call by Reference: No ( called with pass by value option)
E_TXKRS -
Data type: BKPF-TXKRSOptional: No
Call by Reference: No ( called with pass by value option)
E_VATDATE - Tax Reporting Date
Data type: BKPF-VATDATEOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for ENTER_TAXES
T_BSEG - Table of line items
Data type: BSEGOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
USER_EXIT - Processing was ended with 'cancel'
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for ENTER_TAXES Function Module
The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.| DATA: | ||||
| lt_t_bseg | TYPE STANDARD TABLE OF BSEG, " | |||
| lv_e_fcode | TYPE RF05A-PFKAG, " | |||
| lv_i_aktyp | TYPE T020-AKTYP, " SPACE | |||
| lv_user_exit | TYPE T020, " | |||
| lv_i_bkpf | TYPE BKPF, " | |||
| lv_e_itxdat | TYPE ITXDAT, " | |||
| lv_e_xmwst | TYPE BKPF-XMWST, " | |||
| lv_i_title | TYPE RTAX1-TITLE, " SPACE | |||
| lv_e_xstvr | TYPE BKPF-XMWST, " | |||
| lv_i_xdisp | TYPE BKPF-XMWST, " SPACE | |||
| lv_e_xusvr | TYPE BKPF-XUSVR, " | |||
| lv_i_xfwbt | TYPE BKPF-XMWST, " SPACE | |||
| lv_e_kdiff | TYPE RTAX1-KDIFF, " | |||
| lv_i_xprop | TYPE BKPF-XMWST, " SPACE | |||
| lv_e_txkrs | TYPE BKPF-TXKRS, " | |||
| lv_i_funcl | TYPE FUNCL_020, " | |||
| lv_e_vatdate | TYPE BKPF-VATDATE, " | |||
| lv_i_complete | TYPE XCMPL_FOPT. " |
|   CALL FUNCTION 'ENTER_TAXES' " |
| EXPORTING | ||
| I_AKTYP | = lv_i_aktyp | |
| I_BKPF | = lv_i_bkpf | |
| I_TITLE | = lv_i_title | |
| I_XDISP | = lv_i_xdisp | |
| I_XFWBT | = lv_i_xfwbt | |
| I_XPROP | = lv_i_xprop | |
| I_FUNCL | = lv_i_funcl | |
| I_COMPLETE | = lv_i_complete | |
| IMPORTING | ||
| E_FCODE | = lv_e_fcode | |
| E_ITXDAT | = lv_e_itxdat | |
| E_XMWST | = lv_e_xmwst | |
| E_XSTVR | = lv_e_xstvr | |
| E_XUSVR | = lv_e_xusvr | |
| E_KDIFF | = lv_e_kdiff | |
| E_TXKRS | = lv_e_txkrs | |
| E_VATDATE | = lv_e_vatdate | |
| TABLES | ||
| T_BSEG | = lt_t_bseg | |
| EXCEPTIONS | ||
| USER_EXIT = 1 | ||
| . " ENTER_TAXES | ||
ABAP code using 7.40 inline data declarations to call FM ENTER_TAXES
The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.| "SELECT single PFKAG FROM RF05A INTO @DATA(ld_e_fcode). | ||||
| "SELECT single AKTYP FROM T020 INTO @DATA(ld_i_aktyp). | ||||
| DATA(ld_i_aktyp) | = ' '. | |||
| "SELECT single XMWST FROM BKPF INTO @DATA(ld_e_xmwst). | ||||
| "SELECT single TITLE FROM RTAX1 INTO @DATA(ld_i_title). | ||||
| DATA(ld_i_title) | = ' '. | |||
| "SELECT single XMWST FROM BKPF INTO @DATA(ld_e_xstvr). | ||||
| "SELECT single XMWST FROM BKPF INTO @DATA(ld_i_xdisp). | ||||
| DATA(ld_i_xdisp) | = ' '. | |||
| "SELECT single XUSVR FROM BKPF INTO @DATA(ld_e_xusvr). | ||||
| "SELECT single XMWST FROM BKPF INTO @DATA(ld_i_xfwbt). | ||||
| DATA(ld_i_xfwbt) | = ' '. | |||
| "SELECT single KDIFF FROM RTAX1 INTO @DATA(ld_e_kdiff). | ||||
| "SELECT single XMWST FROM BKPF INTO @DATA(ld_i_xprop). | ||||
| DATA(ld_i_xprop) | = ' '. | |||
| "SELECT single TXKRS FROM BKPF INTO @DATA(ld_e_txkrs). | ||||
| "SELECT single VATDATE FROM BKPF INTO @DATA(ld_e_vatdate). | ||||
Search for further information about these or an SAP related objects