Hi Frank,
you can use the sample code like below:
| * | . |
data:
| lr_entity | type ref to cl_crm_bol_entity, | |
| lr_customctrl type ref to cl_bt111h_o_opptdetailscu_impl, | ||
| lt_ddlb | type bsp_wd_dropdown_table. |
field-symbols:
| <ls_ddlb> | type bsp_wd_dropdown_line. |
* Get the Parent entity for creating the child
lr_customctrl ?= me->get_custom_controller( controller_id = 'BT111H_OPPT/OpptDetailsCuCo' )."#EC NOTEXT
lr_entity ?= lr_customctrl->typed_context->btadminh->collection_wrapper->get_current( ).
B.R.
Cheney