Fonction SAP BS01_MM_QUOTATION_CREATE - Create MM-Quotation

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
QUOTATION_ADDRESS BAPIADDRESS u 1243 X Ordering Address for One-Time Vendor
QUOTATION_HEADER BS01MMHEAD u 478 Order header data
SKIP_ITEMS_WITH_ERROR BAPIMMPARA-SELECTION C 1 'X' X Indicator: Skip faulty items

Paramètre Reférence Type Long. Description
QUOTATION BAPIEKKOC-PO_NUMBER C 10 Quotation Number

Paramètre Reférence Long. Facultatif Description
EXTENSIONIN BAPIPAREX 990 X Customer Enhancment Import
QUOTATION_ACCOUNT_ASSIGNMENT BAPIEKKN 401 X Table of Account Assignments
QUOTATION_CONTRACT_LIMITS BAPIESUCC 90 X Limits with Contract Reference
QUOTATION_ITEMS BS01MMITEM 1089 Table of Quotation items
QUOTATION_ITEM_SCHEDULES BS01MMSCHEDULE 108 Table of Schedule Lines
QUOTATION_ITEM_TEXT BS01MMITEMTX 153 X Table of Item Texts
QUOTATION_LIMITS BAPIESUHC 103 X Limits
QUOTATION_SERVICES BSMMESLLC 650 X Services
QUOTATION_SERVICES_TEXT BAPIESLLTX 158 X Text for Service Line
QUOTATION_SRV_ACCASS_VALUES BAPIESKLC 40 X Value/link to service account assignment
RETURN BAPIRET2 548 X Confirmations

Functionality
You cna create quotations with this method.

Notes
Transfer
You must at least transfer the docuemnt header data in tableQUOTATION_HEADER as import poarameters.
You can transfer the item data in table QUOTATION_ITEMS.
Account Assignments
If the account assignment category is set in an item, accountassignemnt data can be transferred per quotation item in the transfertable QUOTATION_ACCOUNT_ASSIGNMENT. The account assignmentcategory defines which objects that are relevant to cost centers haveto be transferred to the account assignment data. If the accountassignment category is K, for example, a cost center has to betransferred.
If the item is to be ordered from a one-time vendor, the appropriateaddress has to be transferred in table QUOTATION_ADDRESS.
Table QUOTATION_ITEM_SCHEDULES has to be transferred per itemand delivery date etc.
Limits
You can trasnfer limits for the quotation item in tablesQUOTATION_LIMITS and QUOTATION_CONTRACT_LIMITS.
Services
You can transfer service data for the quotation item in tablesQUOTATION_SERVICES, QUOTATION_SRV_ACCASS_VALUES,
QUOTATION_SERVICES_TEXT and EXTENSIONIN.
Return
The quotation number is returned in parameter QUOTATION.
Return messages
INCLUDE BAPI_RET

Description
If the indicator is set, incorrect items are ignored.
If you have defined customer fields in table ESLL, you can transfer thedata in these fields using this parameter.

Description
The table contains the account assignment data for the quotation item.
INCLUDE BAPI_DATAELEMENT

Description
The table contains the quotation limits with reference to the contract.
INCLUDE BAPI_DATAELEMENT

Description
The table contains quotation item data, for example material number,item category and plant.
INCLUDE BAPI_DATAELEMENT

Description
At least one entry in this table must be transferred per itemtransferred since, for example, the delivery date (DELIV_DATE) is notin the item data.
You can transfer the date category in the internal or external display:

  • Internal (DEL_DATCAT, for example 1 for current date)

  • External (DEL_DATCAT_EXT, for example T for current date)

  • INCLUDE BAPI_DATAELEMENT

    Description
    The table contains the texts for the quotation item.
    INCLUDE BAPI_DATAELEMENT

    Description
    The table contains the limits for the quotation.
    INCLUDE BAPI_DATAELEMENT

    Description
    This table contains the services and outline layouts for the purchaserequisition.
    You can define a line as outline line using the field OUTL_IND. You canassign service lines to the outline lines using field PCKG_NO (serviceline) and SUBPCKG_NO (outline line).
    The hierarchy for the outline is represented by the fields LINE_NO andHI_LINE_NO. The field HI_LINE_NO links to the field LINO_NO of thesuperior outline.
    INCLUDE BAPI_DATAELEMENT

    Description
    You transfer texts for the service line in tableQUOTATION_SERVICES_TEXT. You can transfer the following:

    • the allowed text types, for example line text, service text in field
    • TEXT_ID
      • the actual text lines in field TEXT_LINE

      • If TEXT_ID is empty, a line text is always created. If FORMAT_COL isempty, the standard format key * is assigned.

        Description
        The table contains the values for account assignment on service leveland a link to the complete account assignment for the quotation item(table QUOTATION_ITEM_ACCOUNT_ASSIGNMENT, field SERIAL_NO).
        The actual account assignment data (cost center etc.) is stored in theaccount assignment table QUOTATION_ITEM_ACCOUNT_ASSIGNMENT and isidentified by this link.

        Description
        INCLUDE BAPI_TABLE

        Value range
        Type,,ID,,Number,,Message
        E,,W5,,061,,An error has occurred in enhancement &
        ,,,,,,(please check)