‎2010 Mar 04 12:26 PM
Hi,
I need to enter or delete recipient mail id or distribution list in module pool program. Is there any std Program or FM to enter the mail id .
It is like SAP Business work place, if you press new message it will popup a screen to enter title , note and in the bottom recipient list.
My requirement is only to get recipient list only . Is any std FM or program.
Thanks ,
Balamurugan.R
‎2010 Mar 04 2:05 PM
Hi,
<li>Try to combine below two programs .
Thanks
Venkat.O
<li>
<li><b>[Convert Spool request to PDF and send as e-mail|http://www.sapdev.co.uk/reporting/rep_spooltopdf.htm]</b>
REPORT zvenkat_download_alvoutput.
DATA:i_t001 TYPE t001 OCCURS 0,
pdf LIKE tline OCCURS 0.
DATA:g_spool TYPE tsp01-rqident,
g_program TYPE sy-repid VALUE sy-repid.
TYPE-POOLS:slis.
DATA: w_print TYPE slis_print_alv,
w_print_ctrl TYPE alv_s_pctl.
PARAMETERS: p_file TYPE string.
INITIALIZATION.
p_file = 'C:\venkat.pdf'.
"START-OF-SELECTION.
START-OF-SELECTION.
SELECT * FROM t001 INTO TABLE i_t001 UP TO 100 ROWS.
w_print-print = 'X'.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = g_program
i_structure_name = 'T001'
is_print = w_print
TABLES
t_outtab = i_t001.
IF sy-subrc EQ 0.
g_spool = sy-spono.
CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
EXPORTING
src_spoolid = g_spool
TABLES
pdf = pdf.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ELSE.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
filename = p_file
filetype = 'BIN'
TABLES
data_tab = pdf.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ELSE.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = g_program
i_structure_name = 'T001'
TABLES
t_outtab = i_t001. "is_print = w_print
ENDIF.
ENDIF.
ENDIF.
‎2010 Mar 05 10:25 AM
Hi Venkat,
Thanks for your reply.
My problem is to get recipient list and based on the list I have to send it .. At present No module pool screen for this
Do you know any FM or screen to get this.
Thanks
Balamurugan.R