Fonction SAP BAPI_BUSPARTNER_GETDETAIL - IS-H: BAPI BusPartner.GetDetail - Display Business Partner Details

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
BPARTNERID BAPI1309BPARTNER-BPARTNER C 10 IS-H: Business Partner
COMP_CODE BAPI1309CUSTOMER-COMP_CODE C 4 X Company Code
INSTITUTION BAPI2098DATA-INSTITUTION C 4 X IS-H: Institution

Paramètre Reférence Type Long. Description
ADDRESS_DATA BAPINADDR u 994 IS-H: Addresses (Central Address Structure)
BPARTNER_DATA BAPI1309BPARTNER u 461 IS-H BAPI Business Partner Data
CUSTOMER_DATA BAPI1309CUSTOMER u 78 IS-H BAPI Business Partner - Customer Data
DEFAULT_CSCHEME BAPI1309CONTSCHEMEDEFAULT u 26 IS-H BAPI Business Partner - Default Contract Scheme-Ins.Provider
EMPLOYER_DATA BAPI1309EMPLOYER u 74 IS-H BAPI Business Partner - Employer Data
FICUSTOMER_DATA BAPI1309FICUSTOMER u 46 IS-H BAPI Business Partner FI Customer Data Return Data
HOSPITAL_DATA BAPI1309HOSPITAL u 66 IS-H BAPI Business Partner - Hospital Data
INSPROVIDER_DATA BAPI1309INS_PROVIDER u 373 IS-H BAPI Business Partner - Insurance Provider Data
IP_TYPE_DATA BAPI1309INS_PROVIDER_TYPE u 58 IS-H Business Partner - Insurance Provider Type
PERSON_DATA BAPI1309PERSON u 172 IS-H BAPI Business Partner - Person Data
WORST_RETURNED_MSGTY BAPINALL-WORSTRETMSG C 1 IS-H: Most Severe Message Type Generated

Paramètre Reférence Long. Facultatif Description
ADD_PHONE BAPINADDR2 53 X IS-H BAPI Additional Telephone Numbers
ASS_PER_KVPHYSNO BAPI1309PERPHYSNO 38 X IS-H BAPI Person-HI Physician Number Assignment
ASS_PER_QLDI BAPI1309PERQLDI 85 X IS-H CH: BAPI Person-to-Qualitative Grade Assignment
ASS_PER_QTDI BAPI1309PERQTDI 86 X IS-H CH: BAPI Person-to-Quantitative Grade Assignment
ASS_PER_SPEC BAPI1309PERSPEC 18 X IS-H BAPI Person-to-Specialty Assignment
ASS_PER_USR BAPI1309PERUSR 25 X IS-H BAPI Person-to-User Name Assignment
ASS_PER_WORKNO BAPI1309PERWORKNO 38 X IS-H BAPI Person-Place of Work Number Assignment
CUSTOMER_BANK BAPI1309FIBANK 102 X IS-H BAPI Business Partner FI Bank Data Return Data
INSPROVIDER_REL BAPI1309INSPROVIDER_REL 31 X IS-H BAPI Insurance Provider Relationships
RETURN BAPIRET2 548 X Return Parameters

