Application Development and Automation 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: 
Read only

Error in 'bdc_open_group

Former Member
0 Likes
1,073

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
Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
932

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

Thank u .

3 REPLIES 3
Read only

Former Member
0 Likes
932

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

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
933

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

Read only

Former Member
0 Likes
932

Thank u .