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: 

unable to create session

Former Member
0 Kudos
171

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'

  • DEST = FILLER8

GROUP = 'ZXMD'

HOLDDATE = '20090101'

  • KEEP = FILLER1

USER = 'ABAP'

CALL FUNCTION 'BDC_INSERT'

EXPORTING

TCODE = 'XK01'

  • POST_LOCAL = NOVBLOCAL

  • PRINTING = NOPRINT

  • SIMUBATCH = ' '

  • CTUPARAMS = ' '

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,

Mukesh

7 REPLIES 7

Former Member
0 Kudos
63

..

0 Kudos
63

no,its still not working and showing the same error.

Former Member
0 Kudos
63

Hi,

Try changing the group name ie 'ZXMD' to something new in the FM BDC_OPEN_GROUP.

Hope this helps you.

Regards,

Ranjith Nambiar

former_member223446
Active Participant
0 Kudos
63

Hi

below you have to give KEEP = 'X'.hope ur issue is solved.

CALL FUNCTION 'BDC_OPEN_GROUP'

EXPORTING

CLIENT = '400'

  • DEST = FILLER8

GROUP = 'ZXMD'

HOLDDATE = '20090101'

  • KEEP = FILLER1

USER = 'ABAP'.

Regards

Kiran

0 Kudos
63

thnks all...but the error is still not solved...

the error is...

BDC_OPEN_GROUP,create sesion .ZXBD. not allowed, as last session is still active

kesavadas_thekkillath
Active Contributor
0 Kudos
63

Process the existing session in SM35 and try again.

Former Member
0 Kudos
63

change the group and try in SM35