Mail With Table Abap
Mail With Table Abap
Mail With Table Abap
*"----------------------------------------------------------------------
*"*"Local Interface:
*" IMPORTING
*" REFERENCE(PLAF) TYPE PLAF
*"----------------------------------------------------------------------
doc_data-priority = 1.
doc_data-obj_descr = subject.
w_plaf-plnum = plaf-plnum.
SHIFT w_plaf-plnum LEFT DELETING LEADING '0'.
w_plaf-matnr = plaf-matnr.
SHIFT w_plaf-matnr LEFT DELETING LEADING '0'.
* CONCATENATE '<tr><td width="30%">'lc_2'Material</td><td>' ' ' INTO wa_contents.
** CONCATENATE '<tr><td width="30%">2 . Material</td><td>' w_plaf-matnr INTO
wa_contents.
** APPEND wa_contents TO it_contents.
w_plaf-matnr = plaf-matnr.
SELECT SINGLE maktx FROM makt INTO @DATA(gv_maktx)
WHERE matnr = @plaf-matnr
AND spras = @sy-langu.
** CONCATENATE '<tr><td width="30%">3 . Material Description </td><td>' gv_maktx
INTO wa_contents.
**
** APPEND wa_contents TO it_contents.
var1 = plaf-gsmng.
** CONCATENATE '<tr><td width="05%">5 .ORDER QTY</td><td>' var1 '.'
** '.' '</td></tr>' INTO wa_contents.
** APPEND wa_contents TO it_contents.
*****************************************************************
*** CONCATENATE '<tr><td width="0.1%">6.</td>''<td width="0.1%">UNIT</td>'
*** '<td width="0.1%">' plaf-meins '</td></tr>' INTO wa_contents.
*** APPEND wa_contents TO it_contents.
*********************************************************************
************************************************************************
*** CONCATENATE '<tr><td width="0.1%">7.</td>''<td width="0.1%">WBS ELEMENT</td>'
*** '<td width="0.1%">' var2 '</td></tr>' INTO wa_contents.
*** APPEND wa_contents TO it_contents.
**************************************************************************
wa_contents-line = '</body></html>'.
APPEND wa_contents TO it_contents.
wa_contents-line = user_address-name_text.
* APPEND plaf-puser TO .
APPEND wa_contents TO it_contents.
ENDFUNCTION.