Quantcast
Channel: SCN: Message List - SAP CRM: Webclient UI - Framework
Viewing all articles
Browse latest Browse all 7775

Re: How to get GUID from a Function Module?

$
0
0

Hi Merve,

 

You can try to get that information from global controllers. Something like this (did directly here so don't know if there is some minor errors):

 

  DATA lr_gdc            TYPE REF TO if_crm_ui_data_context.
  DATA lr_bt               TYPE REF TO cl_crm_bol_entity.
  DATA lr_adminh       TYPE REF TO cl_crm_bol_entity.
  DATA lv_proctype    TYPE crmt_process_type.
  lr_gdc ?= cl_crm_ui_data_context_srv=>get_instance( ).
  CHECK lr_gdc IS BOUND.
  lr_bt ?= lr_gdc->get_entity( name = if_iccmp_global_data_cont_con=>gdc_currentbt ).
  CHECK lr_bt IS BOUND.
  "Get process type directly
   lr_adminh ?= lr_bt->get_related_entity( 'BTOrderHeader' ).
   CHECK lr_adminh IS BOUND.
    lv_proctype = lr_adminh->get_property_as_string( 'PROCESS_TYPE').  "You can also get GUID field if you wish

 

See if it helps you a little more.

Kind regards,

Garcia


Viewing all articles
Browse latest Browse all 7775

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>