cancel
Showing results for 
Search instead for 
Did you mean: 

CHARM link between incident request for change and change document

former_member275658
Contributor
0 Kudos

Hi Experts,

I am trying to find a way to extract report which shows link between Incident-->Request for Change --> Normal change, Urgent change etc.

After reading this thread, I tried to execute the function module but I am not able to get the document numbers after inserting GUID number in the input screen of this FM.. Can anyone please advise how should I get the output like Incident-->Request for Change --> Normal change, Urgent change etc. by running this function module or do I need to do some perquisite steps before executing this FM ?

  • /TMWFLOW/REP_BUILD_CHAIN

Regards,

Salman

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Salman,

I build my own report to show the linked documents in an ALV based on FM /TMWFLOW/REP_BUILD_CHAIN. Following an extract of my report to select the linked documents:

.......

DATA:

       lt_ordh       TYPE TABLE OF crmd_orderadm_h,

       lt_ordh2      TYPE TABLE OF crmd_orderadm_h,

       ls_ordh       TYPE crmd_orderadm_h,

       ls_ordh2      TYPE crmd_orderadm_h,

       lt_guid       TYPE /tmwflow/rep2_guid_parent_tt,

       ls_guid       TYPE /tmwflow/rep2_guid_parent,

........

SELECT  * FROM   crmd_orderadm_h INTO TABLE lt_ordh 

               WHERE  object_id IN so_id                 "Transaction ID

                     AND posting_date IN so_pdate       "Posting date

                     AND process_type IN so_ptype.     "Transaction type

LOOP AT lt_ordh INTO ls_ordh.

* Read the linked transactions (guid)

    CALL FUNCTION '/TMWFLOW/REP_BUILD_CHAIN'

      EXPORTING

        im_guid           = ls_ordh-guid

      IMPORTING

        ex_guids_relation = lt_guid.

* Select header data of the linked transactions

    SELECT  * FROM  crmd_orderadm_h INTO TABLE lt_ordh2

                     FOR ALL ENTRIES IN lt_guid

                     WHERE  guid = lt_guid-guid.

.....

ENDLOOP.

lt_ordh2 contains one entry per linked document.

Regarding your second question: how do you link the incidents to the RfC? With the FM /TMWFLOW/REP_BUILD_CHAIN you might get only the incident where you used the 'Create follow-up' button.

former_member275658
Contributor
0 Kudos

I have another question: We have multiple incidents connected to a Request for change but I can't find a table which provides all those incidents connected to that request for change.

I can see only one incident in the report but not all of them.

former_member275658
Contributor
0 Kudos

Can anyone please help ?

or is there any way we can pull up list of link between Incident --> change request --> urgent change etc

Former Member
0 Kudos

Salman,

Goto se38--> CRM_ORDER_READ , select the Transaction no, goto ET_DOC_FLOW , which will lsit out all the related doc guids. out of which one of them should be ur Incident no.

Internally this report calls FM SE37-->CRM_ORDER_READ, with the same above structure, so u can call this FM in your report.

Thanks

Jignesh

former_member275658
Contributor
0 Kudos

Hi Jignesh,

I ran this program and see zero entries in ET_DOC_FLOW and it is same with function module /TMWFLOW/REP_BUILD_CHAIN


May be we have to developed a custom code to extract link between Incident --> change request --> urgent change etc


Regards,

Salman

Former Member
0 Kudos

SALMAN,

Try FM 'SREL_GET_NEXT_RELATIONS'

Thanks