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

Variant Name in Background

Former Member
0 Likes
2,964

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

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

Former Member
0 Likes
1,908

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.

Read only

0 Likes
1,908

Hi,

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

Pls hlp.

Regards

Sowmmya B

Read only

0 Likes
1,908

hi,

use fm GET_JOB_RUNTIME_INFO and table TBTCP.

A.

Message was edited by: Andreas Mann

Read only

Former Member
0 Likes
1,908

hi,

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

Regards,

Sailaja.

Read only

0 Likes
1,908

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

Regards

Raja

Read only

0 Likes
1,908

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

Read only

0 Likes
1,908

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

Read only

0 Likes
1,908

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

Read only

0 Likes
1,908

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

Read only

Former Member
0 Likes
1,908

.BCALV_TEST_GRID_LAYOUT

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