Fonction SAP BS01_QUOTATION_GETDETAIL - Customer Quotation: Display Customer Quotation

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

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

Paramètre Reférence Long. Facultatif Description
EXTENSIONOUT BAPIPAREX 990 X Ref. Structure for BAPI Parameters EXTENSIONIN/EXTENSIONOUT
QUOTATION_ADDRESS BAPISDCOAD 629 X BAPI Structure of SADRVB with English Field Names
QUOTATION_BILLINGDATES BAPISDBPLD 424 X BAPI Structure of FPLT with English Field Names
QUOTATION_BILLINGPLANS BAPISDBPL 166 X BAPI Structure of FPLA with English Field Names
QUOTATION_BUSINESS BAPISDBUSI 672 X BAPI Structure of VBKD with English Field Names
QUOTATION_CFGS_CUBLBS BAPICUBLBM 269 X BLOB Internal Configuration Data (SCE)
QUOTATION_CFGS_CUCFGS BAPICUCFGM 410 X VAW: Configuration Data
QUOTATION_CFGS_CUINS BAPICUINSM 246 X Instances of Several Configurations
QUOTATION_CFGS_CUPRTS BAPICUPRTM 136 X Part_of Entries of Several Configurations
QUOTATION_CFGS_CUREFS BAPICUREFM 33 X CU: Reference Order Item / Instance in Configuration
QUOTATION_CFGS_CUVALS BAPICUVALM 289 X Characteristic Values of Several Configurations
QUOTATION_CFGS_CUVKS BAPICUVKM 68 X Variant Condition Keys in Configurations
QUOTATION_CONDITIONS BAPISDCOND 464 X BAPI Structure of KOMV with English Field Names
QUOTATION_COND_HEAD BAPICONDHD 376 X BAPI Structure of KONH with English Field Names
QUOTATION_COND_ITEM BAPICONDIT 518 X BAPI Structure of KONP with English Field Names
QUOTATION_COND_QTY_SCALE BAPICONDQS 72 X BAPI Structure of KONM with English Field Names
QUOTATION_COND_VAL_SCALE BAPICONDVS 81 X BAPI Structure of KONW with English Field Names
QUOTATION_CONTRACTS BAPISDCNTR 158 X BAPI Structure of VEDA with English Field Names
QUOTATION_CREDITCARDS BAPICCARDM 317 X Communication Table: Means of Payment Order/Billing Document
QUOTATION_FLOWS BAPISDFLOW 328 X BAPI Structure of VBFA with English Field Names
QUOTATION_ITEMS BAPISDITBOS 1784 X VBAP Structure with English Field Names (IBU E&C, BOS)
QUOTATION_PARTNERS BAPISDPART 180 X BAPI Structure of VBPA with English Field Names
QUOTATION_SCHEDULE_LINES BAPISDHEDU 344 X Struture of VBEP with English Field Names
QUOTATION_SERVICES BAPISDESLLBOS 648 X Communication Structure: Create Service Line (SD)
QUOTATION_SERVICES_COND BAPIBOSCD 296 X Communication Fields to Maintain Service Line Condition
QUOTATION_SERVICES_TEXT BAPIESLLTX 158 X BAPI Services Long Text
QUOTATION_STATUSHEADERS BAPISDHDST 97 X BAPI Structure of VBUK with English Field Names
QUOTATION_STATUSITEMS BAPISDITST 55 X BAPI Structure of VBUP with English Field Names
QUOTATION_TEXTHEADERS BAPISDTEHD 385 X BAPI Structure of THEAD with English Field Names
QUOTATION_TEXTLINES BAPITEXTLI 232 X BAPI Structure for STX_LINES Structure
RETURN BAPIRET2 548 Return Messages

Functionality
You can read detail data for a customer quotation and return this datato the calling program with this function module.
Transfer
You must enter the SD document number (parameter SALESDOCUMENT) asimport parameter. A customer quotation is identified by this searchcriterion.
Parameter INTERNAL_USE controls the output of the service lines thathave been defined as internal lines.
Return
The following data for the customer quotation can be returned:

  • Order header data (via table QUOTATION_HEADER)

  • Sold-to party (export parameter SOLD_TO_PARTY), ship-to party (export
  • parameter SHIP_TO_PARTY) and payer (export parameter PAYING_PARTY)
    • Partner data (via table QUOTATION_PARTNERS)

    • Schedule line data (via table QUOTATION_SCHEDULE_LINES)

    • Item data (via table QUOTATION_ITEMS)

    • If you are dealing with configurable items, the configuration data canbe transferred from the following tables:
      QUOTATION_CFGS_REF
      QUOTATION_CFGS_INST
      QUOTATION_CFGS_PART_OF
      QUOTATION_CFGS_VALUE
      • Service data for the quotation item can be transferred from the
      • following tables:
        QUOTATION_SERVICES
        QUOTATION_SERVICES_TEXT (text for service line)
        QUOTATION_SERVICES_COND (conditions for service line)
        • Customer fields in tables VBAK, VBAP, VBEP and ESLL kcan be read via
        • structure EXTENSIONOUT.
          Return messages
          INCLUDE BAPI_RET

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

          Description
          The SD document number (parameter SALESDOCUMENT) has to be transferredas import parameter.

          Description
          If you have defined customer fields in tables VBAK, VBAP, VBEP andESLL, you can read the data in these fields using this parameter.

          Further information
          You can find further information in note 143580.

          Description
          This parameter contains item output data for the sales order.

          Description
          This table contains partner data such as sold-to party and ship-toparty.

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

          Description
          This table contains the services and service outlines of the order.
          You can define a line as an outline line using the field OUTL_IND.
          Youc an assign a service line to an outline line using fields PCKG_NO(service line) and SUBPCKG_NO (outline line).
          The hierarchy of the outline is represneted by fields LINE_NO andHI_LINE_NO. Field HI_LINE_NO links to field LINE_NO of the superioroutline.
          You can find further information on the meaning of the individualparameters in the appropriate data element documentation in the ABAPdictionary.

          Description
          This parameter contains condition data for the service lines.

          Description
          The table contains the long text for the service line:

          • text type LTXT for the long text in field TEXT_ID

          • the actual text lines in field TEXT_LINE

          • The package number (PCKG_NO) forms the link to the service line forwhich the text is to be read.

            Description
            The return code of the function module is returned in this structure.
            Structure
            TYPE Message type: S Success, E Error, W Warning, I Information
            CODE Message code
            MESSAGE Message text
            LOG_NO Application log: log number
            LOG_MSG_NO Application log: sequence number of message

            Value range
            If no error occurs, the return parameter is initial (blank). Otherwise,the appropriate error message with short text is displayed.