Fonction SAP BAPI_CUSTOMER_SEARCH1 - Only for ONLINE Store!!! BAPI Search Cstmr for BO Cstmr (KNA1) - with CAM

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
PI_E_MAIL BAPIKNA101_1-E_MAIL C 241 Customer's E-Mail Address
PI_SALESORG BAPIKNA102-SALESORG C 4 Sales Organization

Paramètre Reférence Type Long. Description
CUSTOMERNO BAPIKNA103-CUSTOMER C 10 Customer Number
RETURN BAPIRETURN1 u 470 Return Value

Paramètre Reférence Long. Facultatif Description
MULTIPLE BAPIKNA103 10 X Duplicates

Functionality
This method of the "Customer" business object can be used to determinethe customer number for an e-mail address (from Central AddressManagement (CAM) ) of a customer in the SAP system on the basis of theaddress data, and personal number, if one exists. That is, both thee-mail address of the company and the personal e-mail address can beused as search criteria.
To be able to access existing e-mail addresses (e-mail addressescreated before Release 4.5A, internet address of the internetcoordinator) in the customer tables, a sales organization must betransferred to the BAPI.

Notes
In the case of existing e-mail addresses (that is, e-mail addressescreated before Release 4.5A), the functions of this BAPI can only beused without adversely affecting performace if an index is created ondatabase field "INTAD" (internet address) of customer company codetable "KNB1".

  • To include a customer number and e-mail address in an Internet
  • Application Component (IAC):
    A maximum of one e-mail address must exist for a single customernumber. Several customers can exist for one e-mail address. Reasons forthis are:
    A customer who has forgotton his/her customer number or password shouldbe able to create a new customer record with the same e-mail address asuse the first customer record.
    A customer has forgotton his/her password, and therefore creates a newcustomer record, using the same e-mail address as was used in theinitial registration. If the customer logs on with his/her e-mailaddress and new password, these two pieces of information (e-mail andpassword) are used to identify the customer.
    Alternatively, the customer can telephone the merchant, who provides anew initial password, which can be used in connection with the "old"customer number or e-mail address to log on to the system.
    • Error message for customer duplicates

    • In the SAP system, sevaral customers (duplicates) can exist for onee-mail address. If the BAPI finds duplicates, these are entered intransfer table "MULTIPLE". In addition, the BAPI issues a message oftype "E" (error).
      Messages are returned in paramter RETURN1. The return values and theirmeanings can be found in this parameter documentation.

      Description
      Export parameter customer number. Number of the customer determined forthe e-mail address.

      Description
      Return value for errors

      Value range

      • TYPE = "E" CODE = "F2821" Several customers exist for e-mail address &.

      • TYPE = "E" CODE = "F2824" No customer exists for e-mail address &.

      • TYPE = "E" CODE = "F2892" Internal error: The sales organization does
      • not exist in the master record.

        Default
        Contact the SAP hotline.

        Description
        Import parameter e-mail address of the customer. This address is usedas the search argument of the BAPI. It is used to determin the customernumber that belongs to this e-mail address.

        Description
        Import parameter sales organization of the customer.

        Description
        This table containes the customer numbers of the customers that aredetermined for the e-mail address entered.