SAP Function BAPI_CUSTOMER_GETDETAIL - Only for ONLINE Store!!! Customer: Read Customer

Parameter Reference Type Length Default Optional Text
CUSTOMERNO BAPIKNA103-CUSTOMER C 10 Customer to Be Required
PI_DISTR_CHAN BAPIKNA102-DISTR_CHAN C 2 X Distribution Channel
PI_DIVISION BAPIKNA102-DIVISION C 2 X Division
PI_PASS_BUFFER BAPIKNA104-SEARCHFLAG C 1 X Pass Buffer
PI_SALESORG BAPIKNA102-SALESORG C 4 Sales Organization

Parameter Reference Type Length Text
PE_ADDRESS BAPIKNA101 u 477 Customer Address Data
RETURN BAPIRETURN u 452 Return Value

Functionality
Note: In Release 4.5A, this BAPI is replaced by BAPI"BAPI_CUSTOMER_GETDETAIL1", which takes full account of the integrationof customer data in Central Address Management (CAM). As this BAPI("BAPI_CUSTOMER_GETDETAIL") is being replaced, it will only besupported for 2 releases after Release 4.5A.
This method of the "Customer" business object is used to determine theaddress data of a customer that exists in the R/3 system.
All customer address data is determined from Central Address Management(CAM).
Note: If a customer number that has a company address, a differentcontact person address, and no personal address (or a personal addressthat differs from the company address) is transferred to this BAPI, theaddress data of the company address is returned.
A different address is understood to be the following: The personal orcontact person address is different to the company address in one ormore of the following fields: Language, Street, House number, Region,Location, Postal code, Country, Telephone number, Fax number, E-mail.
Note: For customer data created before Release 4.5A, a company addressis different from the contact partner address if the first name,surname, or form of address of the contact person of the 2nd entrydiffers from the first entry of the name field or form of address fieldof the company address.
If a distribution channel and division are also transferred to theBAPI, the appropriate currenncy is determined from the customer masterand provided for structure PE_ADDRESS.
Authorization requirements for using this BAPI: "Display" authorizationmust exist for the following objects: F_KNA1_APP (customer: userauthorization) and F_KNA1_BUK (customer: authorization for companycodes, for the selected company code).
Authorization profiles that cover the above objects are SAP_ALL,V_Verkauf and V_Versand.

Notes
Messages are returned in parameter RETURN. The return values and theirmeaning can be found in this parameter documentation.

Description
Export parameter customer address data. Address dat of customer in R/3system from which data were required.
Note: Field "ONLY_CHANGE_COMADDRESS" is set to value 'X' by this BAPI,if this BAPI determines a company address for the specified customernumber.

Description
Return values for errors

Value range
TYPE = "E" CODE = "F2880" Internal error: & (no_authority) & & => datadisplay not possible.
TYPE = "E" CODE = "F2888" Internal error: The customer is not availablein the data record.
For errors that occur in connection with Central Address Management,see documentation on the following:
ADDR_GET_COMPLETE
ADDR_CONVERT_COMPLETE_3_TO_2
ADDR_PERSONAL_GET_COMPLETE

Description
Import parameter customer number. Address data are required for thiscustomer number.

Description
Optional import parameter distribution channel customer

Description
Optional import parameter division of customer

Description
If you set this buffer (value 'X') then buffering is for table KNA1 isbypassed.

Description
Import parameter sales organization of customer