2007 Jun 19 4:15 PM
I was developed one program, when ever i execute the program, the selection screen with default variant, how i can set the default variant to selection-screen.
Please suggest me.
I was developed one program, when ever i execute the program, the selection screen with default variant, how i can set the default variant to selection-screen.
Please suggest me.
2007 Jun 19 4:25 PM
Hi Gourishankar,
Instead of using variants you can use.
PARAMETERS <par_name> TYPE <datatype> DEFAULT <defaultvalue>.
Award points if found useful.
Regards
Indrajit.
2007 Jun 19 4:37 PM
2007 Jun 19 4:41 PM
hi,
Use FM RS_SUPPORT_SELECTIONS
Here is a sample code
CALL FUNCTION 'RS_VARIANT_EXISTS'
EXPORTING
REPORT = 'ZPP65'
VARIANT = 'STANDARD'
IMPORTING
R_C = RC.
IF RC = 0.
CALL FUNCTION 'RS_SUPPORT_SELECTIONS'
EXPORTING
REPORT = 'ZPP65'
VARIANT = 'STANDARD'.
ENDIF.Regards,
Santosh