08-23-2006 10:09 AM
Hi Frnds,
Can anybody let me know the way to capture the variant name while executing in Background.
I used sy-slset to capture variant in foreground but its not working while i execute the same program in Background.
Regards
Sowmmya B
08-23-2006 10:15 AM
hi,
Sy-slset gives the variant name though we run in background mode. All the system fields gets filled with the corresponding values as soon as the execution of the program starts , either it can be foreground or background.
Regards,
Sailaja.
08-23-2006 10:30 AM
Hi,
I used Sy-slset only, it working fine in Foreground but now in background.
Pls hlp.
Regards
Sowmmya B
08-23-2006 10:45 AM
hi,
use fm GET_JOB_RUNTIME_INFO and table TBTCP.
A.
Message was edited by: Andreas Mann
08-26-2006 4:04 AM
hi,
You can get the variant name by writing a select on table VARID.
Regards,
Sailaja.
08-27-2006 8:49 AM
i just checked sy-slset gets filled with the variant name in background mode as well.
Regards
Raja
03-29-2010 4:19 PM
Hi all,
sy-slset is not filled when running program via SE38 -> F9.
However, here is a good solution :
http://wiki.sdn.sap.com/wiki/pages/commentstab/viewcomments.action?pageId=178192799
Regards !
Yann
03-29-2010 6:08 PM
Dear Yann,
Nice Post. If we schedule the prog in background through se38 t code Variant name is not coming in SY-SLSET..
Reagrds..
Srinivas
03-30-2010 4:58 AM
try using the FM
GET_JOBRUNTINEINFO*
i am not sure about the FM name
it will give you the details of job name
cheers
S.Janagar
03-30-2010 8:00 AM
Hello Srininas,
First of all, the link I provided is not my post. It is someone called "Vinod" who wrote that page.
To answer ypur problem, when running via SE38 in background (using F9), you are still in foreground when the event AT SELECTIONS SCREEN OUTPUT occurs.
This was a quite simple but very efficient idea, but not mine
03-30-2010 9:39 AM
.BCALV_TEST_GRID_LAYOUT
Edited by: kk.adhvaryu on Mar 30, 2010 10:52 AM