Skip to Content
0
Former Member
Nov 16, 2006 at 10:28 AM

Get entity 'BTOrderHeader'

29 Views

Hi friends

I am using this code in IP_INBOUNDPLUGID

data: lr_bdc type ref to cl_crm_ic_cucobdc_impl,

lr_btorder type ref to if_bol_bo_property_access.

lr_bdc ?= me->get_custom_controller( 'CuCoBDC' ).

CALL METHOD lr_bdc->get_navigation_data

IMPORTING

ev_selected_object = lr_btorder.

gr_btorder ?= lr_btorder.

gr_btadminh = gr_btorder->get_related_entity( iv_relation_name = 'BTOrderHeader' ).

but the main problem is that 'lr_btorder' is having the Illegal referance.

and inside the get_navigation_data method 'source_view_name' does not have any value and 'selected_object' is also having illegal reference.

Is there any other way to access 'BTOrderHeader' or what changes i have to do??

regards

pulkit agrawal