Skip to content

Instantly share code, notes, and snippets.

@njames
Last active December 16, 2015 07:48
Show Gist options
  • Save njames/5400793 to your computer and use it in GitHub Desktop.
Save njames/5400793 to your computer and use it in GitHub Desktop.
example on how to navigate the bol
DATA:
lr_core TYPE REF TO cl_crm_bol_core
, lr_entity TYPE REF TO cl_crm_bol_entity
, lv_partner_guid TYPE bu_partner_guid
, lv_object_guid TYPE crmt_object_guid
.
** get guid and navigate to the partner and get Description_name
current->get_property_as_value( EXPORTING iv_attr_name = 'CRM_GUID'
IMPORTING ev_result = lv_object_guid ).
lr_core ?= cl_crm_bol_core=>get_instance( ).
lr_entity ?= lr_core->get_root_entity( iv_object_name = 'BTOrder'
iv_object_guid = lv_object_guid ).
CHECK lr_entity IS BOUND.
lr_entity ?= lr_entity->get_related_entity( 'BTOrderHeader' ).
lr_entity ?= lr_entity->get_related_entity( 'BTHeaderPartnerSet' ).
lr_entity ?= lr_entity->get_related_entity( 'BTPartner_PFT_0001_MAIN' ).
value = lr_entity->get_property_as_string( iv_attr_name = 'DESCRIPTION_NAME' ).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment