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

Changing SY-TCODE

Former Member
0 Likes
2,531

Hi All,

Is there any way to change the SY-TCODE Programatically.

Thanks,

Preethi.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,184

Hi

No! I don't think because the system would assign the value of the current transaction after changing it.

What do you need to do?

Max

4 REPLIES 4
Read only

Former Member
0 Likes
1,185

Hi

No! I don't think because the system would assign the value of the current transaction after changing it.

What do you need to do?

Max

Read only

seshatalpasai_madala
Product and Topic Expert
Product and Topic Expert
0 Likes
1,184

Hi,

We cannot change the SY-TCODE, this stores the current transaction code.

It has no effect even if you assign some thing to it.

But if you want to move to or call another transaction then use CALL TRANSACTION.

Regards,

Sesh

Read only

Former Member
0 Likes
1,184

well programatically...don know what you mean, but you can change it in the Debugger at any desired stage.

In the program if you populate the value at some stage ot may get over written by the system.

Read only

Former Member
0 Likes
1,184

I'm not sure I'd do this, but you can:

sy-tcode = 'XXX'.

I tested it. It retains the value. But I don't think it's good programming practice.

Rob

Message was edited by:

Rob Burbank