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

Menu in Module Pool Screen - Back exits the program

Former Member
0 Likes
769

Hello Everybody,

I have created custom menu in Module Pool program.;

I am trying to switch between 2 views using the Menu.

When I click on Back after the switch using menu,

I am going back to the previous screen.

But I want it to go to Easy Access screen when I click on back.

Can someone help me with this please.

Thanks,

Sneha Singh.

Edited by: Julius Bussche on Nov 17, 2009 12:24 AM

Please use appropriate subject titles.

1 ACCEPTED SOLUTION
Read only

former_member191735
Active Contributor
0 Likes
570

>

> Hello Everybody,

>

> I have created custom menu in Module Pool program.;

> I am trying to switch between 2 views using the Menu.

>

> When I click on Back after the switch using menu,

> I am going back to the previous screen.

>

> But I want it to go to Easy Access screen when I click on back.

> Can someone help me with this please.

>

Write code to leave screen instead of leave to transaction 0.

4 REPLIES 4
Read only

former_member191735
Active Contributor
0 Likes
571

>

> Hello Everybody,

>

> I have created custom menu in Module Pool program.;

> I am trying to switch between 2 views using the Menu.

>

> When I click on Back after the switch using menu,

> I am going back to the previous screen.

>

> But I want it to go to Easy Access screen when I click on back.

> Can someone help me with this please.

>

Write code to leave screen instead of leave to transaction 0.

Read only

0 Likes
570

Sampath, I did write code to Leave Screen.

I am using the command "LEAVE PROGRAM".

But its going back to the previously called screen.

Read only

0 Likes
570

Did you try : Leave to current transaction statement?

Anyways, Leave program should work.

Just a work around..... change the Go to PF-status - double click on the back button or the buttons you specified to back, exit cancel then choose 'E' in functional type.

In your program.... write .... module exit at exit-command. Double click on the exit module and write the code

leave program.

This should work as you expected .

Good luck

Read only

0 Likes
570

Sampath,

Thanks. I did what u suggeste previously, but it didnt work.

I added the line "LEAVE TO TRANSACTION 'SESSION_MANAGER'".

Its working. Thanks for the pointer. Full points awarded.