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

IS_VARIANT

andreas_mann3
Active Contributor
0 Likes
1,436

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

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
Read only

amit_khare
Active Contributor
0 Likes
814

Check the program in this thread-

Regards,

Amit

Read only

Manohar2u
Active Contributor
0 Likes
814
Read only

sreeramkumar_madisetty
Active Contributor
0 Likes
814

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