Skip to Content
0
Former Member
Jan 07, 2006 at 08:52 AM

get_data method of class cl_po_item_handle_mm is returning blank data

507 Views

get_data method of class cl_po_item_handle_mm is returning blank data for Delivery Schedule.

The code I am using is following:

REPORT zt_flora_07 MESSAGE-ID v1.

DATA:
po    TYPE REF TO cl_po_item_handle_mm,
my_po_header TYPE REF TO cl_po_header_handle_mm,
im_po_number	TYPE	ekko-ebeln,
ex_data_L TYPE    mepoitem,
im_po_item_number	TYPE ekpo-ebelp "	Document Item Number
.

im_po_number = '5500000001'.
im_po_item_number = '00010'.

CREATE OBJECT my_po_header
  EXPORTING
    im_po_number = im_po_number
  EXCEPTIONS
    failure = 1
    others  = 2
    .

CREATE OBJECT po
  EXPORTING
    im_po_item_number = im_po_item_number
    im_po_header =  my_po_header
*    IM_PO_HEADER_ID =
  EXCEPTIONS
    failure = 1
    others  = 2
    .

CHECK sy-subrc = 0.

CALL METHOD po->get_data
  IMPORTING
    ex_data = ex_data_L
  EXCEPTIONS
    failure = 1
    OTHERS  = 2
    .


WRITE:/ 'Finish'.