fidley / falv

FALV - Fast ALV Grid
https://abapblog.com
GNU General Public License v3.0
141 stars 52 forks source link

Layout Variant issue #75

Open aditya-deloitte opened 1 year ago

aditya-deloitte commented 1 year ago

Hi, I am unable to set any ALV variant in my inherited FALV display. Also, there seems to be no option for disabling default layout. Can you please suggest any workaround or what I may be doing wrong here?

Code for setting layout variant O_FALV->SET_VARIANT( EXPORTING IS_VARIANT = VALUE #( REPORT = SY-REPID USERNAME = SY-UNAME VARIANT = 'ZUSER1' ) ).

fidley commented 1 year ago

Hello @aditya-deloitte ,

this method (SET_VARIANT) is inherited from the CL_GUI_ALV_GRID class, which means it works as in standard.

I don't know when you set the variant, but it may be that you need to do refresh after using it. You can also try to adapt the VARIANT attribute of the FALV instance, after creating the object.