SAP BPAR_P_FI_PAYMENT_METHOD Function Module for NOTRANSL: Auswahl von Zahlwegen
BPAR_P_FI_PAYMENT_METHOD is a standard bpar p fi payment method SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: Auswahl von Zahlwegen 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 bpar p fi payment method FM, simply by entering the name BPAR_P_FI_PAYMENT_METHOD into the relevant SAP transaction such as SE37 or SE38.
Function Group: BPP1
Program Name: SAPLBPP1
Main Program:
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function BPAR_P_FI_PAYMENT_METHOD 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 'BPAR_P_FI_PAYMENT_METHOD'"NOTRANSL: Auswahl von Zahlwegen.
EXPORTING
LAND1 = "Country
* ZWELS = ' ' "List of default payment methods
* DIRECTION = ' ' "E(incoming payment method), A(outgoing payment method)
* FUNCTION = ' ' "D(isplay), S(elect), Space (change)
* TITLE_IN = ' ' "Window title
* ANZ_SEL = 0 "Max. no. of entries to be selected (0 - no limit)
IMPORTING
ZWELS_OUT = "List of processed payment methods
EXCEPTIONS
ERROR = 1
IMPORTING Parameters details for BPAR_P_FI_PAYMENT_METHOD
LAND1 - Country
Data type: T001-LAND1Optional: No
Call by Reference: No ( called with pass by value option)
ZWELS - List of default payment methods
Data type: KNB1-ZWELSDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
DIRECTION - E(incoming payment method), A(outgoing payment method)
Data type: BPIB0-BP_FLAGDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
FUNCTION - D(isplay), S(elect), Space (change)
Data type: BPIB0-BP_FLAGDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
TITLE_IN - Window title
Data type: BPIB0-BP_XLBEZ1Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
ANZ_SEL - Max. no. of entries to be selected (0 - no limit)
Data type: SY-DBCNTOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for BPAR_P_FI_PAYMENT_METHOD
ZWELS_OUT - List of processed payment methods
Data type: KNB1-ZWELSOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
ERROR - Error
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for BPAR_P_FI_PAYMENT_METHOD 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_error | TYPE STRING, " | |||
| lv_land1 | TYPE T001-LAND1, " | |||
| lv_zwels_out | TYPE KNB1-ZWELS, " | |||
| lv_zwels | TYPE KNB1-ZWELS, " SPACE | |||
| lv_direction | TYPE BPIB0-BP_FLAG, " SPACE | |||
| lv_function | TYPE BPIB0-BP_FLAG, " SPACE | |||
| lv_title_in | TYPE BPIB0-BP_XLBEZ1, " SPACE | |||
| lv_anz_sel | TYPE SY-DBCNT. " 0 |
|   CALL FUNCTION 'BPAR_P_FI_PAYMENT_METHOD' "NOTRANSL: Auswahl von Zahlwegen |
| EXPORTING | ||
| LAND1 | = lv_land1 | |
| ZWELS | = lv_zwels | |
| DIRECTION | = lv_direction | |
| FUNCTION | = lv_function | |
| TITLE_IN | = lv_title_in | |
| ANZ_SEL | = lv_anz_sel | |
| IMPORTING | ||
| ZWELS_OUT | = lv_zwels_out | |
| EXCEPTIONS | ||
| ERROR = 1 | ||
| . " BPAR_P_FI_PAYMENT_METHOD | ||
ABAP code using 7.40 inline data declarations to call FM BPAR_P_FI_PAYMENT_METHOD
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 LAND1 FROM T001 INTO @DATA(ld_land1). | ||||
| "SELECT single ZWELS FROM KNB1 INTO @DATA(ld_zwels_out). | ||||
| "SELECT single ZWELS FROM KNB1 INTO @DATA(ld_zwels). | ||||
| DATA(ld_zwels) | = ' '. | |||
| "SELECT single BP_FLAG FROM BPIB0 INTO @DATA(ld_direction). | ||||
| DATA(ld_direction) | = ' '. | |||
| "SELECT single BP_FLAG FROM BPIB0 INTO @DATA(ld_function). | ||||
| DATA(ld_function) | = ' '. | |||
| "SELECT single BP_XLBEZ1 FROM BPIB0 INTO @DATA(ld_title_in). | ||||
| DATA(ld_title_in) | = ' '. | |||
| "SELECT single DBCNT FROM SY INTO @DATA(ld_anz_sel). | ||||
Search for further information about these or an SAP related objects