Functionality
INCLUDE NBAPI_ISH
It determines all relevant data for an IS-H business partner includingall available business partner function data.
The business partner is identified using the mandatory IS-H businesspartner number. This is used to read the general data for the businesspartner including the address data and the function-specific data forthe following functions:

  • Person (physician, for example)

  • IS-H Customer

  • Insurance Provider

  • Hospital

  • Employer

  • If you want the method to return the customer data of the specifiedbusiness partner, you have to specify the institution as an inputparameter. The company code is used as the alterative means ofdetermining the customer data, if the institution is not known.
    If the general data for a business partner cannot be determined, thefunction module is exited and the following error message is returnedin table SS_RETURN_TAB; furthermore, the specified tables andstructures are initial:
    Message: E 373(N8)
    Text: Cannot find general business partner
    Table/structure: BPARTNER_DATA, ADDRESS_DATA, ADD_PHONE
    If the general data for an IS-H business partner can be read, themethod then attempts to determine the data for all functions a businesspartner can assume. If the data for a function cannot be determined,the following messages are returned in table SS_RETURN_TAB;furthermore, the specified tables and structures are initial:
    • Person function:

    • Message: I 014(N2)
      Text: Person does not exist
      Table/structure: PERSON_DATA, ASS_PER_SPEC
      • IS-H customer function:

      • Message: I 367(N2)
        Text: Cannot find customer owing to incorrect or missing institution
        Table/structure: CUSTOMER_DATA
        Message: I 395(N8)
        Text: Cannot find customer
        Table/structure: CUSTOMER_DATA
        • Insurance provider function:

        • Message: I 334(N8)
          Text: Cannot find insurance provider
          Table/structure: INSPROVIDER_DATA, IP_TYPE_DATA, DEFAULT_CSCHEME
          • Hospital function:

          • Message: I 192(N2)
            Text: Cannot find hospital
            Table/structure: HOSPITAL_DATA
            • Employer function:

            • Message: I 366(N2)
              Text: Cannot find employer
              Table/structure: EMPLOYER_DATA
              The most severe error type is returned in structure SS_RETMAXTYPE.

              Description
              The address of the business partner is passed in this parameter.
              The field ADDR_NO contains a unique reference to the related object.This reference is only used for the unique assignment of addresses.
              Exactly one telephone number (fields PHONENO and EXTENSION) is directlyspecified in an address record. If more than one telephone line existsfor an address, the field OTHER_PHONES is flagged ('X') and theadditional telephone numbers are stored (under the same ADDR_NO) in thecorresponding ADD_PHONES table.

              Description
              The data of the general business partner is passed in this parameter.

              Description
              The IS-H Customer data of the business partner is passed in thisparameter, if the business partner has the "IS-H Customer" function.
              This data can only be determined, if the institution or company code isspecified.

              Description
              If the data of the business partner assuming the function "insuranceprovider" can be determined, the default value for the contract schemeof the assigned insurance provider type is located in this structure.

              Description
              The employer data of the business partner, if the latter has a function"employer", is passed in this parameter.

              Description
              FI Customer data of the business partner in the "IS-H Customer"function.
              This data can only be determined if the institution is specified.

              Description
              The hospital data of the business partner, if the latter has a function"hospital", is passed in this parameter.

              Description
              The insurance provider data of the business partner, if the latter hasa function "insurance provider", is passed in this parameter.

              Description
              If the data of the business partner assuming the function "insuranceprovider" can be determined, the data of the assigned insuranceprovider type is located in this structure.

              Description
              The person data of the business partner, if the latter has a function"person", is passed in this parameter.
              INCLUDE NBAPI_WORST_RETURNED_MSGTY

              Description
              Business partner number

              Value range
              This field is alpha converted. This means that if you enter a number,you do not have to enter leading blanks and zeros.

              Description
              The company code provides an alternative means of determining thecustomer data if the institution is not known.
              If the institution is not specified but the company code is, the IS-HCustomer can be determined but not the FI Customer assigned to the IS-HCustomer.
              If the institution is specified, it is used to determine the companycode and a company code that is specified in this field is not takeninto account. In such cases, both the IS-H Customer and the FI Customercan be determined.
              INCLUDE NBAPI_INSTITUTION
              The institution number is only relevant if you want the customer dataof the specified business partner to be returned.
              If the institution is not known, you can specify the company code as analternative means of determining the customer data.
              Note:
              If the institution is not specified but the company code is, the IS-HCustomer can be determined but not the FI Customer assigned to the IS-HCustomer.
              If the institution is specified, it is used to determine the companycode and a company code that is specified in this field is not takeninto account. In such cases, both the IS-H Customer and the FI Customercan be determined.
              INCLUDE NBAPI_ADD_PHONES

              Description
              If the system is able to determine the data on the business partner withthe function "Person", the data for the assigned PPA physician numbersis stored in this structure.

              Description
              If data pertaining to the business partner in the "Person" role can bedetermined, this structure contains the data of the assignedqualitative grades.

              Description
              If data pertaining to the business partner in the "Person" role can bedetermined, this structure contains the data of the assignedquantitative grades.

              Description
              If the data pertaining to the business partner in the "Person" functioncan be determined, the data for the assigned specialties is located inthis structure.

              Description
              If the data pertaining to the business partner in the "Person" functioncan be determined, the user names assigned to the business partner arelocated in this structure.

              Description
              If the system is able to determine the data for the business partnerwith the function "Person", the data for the assigned place of worknumbers is stored in this structure.

              Description
              If the data pertaining to the business partner in the "IS-H Customer"function can be determined, the bank date of the assigned FI Customerare located in this structure.
              This data can only be determined if the institution is specified.

              Description
              If extended insurance provider head office determination is active forthe insurance providers in the current client, this table contains therelationships of the business partner to other business partners,provided this business partner exists in the "Insurance Provider"function.
              In this case, the INSPROVIDER_DATA-HD_OFFICE field is not relevant. Tomake this clear, the field contains the entry 'xxxxx'.

              Description
              Errors that occurred are returned in this table.