Skip to Content
0
Former Member
May 16, 2010 at 08:22 AM

bol entity of the root object

314 Views

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