SAP FKK_SAMPLE_0185 Function Module for
FKK_SAMPLE_0185 is a standard fkk sample 0185 SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 sample 0185 FM, simply by entering the name FKK_SAMPLE_0185 into the relevant SAP transaction such as SE37 or SE38.
Function Group: FKMU
Program Name: SAPLFKMU
Main Program: SAPLFKMU
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function FKK_SAMPLE_0185 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_SAMPLE_0185'".
EXPORTING
I_DFKKPP = "Header Data of Promise to Pay
* I_DFKKPPD_TAB = "Due Dates
* I_DFKKPPI_TAB = "Related Items
* I_DFKKPPP_TAB = "Related Payments
* I_PRODT = "Only Payments Promised by this Date
IMPORTING
E_BETRZ = "Payment Amount in Currency of Promise to Pay
E_RDAMT = "Amount Cleared by Other Means
E_DEGFF = "Level of Fulfillment
E_PPSTA = "Status
E_BETRD = "Amount to Be Paid (by Date Specified)
E_FKKPP_STATUS_TAB = "Table for FKKPP_STATUS
IMPORTING Parameters details for FKK_SAMPLE_0185
I_DFKKPP - Header Data of Promise to Pay
Data type: DFKKPPOptional: No
Call by Reference: No ( called with pass by value option)
I_DFKKPPD_TAB - Due Dates
Data type: DFKKPPD_TABOptional: Yes
Call by Reference: No ( called with pass by value option)
I_DFKKPPI_TAB - Related Items
Data type: DFKKPPI_TABOptional: Yes
Call by Reference: No ( called with pass by value option)
I_DFKKPPP_TAB - Related Payments
Data type: DFKKPPP_TABOptional: Yes
Call by Reference: No ( called with pass by value option)
I_PRODT - Only Payments Promised by this Date
Data type: DOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for FKK_SAMPLE_0185
E_BETRZ - Payment Amount in Currency of Promise to Pay
Data type: BETRZ_PC_KKOptional: No
Call by Reference: No ( called with pass by value option)
E_RDAMT - Amount Cleared by Other Means
Data type: RDAMT_KKOptional: No
Call by Reference: No ( called with pass by value option)
E_DEGFF - Level of Fulfillment
Data type: DEGFF_KKOptional: No
Call by Reference: No ( called with pass by value option)
E_PPSTA - Status
Data type: PPSTA_KKOptional: No
Call by Reference: No ( called with pass by value option)
E_BETRD - Amount to Be Paid (by Date Specified)
Data type: BETRW_KKOptional: No
Call by Reference: No ( called with pass by value option)
E_FKKPP_STATUS_TAB - Table for FKKPP_STATUS
Data type: FKKPP_STATUS_TABOptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for FKK_SAMPLE_0185 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_e_betrz | TYPE BETRZ_PC_KK, " | |||
| lv_i_dfkkpp | TYPE DFKKPP, " | |||
| lv_e_rdamt | TYPE RDAMT_KK, " | |||
| lv_i_dfkkppd_tab | TYPE DFKKPPD_TAB, " | |||
| lv_e_degff | TYPE DEGFF_KK, " | |||
| lv_i_dfkkppi_tab | TYPE DFKKPPI_TAB, " | |||
| lv_e_ppsta | TYPE PPSTA_KK, " | |||
| lv_i_dfkkppp_tab | TYPE DFKKPPP_TAB, " | |||
| lv_e_betrd | TYPE BETRW_KK, " | |||
| lv_i_prodt | TYPE D, " | |||
| lv_e_fkkpp_status_tab | TYPE FKKPP_STATUS_TAB. " |
|   CALL FUNCTION 'FKK_SAMPLE_0185' " |
| EXPORTING | ||
| I_DFKKPP | = lv_i_dfkkpp | |
| I_DFKKPPD_TAB | = lv_i_dfkkppd_tab | |
| I_DFKKPPI_TAB | = lv_i_dfkkppi_tab | |
| I_DFKKPPP_TAB | = lv_i_dfkkppp_tab | |
| I_PRODT | = lv_i_prodt | |
| IMPORTING | ||
| E_BETRZ | = lv_e_betrz | |
| E_RDAMT | = lv_e_rdamt | |
| E_DEGFF | = lv_e_degff | |
| E_PPSTA | = lv_e_ppsta | |
| E_BETRD | = lv_e_betrd | |
| E_FKKPP_STATUS_TAB | = lv_e_fkkpp_status_tab | |
| . " FKK_SAMPLE_0185 | ||
ABAP code using 7.40 inline data declarations to call FM FKK_SAMPLE_0185
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.Search for further information about these or an SAP related objects