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:
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 ).