Fonction SAP BS01_QUOTATION_CHANGE - Quotation: Change with BOS

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
BEHAVE_WHEN_ERROR BAPIFLAG-BAPIFLAG C 1 SPACE X Error Handling
INT_NUMBER_ASSIGNMENT BAPIFLAG-BAPIFLAG C 1 SPACE X Internal Item Number Assignment
LOGIC_SWITCH BAPISDLS u 5 SPACE X Internal Control Parameter
QUOTATION_HEADER_IN BAPISDH1 u 778 Document Header Data
QUOTATION_HEADER_INX BAPISDH1X u 108 Checkbox for header data
SALESDOCUMENT BAPIVBELN-VBELN C 10 Quotation Number
SIMULATION BAPIFLAG-BAPIFLAG C 1 X Simulation mode

Paramètre Reférence Long. Facultatif Description
CONDITIONS_IN BAPICOND 336 X Conditions
CONDITIONS_INX BAPICONDX 46 X Conditions Checkbox
EXTENSIONIN BAPIPAREX 990 X Customer Enhancment Import
QUOTATION_CFGS_BLOB BAPICUBLB 256 X Internal configuration data (SCE)
QUOTATION_CFGS_INST BAPICUINS 233 X Configuration: Instances
QUOTATION_CFGS_PART_OF BAPICUPRT 123 X Configuration: Part-of specifications
QUOTATION_CFGS_REF BAPICUCFG 397 X Configuration: Reference data
QUOTATION_CFGS_REFINST BAPICUREF 20 X Configuration: Reference item / instance
QUOTATION_CFGS_VALUE BAPICUVAL 276 X Configuration: Characteristic values
QUOTATION_CFGS_VK BAPICUVK 55 X Configuration: Variant condition key
QUOTATION_ITEM_IN BAPISDITMBOS 1267 X Item Data
QUOTATION_ITEM_INX BAPISDITMXBOS 167 X Checkbox Item Data
QUOTATION_SERVICE BAPISDESLLCBOS 554 X Services
QUOTATION_SERVICES_COND BAPIBOSCD 296 X Communication Fields to Maintain Service Line Condition
QUOTATION_SERVICES_CONDX BAPIBOSCDX 40 X Checkbox Structure: Maintain Service Line Conditions
QUOTATION_SERVICEX BAPISDESLLCBOSX 69 X Check box: Service Line
QUOTATION_SERVICE_TEXT BAPIESLLTX 158 X Service Line Text
QUOTATION_TEXT BAPISDTEXT 160 X Texts
RETURN BAPIRET2 548 Return code
SCHEDULE_LINES BAPISCHDL 198 X Schedule lines
SCHEDULE_LINESX BAPISCHDLX 109 X Check table for schedule lines

