Quantcast
Channel: SCN : All Content - SAP CRM: Webclient UI - Framework
Viewing all articles
Browse latest Browse all 4552

Reading attribute from a Web ui view

$
0
0

Hello experts,

 

I am very new to abap and CRM web ui.

I have requirement where i need to read status of a transaction.

 

I have attach code which i am using to read status and error message which i am getting.

Please help me on this

 

code used

   lr_ui_profile = cl_crm_ui_profile=>get_instance( ).

   lv_profile = lr_ui_profile->get_profile( ).

 

* Access Custom Controller - BT120H_CPL/CuCoPartner

   lv_cuco ?= me->get_custom_controller('BT215H_RAGR/UCBTPartnerCuCo').

 

   lv_coll ?= lv_cuco->typed_context->btadminh->collection_wrapper.

 

   IF lv_coll IS BOUND.

     lr_entity ?= lv_coll->get_first( ).

 

     CALL METHOD lr_entity->get_property_as_string

       EXPORTING

         iv_attr_name = 'STATUS'

       RECEIVING

         rv_result    = lv_processtype.

 

   ENDIF.

 

error

 

SAP Note
  • The following error text was processed in the system:
    Entry parameter of method CL_CRM_BOL_ENTITY->GET_PROPERTY contains value BTSTATUS, which is not allowed
Exception ClassCX_CRM_CIC_PARAMETER_ERROR
Error Name
ProgramCL_CRM_BOL_ENTITY=============CP
IncludeCL_CRM_BOL_ENTITY=============CM00C
ABAP ClassCL_CRM_BOL_ENTITY
MethodIF_BOL_BO_PROPERTY_ACCESS~GET_PROPERTY
Line22
Long text-

Viewing all articles
Browse latest Browse all 4552

Trending Articles



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