Hi All,
I am trying to append records to the End Routine. Say we have 2 Records in a package, I wanted to append 1 more records for some specific calculation.
The records are getting appended and the result package is having 3 records, I have the counter also correctly filled from 1 to 3. But I am not able to add values to the fields SID, DATAPAKID which is populating as zero. Hence I have a problem with the manipulated key figures during activation.
Scenario during result package manipulation:
SID DATAPAKID RECORD Field 1 Key Figure 1
1 100 1 A 10 (original record)
1 100 2 AB 20 (original record)
0 0 3 X 30 (Appended record)
New Records Table:
SID DATAPAKID RECORD Field 1 Key Figure 1
1 100 1 A 10 (original record)
1 100 2 AB 20 (original record)
0 0 3 X 30 (Appended record)
Active Table: (Records get added but the key figure value becomes 0)
SID DATAPAKID RECORD Field 1 Key Figure 1
1 100 1 A 10 (original record)
1 100 2 AB 20 (original record)
0 0 3 X 0 (Appended record) - Hence my calculation is getting useless.
Please let me know how to amed the result package with SID & DATAPAKID.
Declarations used:
DATA : IT_RESULT TYPE tyt_tg_1.
DATA : WA_RESULT TYPE tys_tg_1.
After Append this is done.
CLEAR RESULT_PACKAGE[].
MOVE IT_RESULT[] TO RESULT_PACKAGE[].
Best Regards
Srinivas.