Functionality
You can change and delete custoemr quotations that contain a BOS withthis method.
You can change header, item, schedule line, configuration data and BOSdata.
You can transfer custoemr fields in tables VBAK, VBAP, VBEP and ESLLusing structre EXTENSIONIN.
You cannot change a document item if its status does not allow this/ifit has the status "complete".

  • Delete quotation completely

  • delete quotation item

  • Create, change and delete service lines
  • Notes
    Generaly speaking, the following applies:
    You should only enter the fields to be changed.
    They should be marked with an X in the appropriate checkbox structure.
    Fill field UPDATEFLAG for the selected field.
    Possible UPDATEFLAGS: U = change
    D = delete
    I = create
    Exception: configuration. If you change the configuration, it must befilled completely.
    Maintain quantites and dates using the schedule line data.
    Minimum required entries:
    1. The document number must be entered in structure SALESDOCUMENT.
    2. Key fields must always be entered when a change is made, also in the
    checkbox structure.
    3. The update indicator in SALESORDER_HEADER_INX must always beentered.
    Commit Control:
    The BAPI does not perform a database Commit. This means that the
    calling application has to exit the Commit so that changes can be made
    on the database. BAPI "BAPI_TRANSACTION_COMMIT" is available for this.

    Further information
    This parameter controls program behavior if an error occurs. Till nowthe BAPI terminated when an error arose. This meant that if you werecreating an order with several items, and only one item was incorrect,the order was not created at all.
    This parameter allows you to create an order, even if you cannot createall of the items in the order.

    Value range
    Space = if any error occurs during processing, the program terminateswithout saving the sales document
    P = in cases of error, you can save the sales document, Incorrectitems are not processed; they are however logged.
    R = as P, however, the sales document is not saved.

    Default
    Space

    Notes
    1. If you have to change several errors in one structure, and a field
    check finds an error, structure processing is terminated and the
    structure remains unchanged.
    - Example: In an order you have to change the delivery block, the
    billing block in the header data, and the item data. If aninvalid
    delivery block is specified, the header data is not changed,
    however you can change the items if item processing contains no
    errors.

    Description
    This parameter activates internal item number assignment. In some casesit is necessary that the SAP System assigns the item numbers, forexample, for articles for which a BOM in the order is exploded.
    Example:
    An order with 2 items and a shcedule line each is to be created. Enterthe item numebrs 10 and 20 in QUOTATION_ITEM_IN andQUOTATION_SCHEDULES_IN, If the article for item 10 now receives a salesBOM, this BOM can be exploded and a subitem with item number 20 iscreated. The reference schedule line - item no longer exists.
    Here it is necessary for item number assignment on the SAP side to takeplace internally.

    Default
    Space, in other words, an attempt is made to create the order withexternal number assignment.

    Description
    This parameter contains the quotation header data.

    Description
    This parameter is used in the following two activities:

    • Control of processing functionality by the value in the field
    • UPDATEFLAG (change pointer).
      You can enter the following:
      ' ': Create a new sales document
      I : Create a new sales document
      U : Change an existing sales document
      D : Delete an existing sales document
      • Control of field entry by check box fields

      • If you set the field UPDATEFLAG, the system only copies those fieldsfrom parameter QUOTATION_HEADER_IN if they have an 'X' in the check boxfield.

        Description
        This parameter contains the quotation header data.

        Description
        This parameter contains the condition data for the document item.

        Value range
        You should distinguish between the following cases when fieldsCOND_VALUE and CURRENCY are being filled.

        • The calculation type for the condition is expressed as a percentage.

        • In this case, you should leave the CURRENCY field empty and enter thepercentage value to the correct number of decimal places.
          Example: a percentage of 20% has to be entered as 20,0000 in field
          COND_VALUE.
          • The calculation type for the condition is not a percentage.

          • In this case, field COND_VALUE is a currency quantity field. FieldCURRENCY or CURRENCY_ISO must be filled for a correct conversion. Youmust enter the amount to the correct number of decimal places.
            If neither field CURRENCY nor field CURRENCY_ISO is filled, the systempresumes that you have entered a percentage.
            If, however, the calculation type is not a percentage, an incorrectamount is entered.
            If you have defined customer fields in tables VBAK, VBAP, VBEP and ESLLyou can use this parameter to transmit the data in these fields.

            Further information
            See also Note 143580.

            Description
            Only relevant to configurable materials.

            Note
            For more information, see the SAP Library under Logistics - General(LO) -> Variant Configuration (LO-VC)-> EDI for Configurable Materials.

            Description
            Only relevant for configurable material.
            For more information, see the SAP Library under Logistics - General(LO) -> Variant Configuration (LO-VC)-> EDI for KMATs (Information onCreating Your Own).

            Description
            Only relevant for configurable material.
            For more information, see the SAP Library under Logistics - General(LO) -> Variant Configuration (LO-VC) -> EDI for KMATs (Information onCreating Your Own).

            Description
            Only relevant for configurable material.
            For more information, see the SAP Library under Logistics - General(LO) -> Variant Configuration (LO-VC) -> EDI for KMATs (Information onCreating Your Own).

            Description
            Only relevant for configurable material.
            For more information, see the SAP Library under Logistics - General(LO) -> Variant Configuration (LO-VC) -> EDI for KMATs (Information onCreating Your Own).

            Description
            This parameter contains the item entry data for the sales document.
            Information on the individual parameter fields is contained in therelevant data element documentation in the ABAP Dictionary.
            Description
            This parameter is used in the following two activities:
            Control of processing functionality by the value in the fieldUPDATEFLAG (change indicator).
            You can enter the following:
            Space: Create a new sales document item
            I : Create a new sales document item
            U : Change an existing sales document item
            D : Delete an existing sales document item
            Control of field entry by check box fields
            If you set the field UPDATEFLAG, the system only copies the fields fromthe data parameter if they have an 'X' in the check box field.

            Description
            This table contains services and outline layouts for the quotation.
            You can define a line as an outline line using field OUTL_IND.
            You can assign a service line to an outline line using fields PCKG_NO(service line) and SUBPCKG_NO (outline line).
            The hierarchy for the outline is represented by fields LINE_NO andHI_LINE_NO. Field HI_LINE_NO links to field LINE_NO of the superioroutline.
            You can change the subcontractor group via field BOSGRP.
            You can assign a line type to the service line, for example, line typealternative line, informatory line, blanket line or basic line.
            The assignment takes place via the following fields:

            • basic line

            • 'X' in field BASIC_LINE
              • Alternative line

              • 'X' in field ALTERNAT
                Link to the appropriate basic line in field BASLINE_NO
                A reference to a basic line must exist for alternative lines.
                • Blanket line

                • 'X' in field INFORM
                  '1' in field QUANTITY
                  The quantity is always 1 for blanket lines.
                  • Supplementary line

                  • 'X' in field SUPP_LINE
                    • Bidder line

                    • 'X' in field BIDDER
                      • Contingency line

                      • 'X' in field EVENTUAL
                        • Informatory line

                        • 'X' in field INFORM
                          • Internal line

                          • 'X' im Feld BOSINTER
                            • Assessment line

                            • 'X' in field BOS_ASSESS
                              • Risk line

                              • 'X' in field BOS_RISK
                                You can find information on the meaning of the individual parameterfields in the appropriate data element documentation in the ABAPdictionary.

                                Value range
                                This parameter contains the checkbox structure for the service line.
                                The package number (PCKG_NO), internal line number (LINE_NO) and theupdate indicator (UPDATEFLAG) have to be entered.
                                Enter the character "X" to indicate which fields of the service lineshould be changed.

                                Description
                                You can transfer the long text for the service line in this table:

                                • text type LTXT for the long text in field TEXT_ID

                                • the actual text lines in field TEXT_LINE

                                • Very long texts have to be read line by line since a maximum of 132characters per line is allowed.
                                  If FORMAT_COL is empty, the standard format key * is assogned.
                                  The package number (PCKG_NO) forms the link to the service line forwhich the text is to be entered.

                                  Description
                                  You can transmit the document item text to the table:
                                  o valid text types to field TEXT ID
                                  o actual text lines to field TEXT_LINE

                                  Description
                                  The messages that arise on creating the sales document are stored inthis table.

                                  Structure
                                  TYPE ,,,,Message type: S - Success, E - Error, W - Warning, I -Information
                                  ID ,,,,Message ID
                                  NUMBER ,,,,Message number
                                  MESSAGE ,,,,Message text
                                  LOG_NO ,,,,Application log: Log number
                                  LOG_MSG_NO ,,Application log: Sequence number of message
                                  MESSAGE_V1 ,,Message variable
                                  MESSAGE_V2 ,,Message variable
                                  MESSAGE_V3 ,,Message variable
                                  MESSAGE_V4 ,,Message variable
                                  PARAMETER ,,Parameter name
                                  ROW ,,,,Row in parameter
                                  FIELD ,,,,Field in parameter
                                  SYSTEM ,,,,System (logical system) that generated message

                                  Description
                                  This parameter contains the scheduling data.
                                  Information on the individual parameter fields is contained in therelevant data element documentation in the ABAP Dictionary.

                                  Description
                                  This parameter is used for the following two activities:

                                  • Control of processing functionality by the value in field UPDATEFLAG
                                  • (change pointer).
                                    You can enter the following:
                                    ' ': Create new schedule lines
                                    I : Create new schedule lines
                                    U : Change existing schedule lines
                                    D : Delete existing schedule lines
                                    • Control of field entry by check box fieldsr

                                    • If you set this field UPDATEFLAG, the system only copies those fieldsfrom the data parameter that have an 'X' in the check box fields.