Hoi,ZMAGRI hat geschrieben:Morgen zuammen,
ich versuche 2 Felder in einer internen Tab mit Werte zu pflegen , mit Coding (diese Codind ist Teil einer FUBA:
leider die et_costs wird nicht mit den werten aktualisiert obwohl ( arbei , ismnw ) werte gibt.
Was ist daran Falsch
LOOP AT et_costs INTO ls_costs .
ls_index = sy-tabix.
READ TABLE it_data_costs INTO
ls_data_costs WITH KEY posid = ls_costs-posid.
IF sy-subrc IS INITIAL.
ls_costs-arbei = ls_data-arbei.
ls_costs-ismnw = ls_data-ismnw.
ENDIF.
MODIFY et_costs FROM ls_costs INDEX ls_index.
ENDLOOP.
Endfunction
Gruß.
Code: Alles auswählen.
LOOP AT et_costs INTO ls_costs .
ls_index = sy-tabix.
READ TABLE it_data_costs INTO ls_data_costs WITH KEY posid = ls_costs-posid.
IF sy-subrc IS INITIAL.
ls_costs-arbei = ls_data_costs-arbei.
ls_costs-ismnw = ls_data_costs-ismnw.
MODIFY et_costs FROM ls_costs INDEX ls_index.
* oder auch
MODIFY et_costs FROM ls_costs TRANSPORTING arbei
ismnw.
ENDIF.
ENDLOOP. Bin mir jetzt nicht sicher, ob du dich jetzt hier oder in deinem Programm verschrieben hast.ZMAGRI hat geschrieben:LOOP AT et_costs INTO ls_costs .
ls_index = sy-tabix.
READ TABLE it_data_costs INTO
ls_data_costs WITH KEY posid = ls_costs-posid.
IF sy-subrc IS INITIAL.
ls_costs-arbei = ls_data-arbei.
ls_costs-ismnw = ls_data-ismnw.
ENDIF.
MODIFY et_costs FROM ls_costs INDEX ls_index.
ENDLOOP.