cancel
Showing results for 
Search instead for 
Did you mean: 

Disableing of FPM Button at runtime

shafiqahmed_khan
Explorer
0 Kudos

Hi All,

I am having a requirement where i have to disable a FPM Button at runtime. I created a button through configuration & this button should be desabled at runtime.

Thanks & Regards.

Shafiq Ahmed Khan.

Accepted Solutions (0)

Answers (2)

Answers (2)

PKT
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi, You could disable the buttons using define_button in either OIF(IF_FPM_CNR_OIF) or GAF(IF_FPM_CNR_GAF) accordingly. But the limitation is, you can disable only those buttons which are in IF_FPM_CONSTANTS->gc_button or the buttons which you created manually. Check for constant button names in IF_FPM_CONSTANTS->gc_button.

Regards,

Pradeep.

Former Member
0 Kudos

Hello Shafiq Ahmed Khan,

The below mentioned class will help you to set the visibility property of FPM button.

Class: CL_FPM_CNR_OIF

Method: IF_FPM_CNR_OIF~DEFINE_BUTTON

Use exporting parameter: IV_VISIBILITY

Set the visibiltity property to abap_false

Please dont forget to give REWARD points..:-)

Thanks,

Bharath.K