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: 

create a transaction that calls other transactions

Former Member
0 Kudos

How to you create a transaction that calls other transactions?

Thanks,

Binh

8 REPLIES 8

Former Member
0 Kudos

from your program

example code 

SET PARAMETER ID 'par' FIELD fields.

CALL TRANSACTION 'ME23N' AND SKIP FIRST SCREEN.

0 Kudos

Hi,

"call transaction <trans>" or "submit <programm>"

regards

Stefan Seeburger

former_member201275
Active Contributor
0 Kudos

Go to SE93 enter your transaction code e.g. ZTRNEW, and click CREATE.

in the popup, enter some ‘short text’, and click on the 4th Radiobutton i.e. ‘Transaction with variant’.

In the next screen you can enter your Transaction name and also Variant.

If there is no variant, then of course you can simply use the 5th radio button i.e. ‘transaction with parameters’.

0 Kudos

I tried SE93 with transaction with variant, but I don't know how to specify the transactions

that would allow the user to pick.  For example,

I created 2 transactions each to view  maintenance views:

zv_v1

zv_v2

Now I want to create a transaction call zv_v that would allow the user to select either one of these

transactions, zv_v1 or zv_v2.

How do I do that.

Thanks,

Binh

0 Kudos

Not sure why you would want to do this. Why can’t they just save these 2 transactions in their favorites? Maybe you could create an Area Menu, and put these 2 transactions in there, or create another folder within SPRO? Or else look at using one of the Popup Functions which allow you to choose between two radio buttons.

0 Kudos

you have many choices for example:

you programm has a transaction zv_v3

1. Create Screen and Buttons , show_list  (zv_v1 ) or show ALV(zv_v2)

     and use case sy-ucomm ....

               When 'zv_v1.

               call transaction ' ZV_V1'.

            

when ' ZV_V2.

call transaction ' ZV_V2'.

endcase.

2. or just dropdown list and enter ( Report)

check the dropdownlist, which he has selected,

if ... =  ZV_V1

      call transaction ' ZV_V1'.


elseif .,,, =  ZV_V2

      call transaction ' ZV_V2'.

endif.


3. or you can do parameters,

parameters trans type string..

parametrs has F4  with 2 transaction, when he clicks, then he will get 2 Transaction

he can select one of them and Enter,

after that

if  trans =  ZV_V1

      call transaction ' ZV_V1'.


elseif trans =  ZV_V2

      call transaction ' ZV_V2'.

endif.


try this and let us to know if u get problems.


Best Regards

Ibrahim


0 Kudos

I created a program called ZV_SEL which uses the dropdown list to pick the transactions.

I tested the program and it works.

Then, I used SE93 to create a transaction for program ZV_SEL as:

report transaction

program: ZV_SEL

selection screen 1000

professional User transaction(selected)

GUI support (selected all)

   SAPGUI for HTML

   SAPGUI for Java

   SAPGUI for windows

The transaction is checked as consistent.

But when I run the transaction ZV_SEL, it does not do anything.

What am I doing wrong?  I have no idea.

Please advise,

Binh

Former Member
0 Kudos

Dear Binh,

Yes it is possible.. Go to transaction se93, provide the name of the tcode you want to create......

then select the option " Transaction with Parameters". Then in the Block " Defualt Values for" , provide  the standard tcode, for which you need to create.

finally save this and execute.... The new custom tcode will behaves same as the standard.

Regards

Rajendra Nagisetty