Hello Fahim,
I have 5 lines in the source file, which represents the yearly values.
I inserted the below-stated code in Endroutine area.
If i run DTP and check the data I see 5 lines and key figure values just zero
DATA: lt_kam_plan TYPE TABLE OF /BIC/B0004199,
ls_kam_plan type /BIC/B0004199.
Data: lv_kpi1 like ls_kam_plan-zprodamt,
lv_kpi2 like ls_kam_plan-zprodprc.
LOOP AT RESULT_PACKAGE assigning <RESULT_FIELDS> .
<result_fields>-calday = sy-datum.
<result_fields>-/BIC/ZPRODAMT = lv_kpi1 / 365.
<result_fields>-/BIC/ZRODPRC = lv_kpi2 / 365.
endloop.
Best
Eddy