‎2011 Mar 04 9:17 AM
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.
‎2011 Mar 04 9:19 AM
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
‎2011 Mar 04 9:19 AM
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
‎2011 Mar 04 10:32 AM
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
‎2011 Mar 04 10:42 AM
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
‎2011 Mar 04 11:27 AM
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
‎2011 Mar 06 5:08 PM
just check with this statement
case sy-ucomm.
when 'BACK'.
leave to screen 0.
hope this works ........
Regards,
sandeep.S