
Send SMS using OOPS CL_BCS
September 24, 2012
UCF_AcroForm Method error in EP Adobe Forms
October 30, 2013Scenario:
I want to populate Radio Button Text programmatically in WebDynpro ABAP instead of binding Domain.
Steps:
I have a Context Element DEL_ITM in Component Controller i want to store the value in ROLE_TYP in DEL_ITM.
1. Created DEL_ITM in Component Controller as shown in Below Figure 1.1
![]() |
Fig 1.1 |
2. Copied/mapped the Node DEL_ITM in Main view as shown in Fig:1.2
![]() |
Fig 1.2 |
3. Added RadioButtonGroupByKey element in Mainview and binded SelectedKey Property with DEL_ITM.ROLE_TYP
4. Added a Code in ComponentController-WDDOINIT Method
METHOD wddoinit .
DATA: lr_node_info TYPE REF TO if_wd_context_node_info, lo_nd_del_itm TYPE REF TO if_wd_context_node, ls_value TYPE wdy_key_value, lt_value_set TYPE wdy_key_value_table.
ls_value-key = 'A'. ls_value-value = 'All'. APPEND ls_value TO lt_value_set. ls_value-key = 'P'. ls_value-value = 'PO/PR Related Roles'. APPEND ls_value TO lt_value_set.
lo_nd_del_itm = wd_context->get_child_node( name = wd_this->wdctx_del_itm ). lr_node_info = lo_nd_del_itm->get_node_info( ). lr_node_info->set_attribute_value_set( name = 'ROLE_TYP' value_set = lt_value_set ).
ENDMETHOD.
Output: