Fonction SAP BAPI_STOREORDER_CHANGE - Change Documents (PR, PR, Delivery or Sales Order) From Store Orders

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
CALL_FROM BAPI6032_CONTROL-WVFBCALL C 1 Call_ROUTINES

Paramètre Reférence Long. Facultatif Description
HEAD_CONDITIONS BAPI6032_CONDI 272 X Header_Conditions
HEAD_PARTNERS BAPI6032_PARTNERS 932 X Header_Partners
ITEM_CONDITIONS BAPI6032_CONDI 272 X Item_Conditions
ITEM_PARTNERS BAPI6032_PARTNERS 932 X Item_Partners
ORDER_ITEMS BAPI6032_ITEMS 629 Order Items
RETURN BAPIRET2 548 Return Messages

Functionality
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 documentdocument category, document number, and item number. Changes can bemade 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 moduleVWWS_STORD_DISPATCHER.
      Program: Normally '2' for Replenishment.
      Other possibilities with special features:
      Store order using IDOC '1'
      Replenishment '2'
      Goods receipt without purchase order '3'
      Investment Buying '4'
      Perishables '5'
      Additionals '6'
      Online Store '8'
      Load Building '9'
      Purchase order split 'A'
      Manual conditions for sale orders or net prices for purchase orders areauthorized.

      Description
      You can enter different partner data for the sales order and thepurchase order.

      Use
      Manual conditions for sales orders or net price for purchase orders
      Alternative partners are possible for sales orders and purchase orders.
      Table of Order Items

      Note
      Action field must be empty (Create Transaction)
      If necessary, the system determines any empty fields itself.
      If the field WBTYP is not filled, the system finds the value from StoreOrder Customizing. All fields that are filled are copied with orwithout being checked.
      Material ID and Quantity are mandatory fields.
      If successful, the output fields are filled as follows:

      • E_BELNR contains the internal document header number

      • E_POSNR contains the internal document item number

      • E_OBJTYPE contains the business object (the target document type)

      • Purchase Requisition = BUS2105

      • Purchase Order = BUS2012

      • Delivery = LIKP

      • Sales Order = BUS2032

      • Table containing the notes, warnings, and errors that occurred duringprocessing.
        (You can use Customizing for store order processing to de-activatenotes and warnings).