cancel
Showing results for 
Search instead for 
Did you mean: 

ITSM: add text when new document is uploaded

richard_pietsch
Active Contributor
0 Kudos

Hi @ all,

I want to add an internal note when a new document is attached to an incident.

In debug mode I found that the upload is done via CL_GS_CM_ADDDOC_IMPL but so far I did not see a way to add a text to the corresponding CRM transaction. Therefore I need to process CRM_ORDER_MAINTAIN... but where does the transaction GUID come from?

Any ideas?

Regards, RP

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Richard,

you can try this:

DATA lr_coco   TYPE REF TO cl_gs_cm_bspwdcomponent_impl,

           lv_guid TYPE crmt_object_guid.

          lr_coco ?= me->comp_controller.
          lr_current ?= lr_coco->typed_context->parentnode->collection_wrapper->get_current( ).

          lv_guid = lr_current->get_property_as_string( iv_attr_name = 'GUID' ).

Best Regards,

Christoph

richard_pietsch
Active Contributor
0 Kudos

that's it!

Answers (0)