Application Development and Automation 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: 
Read only

Close a Session

Former Member
0 Likes
791

Dear Experts,

Am calling a transaction code in an RFC with destination none to open the called transaction 'A' in a new session.

Right after that i call another transaction 'B' which is a BDC recording, once i return from BDC, i need to close the session in which 'A' is opened.

I tried th_delete_mode but no use.I request you to throw some light on it,

Thanks in advance,

sampath

3 REPLIES 3
Read only

gerd_rother
Active Participant
0 Likes
695

Hi,

I actually did not came across such a request,but perhaps you should try CALL FUNCTION ... DESTINATION 'NONE' ... STARTING NEW TASK <task> when starting 'A' and to end the task use FM RFC_CONNECTION_CLOSE.

Regards, Gerd Rother

Read only

0 Likes
695

Thanks for the reply Rother,

I did the same before posting the request but could not find the solution. All it says 'No Connection Found'.

Since i gave it none..it might be saying that none is unavaliable. Any thoughts further?

Thanks in advance to you experts.

Read only

Former Member
0 Likes
695

Dear Experts,

Instead of opening a new thread, am posting the same requirement which is not yet solved again with some modifications.

Since the requirement was not sufficed, i have taken the below approach:

1) From the Custom Transaction 'A', i have to call the VAO1 transaction in another window, when the VA01 processing is completed, the window should close.

Steps taken by me:

1) in the main transaction when the user clicks on a certain button, am calling the VA01 through a remote enabled FM

starting new task 'TEST' destination 'NONE' performing init_flag on end of task.

In the routine init_flag i have initialized some values and going ahead. Now when i click on back on the VA01 transaction , the task ends but it takes very long tme and results in dump....CALL_FUNCTION_WAIT_ERROR

I request you all experts to throw some light on this.

Regards,

Thanks in advance,

kumar