Hi Spandana,
Let us know which BAPI you used to create GR.
Please check whether BAPI having parameter called testrun.
If BAPI having testrun parameter then you need to call the BAPI twice with and without testrun .
But this method not recommended as part of performance tuning.
For an example BAPI_GOODSMVT_CREATE has testrun
Thanks & Regards,
Arun