Fonction SAP BAPI_AGREEMENT_MAINTAIN - Create/Change Contract/Scheduling Agreement

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
IM_AGREEMENT_HEADER BAPIOAHEAD u 322 Header Data Outline Agreement
IM_AGREEMENT_HEADER_X BAPIOAHEAX u 47 X Outline Agreement Header Data (Change Bar)
IM_ALL_ITEMS_PASSED SYST-CALLD C 1 X All Items Passed On

Paramètre Reférence Long. Facultatif Description
EXT_RETURN BAPIRET2 548 X Return Parameter
IMT_AGREEMENT_ITEMS BAPIOAITEM 575 X Items of Outline Agreement
IMT_AGREEMENT_ITEMS_X BAPIOAITEX 102 X Change Parameter for Items of Outline Agreement

Functionality
This method enables you to create Enjoy purchase orders.

Notes
Authorizations
The following authorization objects are checked when you create anEnjoy purchase order (PO) (activity 01):

  • M_BEST_BSA Document type in PO

  • M_BEST_EKG Purchasing group in PO

  • M_BEST_EKO Purchasing organization in PO

  • M_BEST_WRK Plant in PO

  • Data transfer
    The header data of the Enjoy PO is passed on in the table PoHeader
    and the item data in the table PoItem.
    If an item has been assigned to one or more accounts, the accountassignment data for each item can be passed on in the tablePoAccount. The account assignment category determines whichobjects relevant to cost accounting have to be passed on. If theaccount assignment category is K, for example, a cost centermust be passed on.
    Delivery schedule lines are passed on for each item in the tablePoSchedule.
    Conditions are passed on in the table PoCond.
    The vendor's address is passed on in the table PoAddrVendor, thedelivery address in the table PoAddrDelivery. The fields of thecentral address management facility are used in the process.
    Note
    The following restrictions regarding addresses must be taken intoaccount with this method:
    Addresses can be created but not changed
    . You can only change address data using the methodBAPI_ADDRESSORG_CHANGE.
    When you create addresses, they are not checked. An Enjoy PO maytherefore contain faulty address data.
    You pass on service items in the table PoServices
    . The following data can also be passed on: account assignments(table PoSrvAccessValues), texts (table PoServicesText
    ), limits (table PoLimits) and limits referencing a contract(table PoContractLimits).
    Note
    With this method, service items can be created, but notchanged.
    Return
    The PO number is returned in the parameter ExpPurchaseOrder.
    Return messages
    Messages are returned in the parameter Return.
    Restrictions
    • Texts, partners, import data, subcontracting components, and customers'
    • own fields cannot be passed on via these BAPIs.
      • It is not possible to put faulty or incomplete purchase orders
      • on hold.

        Further information
        More information on POs is available in the SAP library under MMPurchasing -> Purchase Orders and in the Help for the Enjoy purchaseorder.