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: 

Variant Name in Background

Former Member
0 Kudos

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

10 REPLIES 10

Former Member
0 Kudos

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.

0 Kudos

Hi,

I used Sy-slset only, it working fine in Foreground but now in background.

Pls hlp.

Regards

Sowmmya B

0 Kudos

hi,

use fm GET_JOB_RUNTIME_INFO and table TBTCP.

A.

Message was edited by: Andreas Mann

Former Member
0 Kudos

hi,

You can get the variant name by writing a select on table VARID.

Regards,

Sailaja.

0 Kudos

i just checked sy-slset gets filled with the variant name in background mode as well.

Regards

Raja

0 Kudos

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

0 Kudos

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

0 Kudos

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

0 Kudos

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

Former Member
0 Kudos

.BCALV_TEST_GRID_LAYOUT

Edited by: kk.adhvaryu on Mar 30, 2010 10:52 AM