Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Reply to Mail

0 Kudos

Hello Gurus,

When replying to mail in Outlook the mail consists of two parts:

  1. The new mail main text
  2. The previous original mail.

So if you reply to the second mail it will bring all the history conversation.

Currently I am trying to achive the same result, that is sending a reply mail bringing all the history conversation in it using the following FMs but I cannot figure out how to do this. Can you provide a Sample Code displaying the correct usage of the below FMs in order to send the above mail?

  • SO_NEW_DOCUMENT_SEND_API1
  • SO_DOCUMENT_SEND_API1

Thanks in Advance,

8 REPLIES 8

matt
Active Contributor

Don't use the SO FM. Use CL_BCS.

0 Kudos

Please can you provide a Sample code. That would be very helpful.

Thanks in Advance

matt
Active Contributor
0 Kudos

Try searching. This is a FAQ.

Sandra_Rossi
Active Contributor
Thanasis Koukoulas even SAP provide example programs in your SAP system. Why not reading the documentation first?

0 Kudos

if I knew how to use it I would not ask. Obviously, I read Documentation but it did not help me! Also if you do not want το help me you do not have to answer.

matt
Active Contributor

You asked me to provide you with sample code. I helpfully point out that there's plenty to find if you search for it. If you can't figure out from those samples, then how would one from me help?

Sandra_Rossi
Active Contributor

Nazim Hikmet If you have really read the documentation page, you would have seen this sentence: "Example Programs: Programs BCS_EXAMPLE_1 to 5 (send text to Internet address, on its own, with attachment, with note, and with recipient input in dialog)". Sorry that we're not authorized to copy/paste the contents of these SAP programs as per Copyright. So, if you don't explain what is your problem except us to do your job, then we can't help you.

0 Kudos

Thank you for your answers. I have followed Matthew Billingham instructions and I have used the CL_BCS class in order to send a mail. The problem is that I dont know how to send a Reply mail from CL_BCS. Here there is a sample code but It doesnt say where to find the ID of the original mail and how to import the ID to the method Reply in order to reply. How to use the Method Reply of CL_BCS class?