cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to implement interface IF_FPM_GAF_CONF_EXIT in standard webdynpro component

Former Member
0 Kudos

Hi,

1) I am not able to implement interface IF_FPM_GAF_CONF_EXIT in standard webdynpro component using enhance button.

2) I have a requirement need to Hide some Main steps and buttons in GAF at run time, I try to hide buttons thru start configure using admin mode but I don't know why the button are appering at runtime but in design mode those are showing as diable/hide.

pls. advice me on this.

Thanks

Murali

Accepted Solutions (1)

Accepted Solutions (1)

former_member193369
Active Participant
0 Kudos

Hello Murali,

regarding your 1. question:  Why do you need to enhance a standard webdynpro component with this interface at all? IF_FPM_GAF_CONF_EXIT offers an API to dynamically change at runtime some configuration settings (select a variant, add or remove a UIBB, hide a step, ...). A Webdynpro component which does not implement this interface so far does not offer such a functionality, so there is nothing to enhance. So when you create your own WebDynpro component implementing IF_FPM_GAF_CONF_EXIT you don't loose anything.

regarding your 2. question: Most probably are your changes to the configuration overriden by a runtime API. If you want to see exactly what's happening you can try to debug it. To detect changes to Toolbar Buttons you can set a breakpoint in method CL_FPM_CNR_GAF->IF_FPM_CNR_GAF~DEFINE_BUTTON. For changes to the roadmap you should set a breakpoint in methods CL_FPM_GAF->IF_FPM_GAF~HIDE_MAINSTEP, CL_FPM_GAF->IF_FPM_GAF~HIDE_SUBSTEP, CL_FPM_GAF->IF_FPM_GAF~SET_VARIANT and CL_FPM_GAF->IF_FPM_GAF~UNHIDE_SUBSTEP. There you will probably see why your configuration changes will be ignored.

Best regards,

  Christian

Former Member
0 Kudos

Thanks Christian.

But, to hide button on GAF, can I use CL_FPM_CNR_GAF->IF_FPM_CNR_GAF~DEFINE_BUTTON method using implicit enhancement. Even I want to HIDE MAIN STEP in the GAF for this where I have to write my custom code and one more thing can we write our custom code in standard classes using implicit enhancement. Please suggest me on this.

Thanks

Murali Papana.

former_member193369
Active Participant
0 Kudos

Hello Murali,

if the application already uses an application-specific configuration controller (a component implementing IF_FPM_GAF_CONF_EXIT), then you have to enhance or replace it else you should create one and assign it to the application.

Within the OVERRIDE_EVENT_GAF method of this application-specific controller you can achieve both tasks. API IF_FPM_GAF is handed to you via the importing parameters of this method and can be used to Hide a step. API IF_FPM_CNR_GAF can be accessed via  IF_FPM->get_service( if_fpm_constants=>gc_service_key-cnr_gaf ) and can be used to hide the button.

Best regards,

   Christian

Former Member
0 Kudos

Hi Christian,

The standard component is not implemented IF_FPM_GAF_CONF_EXIT, then how can I assign this interface to my application.

My webdynpro component name is PRS_GAF_UI.

For Hiding button under which method I can call this said method

IF_FPM->get_service( if_fpm_constants=>gc_service_key-cnr_gaf ).

Thanks

Murali Papana

former_member193369
Active Participant
0 Kudos

Hello Murali,

as far as I see PRS_GAF_UI is a SAP delivered UIBB used in application PRS_GAF_APP and you want to hide buttons and steps in this application?

This application does not yet have an application specific controller assigned. So you can create your own Webdynpro component, implement IF_FPM_GAF_CONF_EXIT in it and assigned it to the application in admin mode.

Best regards,

   Christian

Former Member
0 Kudos

Thanks Christian,

Yes, I can create my own z webdynpro component with implementing IF_FPM_GAF_CONF_EXIT, but how can I assign this custom webdynpro application in the standard PRS_GAF_UI component, please give me the steps.

And one more doubt if we implement IF_FPM_GAF_CONF_EXIT interface in z webdypro component how this will trigger when I run PRS_GAF_UI application.

Please help on this.

Thanks & Regards

Murali Papana.

former_member193369
Active Participant
0 Kudos

Hello Murali,

this is done via configuration. You have to launch the configuration editor (in admin mode) for the floorplan component configuration (PRS_GAF_COMP_CONF). For a detailed description please have a look at the developer's guide for your release (see here For 7.02 or for 7.03).

Best regards,

  Christian

former_member193369
Active Participant
0 Kudos

Hello Murali,

this is done via configuration. You have to launch the configuration editor (in admin mode) for the floorplan component configuration (PRS_GAF_COMP_CONF). For a detailed description please have a look at the developer's guide for your release (see here For 7.02 or for 7.03).

Best regards,

  Christian

Former Member
0 Kudos

Thanks Christian.

It's working.

Thanks

Murali Papana

Answers (0)