03-28-2011 10:35 AM
Hello,
I have created Table Maintenance view using SE54 . I have a requirement that from sm30 when the user
clicks the back button it should come back to the initial maintenance view screen .
Currently it is going back to the main sap screen .
I saw that it is using LISTE_AFTER_LOOP .. when it is checking the back button code and set the screen no as '0' .
I want to know is there any event i can use to execute leave to screen ''dynnr' instead of LISTE_AFTER_LOOP .
Regards,
kevin.
Moderator Message: Moved from ABAP, General.
Edited by: kishan P on Mar 28, 2011 3:24 PM
03-29-2011 8:21 AM
Hi Kevin,
Try this logic!!!!
Instead of using set to screen '0', use the screen number of initial maintenance screen.
Hope this will help you to achieve the desired functionality & close the thread.
BR,
Vinit
03-29-2011 8:38 AM
Hello,
Thanks, i can use set screen <screen number> , i doesn't want to modify Subroutine liste_after_loop . i want to do it via event .
Is it possible?. Any idea which event i should use?.
Regards,
kevin.
03-29-2011 9:18 PM
Hi,
It sounds a little bit strange to me so I've checked how it looks in my system and when I choose any maintanance view in SM30 (for example COMV_PR_ORG, ASTAT_VTP1 or any other SAP object) press display and then BACK I'm returning to SM30 main screen, so I don't understand how is it possible that in your case it behaves differently.
Could you check if it works like this for other objects? You could also check it in system from other landscape (maybe it is possible to configure such behaviour systemwide).
BR
Marcin Cholewczuk
03-30-2011 7:03 PM
Hello,
I have created transaction for the maintenance view , when i execute using the transaction it is returning
back to the SAP main screen . Any idea how to change it .
regards,
kevin .
04-01-2011 9:45 AM
Hi,
Now I understand, but I think this is not possible. Right after pushing back there is only this module EXIT_COMMAND executed. Without changes there I think you won't be able to do it.
BR
Marcin Cholewczuk
04-04-2011 6:07 AM
Hi Kevin,
as per my understanding of SAPABAP, it is not possible in your case to return to sm30 initial menu until you make changes in your PAI module.
Because each time when you click on BACK button, AT EXIT COMMAND is executed. There you need to call your screen number instead of leaving the program.
Hope you understand the SAP logic.
BR,
Vinit