Application Development and Automation 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: 
Read only

Change sy-tcode

former_member2382
Active Participant
0 Likes
3,389

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
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
1,901

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

Read only

0 Likes
1,901

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?

Read only

0 Likes
1,901

use call transaction with skip first screen option.

check the f1 help.

Read only

Former Member
0 Likes
1,901

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

Read only

Former Member
0 Likes
1,901

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

Read only

0 Likes
1,901

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?

Read only

0 Likes
1,901

thanks for the info...

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

Read only

0 Likes
1,901

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.

Read only

Former Member
0 Likes
1,901

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