Fonction SAP BAPI_SALESORDER_GETLISTBOS - Sales Order with BOS: List of all Orders for Customer

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
CUSTOMERNUMBER BAPI1007-CUSTOMER C 10 Customer Number
DOCUMENTDATE BAPIORDERS-DOC_DATE D 8 X Document Date From (Selection Criterion)
DOCUMENTDATETO BAPIORDERS-DOC_DATE D 8 X Document Date To Inclusive (Selection Criterion)
MATERIAL BAPIORDERS-MATERIAL C 18 X Material Number
MATERIAL_EVG BAPIMGVMATNR u 82 X External Material Number
PURCHASEORDER BAPIORDERS-PURCH_NO C 20 X Customer Purchase Order Number
SALESORGANIZATION BAPIORDERS-SALES_ORG C 4 Sales Organization

Paramètre Reférence Type Long. Description
RETURN BAPIRET2 u 548 Return Messages

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

Functionality
You can use this method you can list the sales orders for a customer.

Notes
Required entries
You must enter the appropriate customer number via parameterCustomerNumber and the required sales organization via parameterSalesOrganization.
Optional entries
You can limit the selection by entering specific criteria.
For example, you can you can choose to display only orders for aspecific material (parameter Material) or orders for a specificperiod of time (Parameter DocumentDate und DocumentDateTo). Furthermore, you can search for a specific sales order using thepurchase order number for the customer (parameter PurchaseOrder
).
Return
The data for the selected sales orders are returned in parameterSalesOrders.
Handline of errors
If errors occur during processing, they are returned in parameterReturn. Information messsages are also logged in this parameter.

Description
If errors occur during processing, they are returned in the tableparameter Return. Information messages are also logged in thistable parameter.

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

Description
Key that identifies the customer in the SAP system.

Description
Date when the period for which you want to create a list of salesdocuments begins.
The system checks the date you enter with the document date for thesales documents (contract date).

Description
Date that defines the end of the period for which you want to create alist of sales documents.
The system checks the date you have entered with the documet date ofthe sales documents (contract date).

Description
Alphanumeric key that identifies the material uniquely.

Description
External material number and the version and unique ID for parameterMATERIAL.

Description
Number that the customer uses to identify his/her purchasing doucment(for example, the inquiry or purchase order).
This number creates the link between the customer purchase order andthe sales document you have created. The number used by the customercan help you in areas such as correspondance with the customer forfinding specific document information. If the number refers to apurchase order, you can print this number on documents that you send tothe customer (for example, on the delivery note).

Description
Organizational unit responsible for the sales and distribution ofspecific products. The responsibility for a sales organization caninclude the legal liability for products and rights of recourse fromthe customer.

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