on 05-29-2012 5:22 PM
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
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...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.