SAP FKK_SAMPLE_TFK115 Function Module for









FKK_SAMPLE_TFK115 is a standard fkk sample tfk115 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 sample tfk115 FM, simply by entering the name FKK_SAMPLE_TFK115 into the relevant SAP transaction such as SE37 or SE38.

Function Group: FKK_CLRG_SAM
Program Name: SAPLFKK_CLRG_SAM
Main Program: SAPLFKK_CLRG_SAM
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function FKK_SAMPLE_TFK115 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_SAMPLE_TFK115'"
EXPORTING
X_VERVAR = "Clearing Variant
* X_VERART = "Clearing Type
* X_BLDAT = SY-DATLO "Document Date in Document

IMPORTING
Y_DIFFB = "Difference Amount in Clearing Processing
Y_CLRG_EXIT = "
Y_GEN_CLRG_PROPOSAL = "

TABLES
T_FKKCL_E115 = "
* T_FKKCL_OTHERS = "
* T_SELTAB = "Table of Selections
.



IMPORTING Parameters details for FKK_SAMPLE_TFK115

X_VERVAR - Clearing Variant

Data type: TFK115-VERVAR
Optional: No
Call by Reference: No ( called with pass by value option)

X_VERART - Clearing Type

Data type: TFK110-VERART
Optional: Yes
Call by Reference: No ( called with pass by value option)

X_BLDAT - Document Date in Document

Data type: FKKKO-BLDAT
Default: SY-DATLO
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for FKK_SAMPLE_TFK115

Y_DIFFB - Difference Amount in Clearing Processing

Data type: RFKB4-DIFFB
Optional: No
Call by Reference: No ( called with pass by value option)

Y_CLRG_EXIT -

Data type: TFK115-VEXIT
Optional: No
Call by Reference: No ( called with pass by value option)

Y_GEN_CLRG_PROPOSAL -

Data type: BOOLE-BOOLE
Optional: No
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for FKK_SAMPLE_TFK115

T_FKKCL_E115 -

Data type: FKKCL_E115
Optional: No
Call by Reference: Yes

T_FKKCL_OTHERS -

Data type: FKKCL_E115
Optional: Yes
Call by Reference: Yes

T_SELTAB - Table of Selections

Data type: ISELTAB
Optional: Yes
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for FKK_SAMPLE_TFK115 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_y_diffb  TYPE RFKB4-DIFFB, "   
lv_x_vervar  TYPE TFK115-VERVAR, "   
lt_t_fkkcl_e115  TYPE STANDARD TABLE OF FKKCL_E115, "   
lv_x_verart  TYPE TFK110-VERART, "   
lv_y_clrg_exit  TYPE TFK115-VEXIT, "   
lt_t_fkkcl_others  TYPE STANDARD TABLE OF FKKCL_E115, "   
lv_x_bldat  TYPE FKKKO-BLDAT, "   SY-DATLO
lt_t_seltab  TYPE STANDARD TABLE OF ISELTAB, "   
lv_y_gen_clrg_proposal  TYPE BOOLE-BOOLE. "   

  CALL FUNCTION 'FKK_SAMPLE_TFK115'  "
    EXPORTING
         X_VERVAR = lv_x_vervar
         X_VERART = lv_x_verart
         X_BLDAT = lv_x_bldat
    IMPORTING
         Y_DIFFB = lv_y_diffb
         Y_CLRG_EXIT = lv_y_clrg_exit
         Y_GEN_CLRG_PROPOSAL = lv_y_gen_clrg_proposal
    TABLES
         T_FKKCL_E115 = lt_t_fkkcl_e115
         T_FKKCL_OTHERS = lt_t_fkkcl_others
         T_SELTAB = lt_t_seltab
. " FKK_SAMPLE_TFK115




ABAP code using 7.40 inline data declarations to call FM FKK_SAMPLE_TFK115

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 DIFFB FROM RFKB4 INTO @DATA(ld_y_diffb).
 
"SELECT single VERVAR FROM TFK115 INTO @DATA(ld_x_vervar).
 
 
"SELECT single VERART FROM TFK110 INTO @DATA(ld_x_verart).
 
"SELECT single VEXIT FROM TFK115 INTO @DATA(ld_y_clrg_exit).
 
 
"SELECT single BLDAT FROM FKKKO INTO @DATA(ld_x_bldat).
DATA(ld_x_bldat) = SY-DATLO.
 
 
"SELECT single BOOLE FROM BOOLE INTO @DATA(ld_y_gen_clrg_proposal).
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!