01-16-2007 3:31 PM
Hi,
does anybody know how I can close an internal session. I use a function module with statement SUBMIT ... AND RETURN inside to call an report in an internal session. After returning this internal session is not destroyed and the memory isn't given free. After closing the actual transaction the session will be destroyed.
Is there any possibility to destroy the internal session while transaction is running? Thanks for help.
Regards, Kay
01-16-2007 3:50 PM
Hi Kay,
If you omit the AND RETURN addition, all data and list levels of the calling program (the entire internal session) are deleted. After the called executable program has finished, control returns to the level from which you started the calling program.
Check the documentation on the statement.
http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9dd035c111d1829f0000e829fbfe/frameset.htm
~Mayank
If helpful please reward points
01-16-2007 4:53 PM
Hi Mayank,
this is not was I mean. I'm looking for a solution to delete the data in the called executable program after it has finished. What you described is that the data of the calling program are deleted.
Kay
01-16-2007 5:37 PM
01-16-2007 5:40 PM
Hi,
Are you passing the values from your callling program to the called SUBMIT progrm?
If those values are not required when you return to your main program, clear and refresh all variables in theEnd-of-selection of the SUBMIT program.
Regards
Subramanian