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

ALV problem

Former Member
0 Likes
498

Hello There,

I have this issue where when I go to ALV screen & click the back button it doesn't directly goes to the selection screen instead it goes to the grey screen/ list screen showing the program title. Please advice on this issue's solution.

Thanks in advance.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
399

Hi,

try this in your report-

IF sy-ucomm = '&F03' OR sy-ucomm = '&F15'.                  "  &F03 IS ok code for BACK AND &F15 IS UP.
LEAVE LIST-PROCESSING.
  ENDIF.

IF sy-ucomm = '&F12'.  " this is for cancel button

LEAVE PROGRAM.
ENDIF.

Regards,

Sumit

2 REPLIES 2
Read only

Former Member
0 Likes
399

Hi,

Try with in PAI Event of screen when BACK Butoon,


Case sy-ucomm.
when 'BACK'
Leave Screen 0.
ENdcase.

still You get same problem please post your code.

Regards,

Raghava Channooru

Read only

Former Member
0 Likes
400

Hi,

try this in your report-

IF sy-ucomm = '&F03' OR sy-ucomm = '&F15'.                  "  &F03 IS ok code for BACK AND &F15 IS UP.
LEAVE LIST-PROCESSING.
  ENDIF.

IF sy-ucomm = '&F12'.  " this is for cancel button

LEAVE PROGRAM.
ENDIF.

Regards,

Sumit