Fonction SAP BAPI_QUOTATION_GETDETAILBOS - Display Customer Quotation with BOS

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
INTERNALUSE BAPIFLAG-BAPIFLAG C 1 SPACE X Checkbox Field - Internal Line
SALESDOCUMENT BAPIVBELN-VBELN C 10 Sales and Distribution Document Number

Paramètre Reférence Type Long. Description
QUOTATIONHEADER BAPISDHD u 817 Document Header Data

Paramètre Reférence Long. Facultatif Description
EXTENSIONOUT BAPIPAREX 990 X Customer Enhancement for Export
QUOTATIONADDRESS BAPISDCOAD 629 X Address Data
QUOTATIONBILLINGDATES BAPISDBPLD 424 X Billing Data
QUOTATIONBILLINGPLANS BAPISDBPL 166 X Billing plan
QUOTATIONBUSINESS BAPISDBUSI 672 X Business Data
QUOTATIONCFGSCUBLBS BAPICUBLBM 269 X Configuration BLOB
QUOTATIONCFGSCUCFGS BAPICUCFGM 410 X Configuration Data
QUOTATIONCFGSCUINS BAPICUINSM 246 X Instance Data for Configuration
QUOTATIONCFGSCUPRTS BAPICUPRTM 136 X Detail Data (Part_of Entries) for Configuration
QUOTATIONCFGSCUREFS BAPICUREFM 33 X Instance in Configuration
QUOTATIONCFGSCUVALS BAPICUVALM 289 X Characteristic Values for Configuration
QUOTATIONCFGSCUVKS BAPICUVKM 68 X Variant Condition Key in Configuration
QUOTATIONCONDHEAD BAPICONDHD 376 X Conditions Header Data
QUOTATIONCONDITEM BAPICONDIT 518 X Conditions Item Data
QUOTATIONCONDITIONS BAPISDCOND 464 X Conditions
QUOTATIONCONDQTYSCALE BAPICONDQS 72 X Condition Scale Quantity
QUOTATIONCONDVALSCALE BAPICONDVS 81 X Condition Scale Value
QUOTATIONCONTRACTS BAPISDCNTR 158 X Contract data
QUOTATIONCREDITCARDS BAPICCARDM 317 X Credit Card Data
QUOTATIONFLOWS BAPISDFLOW 328 X Document Flow
QUOTATIONITEMS BAPISDITBOS 1784 X Item Data
QUOTATIONPARTNERS BAPISDPART 180 X Partner Data
QUOTATIONSCHEDULELINES BAPISDHEDU 344 X Schedule Lines
QUOTATIONSERVICES BAPISDESLLBOS 648 X Services
QUOTATIONSERVICESCOND BAPIBOSCD 296 X Service Conditions
QUOTATIONSERVICESCOST BAPIBOSCOST 444 X Communication Fields: Sales Document Item With BOS & Costing
QUOTATIONSERVICESTEXT BAPIESLLTX 158 X Service Texts
QUOTATIONSTATUSHEADERS BAPISDHDST 97 X Header Status
QUOTATIONSTATUSITEMS BAPISDITST 55 X Item Status
QUOTATIONTEXTHEADERS BAPISDTEHD 385 X Text Header Info.
QUOTATIONTEXTLINES BAPITEXTLI 232 X Text Lines for Document
RETURN BAPIRET2 548 X Return Messages

Functionality
You can use this method to read detail data for a customer quotationwith BOS and return this data to the calling program.

