SAP BAPIBUSISM007_GETLIST Function Module for IS-M: BAPI Select Business Partners









BAPIBUSISM007_GETLIST is a standard bapibusism007 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 bapibusism007 getlist FM, simply by entering the name BAPIBUSISM007_GETLIST into the relevant SAP transaction such as SE37 or SE38.

Function Group: JGBP_BAPI1
Program Name: SAPLJGBP_BAPI1
Main Program: SAPLJGBP_BAPI1
Appliation area:
Release date: 24-Jan-2002
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function BAPIBUSISM007_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 'BAPIBUSISM007_GETLIST'"IS-M: BAPI Select Business Partners
EXPORTING
* TELEPHONE = "Selection by Telephone Number for Determining Caller
* SOCIAL_INSURANCE_NUMBER = "Selection by Social Insurance Number
* AGENCIES_ONLY = ' ' "Selection of Agencies Only (Yes/No)
* EMAIL = "Selection by Internet Mail (SMTP) Address
* ADDRESSDATA = "Selection by Address Attributes
* CENTRALDATA = "Selection for Central Data
* BUSINESSPARTNERROLE = "Selection by BP Role
* CUSTOMER_SEL = "Selection by Customer Attributes (KNA1)
* COMMON_SEL = "Selection According to Search Fields (BUT000)
* USAGE_SEL = "Selection by Use in Documents
* SALES_AREA_SEL = "Selection by Sales Area

TABLES
* PRODHIER_SEL = "Selection by Product Hierarchy Key
* EXTENSION_IN = "Reference Structure for BAPI ExtensionIn/ExtensionOut Parameters
* PARTNER_LIST = "Selected Business Partners
* RETURN = "Confirmations
.



IMPORTING Parameters details for BAPIBUSISM007_GETLIST

TELEPHONE - Selection by Telephone Number for Determining Caller

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

SOCIAL_INSURANCE_NUMBER - Selection by Social Insurance Number

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

AGENCIES_ONLY - Selection of Agencies Only (Yes/No)

Data type: BAPIBUSISM007_SEL-AGENCIES_ONLY
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

EMAIL - Selection by Internet Mail (SMTP) Address

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

ADDRESSDATA - Selection by Address Attributes

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

CENTRALDATA - Selection for Central Data

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

BUSINESSPARTNERROLE - Selection by BP Role

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

CUSTOMER_SEL - Selection by Customer Attributes (KNA1)

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

COMMON_SEL - Selection According to Search Fields (BUT000)

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

USAGE_SEL - Selection by Use in Documents

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

SALES_AREA_SEL - Selection by Sales Area

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

TABLES Parameters details for BAPIBUSISM007_GETLIST

PRODHIER_SEL - Selection by Product Hierarchy Key

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

EXTENSION_IN - Reference Structure for BAPI ExtensionIn/ExtensionOut Parameters

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

PARTNER_LIST - Selected Business Partners

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

RETURN - Confirmations

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

Copy and paste ABAP code example for BAPIBUSISM007_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, "   
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 'BAPIBUSISM007_GETLIST'  "IS-M: BAPI Select Business Partners
    EXPORTING
         TELEPHONE = lv_telephone
         SOCIAL_INSURANCE_NUMBER = lv_social_insurance_number
         AGENCIES_ONLY = lv_agencies_only
         EMAIL = 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
    TABLES
         PRODHIER_SEL = lt_prodhier_sel
         EXTENSION_IN = lt_extension_in
         PARTNER_LIST = lt_partner_list
         RETURN = lt_return
. " BAPIBUSISM007_GETLIST




ABAP code using 7.40 inline data declarations to call FM BAPIBUSISM007_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



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!