Showing results for 
Search instead for 
Did you mean: 

How to disable button"Next" for the last step of a Roadmap?

Former Member
0 Kudos

Dear experts,

I have a roadmap with 4 steps for my webdynpro application. At the step 4, I would like to set the "Next" button inactive.

How could I get it?

Many thanks,


Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

please follow these stepss

just create the onnavigate method

every time call the next and previous buttons navigate method.

next and previous buttons take one Boolean value

give the button type Next button pass the X field

give step selected take one variable like string like Step

*OnNavigate method*

Write code like this

Edited by: anideepu on Nov 13, 2009 10:42 AM

OnNavigate method

Write code like this

DATA lo_nd_road_map TYPE REF TO if_wd_context_node.

DATA lo_el_road_map TYPE REF TO if_wd_context_element.

DATA ls_road_map TYPE wd_this->element_road_map.

DATA item_step TYPE wd_this->element_road_map-step.

DATA LV_STEP TYPE wd_this->element_road_map-step.

DATA lo_nd_ui TYPE REF TO if_wd_context_node.

DATA lo_el_ui TYPE REF TO if_wd_context_element.

DATA ls_ui TYPE wd_this->element_ui.

  • navigate from <CONTEXT> to <ROAD_MAP> via lead selection

lo_nd_road_map = wd_context->get_child_node( name = wd_this->wdctx_road_map ).

  • get element via lead selection

lo_el_road_map = lo_nd_road_map->get_element( ).

  • Navigate from <CONTEXT> to <UI> via lead selection

lo_nd_ui = wd_context->get_child_node( name = wd_this->wdctx_ui ).

  • get element via lead selection

lo_el_ui = lo_nd_ui->get_element( ).

CASE target_step.


*Display previous button.

wd_this->fire_to_first_plg( ).

lv_step = 'STEP_1'.

Edited by: anideepu on Nov 13, 2009 10:42 AM

Former Member
0 Kudos


Ideal way would be to create last View configured in your GAF roadmap to be as Confirmation screen in FPM configuration.

When processing reaches confirmation screen Next button is automatically disabled.

You can create Confirmation Screen in FPM - GAF configuration.

Hope this helps...


Manas Dua

Former Member
0 Kudos

Ohh.. Seems like you are not using FPM :(.

Btw I would strongly advocate usage of FPM if you have roadmap like stuff..

Former Member
0 Kudos


Former Member
0 Kudos

hi Meer ,

u first read the context attribute which is binded to ur step in roadmap

DATA lo_el_context TYPE REF TO if_wd_context_element. 
DATA ls_context TYPE wd_this->element_context. 
DATA lv_selected_step TYPE wd_this->element_context-selected_step. 
* get element via lead selection
 lo_el_context = wd_context->get_element( ). 
* get single attribute
IMPORTING value = lv_selected_step ).

apply CASE and correspondingly disable the Next button , create a attribute of type WDY_BOOLEAN

and set it to 'ABAP_FALSE' using set_Attribute method

CASE lv_selected_step. 
wd_this->set_step( step = 'FINISH' ). 
wd_this->enable_next_button( enable = '' ). 
wd_this->enable_prev_button( enable = 'X' ).

I hope it shud help



Former Member
0 Kudos

Dear all,

thanks a lot for your tips! The problem is solved.

best regards,


Former Member
0 Kudos


I guess you might have bound some attribute to the selected step and also some attirbute to the ENABLED property of that step of the roadmap Ui element...

Before going to last view, set this attribute to last step and also set the enabled property of this step...

Hope this is clear.



Product and Topic Expert
Product and Topic Expert
0 Kudos


For which next button are you refering..

generally we create the roadmap and insert the no.of roadmap steps needed.

please let me know which NEXT BUTTON are you refering?

If you want to disable the road map step.

Create an attribute of type wdy_boolean in the context and bind it to the road map step enabled property.

you can make it enable or disable my making ABAP_TRUE OR ABAP_FALSE.



name = `USERID`




name = `USERID`