Ansicht
Dokumentation

LOG_CMM_CONTRACT_CREATE - CM: API to Create a Purchase Contract including Document Conditions

LOG_CMM_CONTRACT_CREATE - CM: API to Create a Purchase Contract including Document Conditions

BAL_S_LOG - Application Log: Log header data   TXBHW - Original Tax Base Amount in Local Currency  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

You can use this function module to create purchase contracts.

Example

Sample Code

Notes

Restrictions in comparison with the transaction Create Contract (ME31K):

  • Master conditions:
    During the creation of outline agreements, just one time period can be specified per variable key. This means that a period can be specified for the document header (i.e. condition table A019), for each item (i.e. condition table A016), and for each item/plant combination (i.e. condition table A068).
  • Scales are not supported during the creation of outline agreements.
  • Volume rebate conditions in outline agreements are not taken into account.
  • No subitems (e.g. inclusive/exclusive bonus quantity, display, etc.) are taken into account.
  • The control key for quantity management in procurement (EKPO-SSQSS) and the certificate category (EKPO-ZGTYP) are only taken into account to a certain extent: this information is copied from the reference contract or the material master record, but cannot be changed and no checks are carried out for these two fields.
  • The revision level (EKPO-REVLV) is not changeable because various quality management routines were not implemented.
  • Version management(Document Change Management) is not supported.
  • External services (planned and unplanned services) are not supported.
  • Creation of configurations is not supported.

Further information

When a purchase contract is created (activity 01), the following authorization objects are checked:





Parameters

ACCOUNT
ACCOUNTPROFITSEGMENT
ACCOUNTX
CONDITION
CONDITIONX
DELIVERY_ADDRESS
EXP_HEADER
EXTENSIONIN
EXTENSIONOUT
HEADER
HEADERX
HEADER_TEXT
ITEM
ITEMX
ITEM_TEXT
PARTNER
PARTNERX
PURCHASINGDOCUMENT
RETURN
TECHNICAL_DATA
TESTRUN
VENDOR_ADDRESS

Exceptions

Function Group

LOG_CMM_2014

PERFORM Short Reference   SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up  
This documentation is copyright by SAP AG.

Length: 4934 Date: 20240523 Time: 063606     sap01-206 ( 54 ms )