Fonction SAP BS01_SALESORDER_GETDETAIL - Sales Order: Display Order Data of Order

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
ORDER_HEADER BAPISDHD u 817 Order Header

Paramètre Reférence Long. Facultatif Description
EXTENSIONOUT BAPIPAREX 990 X Customer enhancements for export
ORDER_ADDRESS BAPISDCOAD 629 X BAPI Structure of SADRVB with English Field Names
ORDER_BILLINGDATES BAPISDBPLD 424 X BAPI Structure of FPLT with English Field Names
ORDER_BILLINGPLANS BAPISDBPL 166 X BAPI Structure of FPLA with English Field Names
ORDER_BUSINESS BAPISDBUSI 672 X BAPI Structure of VBKD with English Field Names
ORDER_CFGS_CUBLBS BAPICUBLBM 269 X BLOB Internal Configuration Data (SCE)
ORDER_CFGS_CUCFGS BAPICUCFGM 410 X VAW: Configuration Data
ORDER_CFGS_CUINS BAPICUINSM 246 X Instances of Several Configurations
ORDER_CFGS_CUPRTS BAPICUPRTM 136 X Part_of Entries of Several Configurations
ORDER_CFGS_CUREFS BAPICUREFM 33 X CU: Reference Order Item / Instance in Configuration
ORDER_CFGS_CUVALS BAPICUVALM 289 X Characteristic Values of Several Configurations
ORDER_CFGS_CUVKS BAPICUVKM 68 X Variant Condition Keys in Configurations
ORDER_CONDITIONS BAPISDCOND 464 X BAPI Structure of KOMV with English Field Names
ORDER_COND_HEAD BAPICONDHD 376 X BAPI Structure of KONH with English Field Names
ORDER_COND_ITEM BAPICONDIT 518 X BAPI Structure of KONP with English Field Names
ORDER_COND_QTY_SCALE BAPICONDQS 72 X BAPI Structure of KONM with English Field Names
ORDER_COND_VAL_SCALE BAPICONDVS 81 X BAPI Structure of KONW with English Field Names
ORDER_CONTRACTS BAPISDCNTR 158 X BAPI Structure of VEDA with English Field Names
ORDER_CREDITCARDS BAPICCARDM 317 X Communication Table: Means of Payment Order/Billing Document
ORDER_FLOWS BAPISDFLOW 328 X BAPI Structure of VBFA with English Field Names
ORDER_ITEMS BAPISDITBOS 1784 X Item data output
ORDER_PARTNERS BAPISDPART 180 X Partner
ORDER_SCHEDULE_LINES BAPISDHEDU 344 X Schedule line data
ORDER_SERVICES BAPISDESLLBOS 648 X Services
ORDER_SERVICES_COND BAPIBOSCD 296 X Communication Fields to Maintain Service Line Condition
ORDER_SERVICES_TEXT BAPIESLLTX 158 X Service Line Texts
ORDER_STATUSHEADERS BAPISDHDST 97 X BAPI Structure of VBUK with English Field Names
ORDER_STATUSITEMS BAPISDITST 55 X BAPI Structure of VBUP with English Field Names
ORDER_TEXTHEADERS BAPISDTEHD 385 X BAPI Structure of THEAD with English Field Names
ORDER_TEXTLINES BAPITEXTLI 232 X BAPI Structure for STX_LINES Structure
RETURN BAPIRET2 548 Return Messages

Functionality
You can use this module to read detail data for a sales order andreturn this data to the calling program.
Transfer
You must enter the SD document number as import parameter (parameterSALESDOCUMENT). A sales order is identified by this search criterion.
You can control output of service lines that have been defined asinternal lines via parameter INTERNAL_USE.
Return
The following data for the sales order can be returned:

  • Order header data (via table ORDER_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 ORDER_PARTNERS)

    • Schedule line data (via table ORDER_SCHEDULE_LINES)

    • Item data (via table ORDER_ITEMS)

    • If you are dealing with configurable items, the configuration data can
    • be transferred from the following tables:
      ORDER_CFGS_REF
      ORDER_CFGS_INST
      ORDER_CFGS_PART_OF
      ORDER_CFGS_VALUE
      • BOS data for the order item can be transferred from the following
      • tables:
        ORDER_SERVICES
        ORDER_SERVICES_TEXT (text for service line)
        ORDER_SERVICES_COND (conditions for service line)
        • Customer fields in tables VBAK, VBAP, VBEP and ESLL can 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 the 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 the item output data for the sales order.

          Description
          This table contains the 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 the 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 for 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). Otherwisethe appropriate error messages with short text are displayed.