‎2006 Sep 11 6:46 PM
Hi All,
I was executing a BDC and got this error, 'BDC_INSERT, session not open'.
Please help me how to correct it.
Thanks
Veni.
‎2006 Sep 11 7:09 PM
Hi Veni,
Did you close the session with FM BDC_CLOSE_GROUP?
Regards,
Ferry Lianto
Please reward points if helpful.
‎2006 Sep 11 6:48 PM
Hi,
Did you call the FM BDC_OPEN_GROUP before BDC_INSERT..
THanks,
Naren
‎2006 Sep 11 6:48 PM
Use FM for BDC OPEN GROUP first if it is not called in you rprogramm earlier. Reply if this is not the case.
reward points if it is correct.
Message was edited by: Geeta Yash
‎2006 Sep 11 6:49 PM
Hi Veni,
Please check this sample code using the BDC_INSERT functions perhaps it may help.
http://www.sap-basis-abap.com/sapac003.htm
Regards,
Ferry Lianto
‎2006 Sep 11 6:57 PM
Hi,
The batch input program must not open a session until it has closed the preceding session. so check is there any sesion in the process with the same name.
Regards
Sudheer
‎2006 Sep 11 7:03 PM
Hi,
Thank you all for the reply. First I forgot to put oprn_group. Now I added it , but getting another error saying,
'BDC_OPEN_GROUP, create session .S1. not allo
as last session is still active'.
Please help me.
Thanks
Veni.
‎2006 Sep 11 7:06 PM
Hi
AT the end you have to close the session by fm BDC_CLOSE_GROUP
Your flow should be:
CALL FUNCTION 'BDC_OPEN_GROUP'
EXPORTING
CLIENT = SY-MANDT
GROUP = E_GROUP
USER = E_USER
KEEP = E_KEEP.
CALL FUNCTION 'BDC_INSERT'
EXPORTING
TCODE = _TCODE
TABLES
DYNPROTAB = BDCDATA.
CALL FUNCTION 'BDC_CLOSE_GROUP'.
Max
‎2006 Sep 11 7:09 PM
Hi Veni,
Did you close the session with FM BDC_CLOSE_GROUP?
Regards,
Ferry Lianto
Please reward points if helpful.
‎2006 Sep 11 7:12 PM
‎2006 Sep 11 7:15 PM
Now it is running. Small mistake. I got it now.
Thank you all for your immediate help.
I greatly appritiate all of your help.