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: 

BACK button on standard tool bar - PLZ HELP

Former Member
0 Kudos

Hi All,

I have a drill down ALV grid report (using oop with custom container and grid).

The problem is, when i click on back button in 100 screen, i can come back to the selection screen fine.

But when i go to the secondary screen, click back button there, i come back to basic grid fine but now when i click on back button again, it just clears the grid contents but does not come to the selection screen.

In PAI of 100 screen,

MOVE sy-ucomm TO okcode.

CASE okcode.

WHEN 'EXIT' OR

'BACK' OR

'CANCEL'.

LEAVE TO SCREEN 0.

WHEN OTHERS.

  • do nothing

ENDCASE.

CLEAR okcode.

Please help and give the solution what i can do and why this is happening.

Thanks.

1 ACCEPTED SOLUTION

Hi,

Make sure you are clearing the okcode in your secondary screen before you call LEAVE TO SCREEN.

ALso you can put LEAVE TO SCREEN 1000 in your PAI of the screen 100. Since 1000 is the screen number for the selection screen.

Regards,

Sesh

Message was edited by:

Seshatalpasai Madala

2 REPLIES 2

Hi,

Make sure you are clearing the okcode in your secondary screen before you call LEAVE TO SCREEN.

ALso you can put LEAVE TO SCREEN 1000 in your PAI of the screen 100. Since 1000 is the screen number for the selection screen.

Regards,

Sesh

Message was edited by:

Seshatalpasai Madala

Former Member
0 Kudos

hi,

try like this.....

when 'BACK'

leave program -> comes out of the current program r

leave to screen 1000 -> starting screen for giving parameters r slect-options.

if helpful reward some points.

with regards,

suresh.