Skip to Content
0
Nov 22, 2012 at 07:20 AM

How to set the Properties at Genil Level - Editable

141 Views

Hi All,

I am trying to make a field Editable dynamically and tried to set the property as mentioned in the link below:

http://scn.sap.com/message/13670845#13670845 as mentioned by Nikhil Prateek Kulkarni ..

i have a BOL Entity with me now..

lr_entity ?= gv_context_node->collection_wrapper->get_current( ).

how do i implement the below code here ..

lv_value = if_genil_obj_attr_properties=>changeable.
lv_attr_props->set_property_by_name(
iv_name = 'ZZMDC_COMMENTS' ""IV_NAME is your UI Field Name
iv_value = lv_value ). "" LV_VALUE is either

I have to perform the above steps based on a condiiton..

Can any one pls guide me how do i get the instance of LV_ATTR_PROPS from the LR_ENTITY.

Pls Help ASAP !!!