Application Development 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: 

IS_VARIANT

andreas_mann3
Active Contributor
0 Kudos

How must i fill import parameter <b>IS_VARIANT</b> of fm REUSE_ALV_LIST_DISPLAY

to start list with a particular variant?

regards Andreas

3 REPLIES 3

amit_khare
Active Contributor
0 Kudos

Check the program in this thread-

Regards,

Amit

Manohar2u
Active Contributor
0 Kudos

sreeramkumar_madisetty
Active Contributor
0 Kudos

Hi

alv_repid = sy-repid.

alv_variant-report = alv_repid.

CALL FUNCTION 'REUSE_ALV_VARIANT_F4'

EXPORTING

is_variant = alv_variant

i_save = 'A'

IMPORTING

es_variant = alv_variant

EXCEPTIONS

not_found = 2.

IF sy-subrc = 2.

MESSAGE ID sy-msgid TYPE 'S' NUMBER sy-msgno

WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

ELSE.

layout = alv_variant-variant.

ENDIF.

now we pass the

Is_variant = alv_variant

in the REUSE_ALV_GRID_DISPLAY Fm

Regards,

kumar