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 session

Former Member
0 Kudos

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

4 REPLIES 4

Former Member
0 Kudos

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

0 Kudos

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

Clemenss
Active Contributor
0 Kudos

Hi Kay,

CALL FUNCTION func STARTING NEW TASK task

Regards,

Clemens

Former Member
0 Kudos

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