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
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
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).
| ld_e_faeds | TYPE FKKOP-FAEDS , |
| ld_e_sktpz | TYPE FKKOP-SKTPZ , |
| ld_e_faedn | TYPE FKKOP-FAEDN . |
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 . |
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
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.