Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Error in 'bdc_open_group

Former Member
0 Kudos

Hi experts,

i have to transfer the data using bdc_session method...

i have done the following....

perform open_group.

CALL FUNCTION 'BDC_OPEN_GROUP'

EXPORTING

CLIENT = '400'

GROUP = 'ZXMD'

KEEP = optional

USER = 'ABAP'

CALL FUNCTION 'BDC_INSERT'

EXPORTING

TCODE = 'FMCIA'

TABLES

DYNPROTAB = BDCDATA

CALL FUNCTION 'BDC_CLOSE_GROUP'

  • EXCEPTIONS

  • NOT_OPEN = 1

  • QUEUE_ERROR = 2

  • OTHERS = 3

.

IF SY-SUBRC 0.

but when i execute the program i get the error'bdc_open_group,create session not allowed,as last session is still active'.

plz help.

thnks n regrads,

Sreedhar

1 ACCEPTED SOLUTION

SuhaSaha
Advisor
Advisor
0 Kudos

Hello,

Please use the EXCEPTIONS after each Function Module call & check the SY-SUBRC after each call. I think one of the FM must be failing.

I think the error message is self-explanatory.

BR,

Suhas

3 REPLIES 3

Former Member
0 Kudos

Hi Sreedhar,

Is your program creating multiple BDC session, if so then check the whether you are creating the session with same name. If you doing so then before creating a new session you should close the previous one.

Regards,

Mrinal

SuhaSaha
Advisor
Advisor
0 Kudos

Hello,

Please use the EXCEPTIONS after each Function Module call & check the SY-SUBRC after each call. I think one of the FM must be failing.

I think the error message is self-explanatory.

BR,

Suhas

Former Member
0 Kudos

Thank u .