We want to set the visibility of the toolbar elements of the UIBB MDG_BS_MAT_PLANT_LIST_ATS UIBB at runtime.
The thread http://scn.sap.com/thread/3607766 provides a couple of good information how to do to that.
The problem we still have is to set a good if-condition to hit the appropriate point of time.
The method IF_FPM_GUIBB_LIST~GET_DATA() in the implementing class /PLMU/CL_FRW_G_FEEDER_LIST is passed a couple of times when opening the material master UI. We do not want to run our enhancement 20 times or more.
When debugging the method the ME-Object provides an attribute MS_UIBB_INSTANCE_KEY with the field CONFIG_ID which contains the ID of the UIBB we want to enhance.
But the line of code: "IF me->ms_uibb_instance_key-config_id = 'MDG_BS_MAT_...' throws an syntay error.
Probably because the attribute MS_UIBB_INSTANCE_KEY of the class /PLMU/CL_FRW_G_FEEDER is protected.
Any idea how to get the MS_UIBB_INSTANCE_KEY attribute or how to get the Config-ID of the current UIBB else?
Kind regards, Matthias