SAP FKK_TAX_LINES_CREATE_APL Function Module for
FKK_TAX_LINES_CREATE_APL is a standard fkk tax lines create apl 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 fkk tax lines create apl FM, simply by entering the name FKK_TAX_LINES_CREATE_APL into the relevant SAP transaction such as SE37 or SE38.
Function Group: FKK_TAX_APL
Program Name: SAPLFKK_TAX_APL
Main Program: SAPLFKK_TAX_APL
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function FKK_TAX_LINES_CREATE_APL 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 'FKK_TAX_LINES_CREATE_APL'".
EXPORTING
* X_APPLK = ' ' "
* X_ABRZU = "
* X_ABRZO = "
* X_EXC_KEY = "
* X_FKKTAXEXC = "
* X_NOTAXEXC = "
X_WAERS = "
X_BUKRS = "
X_BETRW = "
X_MWSKZ = "
* X_TXJCD = ' ' "
* X_TXDAT = 00000000 "
* X_SKTPZ = "
* X_XNETT = "
IMPORTING
Y_TXAMT = "
TABLES
T_TAXLINES = "
EXCEPTIONS
ERROR = 1
IMPORTING Parameters details for FKK_TAX_LINES_CREATE_APL
X_APPLK -
Data type: FKKKO-APPLKDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_ABRZU -
Data type: FKKOP-ABRZUOptional: Yes
Call by Reference: No ( called with pass by value option)
X_ABRZO -
Data type: FKKOP-ABRZOOptional: Yes
Call by Reference: No ( called with pass by value option)
X_EXC_KEY -
Data type: FKKTAXLIN-TXEXKOptional: Yes
Call by Reference: No ( called with pass by value option)
X_FKKTAXEXC -
Data type: FKKTAXEXCOptional: Yes
Call by Reference: No ( called with pass by value option)
X_NOTAXEXC -
Data type: COptional: Yes
Call by Reference: Yes
X_WAERS -
Data type: FKKOP-WAERSOptional: No
Call by Reference: No ( called with pass by value option)
X_BUKRS -
Data type: FKKOP-BUKRSOptional: No
Call by Reference: No ( called with pass by value option)
X_BETRW -
Data type: FKKOP-BETRWOptional: No
Call by Reference: No ( called with pass by value option)
X_MWSKZ -
Data type: FKKOP-MWSKZOptional: No
Call by Reference: No ( called with pass by value option)
X_TXJCD -
Data type: FKKOP-TXJCDDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_TXDAT -
Data type: FKKOP-TXDATDefault: 00000000
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_SKTPZ -
Data type: FKKOP-SKTPZOptional: Yes
Call by Reference: No ( called with pass by value option)
X_XNETT -
Data type: BOOLE-BOOLEOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for FKK_TAX_LINES_CREATE_APL
Y_TXAMT -
Data type: FKKOPK-BETRWOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for FKK_TAX_LINES_CREATE_APL
T_TAXLINES -
Data type: FKKTAXLINOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
ERROR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for FKK_TAX_LINES_CREATE_APL 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_error | TYPE STRING, " | |||
| lv_x_applk | TYPE FKKKO-APPLK, " SPACE | |||
| lv_y_txamt | TYPE FKKOPK-BETRW, " | |||
| lt_t_taxlines | TYPE STANDARD TABLE OF FKKTAXLIN, " | |||
| lv_x_abrzu | TYPE FKKOP-ABRZU, " | |||
| lv_x_abrzo | TYPE FKKOP-ABRZO, " | |||
| lv_x_exc_key | TYPE FKKTAXLIN-TXEXK, " | |||
| lv_x_fkktaxexc | TYPE FKKTAXEXC, " | |||
| lv_x_notaxexc | TYPE C, " | |||
| lv_x_waers | TYPE FKKOP-WAERS, " | |||
| lv_x_bukrs | TYPE FKKOP-BUKRS, " | |||
| lv_x_betrw | TYPE FKKOP-BETRW, " | |||
| lv_x_mwskz | TYPE FKKOP-MWSKZ, " | |||
| lv_x_txjcd | TYPE FKKOP-TXJCD, " SPACE | |||
| lv_x_txdat | TYPE FKKOP-TXDAT, " 00000000 | |||
| lv_x_sktpz | TYPE FKKOP-SKTPZ, " | |||
| lv_x_xnett | TYPE BOOLE-BOOLE. " |
|   CALL FUNCTION 'FKK_TAX_LINES_CREATE_APL' " |
| EXPORTING | ||
| X_APPLK | = lv_x_applk | |
| X_ABRZU | = lv_x_abrzu | |
| X_ABRZO | = lv_x_abrzo | |
| X_EXC_KEY | = lv_x_exc_key | |
| X_FKKTAXEXC | = lv_x_fkktaxexc | |
| X_NOTAXEXC | = lv_x_notaxexc | |
| X_WAERS | = lv_x_waers | |
| X_BUKRS | = lv_x_bukrs | |
| X_BETRW | = lv_x_betrw | |
| X_MWSKZ | = lv_x_mwskz | |
| X_TXJCD | = lv_x_txjcd | |
| X_TXDAT | = lv_x_txdat | |
| X_SKTPZ | = lv_x_sktpz | |
| X_XNETT | = lv_x_xnett | |
| IMPORTING | ||
| Y_TXAMT | = lv_y_txamt | |
| TABLES | ||
| T_TAXLINES | = lt_t_taxlines | |
| EXCEPTIONS | ||
| ERROR = 1 | ||
| . " FKK_TAX_LINES_CREATE_APL | ||
ABAP code using 7.40 inline data declarations to call FM FKK_TAX_LINES_CREATE_APL
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 APPLK FROM FKKKO INTO @DATA(ld_x_applk). | ||||
| DATA(ld_x_applk) | = ' '. | |||
| "SELECT single BETRW FROM FKKOPK INTO @DATA(ld_y_txamt). | ||||
| "SELECT single ABRZU FROM FKKOP INTO @DATA(ld_x_abrzu). | ||||
| "SELECT single ABRZO FROM FKKOP INTO @DATA(ld_x_abrzo). | ||||
| "SELECT single TXEXK FROM FKKTAXLIN INTO @DATA(ld_x_exc_key). | ||||
| "SELECT single WAERS FROM FKKOP INTO @DATA(ld_x_waers). | ||||
| "SELECT single BUKRS FROM FKKOP INTO @DATA(ld_x_bukrs). | ||||
| "SELECT single BETRW FROM FKKOP INTO @DATA(ld_x_betrw). | ||||
| "SELECT single MWSKZ FROM FKKOP INTO @DATA(ld_x_mwskz). | ||||
| "SELECT single TXJCD FROM FKKOP INTO @DATA(ld_x_txjcd). | ||||
| DATA(ld_x_txjcd) | = ' '. | |||
| "SELECT single TXDAT FROM FKKOP INTO @DATA(ld_x_txdat). | ||||
| DATA(ld_x_txdat) | = 00000000. | |||
| "SELECT single SKTPZ FROM FKKOP INTO @DATA(ld_x_sktpz). | ||||
| "SELECT single BOOLE FROM BOOLE INTO @DATA(ld_x_xnett). | ||||
Search for further information about these or an SAP related objects