SAP CRM_ISAM_BPSEARCH_CONTROL Function Module for Search business partners using vehicle parameters









CRM_ISAM_BPSEARCH_CONTROL is a standard crm isam bpsearch control SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Search business partners using vehicle parameters 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 crm isam bpsearch control FM, simply by entering the name CRM_ISAM_BPSEARCH_CONTROL into the relevant SAP transaction such as SE37 or SE38.

Function Group: CRM_CIC_BP_SUB
Program Name: SAPLCRM_CIC_BP_SUB
Main Program: SAPLCRM_CIC_BP_SUB
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function CRM_ISAM_BPSEARCH_CONTROL 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 'CRM_ISAM_BPSEARCH_CONTROL'"Search business partners using vehicle parameters
EXPORTING
* SEARCHTYPE = "Search Type
INPUT_STRUCT = "Search and Display Component - All Fields
* POP_LIST = "Single-character flag

IMPORTING
TARGETBP = "Business partner identification with IBase Component Ident.
TARGETCOMP = "Component identification
OUTPUT_STRUCT = "Search and Display Component - All Fields

TABLES
* SCRIPT_TAB = "Contains HTML for WWW client

EXCEPTIONS
CANCEL = 1 NOT_FOUND = 2
.



IMPORTING Parameters details for CRM_ISAM_BPSEARCH_CONTROL

SEARCHTYPE - Search Type

Data type: CCMSRCHTYPE
Optional: Yes
Call by Reference: Yes

INPUT_STRUCT - Search and Display Component - All Fields

Data type: CCMSEARCH_STRUCT
Optional: No
Call by Reference: Yes

POP_LIST - Single-character flag

Data type: CHAR1
Optional: Yes
Call by Reference: Yes

EXPORTING Parameters details for CRM_ISAM_BPSEARCH_CONTROL

TARGETBP - Business partner identification with IBase Component Ident.

Data type: CRMT_CIC_BPIDENT
Optional: No
Call by Reference: Yes

TARGETCOMP - Component identification

Data type: CRMT_CIC_COMPIDENT
Optional: No
Call by Reference: Yes

OUTPUT_STRUCT - Search and Display Component - All Fields

Data type: CCMSEARCH_STRUCT
Optional: No
Call by Reference: Yes

TABLES Parameters details for CRM_ISAM_BPSEARCH_CONTROL

SCRIPT_TAB - Contains HTML for WWW client

Data type: W3HTML
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

CANCEL -

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 CRM_ISAM_BPSEARCH_CONTROL 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_cancel  TYPE STRING, "   
lv_targetbp  TYPE CRMT_CIC_BPIDENT, "   
lt_script_tab  TYPE STANDARD TABLE OF W3HTML, "   
lv_searchtype  TYPE CCMSRCHTYPE, "   
lv_not_found  TYPE CCMSRCHTYPE, "   
lv_targetcomp  TYPE CRMT_CIC_COMPIDENT, "   
lv_input_struct  TYPE CCMSEARCH_STRUCT, "   
lv_pop_list  TYPE CHAR1, "   
lv_output_struct  TYPE CCMSEARCH_STRUCT. "   

  CALL FUNCTION 'CRM_ISAM_BPSEARCH_CONTROL'  "Search business partners using vehicle parameters
    EXPORTING
         SEARCHTYPE = lv_searchtype
         INPUT_STRUCT = lv_input_struct
         POP_LIST = lv_pop_list
    IMPORTING
         TARGETBP = lv_targetbp
         TARGETCOMP = lv_targetcomp
         OUTPUT_STRUCT = lv_output_struct
    TABLES
         SCRIPT_TAB = lt_script_tab
    EXCEPTIONS
        CANCEL = 1
        NOT_FOUND = 2
. " CRM_ISAM_BPSEARCH_CONTROL




ABAP code using 7.40 inline data declarations to call FM CRM_ISAM_BPSEARCH_CONTROL

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



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!