Hello Nikhil,
Add a value attribute to your view Context Node.In get_p_XXX( ), Make this field as image by the bilow Code,
WHEN if_bsp_wd_model_setter_getter=>fp_fieldtype.
rv_value = cl_bsp_dlc_view_descriptor=>field_type_image.
In get_XXX( ) write your logic witch light u want to show for that entity,
value = '/SAP/BC/BSP/SAP/thtmlb_styles/sap_skins/default/images/green_light.gif'.
like this assign value based on condition
That's solve your wish,
Regards
Vijay