Skip to Content
Author's profile photo Ren Hui

Get delivery details in the enhancement.

If we want to get more information in the delivery of enhanced, but enhanced parameters and no detailed information on the delivery. Then we can judge before the first enhanced system is used Delivery service provider-> Query, if used, we can get detailed information about the delivery with the following code:

  DATA:

  LO_BOM  TYPE REF TO /SCDL/CL_BO_MANAGEMENT,

  LO_BO   TYPE REF TO /SCDL/IF_BO,

  LO_HDR  TYPE REF TO /SCDL/CL_DL_HEADER,

  LO_ITM  TYPE REF TO /SCDL/CL_DL_ITEM_PRD.

* Business Object – Management

  LO_BOM = /SCDL/CL_BO_MANAGEMENT=>GET_INSTANCE( ).

* Business Object

  LO_BO  = LO_BOM->GET_BO_BY_ID( IV_DOCID = IV_DOCID ).

* Abstract Class Header

  LO_HDR = LO_BO->GET_HEADER( IV_DOCID = IV_DOCID ).

* Abstract Class Item

  LO_ITM ?= LO_BO->GET_ITEM( IV_ITEMID = IV_ITMID ).

Assigned tags

      1 Comment
      You must be Logged on to comment or reply to a post.
      Author's profile photo Markus Kaas
      Markus Kaas

      Hi Ren,

      not sure if you wanted to post a document or a question.

      In case you goal is to read delivery (so DOCCAT PDI or PDO ) then you may use the /SCWM/CL_DLV_MANAGEMENT_PRD->QUERY method. This is e.g. described in

      https://websmp202.sap-ag.de/~sapidb/011000358700001434312009E/ServiceProvider_call_examp.pdf

      in chapter 8. Then have a look at the method documentation of this QUERY method.

      Best regards

      Markus