2009 Apr 08 4:54 PM
Hi Guru's,
I've a small requirement.
I've developed 2 different programs and 2 different T-Codes for those programs,
Now my requirement is i want to call those two Z t-codes in one program.
if i run one program, the program should execute the T-codes.
Please help me on this.
Thanks,
Adi.
Hi Guru's,
I've a small requirement.
I've developed 2 different programs and 2 different T-Codes for those programs,
Now my requirement is i want to call those two Z t-codes in one program.
if i run one program, the program should execute the T-codes.
Please help me on this.
Thanks,
Adi.
2009 Apr 08 4:56 PM
2009 Apr 08 4:57 PM
2009 Apr 08 5:16 PM
HI,
declare two radio button.
if r1 is not intial.
call transaction 'TCODE1'.
else.
call transaction 'TCODE2'.
endif.
2009 Apr 08 5:20 PM
what you can do is
Call with return: CALL TRANSACTION
Call without return: LEAVE TO TRANSACTION
call transaction <tcode 1> "here you have to use call with return.
Call transaction <tcode 2> " here you can also use leave to transaction.Regards,
Lalit Mohan Gupta.
2009 Apr 08 5:37 PM
START-OF-SELECTION.
if sercmpup = 'X'.
call transaction 'ZCAMESCSCERROR'.
endif.
if prodrefr = c_x .
call transaction 'ZCPRODORDREFRESH' .
endif .
if remqnote = 'X'.
CALL TRANSACTION 'ZCQNOTERROR_REM'.
endif.
Edited by: santosh sarda on Apr 8, 2009 10:09 PM
Edited by: santosh sarda on Apr 8, 2009 10:10 PM
2009 Apr 08 5:55 PM
Hi,
Find the below code.
Selection-screen begin of block b1.
Parameters:RB1 radiobutton group r1,
RB2 radiobutton group r1.
selection-screen end of block b1.
Start-of-selection.
If RB1 = 'X'.
Call Transaction TCODE1. "if call transaction
Submit Program Name1 Via Selection-Screen and Return. "if calling program
Clear RB1.
Elseif RB2 = 'X'.
Call Transaction TCODE2. "if call transaction
Submit Program Name2 Via Selection-Screen and Return. "if calling program
Clear RB2.
Endif.
2009 Jun 08 3:38 PM