Code: Alles auswählen.
loop at lt_cordpos ASSIGNING <lr_cordpos>.
CALL METHOD <lr_cordpos>->GET_DATA
EXPORTING
I_FILL_PREREG = OFF
IMPORTING
E_ENVIRONMENT = lr_environment
CHANGING
C_ERRORHANDLER = cr_errorhandler.
CALL METHOD lr_environment->GET_DATA
IMPORTING
E_RC = e_rc
ET_OBJECTLIST = lt_objectlist
CHANGING
C_ERRORHANDLER = cr_errorhandler.
ENDLOOP.
Code: Alles auswählen.
data ref_klatgewicht_data type ref to zcl_klatgewicht_data.
data ref_objekctlist type ref to ish_OBJECTLIST.
loop at lt_objectlist reference into ref_objectlist.
try.
ref_klatgewicht_data ?= ref_objectlist->object.
* hier was machen
catch cx_root.
endtry.
endloop.
Code: Alles auswählen.
DATA: lt_objectlist TYPE ish_objectlist,
lr_objectlist TYPE REF TO ish_objectlist,
lr_klatgewicht_data TYPE REF TO zcl_klatgewicht_data.
LOOP AT lt_objectlist REFERENCE INTO lr_objectlist.
TRY.
lr_klatgewicht_data ?= lr_objectlist->object.
CATCH cx_root.
ENDTRY.
ENDLOOP.
Code: Alles auswählen.
LOOP AT lt_objectlist REFERENCE INTO lr_objectlist.
TRY.
lr_klatgewicht_data ?= lr_objectlist->object.
* HIER kannst du auf lr_klatgewicht_data->get_data( ) abfragen.
CATCH cx_root.
ENDTRY.
ENDLOOP.
Code: Alles auswählen.
LOOP AT lt_objectlist REFERENCE INTO lr_objectlist.
TRY.
lr_klatgewicht_data ?= lr_objectlist->object.
lr_klatgewicht_data->get_data( IMPORTING es_data = ls_data ).
CATCH cx_root.
ENDTRY.
ENDLOOP.