Quantcast
Channel: SCN : All Content - Web Dynpro ABAP
Viewing all articles
Browse latest Browse all 3667

Make custom button invisible/HIDE in alv webdynpro

$
0
0

Hello Expert,

 

i created one custom button in alv by program:-

 

 

 

 

**********************************

*     Create button for select all

**********************************

        try.

            l_o_function = l_o_config_scope->if_salv_wd_function_settings~create_function( /glb/cl_8gtpt_const_vend_aud=>cc_icon_select ).

          catch cx_sy_conversion_overflow

                cx_sy_move_cast_error.

            l_v_error = abap_true.

        endtry.

        try.

            create object l_o_button.

          catch cx_sy_create_object_error.

            l_v_error = abap_true.

        endtry.

        if l_v_error is initial and l_o_button is bound and l_o_function is bound.

          l_o_button->set_image_source( /glb/cl_8gtpt_const_vend_aud=>cc_icon_select ).

          l_o_function->set_editor( l_o_button ).

        endif.

Now i want to make this button invisible/hide depending on some condition.it means for some condition it will display and for some it will not.

 

Please suggest how to acheive this.

 

Thanks

Mahesh


Viewing all articles
Browse latest Browse all 3667

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>