Skip to Content
0
Former Member
Mar 26, 2009 at 11:54 AM

visibility

23 Views

Hi ,

I am using the following code for visibility of a container , have done with binding. Its comming up with an error saying as below :

*****************************************************

The following error text was processed in the system RDU : Access via 'NULL' object reference not possible.

The error occurred on the application server HCCR3DEV2_RDU_00 and in the work process 0 .

The termination type was: RABAX_STATE

DATA lo_el_context TYPE REF TO if_wd_context_element.

DATA ls_context TYPE wd_this->element_context.

DATA lv_visible LIKE ls_context-visibility_1.

if lv_budg_mang_check_box = ' '. "Based on some condition

lv_visible = '02'.

lo_el_context->set_attribute(

EXPORTING

name = 'VISIBILITY_1'

value = lv_visible ).

endif.

Please let me know if there are any corrections to the above code

Thanks,

Kumar