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
| ||||||||||||||||
|