on 06-10-2013 7:35 AM
Hi Experts,
I m working on Multiple Roadmap selection.
http://scn.sap.com/docs/DOC-2382
But then i would like to trigger a perticular step based on selection.pls help me.
Best regards,
Rao.
Hi Narasimha,
For example you have 3 steps like step1 step2 and step3. Create one event for Roadmap onselect as STEP.
On that event handler place code like below.
DATA lo_nd_roadmap TYPE REF TO if_wd_context_node.
DATA lo_el_roadmap TYPE REF TO if_wd_context_element.
DATA ls_roadmap TYPE wd_this->Element_n_roadmap.
DATA LV_STEP TYPE STRING.
CALL METHOD WDEVENT->GET_STRING
EXPORTING
NAME = 'STEP'
RECEIVING
VALUE = LV_STEP.
lo_nd_roadmap = wd_context->get_child_node( name = wd_this->wdctx_n_roadmap ).
lo_el_roadmap = lo_nd_roadmap->get_element( ).
lo_el_roadmap->set_attribute(
name = `STEP`
value = lv_step ).
CASE lv_step.
WHEN 'STEP1'.
wd_this->display( ).
WHEN 'STEP2'.
wd_this->create( ).
WHEN 'STEP3'.
wd_this->save( ).
ENDCASE.
Cheers,
Kris.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.