‎2011 Oct 12 8:21 AM
Dear Friends
Iu2019m using CALL TRANSACTION to call another Tcode and if I click on the back button in their system came back to previous screen, I wonu2019t it.
1.Suppose I am in Tcode u201CZTCODEu201D and Iu2019m calling u201CZTCODE1u201D u2026 (working)
2.Now Iu2019m in u201CZTCODE1u201D u2026 (working)
3.Now I click on the back button I want to go to u201CZTCODE2u201Du2026 (working)
4.Now Iu2019m in u201CZTCODE2u201D u2026 (working)
5.When I click on the BACK button it comes to u201CZTCODE1u201D as normal routing, but I wanted to go to u201CZTCODEu201D
However, keep in mind in u201CZTCODEu201D back should be skip the system.
i hope you will clear my problem.
please help me to solve my issue....
Thanks in advance
‎2011 Oct 12 8:29 AM
Hi, Try this way
Just see the gui status of the back button
and write code for your pf status as given below.
when 'BACK'. " you must write the gui status code of back here
if sy-tcode = 'ZTCODE2'.
CALL TRANSACTION 'ZTCODE'.
ENDIF.
Regards,
koolspy.
‎2011 Oct 12 8:29 AM
Hi, Try this way
Just see the gui status of the back button
and write code for your pf status as given below.
when 'BACK'. " you must write the gui status code of back here
if sy-tcode = 'ZTCODE2'.
CALL TRANSACTION 'ZTCODE'.
ENDIF.
Regards,
koolspy.
‎2011 Oct 12 9:31 AM
Dear koolspy,
problem is when i click on the back button in "ZTCODE" it come to "ZTCODE2" i want to log out the system.
‎2011 Oct 12 9:45 AM
Hi, as Rahul Wagh mentioned, try this
If you use this wil not be able to log off , but it wil be able to skip to SAP EASY ACCESS Screen.
IF SY-TCODE = 'ZTCODE2'.
EXIT.
ENDIF.
‎2011 Oct 12 9:48 AM
Hi,
You can call /nex after clicking back button... try below...
if sy-tcode = 'ZTCODE2'.
EXIT.
ENDIF.
Regards,
Rahul
‎2011 Oct 13 8:42 AM
Hi Friends,
thanks for your reply
actually what i want is..
I have main tcode like ZMAIN (its a area menu SE43)
I call another tcode from area menu like ZTCODE1
Now I am in ZTCODE1 (This is selection screen)
now I calling another screen from ZTCODE1 like ZTCODE3 by skiping ZTCODE2 through BDC
now in ZTCODE3 ... when I press back button I want to call ZTCODE1 (I using call transaction it's working)
now in ZTCODE1 when i press back button now going to ZTCODE3 but i want to go ZMAIN for that i code call transaction in ZTOCED1 back button and its working
now in ZMAIN (se43)
when i press back button its going to ZTCODE1 again, but i want to exit from the system. their are no way to code back button in SE43 screen.
i hope you all understand the situation.
‎2011 Oct 13 8:44 AM
Hi,
instead of CALL TRANSACTION CODE, use LEAVE TO TRANSACTION CODE. That will get rid of the previous stack.
Roy
‎2011 Oct 13 8:49 AM
+now in ZTCODE1 when i press back button now going to ZTCODE3 but i want to go ZMAIN for that i code call transaction in ZTOCED1 back button and its working +
Instead of using call transaction here, either use LEAVE TO TRANSACTION to goto Zmain... or try leave program.
Suzie
‎2011 Oct 13 9:16 AM
Hii..
Instead of all the things if u r create screen for all tcode like ztcode1 and ztcode2 ur try this..
if ztode screen no 1 and
ztode1 screen no 2 and
ztode2 screen no 3 like this
if u r in ztcode2 screen and u want if u click on back and go on in main ztcode write leave to screen 001.
Regards
Vshal
‎2011 Oct 13 9:50 AM
Thanks all
It solved with LEAVE to TRANSACTION. points granted...