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: 

Change sy-tcode

former_member2382
Active Participant
0 Kudos

Hello,

m trying to submit some values to my calling program using below stmt.

SUBMIT rswiwils

WITH task = task

WITH cd = cd

WITH ct = ct

AND RETURN.

Prb here is, the calling program having a check for sy-tcode 'SWI1', and at this point I will be having sy-tcode as SE38 as this is being executed from SE38 custom report.

Any idea how to send/modify the sy-tcode value to calling program? Calling program is a standard report RSWIWILS.

Regards,

9 REPLIES 9

kesavadas_thekkillath
Active Contributor
0 Kudos

Hi you can use call transaction.

Check if those fields are having a parameter id, then set the parameter id and call transaction .

Edited by: Keshav.T on Jan 6, 2010 2:18 PM

0 Kudos

But m also trying to pass values to calling program and I do not want calling program selection screen visible to the user.

is this possible using Call transaction?

0 Kudos

use call transaction with skip first screen option.

check the f1 help.

Former Member
0 Kudos

Yeah ....tht is totally possible.

you need to pass all the values into the parameters of the fields on the selection screen

and then use the following statement

call transaction XXX and skip fist screen.

Hope this helps,

Rajat

Former Member
0 Kudos

Hi Parvez,

It is not advisable to change the system variables, because sap will automatically populate the values into it which are requied during the runtime..

Use call transaction < TCODE > and skip the initial screen..

if you need any further information on how to use the call transaction scenario please search the forum you will get many links.

Regards

Satish Boguda

0 Kudos

I want to pass values to selection screen of calling program from my custom program. Can we do it using CALL TRANSACTION? If so how?

0 Kudos

thanks for the info...

But my field doesn;t have parameter id... is there any other work around?

0 Kudos

You can also use fm ABAP4_CALL_TRANSACTION

check this link:[http://abaplovers.blogspot.com/2008/05/sap-abap-call-transaction-from-remote.html].

For call transaction check the f1 help or search in scn.

Former Member
0 Kudos

HI,

there is a workaround for tht also.

You need to write a small BDC only for the first screen and pressing the "F8".

Esle you can use FM ABAP4_CALL_TRANSACTION and define the fields in the 'USING_TAB'.

Basically both work the same way.

Hope this clears any confusion.

Raj