Skip to Content

How to hide custom Button when using FPM_GAF_COMPONENT


I am working on a web dynpro component and I am using FPM_GAF_COMPONENT for FPM. I have added few custom buttons to the toolbar using the component configuration. Now my requirement is to hide some of the buttons based on certain conditions. Can you please help on how to get this?



Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Apr 24, 2018 at 02:18 PM

    I used the below in wdinit of my main view and it worked:

    SPAN { font-family: "Courier New"; font-size: 10pt; color: #000000; background: #FFFFFF; } .L0S31 { font-style: italic; color: #808080; } .L0S52 { color: #0000FF; } .L0S55 { color: #800080; } .L0S70 { color: #808080; }

    DATA: lo_cnr_gaf TYPE REF TO if_fpm_cnr_gaf,
    lo_fpm TYPE REF TO if_fpm.
    lo_fpm = cl_fpm_factory=>get_instance( ).
    lo_cnr_gaf ?= lo_fpm->get_service( cl_fpm_service_manager=>gc_key_cnr_gaf ).
    DATA lt_buttons TYPE if_fpm_cnr_gaf=>t_button.
    DATA ls_button TYPE LINE OF if_fpm_cnr_gaf=>t_button.

    CALL METHOD lo_cnr_gaf->get_buttons
    et_buttons = lt_buttons.

    Add comment
    10|10000 characters needed characters exceeded