Skip to Content

Disable the Global toolbar FPM OVP button

Hi,

There is a WD Application which is called in FPM OVP and I have added the  Global toolbar button in it and in Process_event I am raising the event from the View when this event is raised.

In that event handler there is a custom popup confirmation and when I click on 'Yes' Action it should disable the 'Submit' button on the global toolbar.

How can I achieve this?

Please advise.

Regards,

Mustafa

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    May 05, 2016 at 06:01 PM

    Hi,

    It depends on what type of interface you have used.Below is the code for FPM_OIF_COMPONENT.

    1. *----Get a handle to the CNR. 
    2. DATA LO_CNR_OIF     TYPE REF TO IF_FPM_CNR_OIF.    
    3. lo_cnr_oif ?= cl_fpm_service_manager=>get_service( cl_fpm_service_manager=>gc_key_cnr_oif ). 
    4. *---Hide FPM submit -button 
    5.   DATA lt_buttons TYPE if_fpm_cnr_oif=>t_button. 
    6. lo_cnr_oif->get_buttons( 
    7.     EXPORTING 
    8.       iv_variant_id = 'v1' "Variant is generally available at Comp Configuration Level 
    9.     IMPORTING 
    10.       et_buttons = lt_buttons ).  
    11. "Hiding submitButton, Same in above internal table lt_buttons you will get your Submit Button FUNCTION & ELEMENT_ID so as to  
    12. "control visibility. 
    13. lo_cnr_oif->define_button( 
    14.     EXPORTING 
    15.       iv_function   = if_fpm_constants=>gc_button-SUBMIT
    16.       iv_visibility = cl_wd_uielement=>e_visible-none ).  

    Thanks

    KH

    Add comment
    10|10000 characters needed characters exceeded