Fonction SAP BAPI_CUSTOMER_GETDETAIL2 - Customer Detail Information

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
COMPANYCODE BAPICUSTOMER_ID-COMP_CODE C 4 X Company code
CUSTOMERNO BAPICUSTOMER_ID-CUSTOMER C 10 Customer

Paramètre Reférence Type Long. Description
CUSTOMERADDRESS BAPICUSTOMER_04 u 557 Address Data
CUSTOMERCOMPANYDETAIL BAPICUSTOMER_05 u 289 Company code-specific data
CUSTOMERGENERALDETAIL BAPICUSTOMER_KNA1 u 731 General data
RETURN BAPIRET1 u 470 Return code

Paramètre Reférence Long. Facultatif Description
CUSTOMERBANKDETAIL BAPICUSTOMER_02 73 X Bank data

Functionality
Use this method to read detailed data for a customer.
The following data is retreived:

  • Address data

  • General data

  • A table from bank data

  • Company code-specific data (if you enter a company code)
  • Description
    Address data of the customer entered.

    Description
    If a company code is entered, company code-specific data is returned inthis structure.

    Description
    General data without address data for the entered customer.

    Description
    The return code of the function module is returned in this structure.

    Structure
    TYPE Message type: S Success, E Error, W Warning, I Information
    CODE Message code
    MESSAGE Message text
    LOG_NO Application log: protocol number
    LOG_MSG_NO Application log: running message number

    Value range
    If no error occurs, the return parameter is blank. Otherwise, thecorresponding error message has a short text.

    Description
    Customer number.

    Description
    Table with bank data for the entered customer.