12-07-2005 10:57 PM
Hi,
From a function I have written, when everything I want to do is finished ( This function has a screen ) , when the user presses the back button I use:
LEAVE TO TRANSACTION sy-tcode
Which takes me back to the transaction I came from
ME22N - Purchase Order, but it does not show the purchase order I was looking at , but a previous one, or no Purchase order.
Is there an easy way to leave and go back to where you were exactly?
Thanks
12-07-2005 11:04 PM
12-07-2005 11:06 PM
Hi,
so it would be :
leave to screen 'ME22N'
is that correct, or do I look up the underlaying screen?
Thanks
12-07-2005 11:10 PM
12-07-2005 11:25 PM
Hi,
I've just tried that, I went into ME22N , did a /H to turn on debugging, and pressed the back button, the screen is '0014'
When I put this in the function it dumps, saying the screen does not exist, itried it with 0014 and '0014',
same result each time.
Any Ideas?
Thanks.
12-07-2005 11:36 PM
Another route you can take is this :
SET PARAMETER ID 'BES' FIELD '9999999999'.
call transaction 'ME22N'.
Hope that works.
12-07-2005 11:40 PM
I've just managed to fix it, the solution is
leave to screen 0.
Thanks everyone