SAP BAPI_BUSPARTNER_GETDETAIL Function Module for IS-H: BAPI BusPartner.GetDetail - Display Business Partner Details
BAPI_BUSPARTNER_GETDETAIL is a standard bapi buspartner getdetail 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-H: BAPI BusPartner.GetDetail - Display Business Partner Details 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 bapi buspartner getdetail FM, simply by entering the name BAPI_BUSPARTNER_GETDETAIL into the relevant SAP transaction such as SE37 or SE38.
Function Group: 1309
Program Name: SAPL1309
Main Program: SAPL1309
Appliation area:
Release date: 14-Oct-2009
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function BAPI_BUSPARTNER_GETDETAIL 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 'BAPI_BUSPARTNER_GETDETAIL'"IS-H: BAPI BusPartner.GetDetail - Display Business Partner Details.
EXPORTING
BPARTNERID = "IS-H: Business Partner
* INSTITUTION = "IS-H: Institution
* COMP_CODE = "Company Code
IMPORTING
BPARTNER_DATA = "IS-H BAPI Business Partner Data
DEFAULT_CSCHEME = "IS-H BAPI Business Partner - Default Contract Scheme-Ins.Provider
WORST_RETURNED_MSGTY = "IS-H: Most Severe Message Type Generated
ADDRESS_DATA = "IS-H: Addresses (Central Address Structure)
PERSON_DATA = "IS-H BAPI Business Partner - Person Data
CUSTOMER_DATA = "IS-H BAPI Business Partner - Customer Data
FICUSTOMER_DATA = "IS-H BAPI Business Partner FI Customer Data Return Data
INSPROVIDER_DATA = "IS-H BAPI Business Partner - Insurance Provider Data
HOSPITAL_DATA = "IS-H BAPI Business Partner - Hospital Data
EMPLOYER_DATA = "IS-H BAPI Business Partner - Employer Data
IP_TYPE_DATA = "IS-H Business Partner - Insurance Provider Type
TABLES
* ADD_PHONE = "IS-H BAPI Additional Telephone Numbers
* ASS_PER_WORKNO = "IS-H BAPI Person-Place of Work Number Assignment
* ASS_PER_NASHOSP = "Hospitals Assigned
* INSPROVIDER_INSTITU = "Institution-Dependent Insurance Provider Data
* ASS_PER_SPEC = "IS-H BAPI Person-to-Specialty Assignment
* RETURN = "Return Parameters
* ASS_PER_USR = "IS-H BAPI Person-to-User Name Assignment
* INSPROVIDER_REL = "IS-H BAPI Insurance Provider Relationships
* CUSTOMER_BANK = "IS-H BAPI Business Partner FI Bank Data Return Data
* ASS_PER_QLDI = "IS-H CH: BAPI Person-to-Qualitative Grade Assignment
* ASS_PER_QTDI = "IS-H CH: BAPI Person-to-Quantitative Grade Assignment
* ASS_PER_KVPHYSNO = "IS-H BAPI Person-HI Physician Number Assignment
IMPORTING Parameters details for BAPI_BUSPARTNER_GETDETAIL
BPARTNERID - IS-H: Business Partner
Data type: BAPI1309BPARTNER-BPARTNEROptional: No
Call by Reference: No ( called with pass by value option)
INSTITUTION - IS-H: Institution
Data type: BAPI2098DATA-INSTITUTIONOptional: Yes
Call by Reference: No ( called with pass by value option)
COMP_CODE - Company Code
Data type: BAPI1309CUSTOMER-COMP_CODEOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for BAPI_BUSPARTNER_GETDETAIL
BPARTNER_DATA - IS-H BAPI Business Partner Data
Data type: BAPI1309BPARTNEROptional: No
Call by Reference: No ( called with pass by value option)
DEFAULT_CSCHEME - IS-H BAPI Business Partner - Default Contract Scheme-Ins.Provider
Data type: BAPI1309CONTSCHEMEDEFAULTOptional: No
Call by Reference: No ( called with pass by value option)
WORST_RETURNED_MSGTY - IS-H: Most Severe Message Type Generated
Data type: BAPINALL-WORSTRETMSGOptional: No
Call by Reference: No ( called with pass by value option)
ADDRESS_DATA - IS-H: Addresses (Central Address Structure)
Data type: BAPINADDROptional: No
Call by Reference: No ( called with pass by value option)
PERSON_DATA - IS-H BAPI Business Partner - Person Data
Data type: BAPI1309PERSONOptional: No
Call by Reference: No ( called with pass by value option)
CUSTOMER_DATA - IS-H BAPI Business Partner - Customer Data
Data type: BAPI1309CUSTOMEROptional: No
Call by Reference: No ( called with pass by value option)
FICUSTOMER_DATA - IS-H BAPI Business Partner FI Customer Data Return Data
Data type: BAPI1309FICUSTOMEROptional: No
Call by Reference: No ( called with pass by value option)
INSPROVIDER_DATA - IS-H BAPI Business Partner - Insurance Provider Data
Data type: BAPI1309INS_PROVIDEROptional: No
Call by Reference: No ( called with pass by value option)
HOSPITAL_DATA - IS-H BAPI Business Partner - Hospital Data
Data type: BAPI1309HOSPITALOptional: No
Call by Reference: No ( called with pass by value option)
EMPLOYER_DATA - IS-H BAPI Business Partner - Employer Data
Data type: BAPI1309EMPLOYEROptional: No
Call by Reference: No ( called with pass by value option)
IP_TYPE_DATA - IS-H Business Partner - Insurance Provider Type
Data type: BAPI1309INS_PROVIDER_TYPEOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for BAPI_BUSPARTNER_GETDETAIL
ADD_PHONE - IS-H BAPI Additional Telephone Numbers
Data type: BAPINADDR2Optional: Yes
Call by Reference: Yes
ASS_PER_WORKNO - IS-H BAPI Person-Place of Work Number Assignment
Data type: BAPI1309PERWORKNOOptional: Yes
Call by Reference: Yes
ASS_PER_NASHOSP - Hospitals Assigned
Data type: /ISHFR/BAPI1309NASHOSPOptional: Yes
Call by Reference: Yes
INSPROVIDER_INSTITU - Institution-Dependent Insurance Provider Data
Data type: BAPI1309INSPROV_INSTITUOptional: Yes
Call by Reference: Yes
ASS_PER_SPEC - IS-H BAPI Person-to-Specialty Assignment
Data type: BAPI1309PERSPECOptional: Yes
Call by Reference: Yes
RETURN - Return Parameters
Data type: BAPIRET2Optional: Yes
Call by Reference: Yes
ASS_PER_USR - IS-H BAPI Person-to-User Name Assignment
Data type: BAPI1309PERUSROptional: Yes
Call by Reference: Yes
INSPROVIDER_REL - IS-H BAPI Insurance Provider Relationships
Data type: BAPI1309INSPROVIDER_RELOptional: Yes
Call by Reference: Yes
CUSTOMER_BANK - IS-H BAPI Business Partner FI Bank Data Return Data
Data type: BAPI1309FIBANKOptional: Yes
Call by Reference: Yes
ASS_PER_QLDI - IS-H CH: BAPI Person-to-Qualitative Grade Assignment
Data type: BAPI1309PERQLDIOptional: Yes
Call by Reference: Yes
ASS_PER_QTDI - IS-H CH: BAPI Person-to-Quantitative Grade Assignment
Data type: BAPI1309PERQTDIOptional: Yes
Call by Reference: Yes
ASS_PER_KVPHYSNO - IS-H BAPI Person-HI Physician Number Assignment
Data type: BAPI1309PERPHYSNOOptional: Yes
Call by Reference: Yes
Copy and paste ABAP code example for BAPI_BUSPARTNER_GETDETAIL 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: | ||||
| lt_add_phone | TYPE STANDARD TABLE OF BAPINADDR2, " | |||
| lv_bpartnerid | TYPE BAPI1309BPARTNER-BPARTNER, " | |||
| lv_bpartner_data | TYPE BAPI1309BPARTNER, " | |||
| lt_ass_per_workno | TYPE STANDARD TABLE OF BAPI1309PERWORKNO, " | |||
| lv_default_cscheme | TYPE BAPI1309CONTSCHEMEDEFAULT, " | |||
| lt_ass_per_nashosp | TYPE STANDARD TABLE OF /ISHFR/BAPI1309NASHOSP, " | |||
| lv_worst_returned_msgty | TYPE BAPINALL-WORSTRETMSG, " | |||
| lt_insprovider_institu | TYPE STANDARD TABLE OF BAPI1309INSPROV_INSTITU, " | |||
| lv_institution | TYPE BAPI2098DATA-INSTITUTION, " | |||
| lv_address_data | TYPE BAPINADDR, " | |||
| lt_ass_per_spec | TYPE STANDARD TABLE OF BAPI1309PERSPEC, " | |||
| lt_return | TYPE STANDARD TABLE OF BAPIRET2, " | |||
| lv_comp_code | TYPE BAPI1309CUSTOMER-COMP_CODE, " | |||
| lv_person_data | TYPE BAPI1309PERSON, " | |||
| lt_ass_per_usr | TYPE STANDARD TABLE OF BAPI1309PERUSR, " | |||
| lv_customer_data | TYPE BAPI1309CUSTOMER, " | |||
| lv_ficustomer_data | TYPE BAPI1309FICUSTOMER, " | |||
| lt_insprovider_rel | TYPE STANDARD TABLE OF BAPI1309INSPROVIDER_REL, " | |||
| lt_customer_bank | TYPE STANDARD TABLE OF BAPI1309FIBANK, " | |||
| lv_insprovider_data | TYPE BAPI1309INS_PROVIDER, " | |||
| lt_ass_per_qldi | TYPE STANDARD TABLE OF BAPI1309PERQLDI, " | |||
| lv_hospital_data | TYPE BAPI1309HOSPITAL, " | |||
| lt_ass_per_qtdi | TYPE STANDARD TABLE OF BAPI1309PERQTDI, " | |||
| lv_employer_data | TYPE BAPI1309EMPLOYER, " | |||
| lv_ip_type_data | TYPE BAPI1309INS_PROVIDER_TYPE, " | |||
| lt_ass_per_kvphysno | TYPE STANDARD TABLE OF BAPI1309PERPHYSNO. " |
|   CALL FUNCTION 'BAPI_BUSPARTNER_GETDETAIL' "IS-H: BAPI BusPartner.GetDetail - Display Business Partner Details |
| EXPORTING | ||
| BPARTNERID | = lv_bpartnerid | |
| INSTITUTION | = lv_institution | |
| COMP_CODE | = lv_comp_code | |
| IMPORTING | ||
| BPARTNER_DATA | = lv_bpartner_data | |
| DEFAULT_CSCHEME | = lv_default_cscheme | |
| WORST_RETURNED_MSGTY | = lv_worst_returned_msgty | |
| ADDRESS_DATA | = lv_address_data | |
| PERSON_DATA | = lv_person_data | |
| CUSTOMER_DATA | = lv_customer_data | |
| FICUSTOMER_DATA | = lv_ficustomer_data | |
| INSPROVIDER_DATA | = lv_insprovider_data | |
| HOSPITAL_DATA | = lv_hospital_data | |
| EMPLOYER_DATA | = lv_employer_data | |
| IP_TYPE_DATA | = lv_ip_type_data | |
| TABLES | ||
| ADD_PHONE | = lt_add_phone | |
| ASS_PER_WORKNO | = lt_ass_per_workno | |
| ASS_PER_NASHOSP | = lt_ass_per_nashosp | |
| INSPROVIDER_INSTITU | = lt_insprovider_institu | |
| ASS_PER_SPEC | = lt_ass_per_spec | |
| RETURN | = lt_return | |
| ASS_PER_USR | = lt_ass_per_usr | |
| INSPROVIDER_REL | = lt_insprovider_rel | |
| CUSTOMER_BANK | = lt_customer_bank | |
| ASS_PER_QLDI | = lt_ass_per_qldi | |
| ASS_PER_QTDI | = lt_ass_per_qtdi | |
| ASS_PER_KVPHYSNO | = lt_ass_per_kvphysno | |
| . " BAPI_BUSPARTNER_GETDETAIL | ||
ABAP code using 7.40 inline data declarations to call FM BAPI_BUSPARTNER_GETDETAIL
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 BPARTNER FROM BAPI1309BPARTNER INTO @DATA(ld_bpartnerid). | ||||
| "SELECT single WORSTRETMSG FROM BAPINALL INTO @DATA(ld_worst_returned_msgty). | ||||
| "SELECT single INSTITUTION FROM BAPI2098DATA INTO @DATA(ld_institution). | ||||
| "SELECT single COMP_CODE FROM BAPI1309CUSTOMER INTO @DATA(ld_comp_code). | ||||
Search for further information about these or an SAP related objects