SAP Function BAPI_CUSTOMER_GETSALESAREAS - Create List of Sales Areas for the Customer

Parameter Reference Type Length Default Optional Text
CUSTOMERNO BAPIKNVVKY-CUSTOMER C 10 Customer number

Parameter Reference Type Length Text
RETURN BAPIRETURN u 452 Return parameter

Parameter Reference Length Optional Text
SALESAREAS BAPIKNVVKY 18 X Table of sales areas

Functionality
This module reads all the sales areas for a customer.

Notes
Notifications are displayed by the parameter
RETURN
You can find the notification values and their meanings in thisparameter.

Description
The return parameter displays whether sales and distribution data wasfound for the customer number you entered.

Value range
TYPE = "S" CODE = " ": Success message
TYPE = "E" CODE = "QC160": No sales data was found

Description
Customer number in the SAP System.

Value range
The module does not check whether the customer number already exists inthe system.

Description
Table of the sales areas, in which a customer is defined. The salesarea consists of sales organization, distribution channel. anddivision.
The table consists of the following fields:

  • CUSTOMER,,,,customer number

  • SALESORG,,,,sales organization

  • DISTRCHANN,,distribution channel

  • DIVISION,,,,division