SAP FKK_PAYMENT_METHOD_F4 Function Module for
FKK_PAYMENT_METHOD_F4 is a standard fkk payment method f4 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 payment method f4 FM, simply by entering the name FKK_PAYMENT_METHOD_F4 into the relevant SAP transaction such as SE37 or SE38.
Function Group: FKPZ
Program Name: SAPLFKPZ
Main Program: SAPLFKPZ
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function FKK_PAYMENT_METHOD_F4 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_PAYMENT_METHOD_F4'".
EXPORTING
* I_DYNP_PROGN = "Program Name for Screen
* I_GPART = "Business Partner Number
* I_VKONT = "Contract Account Number
* I_PYBUK = "Company Code for Automatic Payment Transactions
* I_LAND1 = "
* I_ZWELS = "
* I_SIGN = "
* I_XPRIOR = ' ' "
* I_XDISPLAY = ' ' "
* I_NO_DISPLAY = ' ' "
* I_XVERR = ' ' "
* I_DYNP_DYNNR = "
* I_CHECK_XVERR = ' ' "
* I_XSCHK = ' ' "
* I_NO_POPUP_IF_UNIQUE = ' ' "
* I_WITHOUT_EBPP = 'X' "
* I_XBKKT = ' ' "
* I_XBKKT_' ' = ' ' "
* I_DYNP_BUKRS = "
* I_DYNP_OPBUK = "
* I_DYNP_PYBUK = "
* I_DYNP_GPART = "
* I_DYNP_VKONT = "
* I_BUKRS = "
* I_OPBUK = "
IMPORTING
E_ZWELS = "
TABLES
* T_PAYMENT_METHODS = "
* T_PAYMENT_METHODS_WITH_TEXT = "Payment methods for automatic payment
EXCEPTIONS
CANCELLED = 1 NOTHING_TO_DISPLAY = 2
IMPORTING Parameters details for FKK_PAYMENT_METHOD_F4
I_DYNP_PROGN - Program Name for Screen
Data type: D020S-PROGOptional: Yes
Call by Reference: No ( called with pass by value option)
I_GPART - Business Partner Number
Data type: GPART_KKOptional: Yes
Call by Reference: No ( called with pass by value option)
I_VKONT - Contract Account Number
Data type: VKONT_KKOptional: Yes
Call by Reference: No ( called with pass by value option)
I_PYBUK - Company Code for Automatic Payment Transactions
Data type: PYBUK_KKOptional: Yes
Call by Reference: No ( called with pass by value option)
I_LAND1 -
Data type: T001-LAND1Optional: Yes
Call by Reference: No ( called with pass by value option)
I_ZWELS -
Data type: COptional: Yes
Call by Reference: No ( called with pass by value option)
I_SIGN -
Data type: COptional: Yes
Call by Reference: No ( called with pass by value option)
I_XPRIOR -
Data type: BOOLE-BOOLEDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_XDISPLAY -
Data type: BOOLE-BOOLEDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_NO_DISPLAY -
Data type: BOOLE-BOOLEDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_XVERR -
Data type: TFK042Z-XVERRDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_DYNP_DYNNR -
Data type: D020S-DNUMOptional: Yes
Call by Reference: No ( called with pass by value option)
I_CHECK_XVERR -
Data type: BOOLE-BOOLEDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_XSCHK -
Data type: BOOLE-BOOLEDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_NO_POPUP_IF_UNIQUE -
Data type: BOOLE-BOOLEDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_WITHOUT_EBPP -
Data type: BOOLE-BOOLEDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_XBKKT -
Data type: BOOLEANDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_XBKKT_SPACE -
Data type: BOOLEANDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_DYNP_BUKRS -
Data type: DYNPREAD-FIELDNAMEOptional: Yes
Call by Reference: No ( called with pass by value option)
I_DYNP_OPBUK -
Data type: DYNPREAD-FIELDNAMEOptional: Yes
Call by Reference: No ( called with pass by value option)
I_DYNP_PYBUK -
Data type: DYNPREAD-FIELDNAMEOptional: Yes
Call by Reference: No ( called with pass by value option)
I_DYNP_GPART -
Data type: DYNPREAD-FIELDNAMEOptional: Yes
Call by Reference: No ( called with pass by value option)
I_DYNP_VKONT -
Data type: DYNPREAD-FIELDNAMEOptional: Yes
Call by Reference: No ( called with pass by value option)
I_BUKRS -
Data type: T001-BUKRSOptional: Yes
Call by Reference: No ( called with pass by value option)
I_OPBUK -
Data type: OPBUK_KKOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for FKK_PAYMENT_METHOD_F4
E_ZWELS -
Data type: COptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for FKK_PAYMENT_METHOD_F4
T_PAYMENT_METHODS -
Data type: TFK042ZOptional: Yes
Call by Reference: Yes
T_PAYMENT_METHODS_WITH_TEXT - Payment methods for automatic payment
Data type: FKK042ZOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
CANCELLED - Canceled by user
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NOTHING_TO_DISPLAY -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for FKK_PAYMENT_METHOD_F4 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_zwels | TYPE C, " | |||
| lv_cancelled | TYPE C, " | |||
| lv_i_dynp_progn | TYPE D020S-PROG, " | |||
| lt_t_payment_methods | TYPE STANDARD TABLE OF TFK042Z, " | |||
| lv_i_gpart | TYPE GPART_KK, " | |||
| lv_i_vkont | TYPE VKONT_KK, " | |||
| lv_i_pybuk | TYPE PYBUK_KK, " | |||
| lv_i_land1 | TYPE T001-LAND1, " | |||
| lv_i_zwels | TYPE C, " | |||
| lv_i_sign | TYPE C, " | |||
| lv_i_xprior | TYPE BOOLE-BOOLE, " SPACE | |||
| lv_i_xdisplay | TYPE BOOLE-BOOLE, " SPACE | |||
| lv_i_no_display | TYPE BOOLE-BOOLE, " SPACE | |||
| lv_i_xverr | TYPE TFK042Z-XVERR, " SPACE | |||
| lv_i_dynp_dynnr | TYPE D020S-DNUM, " | |||
| lv_nothing_to_display | TYPE D020S, " | |||
| lt_t_payment_methods_with_text | TYPE STANDARD TABLE OF FKK042Z, " | |||
| lv_i_check_xverr | TYPE BOOLE-BOOLE, " SPACE | |||
| lv_i_xschk | TYPE BOOLE-BOOLE, " SPACE | |||
| lv_i_no_popup_if_unique | TYPE BOOLE-BOOLE, " SPACE | |||
| lv_i_without_ebpp | TYPE BOOLE-BOOLE, " 'X' | |||
| lv_i_xbkkt | TYPE BOOLEAN, " SPACE | |||
| lv_i_xbkkt_space | TYPE BOOLEAN, " SPACE | |||
| lv_i_dynp_bukrs | TYPE DYNPREAD-FIELDNAME, " | |||
| lv_i_dynp_opbuk | TYPE DYNPREAD-FIELDNAME, " | |||
| lv_i_dynp_pybuk | TYPE DYNPREAD-FIELDNAME, " | |||
| lv_i_dynp_gpart | TYPE DYNPREAD-FIELDNAME, " | |||
| lv_i_dynp_vkont | TYPE DYNPREAD-FIELDNAME, " | |||
| lv_i_bukrs | TYPE T001-BUKRS, " | |||
| lv_i_opbuk | TYPE OPBUK_KK. " |
|   CALL FUNCTION 'FKK_PAYMENT_METHOD_F4' " |
| EXPORTING | ||
| I_DYNP_PROGN | = lv_i_dynp_progn | |
| I_GPART | = lv_i_gpart | |
| I_VKONT | = lv_i_vkont | |
| I_PYBUK | = lv_i_pybuk | |
| I_LAND1 | = lv_i_land1 | |
| I_ZWELS | = lv_i_zwels | |
| I_SIGN | = lv_i_sign | |
| I_XPRIOR | = lv_i_xprior | |
| I_XDISPLAY | = lv_i_xdisplay | |
| I_NO_DISPLAY | = lv_i_no_display | |
| I_XVERR | = lv_i_xverr | |
| I_DYNP_DYNNR | = lv_i_dynp_dynnr | |
| I_CHECK_XVERR | = lv_i_check_xverr | |
| I_XSCHK | = lv_i_xschk | |
| I_NO_POPUP_IF_UNIQUE | = lv_i_no_popup_if_unique | |
| I_WITHOUT_EBPP | = lv_i_without_ebpp | |
| I_XBKKT | = lv_i_xbkkt | |
| I_XBKKT_SPACE | = lv_i_xbkkt_space | |
| I_DYNP_BUKRS | = lv_i_dynp_bukrs | |
| I_DYNP_OPBUK | = lv_i_dynp_opbuk | |
| I_DYNP_PYBUK | = lv_i_dynp_pybuk | |
| I_DYNP_GPART | = lv_i_dynp_gpart | |
| I_DYNP_VKONT | = lv_i_dynp_vkont | |
| I_BUKRS | = lv_i_bukrs | |
| I_OPBUK | = lv_i_opbuk | |
| IMPORTING | ||
| E_ZWELS | = lv_e_zwels | |
| TABLES | ||
| T_PAYMENT_METHODS | = lt_t_payment_methods | |
| T_PAYMENT_METHODS_WITH_TEXT | = lt_t_payment_methods_with_text | |
| EXCEPTIONS | ||
| CANCELLED = 1 | ||
| NOTHING_TO_DISPLAY = 2 | ||
| . " FKK_PAYMENT_METHOD_F4 | ||
ABAP code using 7.40 inline data declarations to call FM FKK_PAYMENT_METHOD_F4
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 PROG FROM D020S INTO @DATA(ld_i_dynp_progn). | ||||
| "SELECT single LAND1 FROM T001 INTO @DATA(ld_i_land1). | ||||
| "SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_xprior). | ||||
| DATA(ld_i_xprior) | = ' '. | |||
| "SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_xdisplay). | ||||
| DATA(ld_i_xdisplay) | = ' '. | |||
| "SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_no_display). | ||||
| DATA(ld_i_no_display) | = ' '. | |||
| "SELECT single XVERR FROM TFK042Z INTO @DATA(ld_i_xverr). | ||||
| DATA(ld_i_xverr) | = ' '. | |||
| "SELECT single DNUM FROM D020S INTO @DATA(ld_i_dynp_dynnr). | ||||
| "SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_check_xverr). | ||||
| DATA(ld_i_check_xverr) | = ' '. | |||
| "SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_xschk). | ||||
| DATA(ld_i_xschk) | = ' '. | |||
| "SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_no_popup_if_unique). | ||||
| DATA(ld_i_no_popup_if_unique) | = ' '. | |||
| "SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_without_ebpp). | ||||
| DATA(ld_i_without_ebpp) | = 'X'. | |||
| DATA(ld_i_xbkkt) | = ' '. | |||
| DATA(ld_i_xbkkt_space) | = ' '. | |||
| "SELECT single FIELDNAME FROM DYNPREAD INTO @DATA(ld_i_dynp_bukrs). | ||||
| "SELECT single FIELDNAME FROM DYNPREAD INTO @DATA(ld_i_dynp_opbuk). | ||||
| "SELECT single FIELDNAME FROM DYNPREAD INTO @DATA(ld_i_dynp_pybuk). | ||||
| "SELECT single FIELDNAME FROM DYNPREAD INTO @DATA(ld_i_dynp_gpart). | ||||
| "SELECT single FIELDNAME FROM DYNPREAD INTO @DATA(ld_i_dynp_vkont). | ||||
| "SELECT single BUKRS FROM T001 INTO @DATA(ld_i_bukrs). | ||||
Search for further information about these or an SAP related objects