SAP FKK_SAMPLE_2100 Function Module for









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

Function Group: FKML
Program Name: SAPLFKML
Main Program: SAPLFKML
Appliation area: E
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function FKK_SAMPLE_2100 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_2100'"
EXPORTING
I_VTREF = "IS-U Contract: Contract Key
* I_SPART = "
I_VKONT = "Contract account (FI-CA)
I_GPART = "Business partner
I_FKKVKP = "FI-CA: Business Partner-Specific Data for Contract Account
* I_TXJCD = "
* I_APPLK = "
* I_SUBAP = ' ' "Subapplication in Contract Accounts Receivable and Payable

IMPORTING
E_KOFIZ = "Account determination ID
E_SPART = "
E_TXJCD = "
E_BUKRS = "
E_GSBER = "

EXCEPTIONS
EVER_NOT_FOUND = 1 EVER_NOT_VALID = 2
.



IMPORTING Parameters details for FKK_SAMPLE_2100

I_VTREF - IS-U Contract: Contract Key

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

I_SPART -

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

I_VKONT - Contract account (FI-CA)

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

I_GPART - Business partner

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

I_FKKVKP - FI-CA: Business Partner-Specific Data for Contract Account

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

I_TXJCD -

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

I_APPLK -

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

I_SUBAP - Subapplication in Contract Accounts Receivable and Payable

Data type: FKKOP-SUBAP
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for FKK_SAMPLE_2100

E_KOFIZ - Account determination ID

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

E_SPART -

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

E_TXJCD -

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

E_BUKRS -

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

E_GSBER -

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

EXCEPTIONS details

EVER_NOT_FOUND - Contract not found in database

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

EVER_NOT_VALID -

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

Copy and paste ABAP code example for FKK_SAMPLE_2100 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_e_kofiz  TYPE FKKOP-KOFIZ, "   
lv_i_vtref  TYPE FKKOP-VTREF, "   
lv_ever_not_found  TYPE FKKOP, "   
lv_e_spart  TYPE FKKOP-SPART, "   
lv_i_spart  TYPE FKKOP-SPART, "   
lv_ever_not_valid  TYPE FKKOP, "   
lv_e_txjcd  TYPE FKKOP-TXJCD, "   
lv_i_vkont  TYPE FKKOP-VKONT, "   
lv_e_bukrs  TYPE FKKOP-BUKRS, "   
lv_i_gpart  TYPE FKKOP-GPART, "   
lv_e_gsber  TYPE FKKOP-GSBER, "   
lv_i_fkkvkp  TYPE FKKVKP, "   
lv_i_txjcd  TYPE FKKOP-TXJCD, "   
lv_i_applk  TYPE FKKOP-APPLK, "   
lv_i_subap  TYPE FKKOP-SUBAP. "   SPACE

  CALL FUNCTION 'FKK_SAMPLE_2100'  "
    EXPORTING
         I_VTREF = lv_i_vtref
         I_SPART = lv_i_spart
         I_VKONT = lv_i_vkont
         I_GPART = lv_i_gpart
         I_FKKVKP = lv_i_fkkvkp
         I_TXJCD = lv_i_txjcd
         I_APPLK = lv_i_applk
         I_SUBAP = lv_i_subap
    IMPORTING
         E_KOFIZ = lv_e_kofiz
         E_SPART = lv_e_spart
         E_TXJCD = lv_e_txjcd
         E_BUKRS = lv_e_bukrs
         E_GSBER = lv_e_gsber
    EXCEPTIONS
        EVER_NOT_FOUND = 1
        EVER_NOT_VALID = 2
. " FKK_SAMPLE_2100




ABAP code using 7.40 inline data declarations to call FM FKK_SAMPLE_2100

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 KOFIZ FROM FKKOP INTO @DATA(ld_e_kofiz).
 
"SELECT single VTREF FROM FKKOP INTO @DATA(ld_i_vtref).
 
 
"SELECT single SPART FROM FKKOP INTO @DATA(ld_e_spart).
 
"SELECT single SPART FROM FKKOP INTO @DATA(ld_i_spart).
 
 
"SELECT single TXJCD FROM FKKOP INTO @DATA(ld_e_txjcd).
 
"SELECT single VKONT FROM FKKOP INTO @DATA(ld_i_vkont).
 
"SELECT single BUKRS FROM FKKOP INTO @DATA(ld_e_bukrs).
 
"SELECT single GPART FROM FKKOP INTO @DATA(ld_i_gpart).
 
"SELECT single GSBER FROM FKKOP INTO @DATA(ld_e_gsber).
 
 
"SELECT single TXJCD FROM FKKOP INTO @DATA(ld_i_txjcd).
 
"SELECT single APPLK FROM FKKOP INTO @DATA(ld_i_applk).
 
"SELECT single SUBAP FROM FKKOP INTO @DATA(ld_i_subap).
DATA(ld_i_subap) = ' '.
 


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!