2007 Oct 16 6:11 AM
Hi,
I have designed two screens using screen painter one is input screen and another is output screen. I have created transaction for this. My transaction code name is ABC if I type ABC then the system first display input screen if I give values and if I press execute then system is displaying second screen. My requirement is if I press back button on the second screen I want to come out of the total transaction and I want to go to first screen with in single step. I mean if I press back button on the second screen instead of first screen directly I want to come out and I want to come to first screen in single shot. I required this because of some clear and refresh problems. For this I have written following logic.
When BACK.
Set screen 0.
Leave program.
Call transaction ABC.
But the above piece code Is not working. Please help me how to do the above requirement. Please help me I will give points.
Thanks a lot in advance.
2007 Oct 16 6:13 AM
Hi,
try this..
When BACK.
leave to transaction ABC.
Thanks
Naren
2007 Oct 16 6:13 AM
When BACK.
LEAVE to LIST-PROCESSING.
Regards,
Amit
Reward all helpful replies.
2007 Oct 16 6:14 AM
Hi,
U need not do Set Screen 0 and Leave program and then call transaction.
U can simply write on BACK command processing,
Leave to screen <previous screen> or i think even Leave to screen 0 will work.
Try it and let us know.
Regards,
Himanshu
2007 Oct 16 6:32 AM
Hi Himanashu,
thanks for your reply. But I dont want to go to first screen directly because of some clear and refresh problem that system is doing internally. I want to go back to sap easy access and I want to call transaction ABC in single shot.
2007 Oct 16 6:34 AM
Hi,
That means u require to call the transaction ABC from starting on click of Back button.
If yes , then use LEAVE TO TRANSACTION 'ABC'. This will call the transaction from the beginning clearing and refreshing all the variables used.
Regards,
Himanshu
2007 Oct 16 6:40 AM
2007 Oct 16 6:41 AM
hi,
u can do it many ways
one small doubt for calling second screen from first screen wat statement u used
set screen or call screen
if u used call screen it will automatically comes back to first screen when u click back on second screen. so use set screen in pbo of 1st screen for calling second screen.
n try like dis.
in pbo of 1st screen.
when 'BACK'.
leave to list-processing.
or
leave to screen 0.
or
leave program.
or
exit.
..............
.............
if helpful reward some points.
with regards,
Suresh ALuri.