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

Former Member
0 Likes
599

Hi all,

Is there any way to find which variant programming is using while running?

thanks in advance...

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
578

Hi,

Check the system field.

SY-SLSET

This will give the variant name.

Reward if helpful.

5 REPLIES 5
Read only

Former Member
0 Likes
578

Hi,

Variants allow you to save sets of input values for programs that you often start with the same selections. You can use them for any programs except subroutine pools (type S).

Variants are an interface between the user and the selection screen. They can be used both in dialog and in background mode, although their uses are slightly different.

If you often run the same program with the same set of selections (for example, to create a monthly statistical report), you can save the values in a selection set called a variant.

You can also use variants to change the appearance of the selection screen by hiding selection criteria. This is particularly useful when you are working with large selection screens on which not all of the fields are relevant

variants plays an importent role while a program executing under background mode

for detailed information on variants follow this link.

http://help.sap.com/saphelp_nw04/helpdata/en/c0/980374e58611d194cc00a0c94260a5/content.htm

http://help.sap.com/saphelp_nw2004s/helpdata/en/c0/98037ae58611d194cc00a0c94260a5/content.htm

http://help.sap.com/saphelp_webas620/helpdata/en/eb/5fab41d79b11d296190000e82de14a/content.htm

http://help.sap.com/saphelp_nw2004s/helpdata/en/43/132f9803d76f40e10000000a422035/content.htm

http://www.sapgenie.com/abap/tvar.htm

<b>Reward points if useful</b>

Regards

Ashu

Read only

Former Member
0 Likes
578

Hi,

Please check out table VARI. This will give you the connections between report program names and variant names.

Simply do a query using SE16

Regards

Read only

Former Member
0 Likes
578

Hi,

Check field SY-SLSET.

Regards,

Nicolas.

Read only

Former Member
0 Likes
579

Hi,

Check the system field.

SY-SLSET

This will give the variant name.

Reward if helpful.

Read only

Former Member
0 Likes
578

I found solution ..

SY-SLSET is storing the name of variant.....any way thank you all...