Skip to Content
0
Former Member
Oct 29, 2009 at 01:36 PM

How to access the different Context nodes from CNXX methods Get_I_xxxxx

125 Views

Hi experts

I have to make the custom fields enable and disable based on the status and Reason values in BT's, but I'm not geting the way to access the context nodes from these field getter methods.

I'm able to access the fields from DO_PREPARE_OUTPUT method of controller class

lr_ent = me->typed_context->btstatus->collection_wrapper->get_current( ).

IF lr_ent IS BOUND.

TRY.

lv_status = lr_ent->get_property_as_string( 'ACT_STATUS' ).

lv_status_text = lr_ent->get_property_as_string( 'TXT30' ).

CATCH cx_sy_ref_is_initial cx_sy_move_cast_error cx_crm_genil_model_error.

ENDTRY.

lr_ent_subj = me->typed_context->btsubject->collection_wrapper->get_current( ).

if lr_ent_subj is bound.

try.

lv_subject = lr_ent_subj->get_property_as_string( 'CONC_KEY' ).

CATCH cx_sy_ref_is_initial cx_sy_move_cast_error cx_crm_genil_model_error.

endtry.

endif.

endif.

but when I'm using the same to access the same data from CL_BT111H_O_DETAILS_CN10 in the method Get_I_xxxxx I'm not able to access

Please let me know How can I access the context nodes from context node class methods.

Thanks

Rajasekhar