cancel
Showing results for 
Search instead for 
Did you mean: 

FPM Next Button

carlin_willams
Participant
0 Kudos

Hello

i have created 4 Miansteps using FPM GAF.

I want hide or disable NEXT button of only Mainstep4.

How can i customize only Mianstep4 NEXT button.

i have tried with customizing with invisible or disable NEXT button BUT it is happening for all Mainsteps.

BR

-CW

Accepted Solutions (0)

Answers (2)

Answers (2)

bhargavab4
Explorer
0 Kudos

Hi..

get the selected step of the road map using GET_SELECTED_STEP method.. and disable/hide the Next button if that is MAINstep4 in WDDOMODIFY Method.

-- Bhargava

saravanan_narayanan
Active Contributor
0 Kudos

Hello Williams,

If MainStep4 is the last step in your GAF model, then the NEXT_STEP button will be disabled automatically. For other steps you can't dynamically influence property of the NEXT_STEP button (like enable, label etc).

Alternative would be to disable the NEXT_STEP button at design time and add a custome button with Text as 'Next' with design property as 'Next'. this will have same look and feel of the generic next button. then for the custom button you can disable or enable the buttons programatically.

data lo_fpm type REF TO if_fpm.
  data lo_gaf type REF TO if_fpm_cnr_gaf.

  lo_fpm = cl_fpm_factory=>get_instance( ).
  lo_gaf ?= lo_fpm->get_service( cl_fpm_service_manager=>gc_key_cnr_gaf ).

  lo_gaf->define_button(
      iv_variant_id     = 'VARIANT_1'
      iv_mainstep_id    = 'MAINSTEP_2'
      iv_function       = if_fpm_constants=>gc_button-other_function
      iv_enabled        = abap_false
      iv_text           = 'NEXT'
      iv_design         = '03'
         ).

BR, Saravanan