Thanks for your attention!
The problem was that I could not capture the data of the attribute Z that I create, or did not know how.
I've solved the problem
Below I have done the following:
1) I have searched the relationship between the root entity and relationships to find the Z attribute that I created.
2) I have made the connection by doing the following code:
DATA: lr_ibase2 TYPE REF TO cl_crm_bol_entity, lv_coll1 TYPE REF TO if_bol_bo_col, lr_recl1 TYPE REF TO cl_crm_bol_entity.
lr_ibase2 ?= me->typed_context->BTADMINH->collection_wrapper->get_current( ).
TRY. lv_coll1 = lr_ibase2->get_related_entities( iv_relation_name = 'BTHeaderServiceExt' ). CATCH cx_root. ENDTRY.
IF lv_coll1 IS NOT INITIAL.
lr_recl1 ?= lv_coll1->get_current( ).
IF lr_recl1 IS NOT INITIAL. "Capturo el Aviso. CALL METHOD lr_recl1->get_property_as_value EXPORTING iv_attr_name = 'ZZFLD00000O' IMPORTING ev_result = zaviso. ENDIF.
ENDIF. |