How to modify data package in update rules (newbie question)
As I am new to doing ABAP, I have a newbie question. I am first of all trying to fill an InfoObject in the start routine of the update rules. My code is:
DATA: varighed TYPE i
, wa_temp type DATA_PACKAGE_STRUCTURE OCCURS 0
WITH HEADER LINE.
LOOP AT DATA_PACKAGE into wa_temp.
varighed = 100.
wa_temp-/bic/iotvarig = varighed.
wa_temp-/BIC/IOTOBJFOR = 'TEST'.
LOOP AT wa_temp.
APPEND wa_temp TO DATA_PACKAGE.
It seems that wa-temp doesnt get filled at all, because the ODS is empty afterwards. What am I doing wrong?