SAP Function Modules

FKK_VALUE_DATE_DETERMINE SAP Function module







FKK_VALUE_DATE_DETERMINE is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name FKK_VALUE_DATE_DETERMINE into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: FKPB
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM FKK_VALUE_DATE_DETERMINE - FKK VALUE DATE DETERMINE





CALL FUNCTION 'FKK_VALUE_DATE_DETERMINE' "
  EXPORTING
    i_ausfd =                   " fkkko-budat   Posting Date
*   i_exdat =                   " payh-ausfd    Executed On
    i_opbuk =                   " tfk042v-opbuk  Responsible Company Code
    i_hbkid =                   " tfk042v-hbkid  House Bank
    i_hktid =                   " tfk042v-hktid  Account ID
    i_zlsch =                   " tfk042v-zlsch  Payment Method
*   i_applk =                   " fkkpy_para-applk  Application Area
*   i_dfkkza =                  " dfkkza        Repayment Request
*   i_ccins =                   " ccins         Payment Cards: Card Type
*   i_dfkkip_grp =              " dfkkip_grp
  IMPORTING
    e_wwert =                   " fkkko-wwert   Value Date
    e_anztg =                   " tfk042v-anztg  Days to value date
* TABLES
*   t_fkkcl =                   " fkkcl         Clearing Items for Document in Contract Accounts Receivable and Payable
    .  "  FKK_VALUE_DATE_DETERMINE

ABAP code example for Function Module FKK_VALUE_DATE_DETERMINE





The ABAP code below is a full code listing to execute function module FKK_VALUE_DATE_DETERMINE including all data declarations. The code uses 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 original method of declaring data variables up front. 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).

DATA:
ld_e_wwert  TYPE FKKKO-WWERT ,
ld_e_anztg  TYPE TFK042V-ANZTG ,
it_t_fkkcl  TYPE STANDARD TABLE OF FKKCL,"TABLES PARAM
wa_t_fkkcl  LIKE LINE OF it_t_fkkcl .


DATA(ld_i_ausfd) = 20210129

DATA(ld_i_exdat) = 20210129

SELECT single OPBUK
FROM TFK042V
INTO @DATA(ld_i_opbuk).


SELECT single HBKID
FROM TFK042V
INTO @DATA(ld_i_hbkid).


SELECT single HKTID
FROM TFK042V
INTO @DATA(ld_i_hktid).


SELECT single ZLSCH
FROM TFK042V
INTO @DATA(ld_i_zlsch).


DATA(ld_i_applk) = some text here
DATA(ld_i_dfkkza) = 'Check type of data required'.
DATA(ld_i_ccins) = 'Check type of data required'.
DATA(ld_i_dfkkip_grp) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_fkkcl to it_t_fkkcl. . CALL FUNCTION 'FKK_VALUE_DATE_DETERMINE' EXPORTING i_ausfd = ld_i_ausfd * i_exdat = ld_i_exdat i_opbuk = ld_i_opbuk i_hbkid = ld_i_hbkid i_hktid = ld_i_hktid i_zlsch = ld_i_zlsch * i_applk = ld_i_applk * i_dfkkza = ld_i_dfkkza * i_ccins = ld_i_ccins * i_dfkkip_grp = ld_i_dfkkip_grp IMPORTING e_wwert = ld_e_wwert e_anztg = ld_e_anztg * TABLES * t_fkkcl = it_t_fkkcl . " FKK_VALUE_DATE_DETERMINE
IF SY-SUBRC EQ 0. "All OK ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_e_wwert  TYPE FKKKO-WWERT ,
ld_i_ausfd  TYPE FKKKO-BUDAT ,
it_t_fkkcl  TYPE STANDARD TABLE OF FKKCL ,
wa_t_fkkcl  LIKE LINE OF it_t_fkkcl,
ld_e_anztg  TYPE TFK042V-ANZTG ,
ld_i_exdat  TYPE PAYH-AUSFD ,
ld_i_opbuk  TYPE TFK042V-OPBUK ,
ld_i_hbkid  TYPE TFK042V-HBKID ,
ld_i_hktid  TYPE TFK042V-HKTID ,
ld_i_zlsch  TYPE TFK042V-ZLSCH ,
ld_i_applk  TYPE FKKPY_PARA-APPLK ,
ld_i_dfkkza  TYPE DFKKZA ,
ld_i_ccins  TYPE CCINS ,
ld_i_dfkkip_grp  TYPE DFKKIP_GRP .


ld_i_ausfd = 20210129

"populate fields of struture and append to itab
append wa_t_fkkcl to it_t_fkkcl.

ld_i_exdat = 20210129

SELECT single OPBUK
FROM TFK042V
INTO ld_i_opbuk.


SELECT single HBKID
FROM TFK042V
INTO ld_i_hbkid.


SELECT single HKTID
FROM TFK042V
INTO ld_i_hktid.


SELECT single ZLSCH
FROM TFK042V
INTO ld_i_zlsch.


ld_i_applk = some text here
ld_i_dfkkza = 'Check type of data required'.
ld_i_ccins = 'Check type of data required'.
ld_i_dfkkip_grp = 'Check type of data required'.

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name FKK_VALUE_DATE_DETERMINE or its description.