Para acceder a los datos de cabecera puedes hacer lo siguiente
data: lo_header type ref to IF_PURCHASE_ORDER_MM.
data: ls_header type mepoheader.
lo_header = im_item->get_header( ).
ls_header = lo_header->get_data( ).
if ls_header-bsart = ...
aqui harias tu chequeo
|