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

set selection screen defalut variant

Former Member
0 Likes
1,585

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.

3 REPLIES 3
Read only

Former Member
0 Likes
978

Hi Gourishankar,

Instead of using variants you can use.

PARAMETERS <par_name> TYPE <datatype> DEFAULT <defaultvalue>.

Award points if found useful.

Regards

Indrajit.

Read only

Former Member
0 Likes
978

You can use FM RS_SUPPORT_SELECTIONS.

Rob

Read only

Former Member
0 Likes
978

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