05-22-2015 7:30 AM
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
05-22-2015 7:32 AM
Hi,
Please contact your basis team, hope they will rectify.
BR,
Srini.
05-22-2015 10:33 AM
05-22-2015 11:10 AM
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
05-22-2015 11:21 AM
05-25-2015 3:58 PM
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
05-25-2015 8:25 PM
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.
05-26-2015 9:50 AM
05-26-2015 3:14 PM
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
05-29-2015 9:33 AM
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.