Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Attach interaction record to activity clipboard and as doc flow

Hi All,

I know this question has been asked before but i did everything still not working for me.

I am trying to attach an IR created by my Function module to the IR which is getting created during the interaction.

I used INTO but still it is not working for me .

Here is my code please let me know if i am doing anything wrong.

    ls_input_fields-ref_guid    = ls_activity_h-ref_guid.

    ls_input_fields-ref_kind    = 'A'.

    ls_input_fields-objectname  = 'DOC_FLOW'.

    ls_input_fields-ref_handle  = '0000000000'.

    ls_input_fields-field_names = lt_field_names[].

    insert ls_input_fields into table lt_input_fields.

    ls_maint_doc_flow-ref_handle = '0000000000'.

    ls_maint_doc_flow-ref_guid = lv_guid.

    ls_maint_doc_flow-ref_kind = 'A'.

    ls_doc_link-objkey_a = lv_guid.

    ls_doc_link-objtype_a = 'BUS2000126'.

    ls_doc_link-objkey_b = lv_guid1

    ls_doc_link-objtype_b = 'BUS2000126'.

    ls_doc_link-brel_kind = 'A'.

    ls_doc_link-brel_mode = 'A'.

      ls_doc_link-reltype = 'INTO'.

    ls_doc_link-relation_handle = '0000000001'.

    append ls_doc_link to lt_doc_link.

    ls_maint_doc_flow-doc_link = lt_doc_link.

    append ls_maint_doc_flow to lt_maint_doc_flow.

So i want to attach this IR as DOC flow as well as it should be iappended to the activity clipboard as well.

THanks
Pravin

Former Member
Former Member replied

Hi Pravin,

Could you make following changes and try?

VONA_KIND = 'A'

RELTYPE = 'VONA'

CLEAR RELATION_HANDLE.

Also in input fields make sure you add following fields.

OBJKEY_A

OBJKEY_B

OBJTYPE_A

OBJTYPE_B

VONA_KIND

BREL_KIND

BREL_MODE

RELTYPE

If the docflow is not created, try swapping the GUIDs from object key a to b.

For clipboard use below class method:

CL_CRM_ISU_IREC_TOOLS=>ADD_OBJ_TO_ACTIVITY_CLIPBOARD. - You can refer to the code in this method to add object in clipboard.

Hope this will be useful.

Regards,

Naresh

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question