2009 Aug 25 3:48 AM
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
2009 Aug 25 3:57 AM
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
2009 Aug 25 3:57 AM
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
2009 Aug 25 4:04 AM
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
2009 Aug 25 4:21 AM
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
2009 Aug 25 4:24 AM
You need to change screen flow also to make screen fields in display mode
a®
2009 Aug 25 5:19 AM
Hi,
thank you for ur quick reply.
How do we change the screen flow?
Regards.
2009 Aug 25 5:25 AM
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
a®
2009 Aug 25 5:23 AM
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