Application Development 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: 

calling 2 Z transactions in one Program

Adi_Bathineni
Participant
0 Kudos
237

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.

7 REPLIES 7

Former Member
0 Kudos
117

HI,

Use CALL TRANSACTION <Tcode> or SUBMIT <PROGRAM NAME>.

former_member156446
Active Contributor
0 Kudos
117

search in forum with call transaction

Peranandam
Contributor
0 Kudos
117

HI,

declare two radio button.

if r1 is not intial.

call transaction 'TCODE1'.

else.

call transaction 'TCODE2'.

endif.

Former Member
0 Kudos
117

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.

Former Member
0 Kudos
117


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

0 Kudos
117

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.

Adi_Bathineni
Participant
0 Kudos
117

Self Resolved