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

Switching to other session programmatically

shadab_maldar
Active Participant
3,503

Hi Experts,

I want to switch to other session programmatically.

Is there a way to achive this.

Regards,

Shadab

1 ACCEPTED SOLUTION
Read only

Sandra_Rossi
Active Contributor
3,084

What I proposed in the comments (execute Call Screen within aRFC) is not a popup, but a full screen display, so Alt+Tab would work (as if you open a new session and start a transaction).

You may open an amodal popup, but it can't contain a dynpro, only a GUI control from the Control Framework (for instance: HTML Viewer, ALV Grid) Cf demo program RSDEMO_DIALOGBOX_CONTROL.

11 REPLIES 11
Read only

matt
Active Contributor
0 Likes
3,084

Please give more details - perhaps an example.

Read only

shadab_maldar
Active Participant
0 Likes
3,084

Hi Mathew,

Thank you for the reply,

If For example I have opened VA01, VA02 and VA03 .

Now when I execute the program(with the desired TCODE like VA01 or VA02 or VA03 which are already opened) this should open that active session of transaction.

More or less I want to achive the functionality like Alt+Tab.

Regards,

Shadab.

Read only

kiran_k8
Active Contributor
0 Likes
3,084

Shadab,

More than how I am interested in knowing why ?

K.Kiran.

Read only

shadab_maldar
Active Participant
0 Likes
3,084

Hi Kiran,

Actually I want to get the minimize button at the modal dailog screen and searched regarding this on the forum too.

We get the close button on modal dailog screen but not a minimize one.

So I thaught a work around of giving a button and calling a active open session.

Please suggest and correct me if I am wrong

Regards,

Shadab

Read only

Sandra_Rossi
Active Contributor
0 Likes
3,084

Do you want to start a transaction/program in another session? (execute an aRFC with a screen)

Read only

shadab_maldar
Active Participant
0 Likes
3,084

Hi Sandra,

I want to just get the functionality like Alt+Tab.

Because I am not having minimize button in modal dailog screen and thaught of goinig with this alternate of navigating to active open session.

Please correct me if I am wrong.

Regards,

Shadab

Read only

arpitr
Participant
0 Likes
3,084

Hi,

you can add "create new session " button on tab.

Read only

shadab_maldar
Active Participant
0 Likes
3,084

Hi Arpit,

In that case if we had open maximum number of seesions(Max 6) than the system throws an error popup(Maximum sessions has been reached) and it will lead to a bad information for the end user.

Regards,

Shadab.

Read only

retired_member
Product and Topic Expert
Product and Topic Expert
3,084

You can neither switch between SAP GUI windows nor minimize/maximize SAP GUI windows programmatically from ABAP.

That there is no minimize button on pop-up windows and that those are always on display until closed is a flaw for which I don't know any workaround.

Read only

Sandra_Rossi
Active Contributor
3,085

What I proposed in the comments (execute Call Screen within aRFC) is not a popup, but a full screen display, so Alt+Tab would work (as if you open a new session and start a transaction).

You may open an amodal popup, but it can't contain a dynpro, only a GUI control from the Control Framework (for instance: HTML Viewer, ALV Grid) Cf demo program RSDEMO_DIALOGBOX_CONTROL.

Read only

3,084

Hi Sandra,

Thanks for the demo program it was helpful.

Please send me the above solution as an answer(instead of comment) so that I can mark it correct and close the thread.

Regards,

Shadab