Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Layout Variant issue #75

Open
aditya-deloitte opened this issue Jan 14, 2023 · 1 comment
Open

Layout Variant issue #75

aditya-deloitte opened this issue Jan 14, 2023 · 1 comment
Assignees

Comments

@aditya-deloitte
Copy link

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 fidley self-assigned this Jan 16, 2023
@fidley
Copy link
Owner

fidley commented Jan 24, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants