Hi Priya,
Comment below code from the method GET_LAST_INTERACTIONS.
restrict to 4 result entities lr_bo = lr_queryres_col->find( iv_index = 5 ).
WHILE lr_bo IS BOUND.
lr_queryres_col->remove( iv_bo = lr_bo ).
lr_bo = lr_queryres_col->find( iv_index = 5 ).
ENDWHILE.
Line 48 to 53.
Regards,
Naresh