Quantcast
Channel: SCN : Unanswered Discussions - SAP CRM: Service
Viewing all articles
Browse latest Browse all 1084

Email Extracts (Inbound/Outbound) for a Service Ticket in CRM

$
0
0

Dear CRM Experts,

 

I have a requirement that we need to extract all the inbound and outbound emails attached to service ticket in CRM. I am using the below logic to find the binary content for Inbound and Outbound emails partially. Could you please let me know if you have any better idea to extract the emails other than the one provide below.

 

1. Get  header GUID from  CRMD_ORDERADM_H  and input at table SRRELROLES.

 

   Get ROLEID from SRRELROLES where

     SRRELROLES-OBJKEY =  CRMD_ORDERADM_H-GUID and

     SRRELROLES-OBJTYPE = CRMD_ORDERADM_H-OBJECT_TYPE and

     SRRELROLES-ROLETYPE = 'INCOMMPROC'.

 

2. Get ROLE_B from table SRCICREL BY Inputting ROLEID from step 1

   where SRCICREL-ROLE_A = SRRELROLES-ROLEID

 

3. Get OBJKEY from table SRRELROLES  where

    SRRELROLES-ROLEID = SRCICREL-ROLE_B AND

    SRRELROLES-OBJTYPE = 'SOFM'.

 

4. At the result list we will observe  that OBJKEY = '<OBJTP><OBJYR><OBJNO>' (for ex: EXT38000000056789)

 

5. Split this and input in SOOD table.

 

Lets say If I have 4 emails ( 2 Inbound and 2 Outbound), I am getting 4 entries in SOOD. But out of 4, 3 are related to the service ticket that I am querying for. But 1 was not related to that service ticket.

 

Does anyone has any idea about this logic or any other technic to extract these. Please let me know.

 

Appreciate your help.

 

Thanks,

Jay


Viewing all articles
Browse latest Browse all 1084

Trending Articles



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