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: 

Closing internal sessions in ABAP Query

Former Member
0 Kudos

Hello,

I have created a interactive ABAP query.

By using SUBMIT i am  calling another report(abap query report).

Due to recursive use of SUBMIT it is giving the error " Maximum internal sessions reached".

Please suggest me the way to KILL the Internal sessions created by SUBMIT.

Thanks in Advance.

Regards,

Dorababu P

9 REPLIES 9

former_member620069
Participant
0 Kudos

Hi,

Please contact your basis team, hope they will rectify.

BR,

Srini.

0 Kudos

This message was moderated.

Former Member
0 Kudos

Hello Anurag,

Thanks for your suugestion.

i am using AND RETURN along with SUBMIT.

i tried in both the ways without AND RETURN and with AND RETURN.

in both the ways i facing the same problem.

Please suggest me if any other way is there to KILL the internal session..

Regards,

Dorababu P

0 Kudos

Hi,

M not sure.. but can we not use leave to screen 0.

Thanks

0 Kudos

Hi,

To answer your question. There is no direct way of closing an internal session created via SUBMIT.

To solve your problem:

I request you to try as follows:

Steps

1) Call your report using Submit AND Return but please do so inside a

    Remote Enabled Function Module.

2) As you know we have a limit for total number of internal sessions (Nine) within an external session.

   So we will call another external session which will have 9 more sessions using RFC STARTING

   NEW TASK  calls in a loop for 6 times since total number of external sessions that can be

   opened is 6.

   Now a total of 54 sessions will be opened.

   As and when a report's functionality is complete the session will close.

   If you can open an external session using DESTINATION NONE then

  you can open new User sessions also which have multiple External Sessions

 

For conceptual purpose a Link to refer to:

http://help.sap.com/abapdocu_70/en/ABENMEMORY_ORGANIZATION.htm

3) If you approximately how much time it takes to process a report then you can add Wait statement

   after Call Function so that you know that a process is complete and internal session is released.


Hope this will help you in your task

Regards

Anurag

matt
Active Contributor
0 Kudos

Unfortunately that post had to be rejected as it was a copy paste of a SAP note. A reminder to everyone:

All content must be original. If you do use someone else's work it must be with permission and it must be properly referenced.

0 Kudos

Thanks for the reminder !

0 Kudos

Hello Anurag,

Thanks for your suggestion.

It is working fine.

But now we are getting the dump saying that " Connection closed(No data) " with th RFC function module.

Could you please provide suggestions to resolve this issue.

Regards,

Dorababu P

0 Kudos

Hi,

Whenever you get this error, please check SM59 for the server that you are using. Then click on Test connection.

I do not know how you have written the solution with your code.

Could you please copy paste your code here so that I can understand it better.