SAP Function SD_CUSTOMER_CHECK_1 - Check personal data of a customer

Parameter Reference Type Length Default Optional Text
PI_BAPIKNA101_1 BAPIKNA101_1 u 803 Customer personal data
PI_BAPIKNA102 BAPIKNA102 u 18 Reference data
PI_BAPIKNA105 BAPIKNA105 u 50 Optional customer personal data
PI_BAPIKNA105_2 BAPIKNA105 u 50 X Optional customer company data
PI_BAPIKNA106 BAPIKNA106 u 841 X Customer Company Data
PI_CONSUMEREN BAPIKNA107-CONSUMER_FLAG C 1 X Customer should be a Consumer
PI_CUSTOMER BAPIKNA103-CUSTOMER C 10 Customer number

Parameter Reference Type Length Text
PE_BAPIKNA105 BAPIKNA105 u 50 Optional Customer Data
PE_CONSUMEREN BAPIKNA107-CONSUMER_FLAG C 1 Customer is Consumer
PE_COUNTRY BAPIKNA101_1-COUNTRY C 3 Converted (ISO-SAP) country key
PE_CURRENCY BAPIKNA101_1-CURRENCY C 5 Converted (ISO-SAP) currency key
PE_LANGUAGE BAPIKNA101_1-LANGU_P C 1 Converted (ISO-SAP) language key
PE_PERS_COMP_FLAG XFELD C 1 Customer is a Person or a Company
PE_REF_KUNNR TKUNDEVTBER-KUNNR C 10 Reference Customer for the Consumer
PE_RETURN1 BAPIRETURN1 u 470 Return value
PE_TITLE BAPIKNA101_1-TITLE_P C 30 Title

Functionality
When a customer is created or changed using the"BAPI_CUSTOMER_CREATEFROMDATA1" BAPI, or the"BAPI_CUSTOMER_CHANGEFROMDATA1" BAPI, this function module checkswhether all personal/company data and optional personal/company data(PI_BAPIKNA101_1, PI_BAPIKNA1016, PI_BAPIKNA105, PI_BAPIKNA105_2) andall copy template data (PI_BAPIKNA102) is correct.
Note:
You can control whether this function module checks the data of a newcustomer (customer to be created), or data to be changed, via thecustomer number import parameter (PI_CUSTOMER). If a customer number isentered in this field, then the data concerned is data to be changed.If the field is blank, the data relates to a customer that is to becreated.

Description
Export paramter for optional customer data.

Description
Export parameter: Customer is a consumer, yes (= 'X') or no (= ' ').

Description
If the country key is transferred to the BAPI is ISO format, this keyis checked to ensure it is correct. If it is, the ISO code value isconverted to the SAP internal format. This converted value is thenreturned by this check routine.

Description
If the currency key is transferred to the BAPI in ISO format, this keyis checked to ensure it is correct. If it is correct, the ISO value isconverted to the internal SAP format. This converted value is returnedby this check routine.

Description
If the language key is transferred to the BAPI in ISO format, the keyis checked to ensure it is correct. If it is correct, the ISO codevalue is converted to the internal SAP format. This converted value isreturned by this check routine.

Description
Export parameter: The customer is either
a company (value = 'X') or person (value = ' ').

Description
Export parameter consumer's reference customer. If the customer is aconsumer, then the customer number of the consumer's reference customeris returned.

Description
Return value for errors

Value range
TYPE = "E" CODE For the error codes, see the documentation onexception field NOT_VALID of function module POSTAL_CODE_CHECK
TYPE = "E" CODE For the error codes, see documentation on functionmodule TELNUMBER_STRUCT_TO_NORMAL
TYPE = "E" CODE For the error codes, see documentation on function ADDR_CHECK
TYPE = "E" CODE = "F2013" Country & is not defined
TYPE = "E" CODE = "F2016" Language & is not defined
TYPE = "E" CODE = "F2031" Region & for country & is not defined
TYPE = "E" CODE = "F2034" Currency code & is not defined
TYPE = "E" CODE = "F2081" Account & & is not a valid reconciliationaccount (error message for optional import field)
TYPE = "E" CODE = "F2081" G/L account & in company code & does notexist (error message for optional import field)
TYPE = "E" CODE = "F2145" Customers found with same address; Check
TYPE = "E" CODE = "F2200" Enter a postal code or a postal code for thepost office box
TYPE = "E" CODE = "F2827" Make an entry in all fields where required
TYPE = "E" CODE = "F2830" Invalid e-mail address &
TYPE = "E" CODE = "F2835" Invalid date of birth
TYPE = "E" CODE = "F2838" Invalid form of address text
TYPE = "E" CODE = "F2840" Transportation zone & in country & is notdefined (error message for optional import field)
TYPE = "E" CODE = "F2845" Shipping condition & not defined (errormessage for optional import field)
TYPE = "E" CODE = "F2850" Supplying plant & is not defined (errormessage for optional import field)
TYPE = "E" CODE = "F2855" Credit control area & is not defined (errormessage for optional import field)
TYPE = "E" CODE = "F2860" Partial delivery indicator & is not defined(error message for optional import field)
TYPE = "E" CODE = "F2875" Internal error: The customer is not definedin the company code master record
TYPE = "E" CODE = "F2885" Internal error: The "Language" field ofstructure & is blank
TYPE = "E" CODE = "F2887" Internal error: The "Currency" field ofstructure & is blank
TYPE = "E" CODE = "F2888" Internal error: The customer is not definedin the master record
TYPE = "E" CODE = "F2889" Internal error: The reference customer is notdefined in the company code master record
TYPE = "E" CODE = "F2890" Internal error: The reference customer is notdefined in the master record
TYPE = "E" CODE = "F2891" Internal error: Reference customer is notdefined in the tax master record
TYPE = "E" CODE = "F2892" Internal error: The sales organization is notdefined in the tax master record
TYPE = "E" CODE = "F2893" Internal error: Reference customer is notdefined in sales organization master record
TYPE = "E" CODE = "FH409" Term of payment & is not valid (error messagefor optional import field)

Description
Export paramter: Customer's title.

Description
Import parameter for the personal data of a customer.

Description
Copy template for creating a customer in the R/3 system.
Copy template fields are:
Reference customer and organizational data.

Description
Optional import parameter for the optional personal data of a customer.

Description
Optional import parameter for a customer's optional company data.

Description
Import parameter for a customer's company data.

Description
Import parameter: The customer should be created as a consumer andtherefore checked as a consumer.

Description
Customer number of the customer whose data is to be checked.
If the input data for a customer to be created is to be checked, thisfield is blank.