SAP KR_USER_EXIT_LIST_TAXINVOICE Function Module for Enchance Output List
KR_USER_EXIT_LIST_TAXINVOICE is a standard kr user exit list taxinvoice SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Enchance Output List 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 list taxinvoice FM, simply by entering the name KR_USER_EXIT_LIST_TAXINVOICE 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_LIST_TAXINVOICE 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_LIST_TAXINVOICE'"Enchance Output List.
EXPORTING
YRECEIPT = "Receipt Indicator
YSIM = "Simulate Parameter
YBUPLA_HQ = "Business Place
YCHK_PRTI = "Normal tax invoice (not detail)
YSTA1 = "Normal Tax Invoice (not exempt)
ZMATZEIL1 = "Material Item 1
ZMATZEIL2 = "Material Item 2
ZMATZEIL3 = "Material Item 3
ZMATZEIL4 = "Material Item 4
YPROG_NAME = "ABAP program, caller in external procedures
SFORM_NAME = "Form
TABLES
ZAUSGLOP_ITAB = "
ZALL_ITEMS_ITAB = "
ZAUSGLOP_MAT_ITAB = "
ZADDRESS_ITAB = "
ZBUPLA_ADRESSE = "
ZCHECK_ITAB = "
ZALL_MAT_ITAB = "
ZMATZEIL4_ITAB = "
ZALL_ITEMS_SD_ITAB = "
IMPORTING Parameters details for KR_USER_EXIT_LIST_TAXINVOICE
YRECEIPT - Receipt Indicator
Data type:Optional: No
Call by Reference: Yes
YSIM - Simulate Parameter
Data type: COptional: No
Call by Reference: Yes
YBUPLA_HQ - Business Place
Data type: BSEG-BUPLAOptional: No
Call by Reference: Yes
YCHK_PRTI - Normal tax invoice (not detail)
Data type:Optional: No
Call by Reference: Yes
YSTA1 - Normal Tax Invoice (not exempt)
Data type:Optional: No
Call by Reference: Yes
ZMATZEIL1 - Material Item 1
Data type:Optional: No
Call by Reference: Yes
ZMATZEIL2 - Material Item 2
Data type:Optional: No
Call by Reference: Yes
ZMATZEIL3 - Material Item 3
Data type:Optional: No
Call by Reference: Yes
ZMATZEIL4 - Material Item 4
Data type:Optional: No
Call by Reference: Yes
YPROG_NAME - ABAP program, caller in external procedures
Data type: SYST-CPROGOptional: No
Call by Reference: Yes
SFORM_NAME - Form
Data type: T001F-FORNROptional: No
Call by Reference: Yes
TABLES Parameters details for KR_USER_EXIT_LIST_TAXINVOICE
ZAUSGLOP_ITAB -
Data type:Optional: No
Call by Reference: Yes
ZALL_ITEMS_ITAB -
Data type:Optional: No
Call by Reference: Yes
ZAUSGLOP_MAT_ITAB -
Data type:Optional: No
Call by Reference: Yes
ZADDRESS_ITAB -
Data type:Optional: No
Call by Reference: Yes
ZBUPLA_ADRESSE -
Data type:Optional: No
Call by Reference: Yes
ZCHECK_ITAB -
Data type:Optional: No
Call by Reference: Yes
ZALL_MAT_ITAB -
Data type:Optional: No
Call by Reference: Yes
ZMATZEIL4_ITAB -
Data type:Optional: No
Call by Reference: Yes
ZALL_ITEMS_SD_ITAB -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for KR_USER_EXIT_LIST_TAXINVOICE 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_yreceipt | TYPE STRING, " | |||
lt_zausglop_itab | TYPE STANDARD TABLE OF STRING, " | |||
lv_ysim | TYPE C, " | |||
lv_ybupla_hq | TYPE BSEG-BUPLA, " | |||
lv_ychk_prti | TYPE BSEG, " | |||
lt_zall_items_itab | TYPE STANDARD TABLE OF BSEG, " | |||
lv_ysta1 | TYPE BSEG, " | |||
lt_zausglop_mat_itab | TYPE STANDARD TABLE OF BSEG, " | |||
lv_zmatzeil1 | TYPE BSEG, " | |||
lt_zaddress_itab | TYPE STANDARD TABLE OF BSEG, " | |||
lv_zmatzeil2 | TYPE BSEG, " | |||
lt_zbupla_adresse | TYPE STANDARD TABLE OF BSEG, " | |||
lv_zmatzeil3 | TYPE BSEG, " | |||
lt_zcheck_itab | TYPE STANDARD TABLE OF BSEG, " | |||
lv_zmatzeil4 | TYPE BSEG, " | |||
lt_zall_mat_itab | TYPE STANDARD TABLE OF BSEG, " | |||
lv_yprog_name | TYPE SYST-CPROG, " | |||
lt_zmatzeil4_itab | TYPE STANDARD TABLE OF SYST, " | |||
lv_sform_name | TYPE T001F-FORNR, " | |||
lt_zall_items_sd_itab | TYPE STANDARD TABLE OF T001F. " |
  CALL FUNCTION 'KR_USER_EXIT_LIST_TAXINVOICE' "Enchance Output List |
EXPORTING | ||
YRECEIPT | = lv_yreceipt | |
YSIM | = lv_ysim | |
YBUPLA_HQ | = lv_ybupla_hq | |
YCHK_PRTI | = lv_ychk_prti | |
YSTA1 | = lv_ysta1 | |
ZMATZEIL1 | = lv_zmatzeil1 | |
ZMATZEIL2 | = lv_zmatzeil2 | |
ZMATZEIL3 | = lv_zmatzeil3 | |
ZMATZEIL4 | = lv_zmatzeil4 | |
YPROG_NAME | = lv_yprog_name | |
SFORM_NAME | = lv_sform_name | |
TABLES | ||
ZAUSGLOP_ITAB | = lt_zausglop_itab | |
ZALL_ITEMS_ITAB | = lt_zall_items_itab | |
ZAUSGLOP_MAT_ITAB | = lt_zausglop_mat_itab | |
ZADDRESS_ITAB | = lt_zaddress_itab | |
ZBUPLA_ADRESSE | = lt_zbupla_adresse | |
ZCHECK_ITAB | = lt_zcheck_itab | |
ZALL_MAT_ITAB | = lt_zall_mat_itab | |
ZMATZEIL4_ITAB | = lt_zmatzeil4_itab | |
ZALL_ITEMS_SD_ITAB | = lt_zall_items_sd_itab | |
. " KR_USER_EXIT_LIST_TAXINVOICE |
ABAP code using 7.40 inline data declarations to call FM KR_USER_EXIT_LIST_TAXINVOICE
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 BUPLA FROM BSEG INTO @DATA(ld_ybupla_hq). | ||||
"SELECT single CPROG FROM SYST INTO @DATA(ld_yprog_name). | ||||
"SELECT single FORNR FROM T001F INTO @DATA(ld_sform_name). | ||||
Search for further information about these or an SAP related objects