SAP FKK_SAMPLE_0707 Function Module for









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

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



Function FKK_SAMPLE_0707 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_0707'"
EXPORTING
I_FKKCOINFO = "
I_FKKVKP = "Acct-Partner Relationship
I_DATUM = "Date of Issue
I_FIKEY = "
I_CHGID = "
* I_MAIN_DUE_DATE = "Main Due Date of Insurance Contract
* I_SINGLE_CALL = ' ' "
I_FKK_PROT = "

IMPORTING
E_COMREQ = "

CHANGING
C_SUCCESS_NUM = "

TABLES
T_FIMSG = "
T_BETRH = "
T_FAART = "
T_FAEDN = "
* T_VVKKFAPOS = "
* T_FKKCL = "
T_PROT_GPART = "
T_PROT_VKONT = "

EXCEPTIONS
NO_ITEMS_FOUND = 1 NO_INVOICE_FOR_THIS_SUM = 2 FAART_MISMATCH = 3
.



IMPORTING Parameters details for FKK_SAMPLE_0707

I_FKKCOINFO -

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

I_FKKVKP - Acct-Partner Relationship

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

I_DATUM - Date of Issue

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

I_FIKEY -

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

I_CHGID -

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

I_MAIN_DUE_DATE - Main Due Date of Insurance Contract

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

I_SINGLE_CALL -

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

I_FKK_PROT -

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

EXPORTING Parameters details for FKK_SAMPLE_0707

E_COMREQ -

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

CHANGING Parameters details for FKK_SAMPLE_0707

C_SUCCESS_NUM -

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

TABLES Parameters details for FKK_SAMPLE_0707

T_FIMSG -

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

T_BETRH -

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

T_FAART -

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

T_FAEDN -

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

T_VVKKFAPOS -

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

T_FKKCL -

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

T_PROT_GPART -

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

T_PROT_VKONT -

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

EXCEPTIONS details

NO_ITEMS_FOUND -

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

NO_INVOICE_FOR_THIS_SUM -

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

FAART_MISMATCH -

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

Copy and paste ABAP code example for FKK_SAMPLE_0707 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:
lt_t_fimsg  TYPE STANDARD TABLE OF FIMSG, "   
lv_e_comreq  TYPE BOOLE-BOOLE, "   
lv_i_fkkcoinfo  TYPE FKKCOINFO, "   
lv_c_success_num  TYPE I, "   
lv_no_items_found  TYPE I, "   
lt_t_betrh  TYPE STANDARD TABLE OF I, "   
lv_i_fkkvkp  TYPE FKKVKP, "   
lv_no_invoice_for_this_sum  TYPE FKKVKP, "   
lv_i_datum  TYPE FKKOP-BUDAT, "   
lt_t_faart  TYPE STANDARD TABLE OF FKKOP, "   
lv_faart_mismatch  TYPE FKKOP, "   
lv_i_fikey  TYPE FKKKO-FIKEY, "   
lt_t_faedn  TYPE STANDARD TABLE OF FKKKO, "   
lv_i_chgid  TYPE TFK047E-CHGID, "   
lt_t_vvkkfapos  TYPE STANDARD TABLE OF TFK047E, "   
lt_t_fkkcl  TYPE STANDARD TABLE OF TFK047E, "   
lv_i_main_due_date  TYPE SY-DATUM, "   
lt_t_prot_gpart  TYPE STANDARD TABLE OF SY, "   
lv_i_single_call  TYPE BOOLE-BOOLE, "   SPACE
lv_i_fkk_prot  TYPE FKKPROT, "   
lt_t_prot_vkont  TYPE STANDARD TABLE OF FKKPROT. "   

  CALL FUNCTION 'FKK_SAMPLE_0707'  "
    EXPORTING
         I_FKKCOINFO = lv_i_fkkcoinfo
         I_FKKVKP = lv_i_fkkvkp
         I_DATUM = lv_i_datum
         I_FIKEY = lv_i_fikey
         I_CHGID = lv_i_chgid
         I_MAIN_DUE_DATE = lv_i_main_due_date
         I_SINGLE_CALL = lv_i_single_call
         I_FKK_PROT = lv_i_fkk_prot
    IMPORTING
         E_COMREQ = lv_e_comreq
    CHANGING
         C_SUCCESS_NUM = lv_c_success_num
    TABLES
         T_FIMSG = lt_t_fimsg
         T_BETRH = lt_t_betrh
         T_FAART = lt_t_faart
         T_FAEDN = lt_t_faedn
         T_VVKKFAPOS = lt_t_vvkkfapos
         T_FKKCL = lt_t_fkkcl
         T_PROT_GPART = lt_t_prot_gpart
         T_PROT_VKONT = lt_t_prot_vkont
    EXCEPTIONS
        NO_ITEMS_FOUND = 1
        NO_INVOICE_FOR_THIS_SUM = 2
        FAART_MISMATCH = 3
. " FKK_SAMPLE_0707




ABAP code using 7.40 inline data declarations to call FM FKK_SAMPLE_0707

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 BOOLE FROM BOOLE INTO @DATA(ld_e_comreq).
 
 
 
 
 
 
 
"SELECT single BUDAT FROM FKKOP INTO @DATA(ld_i_datum).
 
 
 
"SELECT single FIKEY FROM FKKKO INTO @DATA(ld_i_fikey).
 
 
"SELECT single CHGID FROM TFK047E INTO @DATA(ld_i_chgid).
 
 
 
"SELECT single DATUM FROM SY INTO @DATA(ld_i_main_due_date).
 
 
"SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_single_call).
DATA(ld_i_single_call) = ' '.
 
 
 


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!