Hy all ,
I have a request to get the value of attribute sort1 of component of an Ibase using Bol programing .
I tried this but it doesn't work :
lo_core TYPE REF TO cl_crm_bol_core,
lo_ibase TYPE REF TO cl_crm_bol_entity,
lo_ib_set TYPE REF TO cl_crm_bol_entity.
lo_core = cl_crm_bol_core=>get_instance( ).
lo_core->load_component_set( 'ONEORDER' ).
lo_ibase = lo_core->get_root_entity(
iv_object_name = 'Ibcomponent' (or 'IBHeader') ?
iv_object_guid = ‘guid of Component’ (or guid of an ibase ?)
).
lo_ib_set= lo_ibase->get_related_entity( iv_relation_name = ‘IBADDRESS’)
lo_ib_set->get_property_as_value(
EXPORTING iv_attr_name = 'SORT1'
IMPORTING ev_result = lv_sort1
).
Is this the correct way ?
Thank you for advance Image may be NSFW.
Clik here to view.