SAP KR_USER_EXIT_TAX_CODE Function Module for Validate Selection Screen Inputs
KR_USER_EXIT_TAX_CODE is a standard kr user exit tax code SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Validate Selection Screen Inputs processing and below is the pattern details for this FM, 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 kr user exit tax code FM, simply by entering the name KR_USER_EXIT_TAX_CODE into the relevant SAP transaction such as SE37 or SE38.
Function Group: KRGEU
Program Name: SAPLKRGEU
Main Program: SAPLKRGEU
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function KR_USER_EXIT_TAX_CODE 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 'KR_USER_EXIT_TAX_CODE'"Validate Selection Screen Inputs.
EXPORTING
* YUSNAM = "User Name
* YSTA1 = "Normal Tax Invoice
* YOUTPUT = "Checkbox for Output Tax
* YINPUT = "Checkbox for Input Tax
* YBUPLAPAR = "Business Places
TABLES
* YTAXCODE = "Tax Codes
* YPBLART = "Document Types
* YBUPLA = "Business Places
YBUKRS = "Company Codes
* YINPUTAX = "Input Tax
IMPORTING Parameters details for KR_USER_EXIT_TAX_CODE
YUSNAM - User Name
Data type: BKPF-USNAMOptional: Yes
Call by Reference: Yes
YSTA1 - Normal Tax Invoice
Data type:Optional: Yes
Call by Reference: Yes
YOUTPUT - Checkbox for Output Tax
Data type:Optional: Yes
Call by Reference: Yes
YINPUT - Checkbox for Input Tax
Data type:Optional: Yes
Call by Reference: Yes
YBUPLAPAR - Business Places
Data type:Optional: Yes
Call by Reference: Yes
TABLES Parameters details for KR_USER_EXIT_TAX_CODE
YTAXCODE - Tax Codes
Data type: RSDSSELOPTOptional: Yes
Call by Reference: Yes
YPBLART - Document Types
Data type: RSDSSELOPTOptional: Yes
Call by Reference: Yes
YBUPLA - Business Places
Data type: RSDSSELOPTOptional: Yes
Call by Reference: Yes
YBUKRS - Company Codes
Data type: RSDSSELOPTOptional: No
Call by Reference: Yes
YINPUTAX - Input Tax
Data type: RSDSSELOPTOptional: Yes
Call by Reference: Yes
Copy and paste ABAP code example for KR_USER_EXIT_TAX_CODE 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: | ||||
| lv_yusnam | TYPE BKPF-USNAM, " | |||
| lt_ytaxcode | TYPE STANDARD TABLE OF RSDSSELOPT, " | |||
| lv_ysta1 | TYPE RSDSSELOPT, " | |||
| lt_ypblart | TYPE STANDARD TABLE OF RSDSSELOPT, " | |||
| lt_ybupla | TYPE STANDARD TABLE OF RSDSSELOPT, " | |||
| lv_youtput | TYPE RSDSSELOPT, " | |||
| lt_ybukrs | TYPE STANDARD TABLE OF RSDSSELOPT, " | |||
| lv_yinput | TYPE RSDSSELOPT, " | |||
| lt_yinputax | TYPE STANDARD TABLE OF RSDSSELOPT, " | |||
| lv_ybuplapar | TYPE RSDSSELOPT. " |
|   CALL FUNCTION 'KR_USER_EXIT_TAX_CODE' "Validate Selection Screen Inputs |
| EXPORTING | ||
| YUSNAM | = lv_yusnam | |
| YSTA1 | = lv_ysta1 | |
| YOUTPUT | = lv_youtput | |
| YINPUT | = lv_yinput | |
| YBUPLAPAR | = lv_ybuplapar | |
| TABLES | ||
| YTAXCODE | = lt_ytaxcode | |
| YPBLART | = lt_ypblart | |
| YBUPLA | = lt_ybupla | |
| YBUKRS | = lt_ybukrs | |
| YINPUTAX | = lt_yinputax | |
| . " KR_USER_EXIT_TAX_CODE | ||
ABAP code using 7.40 inline data declarations to call FM KR_USER_EXIT_TAX_CODE
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 USNAM FROM BKPF INTO @DATA(ld_yusnam). | ||||
Search for further information about these or an SAP related objects