Fonction SAP BS01_SALESORDER_GETLIST - Sales Order: List of all Orders for Customer

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
CUSTOMER_NUMBER BAPI1007-CUSTOMER C 10 Customer number
DOCUMENT_DATE BAPIORDERS-DOC_DATE D 8 X Document date from (selection criterion)
DOCUMENT_DATE_TO BAPIORDERS-DOC_DATE D 8 X Document date to including (selection criterion)
MATERIAL BAPIORDERS-MATERIAL C 18 X Material Number
PURCHASE_ORDER BAPIORDERS-PURCH_NO C 20 X Customer purchase order number
SALES_ORGANIZATION BAPIORDERS-SALES_ORG C 4 Sales Organization

Paramètre Reférence Type Long. Description
RETURN BAPIRET2 u 548 Error Message Text

Paramètre Reférence Long. Facultatif Description
SALES_ORDERS BAPISDORDERSBOS 452 Table of Orders for the Customer

Functionality
You can list the sales orders of a customer with this function module.

Notes
Required entries:
You must, in any case, enter the appropriate customer number viaparameter SALESDOCUMENT and the desired sales organization viaparameter SALES_ORGANIZATION.
Optional entries:
The selection can be limited by entering specific criteria. So, you canjust display orders for a specific material or orders in a specificperiod of time (parameter MATERIAL or DOCUMENT_DATE_TO). Furthermore,you can find a specific sales order by using the purchase order numberof the customer (parameter PURCHASE_ORDER).

Description
Error message.
The retrn code for the function module is returned in this structure.
Structure
TYPE Error type: S Success, E Error, W Warning, I Information
CODE Message code
MESSAGE Message text
LOG_NO Application log: log number
LOG_MSG_NO Application log: sequence number of message

Value range
If no error occurs, the return parameter is initial. Otherwise, theappropriate error messages are displayed with short text.

Description
Key that identifies the customer in the SAP System.

Description
Date as of which you want to create a list of SD documents.

Use
The system checks the date you enter against the document date of theSD documents.

Description
Date until which you want to create a list of sales documents.

Use
The system checks the date you enter against the document date in thesales documents.

Description
Alphanumeric key that identifies the material.

Description
Customer order number

Definition
Number used by the customer to uniquely identify the purchasingdocument, for instance, inquiry or purchase order.

Use
The number provides the link betwen the customer's purchase order andyour sales document. You can use the customer's number in corresondenceto assist in the search for particular document information. If thenumber refers to a purchase order, you can output it on documents thatyou send to the customer (for instance, the delivery note).

Description
Organizational unit that is responsible for the sales and distributionof specific products or services.
The responsibility for a sales organization can include the legalresponsibility for products and the right of recourse for customers.

Description
Table of orders for the customer.
You can find information on the meaning of the individual parameterfields in the appropriate data element documentation in the ABAPdictionary.