Ansicht
Dokumentation

BAPI_STOREORDER_CREATE - Creates Documents (PR, PO, Delivery or Sales order) From Store Orders

BAPI_STOREORDER_CREATE - Creates Documents (PR, PO, Delivery or Sales order) From Store Orders

rdisp/max_wprun_time - Maximum work process run time   BAL Application Log Documentation  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

Use this method to create documents for purchasing or sales and distribution. The system checks if all the necessary data has been transferred, for example:

  • Quantity
  • Material number
  • Vendor or customer
  • Organizational data (for example, purchasing organization or distribution chain)
  • Unit of measure

The document category defines the document that is to be created. For example:

  • Purchase requisition
  • Purchase order
  • Delivery
  • Sales order

If there is no document category in the order item, this is defined using the relevant store order profile for the customer or using another combination of customer and material group. Store order profiles can be defined in Customizing using POS inbound.

Item data is transferred in table ORDER_ITEMS. Document and item numbers are assigned using an automatic and internal procedure. Field BEDNR can be used for defining external numbers.

After creating the document, the following information is confirmed using table ORDER_ITEMS:

  • Document number (E_BELNR)
  • Document item (E_POSNR)
  • Document category (E_OBJTYPE)

Possible errors are displayed using the RETURN parameter.

Example

Notes

Further information

For further information, see the documentation for function module VWWS_STORD_DISPATCHER.





Parameters

CALL_FROM
HEAD_CONDITIONS
HEAD_PARTNERS
ITEM_CONDITIONS
ITEM_DOCU_LOGON
ITEM_PARTNERS
LTSSPLIT
NO_WF
ORDER_ITEMS
PR_REQUESTOR
RETURN
SORT_STEP2
STEP

Exceptions

Function Group

6032

RFUMSV00 - Advance Return for Tax on Sales/Purchases   ROGBILLS - Synchronize billing plans  
This documentation is copyright by SAP AG.

Length: 3366 Date: 20240523 Time: 171042     sap01-206 ( 37 ms )