Code: Alles auswählen.
method MEASPOINTSET_GET_ENTITYSET.
CALL FUNCTION 'ZMEASPOINT_GET'
TABLES
ET_MEASPOINT = ET_ENTITYSET
*ET RETURN =
.
ENDMETHOD.
Code: Alles auswählen.
method ZMEASPOINT_GET
DATA: lt_measpoint TYPE TABLE OF /SYCLO/PM_IMPTT_STR,
lv_measpoint TYPE /SYCLO/PM_IMPTT_STR,
et_measpoint LIKE /SYCLO/PM_IMPTT_STR,
lv_exp LIKE LINE OF et_measpoint,
et_return like bapiret2.
CALL FUNCTION '/SMERP/PM_CTMEASURINGPOINT_GET'
EXPORTING
IS_BAPI_INPUT = lv_bapi_input
IMPORTING
ES_BAPI_OUTPUT = lv_bapi_output
TABLES
ET_RETURN = et_return
ET_COMPLEX_TABLE = lt_measpoint //Nach Testen des FuBas weiß ich, dass an dieser Stelle Daten existieren.
.
LOOP AT lt_measpoint INTO lv_measpoint.
MOVE-CORRESPONDING lv_measpoint TO lv_exp.
APPEND lv_exp TO et_measpoint.
ENDLOOP.
ENDMETHOD.