When I use set_message_subject, it does not work.
The email always uses the subject of the document - which is only 50 characters long.
* -------- create and set document ------------------------------- * create document from internal table with text document = cl_document_bcs=>create_document( i_type = 'RAW' i_text = i_text "Tabelle!! i_language = 'D' i_subject = i_subject ). * add document to send request CALL METHOD send_request->set_document( document ). * --------- set long subject ------------------------------------- * does not work yet... CALL METHOD send_request->set_message_subject( ip_subject ).
Any help will be appreciated. I cannot find too much about using CL_BCS for mailing in the SDN....
By the way: <b>Does anyone know if and how it is possible to add Extra-Headers to the email?</b> They all start with "X-". One that SAP WebAS is adding is this one:
X-Mailer: SAP Web Application Server 7.00
Thanks.
For anyone having other questions about sending emails with CL_BCS, I recommend this blog: /people/thomas.jung3/blog/2004/09/08/sending-e-mail-from-abap--version-610-and-higher--bcs-interface
- sadly this specific problem was not mentioned there...
Alex Nicolovius