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

Tcode for an existing tcode

Former Member
0 Likes
938

Hi guys,

How to create a transaction code for an existing transaction code?

tcode is now used for editing purpose, for this want to create a tcode for display purpose for users and assign a role for this new tcode.

Regards,

Selina

1 ACCEPTED SOLUTION
Read only

venkat_o
Active Contributor
0 Likes
892

Hi Selina, You need to use Transaction variant concept to get your problem done. Check the link : http://help.sap.com/saphelp_nw04s/helpdata/EN/67/232037ebf1cc09e10000009b38f889/content.htm Thanks Venkat.O

7 REPLIES 7
Read only

venkat_o
Active Contributor
0 Likes
893

Hi Selina, You need to use Transaction variant concept to get your problem done. Check the link : http://help.sap.com/saphelp_nw04s/helpdata/EN/67/232037ebf1cc09e10000009b38f889/content.htm Thanks Venkat.O

Read only

Former Member
0 Likes
892

Hello,

define a new T-code and asign its default values.... like if you want to have a display .... then maintain the old T-code with screen number or some parameter .. by which it displays the content...

thanks

manish

Read only

Former Member
0 Likes
892

Hi ,

I think you can try this way,

In your report check for the tcode.

If the sy-subrc value is 0 (i:e if your tcode is the new tcode only for display purpose) then make the field


Loop at screen.
screen-active = 0
endloop

You have to fine tune this logic according to your requirement.

Regards,

Abhinab

Read only

former_member194669
Active Contributor
0 Likes
892

You need to change screen flow also to make screen fields in display mode

Read only

0 Likes
892

Hi,

thank you for ur quick reply.

How do we change the screen flow?

Regards.

Read only

0 Likes
892

check this

http://help.sap.com/saphelp_nw04/helpdata/EN/9f/dbab6f35c111d1829f0000e829fbfe/content.htm

if sy-tcode eq

loop at scrren.

screen-input = 0.

modify screen

endloop.

or

check demo report

demo_dynpro_modify_simple

Read only

Former Member
0 Likes
892

Hi selina,

When you create new transaction variant, original transaction remains as it is. During creation of transaction variant, when you go to one by one screen, screen variants are created. It uses variant name and can be see on each screen on the top.

Once you complete trasnaction, you start using this transaction variant instead of original transaction. In SHD0, there is button on the top 'assign screen variants' which allows you to assign all screen variants created above. You can refer help file which i think has procedure to do this is that you create 'trasnaction with Variant' in SE91 giving original trasnaction code and your variant. Now, you can use this trasnaction code instaed of original.

regards,

Archana