Notes
Transfer the SD document number as selection criterion to importparameter SalesDocument. A customer quotation is identified bythis serach criterion.
You can use parameter InternalUse to determine whether servicelines of line type internal line are also displayed.
Return values
The data for the selected customer quotation are returned in thefollowing tables:

  • Quotation header data via table QuotationHeader

  • Partner data via table QuotationPartners

  • Schedule line data via table QuotationScheduleLines

  • Item data via table QuotationItems

  • If you are dealing with configurable document items, the configurationdata is transferred from the following tables:
    • QuotationCfgsRef

    • QuotationCfgsInst

    • QuotationCfgsPartOf

    • QuotationCfgsValue

    • If you are dealing with document items with BOS, the service data istransferred from the following tables:
      • Service data via table QuotationServices

      • Service long texts via table QuotationServicesText

      • Service conditions via table QuotationServicesCond

      • Customer fields - tables VBAK, VBAP, VBEP andESLL can be read via parameter ExtensionOut.
        Error handling
        If errors occur during processing, they are returned in table parameterReturn. Information messages are also logged in this parameter.

        Description
        This parameter contains the sales document header data.
        You can find information on the meaning of the individual parameterfields in the appropriate data element documentation in the ABAPdictionary.

        Description
        Indicator specifying that service lines of line type internal line
        are read by the system.

        Value range
        SPACE,,no long texts are displayed.
        X ,,long texts are displayed.

        Default
        SPACE,,the indicator is not set - no long texts are displayed.

        Description
        The SD document number serves as identification for a customerquotation.

        Value range
        Dictionary data type CHAR (field length 10)

        Default
        This parameter must be entered (required field).
        INCLUDE BOS_BAPI_EXTENSIONOUT OBJECT DOKU ID TX

        Description
        This parameter contains the document address data.
        If the table is used for the purposes of entering document addressesfor an SD document, the address data in the document partner table (
        BAPIPARNR / BAPIPARTNR) is superfluous.
        please see also Online Service System note number 195768.
        You can find further information on the meaning of the individualparameter fields in the appropriate data element documentation in theABAP dictionary.

        Description
        This parameter contains business data for the quotation.
        You can find information on the meaning of the individual parameterfields in the appropriate data element documentation in the ABAPdictionary.
        INCLUDE BOS_BAPI_KONFIGURATION OBJECT DOKU ID TX
        INCLUDE BOS_BAPI_KONFIGURATION OBJECT DOKU ID TX
        INCLUDE BOS_BAPI_KONFIGURATION OBJECT DOKU ID TX
        INCLUDE BOS_BAPI_KONFIGURATION OBJECT DOKU ID TX
        INCLUDE BOS_BAPI_KONFIGURATION OBJECT DOKU ID TX
        INCLUDE BOS_BAPI_KONFIGURATION OBJECT DOKU ID TX
        INCLUDE BOS_BAPI_KONFIGURATION OBJECT DOKU ID TX

        Description
        This parameter contains the condition data for the document header.
        You can find information on the meaning of the individual parameterfields in the appropriate data element documentation in the ABAPdictionary.

        Description
        This paramter contains the condition data for the document items.
        You can find information on the meaning of the individual parameterfields in the appropriate data element documentation in the ABAPdictionary.

        Description
        This parameter contains the condition data for the document.
        You can find information on the meaning of the individual parameterfields in the appropriate data element documentation in the ABAPdictionary.

        Description
        This parameter contains condition data for the condition scalequantity.
        You can find further information on the meaning of the individualparameter fields in the appropraite data element documentation in theABAP dictionary.

        Description
        This parameter contains condition data for the condition scale value.
        You can find further information on the meaning of the individualparameter fields in the appropraite data element documentation in theABAP dictionary.

        Description
        This parameter contains the contract data.
        You can find information on the meaning of the individual parameterfields in the appropriate data element documentation in the ABAPdictionary.
        INCLUDE BOS_BAPI_KREDITKARTENDATEN OBJECT DOKU ID TX

        Description
        This parameter contains information on the document flow.
        You can find information on the meaning of the individual parameterfields in the appropriate data element documentation in the ABAPdictionary.

        Description
        This parameter contains item data for the quotation.
        You can find information on the meaning of the individual parameterfields in the appropriate data element documentation in the ABAPdictionary.
        INCLUDE BOS_BAPI_PARTNERDATEN OBJECT DOKU ID TX
        INCLUDE BOS_BAPI_EINTEILUNGSZEILEN OBJECT DOKU ID TX

        Description
        The transfer parameter contains the service lines and the outlinelevels for the bills of services in the quotation.

        Description
        This parameter contains condition data for the service lines andoutline levels.
        Each service line or outline level is identified by the package numberPCKG_NO and the internal line number LINE_NO.
        Each condition record for a service line or outline level can beidentified by the following fields (key):
        ITM_NUMBER,,quotation item
        PCKG_NO,,package number
        LINE_NO,,internal line number
        COND_ST_NO,,condition level
        COND_COUNT,,counter in the condition level

        Description
        This parameter contains cost item for the service liness.
        Each service line or outline level is identified by the package numberPCKG_NO and the internal line number LINE_NO .
        Each cost item for a service line or outline level can be identified bythe following fields (key):

        • ITM_NUMBER Quotation Item

        • PCKG_NO Package number

        • LINE_NO Internal Line number

        • ITEM_NUMBER Cost item number
        • Description
          The long texts for the service lines and outline levels are transferredin this parameter.

          Value range
          For field TEXT_ID:
          LTXT,,line long text / outline long text
          LLTX,,service long text


          This parameter contains status information for the selected document.
          You can find information on the meaning of the individual parameterfields in the appropriate data element documentation in the ABAPdictionary.

          Description
          This parameter contains status information for the document items inthe selected document.
          You can find further information on the meaning of the individualparameter fields in the appropraite data element documentation in theABAP dictionary.

          Description
          If errors occur during processing, they are returned in the tableparameter Return. Information messages are also logged in thistable parameter.

          Value range
          If no error occurs, the retuen parameter is initial. Otherwise theappropriate error messages with short text are displayed.