Hi Shivaprasad,
Define an instance (not static) attribute ( lt_sel_table TYPE bsp_wd_dropdown_table ) in CN2.
For Attr1 create an event and in event fetch the attr1 value and then fetch the possible values for attr2 according to your logic and then fill the attribute lt_sel_table (created above).
Event which created for Attr1 is in Implementation class and in IMPL class you have access of both CN classes. So When you will select the values from ATR1 then event will be called and in event you can fill the table for ATTR2.
GET_V_ATTR2:
DATA: lr_descriptor TYPE REF TO cl_crm_uiu_ddlb.
CREATE OBJECT lr_descriptor
EXPORTING
iv_source_type = 'T'. " Single-Character Flag
lr_descriptor->set_selection_table( it_selection_table = lt_sel_table).
rv_valuehelp_descriptor = lr_descriptor.
ON_ATT1EVENT:
me->typed_context->CN2->lt_sel_table= lt_ddlb.
No Need to create any Static attribute.
Regards,
Ankit Gutpa