I have developed custom object in SWO1 where i created method which is calling module pool program. I used 'BACK' option on screen from menu apart from execute.
User gets the workitem with above method in SAP inbox. On opening the work item, it is opening the module pool screen and when user selects the execute option, work item gets processed and work item disappears from SAP inbox.
Issue is when user presses the back button on called module pool program screen, it is not coming out of program and module pool program screen stays on screen. I checked object method code in debug mode and code is getting processed after module screen call, but after the ENDMETHOD, it is again displaying the screen by SAP code. When i tested module pool program stand alone, it is working fine and code is leaving the program at press of BACK button.
Please let me know if i am missing something.
Thanks in advance.