‎2007 Jan 22 9:23 PM
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 .
‎2007 Jan 22 9:35 PM
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
‎2007 Jan 22 9:35 PM
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
‎2007 Jan 22 9:37 PM
Hello,
U could make use of the system field <b>SY-SLSET</b>
Vasanth
‎2007 Jan 22 9:38 PM
Hi,
Did you try:
CALL FUNCTION 'RS_VARIANT_EXISTS'
EXPORTING
report = h_repid
variant = h_variant
IMPORTING
r_c = h_subrc.
Regards
Subramanian
‎2007 Jan 22 9:44 PM
Hello Brajesh
You can find this information in the running report at system-variable<b> SYST-SLSET</b>.
Regards
Uwe
‎2007 Jan 22 10:00 PM
Use this FM "RS_VARIANT_SCREEN" to get the varaint details by passing program name.
Thanks,
Santosh