2007 Nov 26 10:56 AM
Hi,
I'm facing some problem with module pool program. Actually one menu exit is added. One option added in System menu for user details. and it'll be active for all transactions/screens. In any screen, when user click on the user details option, one module pool program should be called. here two buttons are there, one show details and exit. when user clicked on exit, control should go back to the screen, from where we called the user details screen. I have used, LEAVE PROGRAM and LEAVE SCREEN... but control is going to initail screen, not to the previous screen. can any one help me in this....
Thanks in Advance,
Siva Sankar.
2007 Nov 26 1:40 PM
Hi,
if you´re working with 2 programs, you can call one of them with
SUBMIT xxxxx AND RETURN.
after doing the necessary operations in program 2, the control returns to program 1 and continues with the code after Submit.
2007 Nov 27 3:28 PM
Hi,
The module pool program is called with the call transaction statement.
In the pai of of flow logic
case sy-ucomm.
when 'EXIT'.
leave to screen 0.
endcase.
I think this will help you.
regards,
kamala.