FKK_SAMPLE_2090 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_SAMPLE_2090 into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
FKI6
Released Date:
Not Released
Processing type: Normal fucntion module
CALL FUNCTION 'FKK_SAMPLE_2090' "
EXPORTING
i_rfki1 = " rfki1 FI-CA interest: Interface fields
i_cldate = " sy-datum Clearing Date
i_fkkop = " fkkop Business Partner Items in Contract Account Document
* i_fkkir = " fkkir Base Date for Interest Calculation
* i_fkkop_or = " fkkopkey
* CHANGING
* i_fkkop_abdat = " fkkir-abdat Base Date for Interest Calculation
* i_fkkop_bisdat = " fkkir-bisdat End date-interest calc.
* i_fkkop_todsp = " fkkir-todsp No Interest Calculation Due to Tolerance Days
* i_fkkop_clrsp = " fkkir-clrsp Items in tolerance days are cleared
* i_fkkop_poavb = " fkkir-poavb Interest Calculated on Item up to Clearing
* i_fkkop_spzus = " fkkir-spzus No Interest Calculation Due to Surcharge Calculation
* i_fkkop_ikeyd = " ikeyd_kk Key Date In Month (Monthly Interest Calculation)
EXCEPTIONS
SERIOUS_ERROR = 1 " Serious Error Occurred
. " FKK_SAMPLE_2090
The ABAP code below is a full code listing to execute function module FKK_SAMPLE_2090 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_i_fkkop_abdat) = 20210129
DATA(ld_i_fkkop_bisdat) = 20210129
DATA(ld_i_fkkop_todsp) = some text here
DATA(ld_i_fkkop_clrsp) = some text here
DATA(ld_i_fkkop_poavb) = some text here
DATA(ld_i_fkkop_spzus) = some text here
DATA(ld_i_fkkop_ikeyd) = 'Check type of data required'.
DATA(ld_i_rfki1) = 'Check type of data required'.
DATA(ld_i_cldate) = '20210129'.
DATA(ld_i_fkkop) = '20210129'.
DATA(ld_i_fkkir) = '20210129'.
DATA(ld_i_fkkop_or) = '20210129'. . CALL FUNCTION 'FKK_SAMPLE_2090' EXPORTING i_rfki1 = ld_i_rfki1 i_cldate = ld_i_cldate i_fkkop = ld_i_fkkop * i_fkkir = ld_i_fkkir * i_fkkop_or = ld_i_fkkop_or * CHANGING * i_fkkop_abdat = ld_i_fkkop_abdat * i_fkkop_bisdat = ld_i_fkkop_bisdat * i_fkkop_todsp = ld_i_fkkop_todsp * i_fkkop_clrsp = ld_i_fkkop_clrsp * i_fkkop_poavb = ld_i_fkkop_poavb * i_fkkop_spzus = ld_i_fkkop_spzus * i_fkkop_ikeyd = ld_i_fkkop_ikeyd EXCEPTIONS SERIOUS_ERROR = 1 . " FKK_SAMPLE_2090
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ENDIF.
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_i_fkkop_abdat | TYPE FKKIR-ABDAT , |
| ld_i_rfki1 | TYPE RFKI1 , |
| ld_i_fkkop_bisdat | TYPE FKKIR-BISDAT , |
| ld_i_cldate | TYPE SY-DATUM , |
| ld_i_fkkop_todsp | TYPE FKKIR-TODSP , |
| ld_i_fkkop | TYPE FKKOP , |
| ld_i_fkkop_clrsp | TYPE FKKIR-CLRSP , |
| ld_i_fkkir | TYPE FKKIR , |
| ld_i_fkkop_poavb | TYPE FKKIR-POAVB , |
| ld_i_fkkop_or | TYPE FKKOPKEY , |
| ld_i_fkkop_spzus | TYPE FKKIR-SPZUS , |
| ld_i_fkkop_ikeyd | TYPE IKEYD_KK . |
FUNCTIONALITY
You can use event 2090 to overwrite tolerance days that you have defined
...See here for full SAP fm documentation
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_SAMPLE_2090 or its description.