Code: Alles auswählen.
DATA:
ls_header TYPE MEPOHEADER,
lt_partners TYPE MMPUR_PARTNER_ALL_TAB,
ls_partner LIKE LINE OF lt_partners,
lo_po_doc TYPE REF TO IF_PURCHASING_DOCUMENT.
ls_header = im_header->get_data( ).
lo_po_doc ?= im_header.
lt_partners = lo_po_doc->get_partners( ).
LOOP AT lt_partners INTO ls_partner.
BREAK-POINT.
ENDLOOP.