SAP Function BAPI_CUSTOMER_GETLIST - Reads customers and addresses

Parameter Reference Type Length Default Optional Text
CPDONLY BAPICUSTOMER_CPD-CPD_ONLY C 1 X Control indicator: Read one-time customers only
MAXROWS BAPIF4A-MAX_ROWS I 4 0 X Maximum number of customers

Parameter Reference Type Length Text
RETURN BAPIRETURN1 u 470 Return parameter

Parameter Reference Length Optional Text
ADDRESSDATA BAPICUSTOMER_ADDRESSDATA 258 X Customer Address Data
IDRANGE BAPICUSTOMER_IDRANGE 23 RANGE Table of Customer Numbers
SPECIALDATA BAPICUSTOMER_SPECIALDATA 11 X Special Customer Data

Functionality
This method supplies address data and special customer data. Thecustomers are selected via a range.

Description
This parameter contains the messages from the method call.

Value range
Type ID Number Message
E S& 26 Ranges: Value & in field SIGN is invalid. Allowed
,,values are I, E.
E S& 27 Ranges: Value & in field OPTION is invalid
,,(EQ,NE,GT,GE,LE,LT,BT,NB,CP,NP)
E F2 718 No customers were found for the selection criteria
E F2 543 No authorization to display general data for
,,customer accounts

Description
If you set this control indicator, only one-time customers are read anddisplayed.

Value range
space: select all customers
X : select only one-time customers

Default

Description
This parameter determines the maximum number of customers for which
address data is returned.

Default
0: All the found customers are returned

Description
Address data of the customers in the area selected via ID_RANGE.

Description
Selection area for the customer numbers

Value range
Field SIGN: 'I' (inclusive) or 'E' (exclusive)
Field OPTOPNS: (EQ,NE,GT,GE,LE,LT,BT,NB,CP,NP)

Description
Special data of the customer in the area selected with ID_RANGE.