Hiii,
I created a simple bol object as root object. My problem is, that I can not get a reference to my bol object.
DATA: current TYPE REF TO if_bol_bo_property_access,
lr_entity TYPE REF TO cl_crm_bol_entity.
By using
lr_entity ?= me-> typed_context->partner->collection_wrapper->get_current( ).
My bol entity is always initial. With if_bol_bo_property_access I can get a reference to my attributes
current = me-> typed_context->partner->collection_wrapper->get_current( ).
But I cann't cast it to my bol entity with:
lr_entity ?= current.
I need the refefence to my bol entitiy to save entries with setproperty.
Has anybody have an idea, why I cann't get a reference of my bol object? My bol object is a root object, should I process different by root bol objects? In the implementation class, I can see my bol object in the attribute BASE_ENTITY_NAME.
Could anyone help me to solve the problem?
Best regards,
John