Application Development and Automation 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: 
Read only

recipient screen .

0 Likes
366

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

2 REPLIES 2
Read only

venkat_o
Active Contributor
0 Likes
333

Hi, <li>Try to combine below two programs .


<li>
   
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.
<li><b>[Convert Spool request to PDF and send as e-mail|http://www.sapdev.co.uk/reporting/rep_spooltopdf.htm]</b>
Thanks Venkat.O

Read only

0 Likes
333

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