SAP BSPS_PATTERN_SEARCH Function Module for
BSPS_PATTERN_SEARCH is a standard bsps pattern search 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 bsps pattern search FM, simply by entering the name BSPS_PATTERN_SEARCH into the relevant SAP transaction such as SE37 or SE38.
Function Group: BSPS
Program Name: SAPLBSPS
Main Program: SAPLBSPS
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function BSPS_PATTERN_SEARCH 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 'BSPS_PATTERN_SEARCH'".
EXPORTING
BUS_PAR_FOUND = "
CHANGING
* C_FEBEP = "Electronic Bank Statement Line Items
* C_FEBKO = "Electronic Bank Statement Header Records
TABLES
EDGES_LIST = "
NOTE_TO_PAYEE = "Reference record for electronic bank statement line item
HITS = "
EXCEPTIONS
ERROR = 1 NOT_FOUND = 2
IMPORTING Parameters details for BSPS_PATTERN_SEARCH
BUS_PAR_FOUND -
Data type: COptional: No
Call by Reference: No ( called with pass by value option)
CHANGING Parameters details for BSPS_PATTERN_SEARCH
C_FEBEP - Electronic Bank Statement Line Items
Data type: FEBEPOptional: Yes
Call by Reference: No ( called with pass by value option)
C_FEBKO - Electronic Bank Statement Header Records
Data type: FEBKOOptional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for BSPS_PATTERN_SEARCH
EDGES_LIST -
Data type: BSPS_EDGES_LIST_TABLEOptional: No
Call by Reference: No ( called with pass by value option)
NOTE_TO_PAYEE - Reference record for electronic bank statement line item
Data type: FEBREOptional: No
Call by Reference: Yes
HITS -
Data type: BSPS_HITS_TABLEOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
ERROR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NOT_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for BSPS_PATTERN_SEARCH 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_c_febep | TYPE FEBEP, " | |||
| lt_edges_list | TYPE STANDARD TABLE OF BSPS_EDGES_LIST_TABLE, " | |||
| lv_bus_par_found | TYPE C, " | |||
| lv_c_febko | TYPE FEBKO, " | |||
| lv_not_found | TYPE FEBKO, " | |||
| lt_note_to_payee | TYPE STANDARD TABLE OF FEBRE, " | |||
| lt_hits | TYPE STANDARD TABLE OF BSPS_HITS_TABLE. " |
|   CALL FUNCTION 'BSPS_PATTERN_SEARCH' " |
| EXPORTING | ||
| BUS_PAR_FOUND | = lv_bus_par_found | |
| CHANGING | ||
| C_FEBEP | = lv_c_febep | |
| C_FEBKO | = lv_c_febko | |
| TABLES | ||
| EDGES_LIST | = lt_edges_list | |
| NOTE_TO_PAYEE | = lt_note_to_payee | |
| HITS | = lt_hits | |
| EXCEPTIONS | ||
| ERROR = 1 | ||
| NOT_FOUND = 2 | ||
| . " BSPS_PATTERN_SEARCH | ||
ABAP code using 7.40 inline data declarations to call FM BSPS_PATTERN_SEARCH
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