Hi Riddhi,
As per my knowledge if the code is simple and short then we can place the code in "Insert Line of Code" and if it is complex or big logic then we need to write ABAP logic and place it in "Insert Include Name".
For this one has to be good in ABAP programming.
Hope someone with ABAP knowledge will give the complete code.
Regards
Raj Kumar