Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Skip Previous session

Former Member
0 Likes
1,030

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

1 ACCEPTED SOLUTION
Read only

koolspy_ultimate
Active Contributor
0 Likes
995

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.

9 REPLIES 9
Read only

koolspy_ultimate
Active Contributor
0 Likes
996

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.

Read only

0 Likes
995

Dear koolspy,

problem is when i click on the back button in "ZTCODE" it come to "ZTCODE2" i want to log out the system.

Read only

0 Likes
995

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.

Read only

0 Likes
995

Hi,

You can call /nex after clicking back button... try below...

if sy-tcode = 'ZTCODE2'.

EXIT.

ENDIF.

Regards,

Rahul

Read only

0 Likes
995

Hi Friends,

thanks for your reply

actually what i want is..

  1. I have main tcode like ZMAIN (its a area menu SE43)

  2. I call another tcode from area menu like ZTCODE1

  3. Now I am in ZTCODE1 (This is selection screen)

  4. now I calling another screen from ZTCODE1 like ZTCODE3 by skiping ZTCODE2 through BDC

  5. now in ZTCODE3 ... when I press back button I want to call ZTCODE1 (I using call transaction it's working)

  6. 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

  7. now in ZMAIN (se43)

  8. 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.

Read only

0 Likes
995

Hi,

instead of CALL TRANSACTION CODE, use LEAVE TO TRANSACTION CODE. That will get rid of the previous stack.

Roy

Read only

0 Likes
995

+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

Read only

Former Member
0 Likes
995

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

Read only

Former Member
0 Likes
995

Thanks all

It solved with LEAVE to TRANSACTION. points granted...