2006 Aug 23 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
2006 Aug 23 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.
2006 Aug 23 10:30 AM
Hi,
I used Sy-slset only, it working fine in Foreground but now in background.
Pls hlp.
Regards
Sowmmya B
2006 Aug 23 10:45 AM
hi,
use fm GET_JOB_RUNTIME_INFO and table TBTCP.
A.
Message was edited by: Andreas Mann
2006 Aug 26 4:04 AM
hi,
You can get the variant name by writing a select on table VARID.
Regards,
Sailaja.
2006 Aug 27 8:49 AM
i just checked sy-slset gets filled with the variant name in background mode as well.
Regards
Raja
2010 Mar 29 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
2010 Mar 29 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
2010 Mar 30 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
2010 Mar 30 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
2010 Mar 30 9:39 AM
.BCALV_TEST_GRID_LAYOUT
Edited by: kk.adhvaryu on Mar 30, 2010 10:52 AM