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: 

Maximum number of internal sessions reached

Former Member
0 Kudos

Hello.

I get the error "Maximum number of internal sessions reached"

In my program I call another program, after the other program is executed I return to the main program. This requires no user interaction.

Now I think I've done something wrong because after running the program a few times it gives the error.

any idea how to solve this?

Greets

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Call transaction is opening a new session every time you execute it hence at some point you run out of sessions.

Use LEAVE TO TRANSACTION instead. This will open a new session, but closing the old one hence you'll always have one active session only.

5 REPLIES 5

Former Member
0 Kudos

Call transaction is opening a new session every time you execute it hence at some point you run out of sessions.

Use LEAVE TO TRANSACTION instead. This will open a new session, but closing the old one hence you'll always have one active session only.

0 Kudos

Where do I have to implement this "Leave To transaction" ?

0 Kudos

Hi,

Instead of CALL TRANSACTION tcode use LEAVE TO TRANSACTION tcode.

Regards

Raju chitale

0 Kudos

BUt wont that bring us to the screen of teh transaction eneterd?

I am facing a similar issue and it is not automatic anymore.

leave to transaction 'VF01' and skip first screen.
*  call transaction 'VF01' using bdc_tab options from lwa_bdcoptions
*                           messages into it_bdcmess .

When I chnage it to leave to from call ..it gives me the selection screen for the vf01 transaction.

Thanks

Former Member
0 Kudos

Hi,

You can reach maximum 6 sessions only.

So try to close other sessions if you don't use.

regards,

Bhanu