Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

How to modify data package in update rules (newbie question)

Hi guys

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'.

ENDLOOP.

REFRESH DATA_PACKAGE.

LOOP AT wa_temp.

APPEND wa_temp TO DATA_PACKAGE.

ENDLOOP.

It seems that ’wa-temp’ doesn’t get filled at all, because the ODS is empty afterwards. What am I doing wrong?

Thanks

/Karsten

Not what you were looking for? View more on this topic or Ask a question