‎2009 Dec 21 1:27 PM
Hi Gurus ,
One program : ZDemo and
Diffrent T-code are there like Z001, Z002, ... Z00n.
When ever I run Tcode :Z001 one pice of code should be execute in Prog:Zdemo (One function Module or anything).
When ever I run Tcode :Z002 one pice of code should be execute in Prog:Zdemo (One subroutine or anything).
...
...
how to write a code for that .
Regards:
B.Madhu sudhan reddy
INDIA.
‎2009 Dec 21 1:33 PM
Hello,
You may write a dialog program with different screens and attach program/screen combination to each TCODE.
Thanks,
Venu
‎2009 Dec 21 1:30 PM
Hello,
Try with the system varable sy-tcode to check the currently executed tcode for a program and form the conditions.
Vikranth
‎2009 Dec 21 1:32 PM
Hello
Logic:
.....
case SY-TCODE.
when 'Z001'. " do one piece of code
when 'Z002'. " do other piece of code
...
when others. " do ......
endcase.
‎2009 Dec 21 1:33 PM
Hello,
You may write a dialog program with different screens and attach program/screen combination to each TCODE.
Thanks,
Venu