Professional Documents
Culture Documents
TYPE sodocchgi1.
TYPE somlrec90.
Recipients
wa_mailrecipient-rec_type = 'U'.
wa_mailrecipient-receiver = '502119612@mail.ad.ge.com'.
Subject.
wa_mailsubject-obj_name = 'test mail'.
wa_mailsubject-obj_langu = sy-langu.
wa_mailsubject-obj_descr = 'Subject of the mail'.
* Mail content
w_email-line =
'Please click the button above to review Purchase Requisition 3000000' &
'027/Item 00010 and Release or Reject it. Requisition details as foll' &
'ows:'
.
append w_email
w_email-line =
append w_email
w_email-line =
append w_email
to t_email.
'<p> </p>'.
to t_email.
'<h4><font color="blue">PO Details:</font></h4>'.
to t_email.
to t_email.
'<p><pre>Plant
to t_email.
'<p><pre>Material
to t_email.
'<p><pre>Description
to t_email.
'<p><pre>Quantity
to t_email.
:00010</pre></p>'.
:00010</pre></p>'.
:00010</pre></p>'.
:00010</pre></p>'.
&
&
&
&
&
&
'Rolls Royce</td></tr>'.
append w_email to t_email.
w_email-line = '<tr><th align="left">Valuation Price :</th><td>' &
'250000.00</td></tr>'.
append w_email to t_email.
w_email-line = '<tr><th align="left">Price Unit
:</th><td>' &
'CNY</td></tr>'.
append w_email to t_email.
w_email-line = '</table>'.
append w_email to t_email.
*w_email-line = '<h4>PO Details:</h4> <table border="0"> <tr><th>Item
*Number
:</th>'.
*append w_email to t_email.
*w_email-line = '<td>00010</td> </tr> <tr><th>Requisition Date
:
*</th> <td>02.10.2012</td></tr>'.
*append w_email to t_email.
*w_email-line = '<tr><th>PR Creator
:</th>
*<td>501968267</td></tr> <tr><th>Header Note
:</th> <td>For
*Testing</td></tr></table>'.
*append w_email to t_email.
= wa_mailsubject
DOCUMENT_TYPE
= 'HTM'
TABLES
object_content
= t_email
receivers
= t_mailrecipients
EXCEPTIONS
too_many_receivers
= 1
document_not_sent
= 2
document_type_not_exist
= 3
operation_no_authorization = 4
parameter_error
= 5
x_error
= 6
enqueue_error
= 7
OTHERS
IF sy-subrc EQ 0.
commit work.
= 8.
ENDIF.