09-25-2008 7:31 PM
Hi Experts,
I need to see if any variant is selected or not
if it is selected , I need to display in the top of page of ALV
Please advice
Thanks..
09-25-2008 7:39 PM
I think u r going to check whether a variant name is given in the selection screen or not. If it is then u need to check it's validity. If it is true then u can use the Fm REUSE_ALV_VARIANT_EXISTENCE to check the validity of the variant.
09-25-2008 7:35 PM
a better way to do this is to read the info from your selection screen and display that.
09-25-2008 7:36 PM
If you use the OO ALV than you have to use the method GET_FRONTEND_LAYOUT to get the Layout.
Like:
call method gt_grid-grid->get_variant
importing
es_variant = es_variant.
If you use the classical ALV, than you have to get the Layout information from the ALV object created in the classical ALV.
Check out the solution of [Changing Subtotal in Classical ALV |http://help-abap.blogspot.com/2008/09/classical-alv-change-subtotal.html] on my professional blog. Instead of the Method to change the Subtotal, you have to use the method GET_VARIANT.
Regards,
Naimesh Patel
09-25-2008 7:39 PM
I think u r going to check whether a variant name is given in the selection screen or not. If it is then u need to check it's validity. If it is true then u can use the Fm REUSE_ALV_VARIANT_EXISTENCE to check the validity of the variant.