Dear All,
The problem is solved.
When we use
SUBMIT RCSBI020 WITH LOG_NAME = <Path>
WITH BDC_FLAG = 'X'
USER SY-UNAME
VIA JOB <jobname> NUMBER <jobcount>
AND RETURN.
There should be correct data at the given <Path>. In my case I was giving some test <Path> and while debugging, after passing submit statement, changing the path where the correct data was saved.
Therefore, even if the correct path was given while debugging, Submit was taking the test <Path> for reading data. Thus failing to create the session.
Best Regards
Akshay