Hi I have done the following code :
DATA : ls_pa0021 TYPE pa0021,
ls_FPMGB_T_FIELDUSAGE TYPE LINE OF FPMGB_T_FIELDUSAGE,
lv_sytabx TYPE sy-tabix,
ls_fpmgb_t_selected_fields TYPE LINE OF fpmgb_t_selected_fields.
*** Check event and infotype service ***
*This event is triggered when user selects the edit button
IF io_event->mv_event_id = 'FPM_CALL_DEFAULT_EDIT_PAGE' OR io_event->mv_event_id = 'FPM_BACK_TO_MAIN'.
MOVE-CORRESPONDING cs_data TO ls_pa0106.
*** If subtypes are 0001 then disable the Save and Back , Save buttons ***
* IF ls_pa0021-subty EQ '0010'.
modify_cnr_button( iv_event_id = if_fpm_constants=>gc_event-save
iv_visibility = '01' ).
modify_cnr_button( iv_event_id = if_fpm_constants=>gc_event-save_and_back_to_main
iv_visibility = '01' ).
* ENDIF.
But the system hide the buttons and I need that appear but disabled.
How can solve this ?
Regards
