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: 

REUSE_ALV_VARIANT_DEFAULT_GET

Former Member
0 Kudos
70

Hi Experts,

I had created a variant for my report program that uses hierarchical ALV but i am unable to get the variant values in REUSE_ALV_VARIANT_DEFAULT_GET in debugging mode.

Can any one please tell me where am i wrong?

Thanks

Dany

1 REPLY 1

Former Member
0 Kudos
44

Hi Dan ,

Please try this for f4 help in ALV.

CLEAR g_variant.

g_variant-report = sy-repid.

CALL FUNCTION 'REUSE_ALV_VARIANT_DEFAULT_GET'

EXPORTING

i_save = 'A'

CHANGING

cs_variant = g_variant

EXCEPTIONS

not_found = 2.

IF sy-subrc = 0.

p_varin = g_variant-variant.

ENDIF.

Regards

Lincon