01-06-2010 8:42 AM
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,
01-06-2010 8:46 AM
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
01-06-2010 8:50 AM
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?
01-06-2010 8:55 AM
use call transaction with skip first screen option.
check the f1 help.
01-06-2010 9:01 AM
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
01-06-2010 9:05 AM
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
01-06-2010 10:44 AM
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?
01-06-2010 10:50 AM
thanks for the info...
But my field doesn;t have parameter id... is there any other work around?
01-06-2010 10:52 AM
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.
01-06-2010 10:56 AM
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