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

Regarding variant in Basic List

Former Member
0 Likes
781

Hi ,

I would like to display the name of variant which was used in selection criteria .

and would like to know the function module to get it .

have tried

call function 'C1F4_VARIANT_USED'

exporting

i_ldepid = sy-repid

importing

e_flg_used = t

but i_ldepid which is program id i am not able to provide it .

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
750

Hi,

Try using the system variable SY-SLSET to get the variant name.

Example

-


PARAMETERS: P_MATNR TYPE MATNR.

AT SELECTION-SCREEN.

START-OF-SELECTION.

WRITE: / 'Variant name- ', SY-SLSET.

Thanks,

Naren

5 REPLIES 5
Read only

Former Member
0 Likes
751

Hi,

Try using the system variable SY-SLSET to get the variant name.

Example

-


PARAMETERS: P_MATNR TYPE MATNR.

AT SELECTION-SCREEN.

START-OF-SELECTION.

WRITE: / 'Variant name- ', SY-SLSET.

Thanks,

Naren

Read only

Former Member
0 Likes
750

Hello,

U could make use of the system field <b>SY-SLSET</b>

Vasanth

Read only

Former Member
0 Likes
750

Hi,

Did you try:

CALL FUNCTION 'RS_VARIANT_EXISTS'

EXPORTING

report = h_repid

variant = h_variant

IMPORTING

r_c = h_subrc.

Regards

Subramanian

Read only

uwe_schieferstein
Active Contributor
0 Likes
750

Hello Brajesh

You can find this information in the running report at system-variable<b> SYST-SLSET</b>.

Regards

Uwe

Read only

Former Member
0 Likes
750

Use this FM "RS_VARIANT_SCREEN" to get the varaint details by passing program name.

Thanks,

Santosh