Fonction SAP BS01_CDMEMOREQUEST_GETDETAIL - Customer quantity take-off: Display of the customer quantity take-off

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

Paramètre Reférence Long. Facultatif Description
CDMEMOREQUEST_ADDRESS BAPISDCOAD 629 X BAPI Structure of SADRVB with English Field Names
CDMEMOREQUEST_BILLINGDATES BAPISDBPLD 424 X BAPI Structure of FPLT with English Field Names
CDMEMOREQUEST_BILLINGPLANS BAPISDBPL 166 X BAPI Structure of FPLA with English Field Names
CDMEMOREQUEST_BUSINESS BAPISDBUSI 672 X BAPI Structure of VBKD with English Field Names
CDMEMOREQUEST_CFGS_CUBLBS BAPICUBLBM 269 X BLOB Internal Configuration Data (SCE)
CDMEMOREQUEST_CFGS_CUCFGS BAPICUCFGM 410 X VAW: Configuration Data
CDMEMOREQUEST_CFGS_CUINS BAPICUINSM 246 X Instances of Several Configurations
CDMEMOREQUEST_CFGS_CUPRTS BAPICUPRTM 136 X Part_of Entries of Several Configurations
CDMEMOREQUEST_CFGS_CUREFS BAPICUREFM 33 X CU: Reference Order Item / Instance in Configuration
CDMEMOREQUEST_CFGS_CUVALS BAPICUVALM 289 X Characteristic Values of Several Configurations
CDMEMOREQUEST_CFGS_CUVKS BAPICUVKM 68 X Variant Condition Keys in Configurations
CDMEMOREQUEST_CONDITIONS BAPISDCOND 464 X BAPI Structure of KOMV with English Field Names
CDMEMOREQUEST_COND_HEAD BAPICONDHD 376 X BAPI Structure of KONH with English Field Names
CDMEMOREQUEST_COND_ITEM BAPICONDIT 518 X BAPI Structure of KONP with English Field Names
CDMEMOREQUEST_COND_QTY_SCALE BAPICONDQS 72 X BAPI Structure of KONM with English Field Names
CDMEMOREQUEST_COND_VAL_SCALE BAPICONDVS 81 X BAPI Structure of KONW with English Field Names
CDMEMOREQUEST_CONTRACTS BAPISDCNTR 158 X BAPI Structure of VEDA with English Field Names
CDMEMOREQUEST_CREDITCARDS BAPICCARDM 317 X Communication Table: Means of Payment Order/Billing Document
CDMEMOREQUEST_FLOWS BAPISDFLOW 328 X BAPI Structure of VBFA with English Field Names
CDMEMOREQUEST_ITEMS BAPISDITBOS 1784 X VBAP Structure with English Field Names (IBU E&C, BOS)
CDMEMOREQUEST_PARTNERS BAPISDPART 180 X BAPI Structure of VBPA with English Field Names
CDMEMOREQUEST_SCHEDULE_LINES BAPISDHEDU 344 X Struture of VBEP with English Field Names
CDMEMOREQUEST_SERVICES BAPISDESLLBOS 648 X Communication Structure: Create Service Line (SD)
CDMEMOREQUEST_SERVICES_COND BAPIBOSCD 296 X Communication Fields to Maintain Service Line Condition
CDMEMOREQUEST_SERVICES_TEXT BAPIESLLTX 158 X BAPI Services Long Text
CDMEMOREQUEST_STATUSHEADERS BAPISDHDST 97 X BAPI Structure of VBUK with English Field Names
CDMEMOREQUEST_STATUSITEMS BAPISDITST 55 X BAPI Structure of VBUP with English Field Names
CDMEMOREQUEST_TEXTHEADERS BAPISDTEHD 385 X BAPI Structure of THEAD with English Field Names
CDMEMOREQUEST_TEXTLINES BAPITEXTLI 232 X BAPI Structure for STX_LINES Structure
EXTENSIONOUT BAPIPAREX 990 X Ref. Structure for BAPI Parameters EXTENSIONIN/EXTENSIONOUT
RETURN BAPIRET2 548 Return Messages

Functionality
You can read detail data for a quantity take-off (debit memo request)and return this data to the calling program with this function module.
Transfer
You must enter the SD document number (parameter SALESDOCUMENT) asimport parameter. A quantity-take off (debit memo request) isidentified by this search criterion.
Parameter INTERNAL_USE wcontrols the output of the service lines thathave been defined as internal lines.
Return
The following data for the quantity take-off (debit memo request) canbe returned:

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

    • Schedule line data (via table CDMEMOREQUEST_SCHEDULE_LINES)

    • Item data (via table CDMEMOREQUEST_ITEMS)

    • If you are dealing with configurable items, the configuration data canbe transferred from the following tables:
      CDMEMOREQUEST_CFGS_REF
      CDMEMOREQUEST_CFGS_INST
      CDMEMOREQUEST_CFGS_PART_OF
      CDMEMOREQUEST_CFGS_VALUE
      • Service data for order item (via tables CDMEMOREQUEST_SERVICES and
      • CDMEMOREQUEST_SERVICES_TEXT)
        • Customer fields in tables VBAK, VBAP, VBEP and ESLL kcan be read via
        • structure EXTENSIONOUT.
          Return messages
          INCLUDE BAPI_RET

          Description
          This parameter contains data for the sales document header.
          You can find information on the individual parameters in theappropriate data element documentation in the ABAP dictionary.

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

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

          Description
          Partners such as sold-to party and ship-to party are entered in thistable.

          Description
          This parameter contains schedule line data.
          You can find information on the individual parameter fields in theappropriate data element documentation in the ABAP dictionary.

          Description
          The table contains the services and outline layouts for the order.
          You use field OUTL_IND to define a line as an outline line.
          You assign a service line to an outline line using fields PCKG_NO(service line) and SUBPCKG_NO (outline line).
          The hierarchy for the outline layout is represented by fields LINE_NOand HI_LINE_NO. Field HI_LINE_NO links to the field LINE_NO of thesuperior outline.
          You can find further information on the individual parameter fields inthe appropriate data element documentation in the ABAP dictionary.

          Description
          This 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
            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
            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 the message

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