Sapass

 Simplify SAP R/3 development with Excel VBA/VB RFC  
Home> Bapi>StoreOrderService



Index

StoreOrderService

StoreOrderService


This process object is used to create objects for purchase requisitions, purchase orders, sale orders or deliveries using order
items. These objects are, for example, then imported into your system as IDocs at POS inbound.


11-Dec-2005


Methods

Available Methods


  • Create : Creates Documents (PR, PO, Delivery or Sales order) From Store Orders [ BAPI_STOREORDER_CREATE ]
  • StoreorderChange : Change Store Order Documents [ BAPI_STOREORDER_CHANGE ]

11-Dec-2005


Create

Create


Use this method to create documents for purchasing or sales anddistribution. 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

    Further Information

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


    11-Dec-2005


    StoreorderChange

    StoreorderChange


    Use this method to change purchasing or sales documents. The methodchecks if all the necessary data was transferred. For example:

  • Quantity
  • Material number or item number
  • Document number
  • Document category
  • The document items that are to be changed are found using the document
    document category, document number, and item number. Changes can be made to the following document categories:

  • Purchase requisitions
  • Purchase orders
  • Deliveries
  • Sales orders
  • You can change the following in documents: quantity, unit of measure, date, and deletion indicator.


    You cannot change: material number, document type, document category, control parameters, and account assignment data.

    You can use the RETURN parameter to announce any errors.

    Further Information

    For further information, see function module VWWS_STORD_DISPATCHER.


    11-Dec-2005