SAP Function Modules

FKK_SAMPLE_1330 SAP Function module







FKK_SAMPLE_1330 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_1330 into the relevant SAP transaction such as SE37 or SE80.

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


Pattern for FM FKK_SAMPLE_1330 - FKK SAMPLE 1330





CALL FUNCTION 'FKK_SAMPLE_1330' "
  EXPORTING
    i_fkkvkp =                  " fkkvkp        Key for term of payment
    i_bldat =                   " sy-datlo      Document Date
    i_budat =                   " sy-datlo      Posting Date
*   i_cpudt = SY-DATLO          " sy-datlo      System Date
*   i_xguth =                   " boole-boole   Flag: Due date determination for credit
*   i_callid =                  " callid        Identification of Caller
*   i_fkkko =                   " fkkko         Document header
*   i_fkkop =                   " fkkop         The Current Document Line for which the Due Date is Determined
  IMPORTING
    e_faeds =                   " fkkop-faeds   Due Date for Cash Discount
    e_sktpz =                   " fkkop-sktpz   Cash Discount Percentage Rate
    e_faedn =                   " fkkop-faedn   Net Due Date
  EXCEPTIONS
    NOT_FOUND = 1               "               Term of payment not found
    ZAHLKOND_INCORRECT = 2      "               Term of Payment not Consistent
    .  "  FKK_SAMPLE_1330

ABAP code example for Function Module FKK_SAMPLE_1330





The ABAP code below is a full code listing to execute function module FKK_SAMPLE_1330 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_faeds  TYPE FKKOP-FAEDS ,
ld_e_sktpz  TYPE FKKOP-SKTPZ ,
ld_e_faedn  TYPE FKKOP-FAEDN .

DATA(ld_i_fkkvkp) = 'Check type of data required'.
DATA(ld_i_bldat) = '20210129'.
DATA(ld_i_budat) = '20210129'.
DATA(ld_i_cpudt) = '20210129'.

DATA(ld_i_xguth) = some text here
DATA(ld_i_callid) = '20210129'.
DATA(ld_i_fkkko) = '20210129'.
DATA(ld_i_fkkop) = '20210129'. . CALL FUNCTION 'FKK_SAMPLE_1330' EXPORTING i_fkkvkp = ld_i_fkkvkp i_bldat = ld_i_bldat i_budat = ld_i_budat * i_cpudt = ld_i_cpudt * i_xguth = ld_i_xguth * i_callid = ld_i_callid * i_fkkko = ld_i_fkkko * i_fkkop = ld_i_fkkop IMPORTING e_faeds = ld_e_faeds e_sktpz = ld_e_sktpz e_faedn = ld_e_faedn EXCEPTIONS NOT_FOUND = 1 ZAHLKOND_INCORRECT = 2 . " FKK_SAMPLE_1330
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "Exception "Add code for exception here 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_faeds  TYPE FKKOP-FAEDS ,
ld_i_fkkvkp  TYPE FKKVKP ,
ld_e_sktpz  TYPE FKKOP-SKTPZ ,
ld_i_bldat  TYPE SY-DATLO ,
ld_e_faedn  TYPE FKKOP-FAEDN ,
ld_i_budat  TYPE SY-DATLO ,
ld_i_cpudt  TYPE SY-DATLO ,
ld_i_xguth  TYPE BOOLE-BOOLE ,
ld_i_callid  TYPE CALLID ,
ld_i_fkkko  TYPE FKKKO ,
ld_i_fkkop  TYPE FKKOP .

ld_i_fkkvkp = '20210129'.
ld_i_bldat = '20210129'.
ld_i_budat = '20210129'.
ld_i_cpudt = '20210129'.

ld_i_xguth = some text here
ld_i_callid = '20210129'.
ld_i_fkkko = '20210129'.
ld_i_fkkop = '20210129'.

SAP Documentation for FM FKK_SAMPLE_1330


The function module called at event 1330 gives you the option of determining the document due date as well as the cash discount due date ...See here for full SAP fm documentation






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_SAMPLE_1330 or its description.