06-15-2022 8:50 AM
Hi guys,
I want to use some methods to replace the function module REUSE_ALV_VARIANT_F4, so I want to ask what class and methods will be used.
Thanks.
06-15-2022 1:02 PM
Did you try CL_SALV_LAYOUT_SERVICE=>F4_LAYOUTS ?
(Actually this static method calls FM REUSE_ALV_VARIANT_F4, when instance method CL_ALV_VARIANT->SELECT_VARIANT calls FM LT_F4_FOR_VARIANTS which is also called by REUSE_ALV_VARIANT_F4...)
06-15-2022 11:27 AM
06-15-2022 12:43 PM
The method GET_VARIANTS_FOR_USER returns the ALV layout variants, it doesn't display any dialog to select one, as does the function module REUSE_ALV_VARIANT_F4. Better use method SELECT_VARIANT.
06-16-2022 3:44 AM
Thank you very much for your answer. Although I have decided to learn how to use SELECT_VARIANT first, I will also learn how to use GET_VARIANTS_FOR_USER by comparison. Thank you again for your help
06-15-2022 1:02 PM
Did you try CL_SALV_LAYOUT_SERVICE=>F4_LAYOUTS ?
(Actually this static method calls FM REUSE_ALV_VARIANT_F4, when instance method CL_ALV_VARIANT->SELECT_VARIANT calls FM LT_F4_FOR_VARIANTS which is also called by REUSE_ALV_VARIANT_F4...)
06-16-2022 3:42 AM
Your answer is very helpful to me, F4_LAYOUTS because calls REUSE_ALV_VARIANT_F4 can be easily understood.
I will try to learn how to use SELECT_VARIANT through LT_F4_FOR_VARIANTS.