cancel
Showing results for 
Search instead for 
Did you mean: 

Receiving e-mails and attaching documents

Former Member
0 Kudos

Hello all

We here have a business requirement where we are using Inbound Processing( Tcode SO50 ). We have implemented a Z-class( according to Thomas Jung weblog ). Our requirement is to then attach the attachment of the mail to a business activity document.

Can anyone please tell us how this can be done?

Thanks and regards

Siddhesh.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello Siddhesh,

I received a similar requirement from our customer. Did you manage to find a way or a solution to attach the attachment of the e-mail (or even the complete e-mail) to a business activity in SAP CRM?

Could you please share some of your experiences?

Your help is very much appreciated.

Thanks & best regards,

Edwin

Former Member
0 Kudos

Hello Edwin,

Yes we were finally able to attach the attachment of the mail to a business activity.

From the calss we were able to get the doc. number , do. year and doc. type of the mail. Then we downloaded that attachment on the local server. Then we created an activity and by using the function module CRM_ICSS_UPLOAD_SR_ATTACHMENT we were able to attach the attachment to the same activity.

Hope this will be helpful,

Best regards

Siddhesh

gregorw
Active Contributor
0 Kudos

Hi Siddhesh,

I also had success to attach the File to an Opportunity via CRM_ICSS_UPLOAD_SR_ATTACHMENT. But it was a PDF file and I can't display it via the PC-UI in the Portal. I think my problem is the conversion of the Attachment via this loop to the input-format of the Function Module:

LOOP AT ls_content-cont_hex INTO ls_cont_hex.
  APPEND ls_cont_hex TO lt_file_content_binary.
ENDLOOP.

How did you the conversion?

Regards

Gregor

gregorw
Active Contributor
0 Kudos

Hello,

I've found a solution and described it in my Weblog: <a href="/people/gregor.wolf3/blog/2005/10/02/inbound-mail-processing-150-attach-files-to-opportunity">CRM: Inbound mail processing – Attach files to Opportunity</a>.

Regards

Gregor