SAP ISM_BAPI_007_GETLIST Function Module for IS-M: BAPI Select Business Partners
ISM_BAPI_007_GETLIST is a standard ism bapi 007 getlist SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for IS-M: BAPI Select Business Partners 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 ism bapi 007 getlist FM, simply by entering the name ISM_BAPI_007_GETLIST into the relevant SAP transaction such as SE37 or SE38.
Function Group: JGBP_BAPI2
Program Name: SAPLJGBP_BAPI2
Main Program: SAPLJGBP_BAPI2
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function ISM_BAPI_007_GETLIST 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 'ISM_BAPI_007_GETLIST'"IS-M: BAPI Select Business Partners.
EXPORTING
* TELEPHONE = "Telephone number for determining caller
* SOCIAL_INSURANCE_NUMBER = "IS-M: Social Insurance Number
* AGENCIES_ONLY = ' ' "IS-M: Read Agencies Only
* EMAIL = "Internet Mail (SMTP) Address
* ADDRESSDATA = "BAPI Structure for Searching for Address Attributes
* CENTRALDATA = "BAPI Structure for Search for Central Data
* BUSINESSPARTNERROLE = "Business Partner Role
* CUSTOMER_SEL = "IS-M: Selection Parameters for BAPIBUSISM007_GETLIST
* COMMON_SEL = "IS-M: Selection Parameters for BAPIBUSISM007_GETLIST
* USAGE_SEL = "IS-M: Use of Business Partners in Documents
* SALES_AREA_SEL = "
CHANGING
* PT_PARTNERS = "
TABLES
* PRODHIER_SEL = "IS-M: Select Using the Product Hierarchy for BAPIBUSISM007
* EXTENSION_IN = "Reference Structure for BAPI ExtensionIn/ExtensionOut Parameters
* PARTNER_LIST = "Selected Business Partners
* RETURN = "Error Messages
IMPORTING Parameters details for ISM_BAPI_007_GETLIST
TELEPHONE - Telephone number for determining caller
Data type: BAPIBUS1006_COMM-TELEPHONEOptional: Yes
Call by Reference: Yes
SOCIAL_INSURANCE_NUMBER - IS-M: Social Insurance Number
Data type: BAPIBUSISM007_SEL-SOCIAL_INSURANCE_NUMBEROptional: Yes
Call by Reference: Yes
AGENCIES_ONLY - IS-M: Read Agencies Only
Data type: BAPIBUSISM007_SEL-AGENCIES_ONLYDefault: SPACE
Optional: Yes
Call by Reference: Yes
EMAIL - Internet Mail (SMTP) Address
Data type: BAPIBUS1006_COMM-E_MAILOptional: Yes
Call by Reference: Yes
ADDRESSDATA - BAPI Structure for Searching for Address Attributes
Data type: BAPIBUS1006_ADDR_SEARCHOptional: Yes
Call by Reference: Yes
CENTRALDATA - BAPI Structure for Search for Central Data
Data type: BAPIBUS1006_CENTRAL_SEARCHOptional: Yes
Call by Reference: Yes
BUSINESSPARTNERROLE - Business Partner Role
Data type: BAPIBUS1006_HEAD-PARTNROLEOptional: Yes
Call by Reference: Yes
CUSTOMER_SEL - IS-M: Selection Parameters for BAPIBUSISM007_GETLIST
Data type: BAPIBUSISM007_CUSTOMER_SELOptional: Yes
Call by Reference: Yes
COMMON_SEL - IS-M: Selection Parameters for BAPIBUSISM007_GETLIST
Data type: BAPIBUSISM007_COMMON_SELOptional: Yes
Call by Reference: Yes
USAGE_SEL - IS-M: Use of Business Partners in Documents
Data type: BAPIBUSISM007_USAGE_SELOptional: Yes
Call by Reference: Yes
SALES_AREA_SEL -
Data type: BAPIBUSISM007_SALES_AREA_SELOptional: Yes
Call by Reference: Yes
CHANGING Parameters details for ISM_BAPI_007_GETLIST
PT_PARTNERS -
Data type: RJGBP_BU_PARTNER_TABOptional: Yes
Call by Reference: Yes
TABLES Parameters details for ISM_BAPI_007_GETLIST
PRODHIER_SEL - IS-M: Select Using the Product Hierarchy for BAPIBUSISM007
Data type: BAPIBUSISM007_PRODHIER_SELOptional: Yes
Call by Reference: Yes
EXTENSION_IN - Reference Structure for BAPI ExtensionIn/ExtensionOut Parameters
Data type: BAPIPAREXOptional: Yes
Call by Reference: Yes
PARTNER_LIST - Selected Business Partners
Data type: BAPIBUSISM007_NUMBERSOptional: Yes
Call by Reference: Yes
RETURN - Error Messages
Data type: BAPIRET2Optional: Yes
Call by Reference: Yes
Copy and paste ABAP code example for ISM_BAPI_007_GETLIST 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_telephone | TYPE BAPIBUS1006_COMM-TELEPHONE, " | |||
| lv_pt_partners | TYPE RJGBP_BU_PARTNER_TAB, " | |||
| lt_prodhier_sel | TYPE STANDARD TABLE OF BAPIBUSISM007_PRODHIER_SEL, " | |||
| lv_social_insurance_number | TYPE BAPIBUSISM007_SEL-SOCIAL_INSURANCE_NUMBER, " | |||
| lv_agencies_only | TYPE BAPIBUSISM007_SEL-AGENCIES_ONLY, " SPACE | |||
| lv_email | TYPE BAPIBUS1006_COMM-E_MAIL, " | |||
| lt_extension_in | TYPE STANDARD TABLE OF BAPIPAREX, " | |||
| lv_addressdata | TYPE BAPIBUS1006_ADDR_SEARCH, " | |||
| lt_partner_list | TYPE STANDARD TABLE OF BAPIBUSISM007_NUMBERS, " | |||
| lt_return | TYPE STANDARD TABLE OF BAPIRET2, " | |||
| lv_centraldata | TYPE BAPIBUS1006_CENTRAL_SEARCH, " | |||
| lv_businesspartnerrole | TYPE BAPIBUS1006_HEAD-PARTNROLE, " | |||
| lv_customer_sel | TYPE BAPIBUSISM007_CUSTOMER_SEL, " | |||
| lv_common_sel | TYPE BAPIBUSISM007_COMMON_SEL, " | |||
| lv_usage_sel | TYPE BAPIBUSISM007_USAGE_SEL, " | |||
| lv_sales_area_sel | TYPE BAPIBUSISM007_SALES_AREA_SEL. " |
|   CALL FUNCTION 'ISM_BAPI_007_GETLIST' "IS-M: BAPI Select Business Partners |
| EXPORTING | ||
| TELEPHONE | = lv_telephone | |
| SOCIAL_INSURANCE_NUMBER | = lv_social_insurance_number | |
| AGENCIES_ONLY | = lv_agencies_only | |
| = lv_email | ||
| ADDRESSDATA | = lv_addressdata | |
| CENTRALDATA | = lv_centraldata | |
| BUSINESSPARTNERROLE | = lv_businesspartnerrole | |
| CUSTOMER_SEL | = lv_customer_sel | |
| COMMON_SEL | = lv_common_sel | |
| USAGE_SEL | = lv_usage_sel | |
| SALES_AREA_SEL | = lv_sales_area_sel | |
| CHANGING | ||
| PT_PARTNERS | = lv_pt_partners | |
| TABLES | ||
| PRODHIER_SEL | = lt_prodhier_sel | |
| EXTENSION_IN | = lt_extension_in | |
| PARTNER_LIST | = lt_partner_list | |
| RETURN | = lt_return | |
| . " ISM_BAPI_007_GETLIST | ||
ABAP code using 7.40 inline data declarations to call FM ISM_BAPI_007_GETLIST
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 TELEPHONE FROM BAPIBUS1006_COMM INTO @DATA(ld_telephone). | ||||
| "SELECT single SOCIAL_INSURANCE_NUMBER FROM BAPIBUSISM007_SEL INTO @DATA(ld_social_insurance_number). | ||||
| "SELECT single AGENCIES_ONLY FROM BAPIBUSISM007_SEL INTO @DATA(ld_agencies_only). | ||||
| DATA(ld_agencies_only) | = ' '. | |||
| "SELECT single E_MAIL FROM BAPIBUS1006_COMM INTO @DATA(ld_email). | ||||
| "SELECT single PARTNROLE FROM BAPIBUS1006_HEAD INTO @DATA(ld_businesspartnerrole). | ||||
Search for further information about these or an SAP related objects