Fonction SAP BAPI_INQUIRY_GETDETAILBOS - Display Customer RFQ 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
INQUIRYHEADER BAPISDHD u 817 Document Header Data

Paramètre Reférence Long. Facultatif Description
EXTENSIONOUT BAPIPAREX 990 X Customer enhancements for export
INQUIRYADDRESS BAPISDCOAD 629 X Address Data
INQUIRYBUSINESS BAPISDBUSI 672 X Business Data
INQUIRYCFGSCUBLBS BAPICUBLBM 269 X Configuration BLOB
INQUIRYCFGSCUCFGS BAPICUCFGM 410 X Configuration Data
INQUIRYCFGSCUINS BAPICUINSM 246 X Instance Data for Configuration
INQUIRYCFGSCUPRTS BAPICUPRTM 136 X Detail Data (Part_of Entries) for Configuration
INQUIRYCFGSCUREFS BAPICUREFM 33 X Instance in Configuration
INQUIRYCFGSCUVALS BAPICUVALM 289 X Characteristic Values for Configuration
INQUIRYCFGSCUVKS BAPICUVKM 68 X Variant Condition Key in Configuration
INQUIRYCONTRACTS BAPISDCNTR 158 X Contract Data for Document Numbers
INQUIRYFLOWS BAPISDFLOW 328 X Document flow
INQUIRYITEMS BAPISDITBOS 1784 X Item Data
INQUIRYPARTNERS BAPISDPART 180 X Partner Data
INQUIRYSCHEDULELINES BAPISDHEDU 344 X Schedule Line Data
INQUIRYSERVICES BAPISDESLLBOS 648 X Services
INQUIRYSERVICESTEXT BAPIESLLTX 158 X Service Texts
INQUIRYSTATUSHEADERS BAPISDHDST 97 X Header Status
INQUIRYSTATUSITEMS BAPISDITST 55 X Item Status
INQUIRYTEXTHEADERS BAPISDTEHD 385 X Text Header Info.
INQUIRYTEXTLINES BAPITEXTLI 232 X Text Lines for Document
RETURN BAPIRET2 548 X Return Messages

Functionality
You can use this method to read data frmoa customer inquiry with BOSand return this data to the calling program.

Notes
Transfer the SD document number as selection criterion in importparameter SalesDocument. A sales order can be identified by thissearch criterion.
Via parameter InternalUse, you cna determine whether serviceline of line type internal line are also displayed.
Return values
The data for the selected customer inquiry is returned in the follwingtables:

  • Inquiry header data via table InquiryHeader

  • Partner data via table InquiryPartners

  • Schedule line data via table InquiryScheduleLines

  • Item data via table InquiryItems

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

    • InquiryCfgsInst

    • InquiryCfgsPartOf

    • InquiryCfgsValue

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

      • Service long texts via table InquiryServicesText

      • Customer fields, tables VBAK, VBAP, VBEP andESLL can be read via parameter ExtensionOut.
        Handling of errors
        If errors occur during processing, they are returned in 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 that specifies that service lines of line type internalline should be read from the system.

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

        Default
        SPACE

        Description
        The SD document number serves to identify a customer inquiry.

        Value range
        Dictionary data type CHAR (field length 10)

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

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

        Description
        This parameter contains the business data for the inquiry.
        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 contract data.
        You can find information on the meaning of the individual parameterfields in the appropriate data element documentation in the ABAPdictionary.

        Description
        This paramter 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 the item data for the inquiry.
        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
        This transfer parameter contains the service lines and the outlinelevels for the bills of services in the inquiry.

        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

        Description
        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 return parameter is initial. Otherwise theappropriate error messages with short text are displayed.