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

selection screen error

Former Member
0 Likes
879

hi all,

I have a selection screen 9001 . In that if i give the value for parameter matnr and execute it will show details of ernam,mtart,matkl in table control in module pool screen 9002. Now if click back button in 9002 it will go to screen 9001.And if i click BACK button in 9001 it should go to program, but it goes again to the screen 9002. so what should i do for going back to program after clicking BACK in 9001 screen??i have also tried with set pf-status and kept a function key for BACK and wrote when 'BACK'.

leave program.

in AT selection of 9001 screen..

please help.

regards,

Siva.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
812

Also maintain the 'Next Screen' field of the screen attribute in screen 9001 as '9001' itself. Now it looks to be maintained as '9002'. That should solve the problem.

Regards

Ranganath

5 REPLIES 5
Read only

Former Member
0 Likes
813

Also maintain the 'Next Screen' field of the screen attribute in screen 9001 as '9001' itself. Now it looks to be maintained as '9002'. That should solve the problem.

Regards

Ranganath

Read only

Former Member
0 Likes
812

Hi,

You have to check the GUI-Status of the program.

You can change the Function Code when you try to go back from screen '9001'.

Thanks

Arbind

Read only

0 Likes
812

Hi,

don't set PF-status on screen 9001, instead by default back button will come if it is the selection screen.

Now go to dibugging mode for screen 9001 and press back, check the value of sy-ucomm and write below code.

e.g. For me function code showing is 'WB_EXEC', and hope same will work for you also, now check below code in selection screen program for 9001

AT SELECTION-SCREEN.

CASE SY-UCOMM.

WHEN 'WB_EXEC'.
LEAVE PROGRAM.

ENDCASE.

Ragards,

Umang

Read only

Former Member
0 Likes
812

Hi,

You can try to create two PF-status,with Back , one for each screen.

when you handle the user command in 9001 you should 'leave program' and in case of 9002 you should 'Leave to screen 9001'.

Hope it helps.

Anju

Read only

Former Member
0 Likes
812

just check with this statement

case sy-ucomm.

when 'BACK'.

leave to screen 0.

hope this works ........

Regards,

sandeep.S