cancel
Showing results for 
Search instead for 
Did you mean: 

SRM 7 OVERRIDE_EVENT_OIF

Former Member
0 Kudos

Hi,

In RFx document, I enhanced the following Component Configuration

/SAPSRM/WDCC_FPM_OIF_RFQ_PR_PU

I added to it 2 variants.

In the following WebDynpro /SAPSRM/WDC_FPM_OIF_CONF I enhanced the OVERRIDE_EVENT_OIF method (Post-exit) and the code:

    case io_oif->mo_event->MV_EVENT_ID.
        when if_fpm_constants=>gc_event-leave_initial_screen.

        io_oif->set_variant( IV_VARIANT_ID = 'RFQ_PUR2' ).

 

  endcase.

the problem is that screen is show up with all the BUTTONS even those who aren't relevant

What am I missing?

Regards,

Joseph

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

You may double check in your configuration and program how these buttons are defined,

you can hide buttons by using interface IF_FPM_CNR_OIF, Implement this interface and then call bellow method to control button properties like enable or visible.

CALL METHOD wd_this->lo_cnr_oif->define_button

     EXPORTING

       iv_function   = if_fpm_constants=>gc_button-other_function

       iv_element_id = 'FPM_SAVE_DRAFT'

       iv_enabled    = lv_enable

       iv_visibility = im_visibility.

Cheers...

Former Member
0 Kudos

san,

can you give me more explanation on "implement this interface (IF_FPM_CNR_OIF)".

thanks

Former Member
0 Kudos

Hi,

 

   DATA: lo_cnr_oif TYPE REF TO if_fpm_cnr_oif,
        ls_button TYPE if_fpm_cnr_oif=>s_button.

  lo_cnr_oif ?= wd_this->mr_fpm->get_service( cl_fpm_service_manager=>gc_key_cnr_oif ).

  " Switch off button resubmit
  CALL METHOD lo_cnr_oif->define_button
    EXPORTING
      iv_variant_id = 'VARIANT'
      iv_function   = 'OTHER_FUNCTIONS'
      iv_element_id = 'BTN_RESUBMIT'
      iv_enabled    = abap_false.

     iv_visibility     = 01.

like this you can enable or disable and can hide the button on your FPM.

Answers (0)