SAP FKK_CD_POST_DOCUMENT Function Module for Post Document
FKK_CD_POST_DOCUMENT is a standard fkk cd post document SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Post Document processing and below is the pattern details for this FM, 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 cd post document FM, simply by entering the name FKK_CD_POST_DOCUMENT into the relevant SAP transaction such as SE37 or SE38.
Function Group: FKH0
Program Name: SAPLFKH0
Main Program: SAPLFKH0
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function FKK_CD_POST_DOCUMENT 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_CD_POST_DOCUMENT'"Post Document.
EXPORTING
I_AVKEY = "Payment Advice Note
* I_AUGVD = "Value date for clearing
* I_XSIMU = "Simulation
I_FKKKO = "Header Data for Open Item Accounting Document
I_RFKH0 = "Screen Fields for FKH0 - FI-CA Cash Payments
* I_ACCMTCE = ' ' "
* I_ACCPRINT = ' ' "
* I_EXTSERV = "Checkbox
* I_INDEX = "Index of Internal Tables
* I_MULTIGL = ' ' "
* I_AMDOC = ' ' "Data Element for BOOLE Domain: TRUE (='X') and FALSE (=' ')
CHANGING
C_KURSF = "Exchange Rate
C_AMNT_DIFF = "Amount Difference to Posted Payment
CT_AVISPOS = "Table Type for Payment Advice Note for Item Type DFKKAVP
CT_FKKCL = "Table with Clearing Information
CT_FKKOP = "Table Type for FKKOP
CT_FKKOPK = "Table Type for FKKOPK
CT_POSTDOCS = "Table Type for Structure POSTED_DOC
* CT_FKKCDREF = "Cash Desk/Cash Journal: Table Type for DFKKCDREF
IMPORTING Parameters details for FKK_CD_POST_DOCUMENT
I_AVKEY - Payment Advice Note
Data type: AVKEY_KKOptional: No
Call by Reference: Yes
I_AUGVD - Value date for clearing
Data type: AUGVD_KKOptional: Yes
Call by Reference: Yes
I_XSIMU - Simulation
Data type: SIMUL_KKOptional: Yes
Call by Reference: Yes
I_FKKKO - Header Data for Open Item Accounting Document
Data type: FKKKOOptional: No
Call by Reference: Yes
I_RFKH0 - Screen Fields for FKH0 - FI-CA Cash Payments
Data type: RFKH0Optional: No
Call by Reference: Yes
I_ACCMTCE -
Data type: BOOLE-BOOLEDefault: SPACE
Optional: Yes
Call by Reference: Yes
I_ACCPRINT -
Data type: BOOLE-BOOLEDefault: SPACE
Optional: Yes
Call by Reference: Yes
I_EXTSERV - Checkbox
Data type: XFELDOptional: Yes
Call by Reference: Yes
I_INDEX - Index of Internal Tables
Data type: SYTABIXOptional: Yes
Call by Reference: Yes
I_MULTIGL -
Data type: BOOLE-BOOLEDefault: SPACE
Optional: Yes
Call by Reference: Yes
I_AMDOC - Data Element for BOOLE Domain: TRUE (='X') and FALSE (=' ')
Data type: BOOLE-BOOLEDefault: SPACE
Optional: Yes
Call by Reference: Yes
CHANGING Parameters details for FKK_CD_POST_DOCUMENT
C_KURSF - Exchange Rate
Data type: KURSF_KKOptional: No
Call by Reference: Yes
C_AMNT_DIFF - Amount Difference to Posted Payment
Data type: AMNT_DIFFOptional: No
Call by Reference: Yes
CT_AVISPOS - Table Type for Payment Advice Note for Item Type DFKKAVP
Data type: FKKAVP_TOptional: No
Call by Reference: Yes
CT_FKKCL - Table with Clearing Information
Data type: FKKCL_TOptional: No
Call by Reference: Yes
CT_FKKOP - Table Type for FKKOP
Data type: FKKOP_TOptional: No
Call by Reference: Yes
CT_FKKOPK - Table Type for FKKOPK
Data type: FKKOPK_TOptional: No
Call by Reference: Yes
CT_POSTDOCS - Table Type for Structure POSTED_DOC
Data type: POSTED_DOC_TOptional: No
Call by Reference: Yes
CT_FKKCDREF - Cash Desk/Cash Journal: Table Type for DFKKCDREF
Data type: FKKCDREF_TOptional: Yes
Call by Reference: Yes
Copy and paste ABAP code example for FKK_CD_POST_DOCUMENT 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: | ||||
| lv_c_kursf | TYPE KURSF_KK, " | |||
| lv_i_avkey | TYPE AVKEY_KK, " | |||
| lv_i_augvd | TYPE AUGVD_KK, " | |||
| lv_i_xsimu | TYPE SIMUL_KK, " | |||
| lv_i_fkkko | TYPE FKKKO, " | |||
| lv_c_amnt_diff | TYPE AMNT_DIFF, " | |||
| lv_i_rfkh0 | TYPE RFKH0, " | |||
| lv_ct_avispos | TYPE FKKAVP_T, " | |||
| lv_ct_fkkcl | TYPE FKKCL_T, " | |||
| lv_i_accmtce | TYPE BOOLE-BOOLE, " SPACE | |||
| lv_ct_fkkop | TYPE FKKOP_T, " | |||
| lv_i_accprint | TYPE BOOLE-BOOLE, " SPACE | |||
| lv_ct_fkkopk | TYPE FKKOPK_T, " | |||
| lv_i_extserv | TYPE XFELD, " | |||
| lv_i_index | TYPE SYTABIX, " | |||
| lv_ct_postdocs | TYPE POSTED_DOC_T, " | |||
| lv_i_multigl | TYPE BOOLE-BOOLE, " SPACE | |||
| lv_ct_fkkcdref | TYPE FKKCDREF_T, " | |||
| lv_i_amdoc | TYPE BOOLE-BOOLE. " SPACE |
|   CALL FUNCTION 'FKK_CD_POST_DOCUMENT' "Post Document |
| EXPORTING | ||
| I_AVKEY | = lv_i_avkey | |
| I_AUGVD | = lv_i_augvd | |
| I_XSIMU | = lv_i_xsimu | |
| I_FKKKO | = lv_i_fkkko | |
| I_RFKH0 | = lv_i_rfkh0 | |
| I_ACCMTCE | = lv_i_accmtce | |
| I_ACCPRINT | = lv_i_accprint | |
| I_EXTSERV | = lv_i_extserv | |
| I_INDEX | = lv_i_index | |
| I_MULTIGL | = lv_i_multigl | |
| I_AMDOC | = lv_i_amdoc | |
| CHANGING | ||
| C_KURSF | = lv_c_kursf | |
| C_AMNT_DIFF | = lv_c_amnt_diff | |
| CT_AVISPOS | = lv_ct_avispos | |
| CT_FKKCL | = lv_ct_fkkcl | |
| CT_FKKOP | = lv_ct_fkkop | |
| CT_FKKOPK | = lv_ct_fkkopk | |
| CT_POSTDOCS | = lv_ct_postdocs | |
| CT_FKKCDREF | = lv_ct_fkkcdref | |
| . " FKK_CD_POST_DOCUMENT | ||
ABAP code using 7.40 inline data declarations to call FM FKK_CD_POST_DOCUMENT
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_i_accmtce). | ||||
| DATA(ld_i_accmtce) | = ' '. | |||
| "SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_accprint). | ||||
| DATA(ld_i_accprint) | = ' '. | |||
| "SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_multigl). | ||||
| DATA(ld_i_multigl) | = ' '. | |||
| "SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_amdoc). | ||||
| DATA(ld_i_amdoc) | = ' '. | |||
Search for further information about these or an SAP related objects