Hello Alok,
You can try moving the focus to the initial line.
To do so, first create an instance attribute ihe class in which you are writing this code :
LR_BO Instance Attribute Type Ref To IF_BOL_BO_PROPERTY_ACCESS
Secondly, paste the below code at the last after your code ( i.e. after this line
| p_replacement_bee = html_bee. ) |
* set focus to Initial line
lr_bo = me->gr_context_node->get_bo_by_index( iv_index = 1 ).
Let me know the result.
Regards,
Devashish