Report output via E-mail

Hi all,
i have a written a report where i need to send the report output to somebody via
E-mail.i am sending this report output via E-mail successfully.The receiver receives, my output in excel format.but this excel is not <b>pivoted</b>.
i want , the receiver should get my output in pivoted excel format.i.e my output data should be exactly fit in the excel sheet.
now the columns in excel sheet are overlapping.once i double clicked, the columns are getting separated.i do not want to double click.i want all the columns should come properly i.e excel field  length should be adjusted as per the output field length.
i am giving my coding below.plz suggest how i can do the above thing .it's urgent.
any idea will be highly appreaciated.
Regards
if not p_email1 is initial.
     perform fill_report_csv.
     perform f_send_internet_mail.
  endif.
FORM fill_report_csv.
   data :   l_text(232) type c,
           v_matnr1(21) type c,
           v_matnr(21) type c,
           v_matkl(14) type c,
           v_maktx(45) type c,
           v_ttlstk(14) type c,
           v_verpr(14) type c,
           v_werks(14) type c,
           v_lgort(14) type c,
           v_char(10) type c,
           v_stks type p ,
           v_po(40) type c,
           v_qty(13) type c,
            v_qty1 type sy-datum,
           v_date(15) type c,
           v_date1(15) TYPE C,
           v_name(35) type c,
           v_eknam(18) type c,
           v_lifnr(15) type c,
        l_po(40) type c,
        v_matnr(20) type c,
         l_rate(11) type  p decimals 5,
         l_flag type c.
  concatenate c_equal c_colon 'PO no.' c_colon
                into v_po.
  concatenate c_equal c_colon 'Material no.' c_colon
                into v_matnr.
  concatenate c_equal c_colon 'Description.' c_colon
                into v_maktx.
  concatenate c_equal c_colon 'Due Qty.' c_colon
                into v_qty.
  concatenate c_equal c_colon 'Del Date.' c_colon
                into v_date.
  concatenate c_equal c_colon 'Vendor.' c_colon
                into v_name.
  concatenate c_equal c_colon 'Buyer.' c_colon
                into v_eknam.
  concatenate c_equal c_colon 'Vendor Code.' c_colon
                into v_lifnr.
concatenate
         v_po v_matnr v_maktx v_qty
         v_date v_name v_eknam v_lifnr
         into i_download
         SEPARATED BY con_tab.
  append i_download .
clear : v_po,v_matnr, v_maktx, v_qty, v_date, v_name, v_eknam,v_lifnr .
clear wa_output.
loop at i_output into wa_output.
   on change of wa_output-ebeln.
     clear v_lines.
     loop at i_eket into wa_eket
             where ebeln = wa_output-ebeln.
       v_lines = v_lines + 1.
       clear wa_eket.
     endloop.
**-- Checking of page break
     v_lines = sy-linno + v_lines .
     if 55 < v_lines  .
       write:/0(161) sy-uline.
       new-page.
     endif.
  clear v_lines.
      loop at i_eket into wa_eket
              where ebeln = wa_output-ebeln.
        v_lines = v_lines + 1.
        clear wa_eket.
      endloop.
*-- Calculating the due qty.
    wa_output-dumng = wa_output-menge - wa_output-wemng.
*-- Writing the Line items of the PO.
    read table i_ekpo into wa_ekpo
          with key ebeln = wa_output-ebeln
                   ebelp = wa_output-ebelp.
     l_rate = wa_ekpo-netpr / wa_ekpo-peinh.
*-- Writing of PO detail
     if wa_output-dumng gt 0 .
     v_qty = wa_output-dumng.
    v_date1 = wa_output-eindt.
    v_maktx = wa_output-maktx.
     if wa_output-maktx+0(1) = '"' .
            concatenate  c_equal wa_output-maktx
               into v_maktx  .
         else .
            concatenate  c_equal c_colon wa_output-maktx c_colon
               into v_maktx  .
         endif .
   if wa_output-name1+0(1) = '"' .
            concatenate  c_equal wa_output-name1
               into v_name  .
         else .
            concatenate  c_equal c_colon wa_output-name1 c_colon
               into v_name  .
         endif .
    v_name = wa_output-name1.
    v_lifnr = wa_output-lifnr.
     write wa_output-eindt to v_date1 DD/MM/YYYY.
     concatenate '="' wa_output-ebeln '/'
            wa_output-ebelp '"' into v_po .
     concatenate '="' wa_output-matnr '"' into v_matnr .
         concatenate  c_equal c_colon wa_output-maktx c_colon
           into v_maktx  .
          concatenate  c_equal c_colon wa_output-dumng c_colon
           into v_qty1  .
           concatenate  c_equal c_colon wa_output-eindt c_colon
           into v_date1  .
          concatenate  c_equal c_colon wa_output-name1 c_colon
           into v_name  .
            concatenate  c_equal c_colon wa_output-eknam c_colon
            into v_eknam  .
          concatenate  c_equal c_colon wa_output-lifnr c_colon
           into v_lifnr  .
          concatenate  c_equal c_colon wa_mard-werks '/'
           wa_mard-lgort c_colon
           into v_lgort .
             concatenate '="' wa_output-lifnr '"' into v_lifnr .
condense:v_po,v_matnr, v_maktx, v_qty, v_date, v_name, v_eknam,v_lifnr .
     concatenate
         v_po v_matnr v_maktx v_qty
         v_date1 v_name v_eknam v_lifnr
         into i_download
         SEPARATED BY con_tab.
    concatenate con_cret i_download INTO i_download .
    append i_download .
  endif.
clear : v_po,v_matnr, v_maktx, v_qty, v_date, v_name, v_eknam,v_lifnr .
endloop.
ENDFORM.                    " fill_report_csv
*&      Form  f_send_internet_mail
      text
-->  p1        text
<--  p2        text
FORM f_send_internet_mail.
Variables
data:   it_packing_list like sopcklsti1 occurs 0 with header line,
        it_contents like solisti1 occurs 0 with header line,
        it_receivers like somlreci1 occurs 0 with header line,
        it_attachment like solisti1 occurs 0 with header line,
        gd_cnt type i,
        gd_sent_all(1) type c,
        gd_doc_data like sodocchgi1,
        gd_error type sy-subrc.
data:   it_message type standard table of SOLISTI1 initial size 0
                with header line.
data : found_receiver type c,
       v_title(80) type c,
       l_text(180) type c.
Fill the document data.
  gd_doc_data-doc_size = 1.
Adds text to email text table
  append 'Pls see attached open purchase order report.' to it_message.
  append '' to it_message.
  concatenate 'Note: This is system generated report'
              ', figures may subject to actual physical count.'
              into l_text separated by space.
  append l_text to it_message.
Populate the subject/generic message attributes
  CLEAR gd_doc_data.
  READ TABLE i_download INDEX w_cnt.
  gd_doc_data-doc_size =
     ( w_cnt - 1 ) * 255 + STRLEN( i_download ).
  gd_doc_data-obj_langu  = sy-langu.
  gd_doc_data-obj_name   = 'SAPRPT'.
if p_asdate is initial .
     concatenate p_title ' '
              sy-datum sy-uzeit into v_title separated by space.
else .
    concatenate p_title ' '
             p_bldat p_cputm into v_title separated by space.
endif .
  gd_doc_data-obj_descr  = v_title .
  gd_doc_data-sensitivty = 'F'.
  CLEAR t_attachment.
  REFRESH t_attachment.
  t_attachment[] = i_download[].
Describe the body of the message
  clear it_packing_list.
  refresh it_packing_list.
  it_packing_list-transf_bin = space.
  it_packing_list-head_start = 1.
  it_packing_list-head_num = 0.
  it_packing_list-body_start = 1.
  describe table it_message lines it_packing_list-body_num.
  it_packing_list-doc_type = 'RAW'.
  append it_packing_list.
Create attachment notification
  it_packing_list-transf_bin = 'X'.
  it_packing_list-head_start = 1.
  it_packing_list-head_num   = 1.
  it_packing_list-body_start = 1.
  DESCRIBE TABLE t_attachment LINES it_packing_list-body_num.
  it_packing_list-doc_type   =  'XLS'.
  it_packing_list-obj_descr  =  'OPEN PURCHASE ORDER' .
  it_packing_list-obj_name   =  'PO.XLS' .
  it_packing_list-doc_size   =  it_packing_list-body_num * 255.
  APPEND it_packing_list.
assign SAP user smtp address from successful retrieval.
  loop at p_email.
Add the recipients email address
     found_receiver = 'X' .
     it_receivers-receiver = p_email-low.
     it_receivers-rec_type = 'U'.
     it_receivers-com_type = 'INT'.
     it_receivers-notif_del = ''.
     it_receivers-notif_ndel = 'X'.
     append it_receivers .
  endloop .
Add default recipient email when unable to locate purc group email
   if found_receiver is initial .
       it_receivers-receiver = p_email.
       it_receivers-rec_type = 'U'.
       it_receivers-com_type = 'INT'.
       it_receivers-notif_del = ''.
       it_receivers-notif_ndel = 'X'.
      append it_receivers.
   endif .
Call the FM to post the message to SAPMAIL
  call function 'SO_NEW_DOCUMENT_ATT_SEND_API1'
       exporting
            document_data              = gd_doc_data
            put_in_outbox              = 'X'
            commit_work                = 'X'
       importing
            sent_to_all                = gd_sent_all
       tables
            packing_list               = it_packing_list
            contents_bin               = t_attachment
            contents_txt               = it_message
            receivers                  = it_receivers
       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                     = 8.
Store function module return code
  gd_error = sy-subrc.
Get it_receivers return code
  loop at it_receivers.
  endloop.
Instructs mail send program for SAPCONNECT to send email.
  wait up to 2 seconds.
  if gd_error eq 0.
      submit rsconn01 with mode = 'INT'
                    with output = ' '
                    and return.
  endif.
ENDFORM.                    " f_send_internet_mail

ans

Similar Messages

  • Sending report output via E-mail (excel pivoted format)

    Hi all,
    i have a written a report where i need to send the report output to somebody via
    E-mail.i am sending this report output via E-mail successfully.The receiver receives, my output in excel format.but this excel is not <b>pivoted</b>.
    i want , the receiver should get my output in pivoted excel format.i.e my output data should be exactly fit in the excel sheet.
    now the columns in excel sheet are overlapping.once i double clicked, the columns are getting separated.i do not want to double click.i want all the columns should come properly i.e excel field  length should be adjusted as per the output field length.
    i am giving my coding below.plz suggest how i can do the above thing .it's urgent.
    any idea will be highly appreaciated.
    Regards
    if not p_email1 is initial.
         perform fill_report_csv.
         perform f_send_internet_mail.
      endif.
    FORM fill_report_csv.
       data :   l_text(232) type c,
               v_matnr1(21) type c,
               v_matnr(21) type c,
               v_matkl(14) type c,
               v_maktx(45) type c,
               v_ttlstk(14) type c,
               v_verpr(14) type c,
               v_werks(14) type c,
               v_lgort(14) type c,
               v_char(10) type c,
               v_stks type p ,
               v_po(40) type c,
               v_qty(13) type c,
                v_qty1 type sy-datum,
               v_date(15) type c,
               v_date1(15) TYPE C,
               v_name(35) type c,
               v_eknam(18) type c,
               v_lifnr(15) type c,
            l_po(40) type c,
            v_matnr(20) type c,
             l_rate(11) type  p decimals 5,
             l_flag type c.
      concatenate c_equal c_colon 'PO no.' c_colon
                    into v_po.
      concatenate c_equal c_colon 'Material no.' c_colon
                    into v_matnr.
      concatenate c_equal c_colon 'Description.' c_colon
                    into v_maktx.
      concatenate c_equal c_colon 'Due Qty.' c_colon
                    into v_qty.
      concatenate c_equal c_colon 'Del Date.' c_colon
                    into v_date.
      concatenate c_equal c_colon 'Vendor.' c_colon
                    into v_name.
      concatenate c_equal c_colon 'Buyer.' c_colon
                    into v_eknam.
      concatenate c_equal c_colon 'Vendor Code.' c_colon
                    into v_lifnr.
    concatenate
             v_po v_matnr v_maktx v_qty
             v_date v_name v_eknam v_lifnr
             into i_download
             SEPARATED BY con_tab.
      append i_download .
    clear : v_po,v_matnr, v_maktx, v_qty, v_date, v_name, v_eknam,v_lifnr .
    clear wa_output.
    loop at i_output into wa_output.
       on change of wa_output-ebeln.
         clear v_lines.
         loop at i_eket into wa_eket
                 where ebeln = wa_output-ebeln.
           v_lines = v_lines + 1.
           clear wa_eket.
         endloop.
    **-- Checking of page break
         v_lines = sy-linno + v_lines .
         if 55 < v_lines  .
           write:/0(161) sy-uline.
           new-page.
         endif.
      clear v_lines.
          loop at i_eket into wa_eket
                  where ebeln = wa_output-ebeln.
            v_lines = v_lines + 1.
            clear wa_eket.
          endloop.
    *-- Calculating the due qty.
        wa_output-dumng = wa_output-menge - wa_output-wemng.
    *-- Writing the Line items of the PO.
        read table i_ekpo into wa_ekpo
              with key ebeln = wa_output-ebeln
                       ebelp = wa_output-ebelp.
         l_rate = wa_ekpo-netpr / wa_ekpo-peinh.
    *-- Writing of PO detail
         if wa_output-dumng gt 0 .
         v_qty = wa_output-dumng.
        v_date1 = wa_output-eindt.
        v_maktx = wa_output-maktx.
         if wa_output-maktx+0(1) = '"' .
                concatenate  c_equal wa_output-maktx
                   into v_maktx  .
             else .
                concatenate  c_equal c_colon wa_output-maktx c_colon
                   into v_maktx  .
             endif .
       if wa_output-name1+0(1) = '"' .
                concatenate  c_equal wa_output-name1
                   into v_name  .
             else .
                concatenate  c_equal c_colon wa_output-name1 c_colon
                   into v_name  .
             endif .
        v_name = wa_output-name1.
        v_lifnr = wa_output-lifnr.
         write wa_output-eindt to v_date1 DD/MM/YYYY.
         concatenate '="' wa_output-ebeln '/'
                wa_output-ebelp '"' into v_po .
         concatenate '="' wa_output-matnr '"' into v_matnr .
             concatenate  c_equal c_colon wa_output-maktx c_colon
               into v_maktx  .
              concatenate  c_equal c_colon wa_output-dumng c_colon
               into v_qty1  .
               concatenate  c_equal c_colon wa_output-eindt c_colon
               into v_date1  .
              concatenate  c_equal c_colon wa_output-name1 c_colon
               into v_name  .
                concatenate  c_equal c_colon wa_output-eknam c_colon
                into v_eknam  .
              concatenate  c_equal c_colon wa_output-lifnr c_colon
               into v_lifnr  .
              concatenate  c_equal c_colon wa_mard-werks '/'
               wa_mard-lgort c_colon
               into v_lgort .
                 concatenate '="' wa_output-lifnr '"' into v_lifnr .
    condense:v_po,v_matnr, v_maktx, v_qty, v_date, v_name, v_eknam,v_lifnr .
         concatenate
             v_po v_matnr v_maktx v_qty
             v_date1 v_name v_eknam v_lifnr
             into i_download
             SEPARATED BY con_tab.
        concatenate con_cret i_download INTO i_download .
        append i_download .
      endif.
    clear : v_po,v_matnr, v_maktx, v_qty, v_date, v_name, v_eknam,v_lifnr .
    endloop.
    ENDFORM.                    " fill_report_csv
    *&      Form  f_send_internet_mail
          text
    -->  p1        text
    <--  p2        text
    FORM f_send_internet_mail.
    Variables
    data:   it_packing_list like sopcklsti1 occurs 0 with header line,
            it_contents like solisti1 occurs 0 with header line,
            it_receivers like somlreci1 occurs 0 with header line,
            it_attachment like solisti1 occurs 0 with header line,
            gd_cnt type i,
            gd_sent_all(1) type c,
            gd_doc_data like sodocchgi1,
            gd_error type sy-subrc.
    data:   it_message type standard table of SOLISTI1 initial size 0
                    with header line.
    data : found_receiver type c,
           v_title(80) type c,
           l_text(180) type c.
    Fill the document data.
      gd_doc_data-doc_size = 1.
    Adds text to email text table
      append 'Pls see attached open purchase order report.' to it_message.
      append '' to it_message.
      concatenate 'Note: This is system generated report'
                  ', figures may subject to actual physical count.'
                  into l_text separated by space.
      append l_text to it_message.
    Populate the subject/generic message attributes
      CLEAR gd_doc_data.
      READ TABLE i_download INDEX w_cnt.
      gd_doc_data-doc_size =
         ( w_cnt - 1 ) * 255 + STRLEN( i_download ).
      gd_doc_data-obj_langu  = sy-langu.
      gd_doc_data-obj_name   = 'SAPRPT'.
    if p_asdate is initial .
         concatenate p_title ' '
                  sy-datum sy-uzeit into v_title separated by space.
    else .
        concatenate p_title ' '
                 p_bldat p_cputm into v_title separated by space.
    endif .
      gd_doc_data-obj_descr  = v_title .
      gd_doc_data-sensitivty = 'F'.
      CLEAR t_attachment.
      REFRESH t_attachment.
      t_attachment[] = i_download[].
    Describe the body of the message
      clear it_packing_list.
      refresh it_packing_list.
      it_packing_list-transf_bin = space.
      it_packing_list-head_start = 1.
      it_packing_list-head_num = 0.
      it_packing_list-body_start = 1.
      describe table it_message lines it_packing_list-body_num.
      it_packing_list-doc_type = 'RAW'.
      append it_packing_list.
    Create attachment notification
      it_packing_list-transf_bin = 'X'.
      it_packing_list-head_start = 1.
      it_packing_list-head_num   = 1.
      it_packing_list-body_start = 1.
      DESCRIBE TABLE t_attachment LINES it_packing_list-body_num.
      it_packing_list-doc_type   =  'XLS'.
      it_packing_list-obj_descr  =  'OPEN PURCHASE ORDER' .
      it_packing_list-obj_name   =  'PO.XLS' .
      it_packing_list-doc_size   =  it_packing_list-body_num * 255.
      APPEND it_packing_list.
    assign SAP user smtp address from successful retrieval.
      loop at p_email.
    Add the recipients email address
         found_receiver = 'X' .
         it_receivers-receiver = p_email-low.
         it_receivers-rec_type = 'U'.
         it_receivers-com_type = 'INT'.
         it_receivers-notif_del = ''.
         it_receivers-notif_ndel = 'X'.
         append it_receivers .
      endloop .
    Add default recipient email when unable to locate purc group email
       if found_receiver is initial .
           it_receivers-receiver = p_email.
           it_receivers-rec_type = 'U'.
           it_receivers-com_type = 'INT'.
           it_receivers-notif_del = ''.
           it_receivers-notif_ndel = 'X'.
          append it_receivers.
       endif .
    Call the FM to post the message to SAPMAIL
      call function 'SO_NEW_DOCUMENT_ATT_SEND_API1'
           exporting
                document_data              = gd_doc_data
                put_in_outbox              = 'X'
                commit_work                = 'X'
           importing
                sent_to_all                = gd_sent_all
           tables
                packing_list               = it_packing_list
                contents_bin               = t_attachment
                contents_txt               = it_message
                receivers                  = it_receivers
           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                     = 8.
    Store function module return code
      gd_error = sy-subrc.
    Get it_receivers return code
      loop at it_receivers.
      endloop.
    Instructs mail send program for SAPCONNECT to send email.
      wait up to 2 seconds.
      if gd_error eq 0.
          submit rsconn01 with mode = 'INT'
                        with output = ' '
                        and return.
      endif.
    ENDFORM.                    " f_send_internet_mail

    Hi,
    go through this link,
    http://www.sapdevelopment.co.uk/reporting/email/emailhome.htm
    you have some sample programs.
    Regards,
    Raghavendra

  • Report output send through mail

    Dear friends,
    Looking for sample report to send the report output through external mail on execution.
    Regards,
    Praveen Lobo

    *& Report  ZKB_EMAIL
    REPORT  zkb_email NO STANDARD PAGE HEADING LINE-SIZE 200.
    TABLES: ekko.
    PARAMETERS: p_email TYPE somlreci1-receiver
    DEFAULT '<b>WRITE EMAIL ID EG [email protected]'</b>.
    Output Table
    TYPES: BEGIN OF t_ekpo,
    ebeln TYPE ekpo-ebeln,
    ebelp TYPE ekpo-ebelp,
    aedat TYPE ekpo-aedat,
    matnr TYPE ekpo-matnr,
    END OF t_ekpo.
    DATA: it_ekpo TYPE STANDARD TABLE OF t_ekpo INITIAL SIZE 0,
    wa_ekpo TYPE t_ekpo.
    TYPES: BEGIN OF t_charekpo,
    ebeln(10) TYPE c,
    ebelp(5) TYPE c,
    aedat(8) TYPE c,
    matnr(18) TYPE c,
    END OF t_charekpo.
    DATA: wa_charekpo TYPE t_charekpo.
    Mail Parameters
    DATA: it_message TYPE STANDARD TABLE OF solisti1 INITIAL SIZE 0
    WITH HEADER LINE.
    DATA: it_attach TYPE STANDARD TABLE OF solisti1 INITIAL SIZE 0
    WITH HEADER LINE.
    DATA: t_packing_list LIKE sopcklsti1 OCCURS 0 WITH HEADER LINE,
    t_contents LIKE solisti1 OCCURS 0 WITH HEADER LINE,
    t_receivers LIKE somlreci1 OCCURS 0 WITH HEADER LINE,
    t_attachment LIKE solisti1 OCCURS 0 WITH HEADER LINE,
    t_object_header LIKE solisti1 OCCURS 0 WITH HEADER LINE,
    w_cnt TYPE i,
    w_sent_all(1) TYPE c,
    w_doc_data LIKE sodocchgi1,
    gd_error TYPE sy-subrc,
    gd_reciever TYPE sy-subrc.
    *START_OF_SELECTION
    START-OF-SELECTION.
    Retrieve sample data from table ekpo
      PERFORM data_retrieval.
    Populate table with detaisl to be entered into .xls file
      PERFORM build_xls_data_table.
    *END-OF-SELECTION
    END-OF-SELECTION.
    Populate message body text
      PERFORM populate_email_message_body.
    Send file by email as .xls speadsheet
      PERFORM send_file_as_email_attachment   TABLES it_message   it_attach
      USING p_email 'Example .xls documnet attachment'  'XLS'  'filename'
      CHANGING gd_error
      gd_reciever.
    Instructs mail send program for SAPCONNECT to send email(rsconn01)
      PERFORM initiate_mail_execute_program.
    *& Form DATA_RETRIEVAL
    Retrieve data form EKPO table and populate itab it_ekko
    FORM data_retrieval.
      SELECT ebeln ebelp aedat matnr
      UP TO 10 ROWS
      FROM ekpo
      INTO TABLE it_ekpo.
    ENDFORM. " DATA_RETRIEVAL
    *& Form BUILD_XLS_DATA_TABLE
    Build data table for .xls document
    FORM build_xls_data_table.
      CONSTANTS: con_cret TYPE x VALUE '0D', "OK for non Unicode
                 con_tab TYPE x VALUE '09'. "OK for non Unicode
    *If you have Unicode check active in program attributes thnen you will
    *need to declare constants as follows
    *class cl_abap_char_utilities definition load.
    *constants:
    con_tab type c value cl_abap_char_utilities=>HORIZONTAL_TAB,
    con_cret type c value cl_abap_char_utilities=>CR_LF.
      CONCATENATE 'EBELN' 'EBELP' 'AEDAT' 'MATNR'  INTO it_attach SEPARATED BY space.
      CONCATENATE space it_attach INTO it_attach.
      APPEND it_attach.
      LOOP AT it_ekpo INTO wa_charekpo.
        CONCATENATE wa_charekpo-ebeln wa_charekpo-ebelp
        wa_charekpo-aedat wa_charekpo-matnr
        INTO it_attach SEPARATED BY space .
        CONCATENATE space it_attach INTO it_attach.
        APPEND it_attach.
      ENDLOOP.
    ENDFORM. " BUILD_XLS_DATA_TABLE
    *& Form SEND_FILE_AS_EMAIL_ATTACHMENT
    Send email
    FORM send_file_as_email_attachment TABLES pit_message
    pit_attach
    USING p_email
    p_mtitle
    p_format
    p_filename
    p_attdescription
    p_sender_address
    p_sender_addres_type
    CHANGING p_error
    p_reciever.
      DATA: ld_error TYPE sy-subrc,
      ld_reciever TYPE sy-subrc,
      ld_mtitle LIKE sodocchgi1-obj_descr,
      ld_email LIKE somlreci1-receiver,
      ld_format TYPE so_obj_tp ,
      ld_attdescription TYPE so_obj_nam ,
      ld_attfilename TYPE so_obj_des ,
      ld_sender_address LIKE soextreci1-receiver,
      ld_sender_address_type LIKE soextreci1-adr_typ,
      ld_receiver LIKE sy-subrc.
      ld_email = p_email.
      ld_mtitle = p_mtitle.
      ld_format = p_format.
      ld_attdescription = p_attdescription.
      ld_attfilename = p_filename.
      ld_sender_address = p_sender_address.
      ld_sender_address_type = p_sender_addres_type.
    Fill the document data.
      w_doc_data-doc_size = 1.
    Populate the subject/generic message attributes
      w_doc_data-obj_langu = sy-langu.
      w_doc_data-obj_name = 'SAPRPT'.
      w_doc_data-obj_descr = ld_mtitle .
      w_doc_data-sensitivty = 'F'.
    Fill the document data and get size of attachment
      CLEAR w_doc_data.
      READ TABLE it_attach INDEX w_cnt.
      w_doc_data-doc_size =
      ( w_cnt - 1 ) * 255 + STRLEN( it_attach ).
      w_doc_data-obj_langu = sy-langu.
      w_doc_data-obj_name = 'SAPRPT'.
      w_doc_data-obj_descr = ld_mtitle.
      w_doc_data-sensitivty = 'F'.
      w_doc_data-skip_scren = 'X'.
      CLEAR t_attachment.
      REFRESH t_attachment.
      t_attachment[] = pit_attach[].
    Describe the body of the message
      CLEAR t_packing_list.
      REFRESH t_packing_list.
      t_packing_list-transf_bin = space.
      t_packing_list-head_start = 1.
      t_packing_list-head_num = 0.
      t_packing_list-body_start = 1.
      DESCRIBE TABLE it_message LINES t_packing_list-body_num.
      t_packing_list-doc_type = 'RAW'.
      APPEND t_packing_list.
    Create attachment notification
      t_packing_list-transf_bin = 'X'.
      t_packing_list-head_start = 1.
      t_packing_list-head_num = 1.
      t_packing_list-body_start = 1.
      DESCRIBE TABLE t_attachment LINES t_packing_list-body_num.
      t_packing_list-doc_type = ld_format.
      t_packing_list-obj_descr = ld_attdescription.
      t_packing_list-obj_name = ld_attfilename.
      t_packing_list-doc_size = t_packing_list-body_num * 255.
      APPEND t_packing_list.
    Add the recipients email address
      CLEAR t_receivers.
      REFRESH t_receivers.
      t_receivers-receiver = ld_email.
      t_receivers-rec_type = 'U'.
      APPEND t_receivers.
      CLEAR t_receivers.
      t_receivers-receiver = sy-uname. " replace with <login name>
      t_receivers-rec_type = 'B'.
      t_receivers-express = 'X'.
      APPEND t_receivers.
      CLEAR t_receivers.
      CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
        EXPORTING
          document_data              = w_doc_data
          put_in_outbox              = 'X'
          sender_address             = ld_sender_address
          sender_address_type        = ld_sender_address_type
          commit_work                = 'X'
        IMPORTING
          sent_to_all                = w_sent_all
        TABLES
          packing_list               = t_packing_list
          contents_bin               = t_attachment
          contents_txt               = it_message
          receivers                  = t_receivers
        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                     = 8.
    Populate zerror return code
      ld_error = sy-subrc.
    Populate zreceiver return code
      LOOP AT t_receivers.
        ld_receiver = t_receivers-retrn_code.
      ENDLOOP.
    ENDFORM.                    "SEND_FILE_AS_EMAIL_ATTACHMENT
    *& Form INITIATE_MAIL_EXECUTE_PROGRAM
    Instructs mail send program for SAPCONNECT to send email.
    FORM initiate_mail_execute_program.
      WAIT UP TO 2 SECONDS.
      SUBMIT rsconn01 WITH mode = 'INT'
    WITH output = 'X'
      AND RETURN.
    ENDFORM. " INITIATE_MAIL_EXECUTE_PROGRAM
    *& Form POPULATE_EMAIL_MESSAGE_BODY
    Populate message body text
    FORM populate_email_message_body.
      REFRESH it_message.
      it_message = 'Please find attached a list test ekpo records'.
      APPEND it_message.
    ENDFORM. " POPULATE_EMAIL_MESSAGE_BODY
    Rewards if useful.............
    Minal

  • User exit to change vendor e-mail address used for PO output via e-mail...

    We have two vendor e-mail addresses for a particular vendor. Ignoring output determination, it looks like I will need to control which of the two e-mail vendor addresses is used when the PO is output via e-mail.
    The default is the first one e-mail address, but for PO's I would like to force the second vendor e-mail address.
    There are tonnes of exits available for PO output by the looks of it so I am trying to discover which is relevant for what I am trying to achieve.
    Jas
    Edited by: Jason Stratham on Apr 30, 2009 5:53 PM

    Thanks Martin,
    I guess that's the same path that I took earlier when using SPRO and looking at the Purchasing->Messages. In my case it's ZMEDRUCK, but that does not help me in regards to controlling the vendors e-mail address being used. When sending the PO as an e-mail it uses (by default) the first e-mail address of the Vendor, whereas the vendor could have multiple ones. In my test case my vendor has two addresses but it always defaults to using the first. I know that I need to modify this behaviour somehow, but how I have no idea as I can find no Exit routine.
    Jas

  • Report Output to be mailed as an attachment-On Schedule

    Hi ,
    I have a requirement to develop a oracle report with reportbuilder6i,the report output should be in excel format,needs to be run every monday and has to be mailed to some id [email protected]
    While converting it to excel output emp.xls using text_io iam saving it in some location .I want that emp.xls to be mailed to an email id ,also the report has to be scheduled to run periodically.
    If any one has done it,can u share the details and code.
    Thanks in Advance.
    Regards,
    Roja

    At the first outset, I dont think, this is possible.  Moreover, this approach is definitely not recommended since it will severely impact on the system performance and if there is a Security Team, they will not allow to have this practice.
    Normally, either we can send as PDF attachment to any internal user via email or this can also be sent externally via PDF.  There is also an option to view as PDF from the existing output itself.
    G. Lakshmipathi

  • Send report output via email as zipped attachment

    Is it possible for the report output to be zipped before being attached to an email when running on a windows reports_server? On unix we theoretically have the ability to modify the mail.sh shell script that performs the mail operation for reports.

    Hi Richard
    This is a Reports 9i solution.
    You may create a batch file that runs the report, compresses the file and invokes, say, a Java application that mails the given .zip file.
    More "advanced" options would be:
    You may create a pluggable destination that captures report output. Next, your code does the compresses the output file and mails it.
    A simpler solution would be to run two reports. First, that creates the reports output file. In its AFTER_REPORT trigger, call Java method (thru. Java Importer), that picks up the output file and compresses it. Second, that uses XML distribution feature of Reports 9i and mails the .zip file as a file attachment using appropriate construct.
    Regard
    Sripathy

  • Link to SAP Report Output from SAP Mail Inbox

    Hi Experts,
    I wants to send a link of SAP  ALV  Report output screen to SAP mail inbox and if a user clicks that link ,the report output
    screen should open and user has to see & interact  the ouput of that  ALV Report.how can i achieve this without webdynpro
    and workflow.
    Regards,
    Veera.

    Hi Asif
    When I said 'pdf/rtf/html/htmlcss', I meant any one of the above.
    You need to run the report as:
    rwrun60 <report_name> <connection_string> desformat=pdf destype=mail desname=<email_id> batch=yes
    In case you want to mail as HTMLCSS, replace PDF in DESFORMAT option in the above command to:
    DESFORMAT=HTMLCSS.
    Regards
    Sripathy

  • Call Report output via a Button click

    Hello,
    I am using a button placed on a SCREEN.
    WHen i click on the button i am doing some process using on user command.
    I want the output on a report (as a list output) based ob my write statments
    I tried with  leave to list processing , set screen 0..etc stuff but thats not calling my report output.
    Can any one suggest?
    Thanks
    Ricky

    hmmm... sounds to me like you're looking for something like
    * Print report
      NEW-PAGE PRINT ON NEW-SECTION PARAMETERS Z_L_PRI_PARAMS NO DIALOG.
      FORMAT COLOR COL_BACKGROUND INTENSIFIED OFF.
      LOOP AT Z_T_ITAB INTO Z_L_ITAB.
        WRITE: / SY-VLINE(01), Z_L_ITAB-EBELN,
                 SY-VLINE(01), Z_L_ITAB-EBELP,
                 SY-VLINE(01), Z_L_ITAB-AEDAT,
                 SY-VLINE(01), Z_L_ITAB-OID_EXTBOL.
      ENDLOOP.
      NEW-PAGE PRINT OFF.
      COMMIT WORK AND WAIT.
    Lookup NEW-PAGE

  • Automatically produce Reports output via Portal

    Hi.
    I'm new to Oracle Portal, so please excuse if I ask a stupid question.
    We have some Oracle Report Builder reports, which we'd like to automate (automatically produce the output for the users). Is there some way of defining it in Portal so that it automatically via URL's or something runs these reports to produce the output automatically ?
    If not, then I suppose we'll probably be using CRON to automate them....
    Thank you.
    Marcel

    Hi,
    All the components have something have called the batch mode which submits this job
    to the job queue. This option also stores the results in the database for a period
    of time which you can change. You can see if this helps.
    thanks,
    Sharmila

  • To send report output to a mail with PDF attachment

    Hi All,
    I have developed a code and the output of the code as to send to a mial id's mentioned on the selection screen with a PDF attachemnt.
    So can any one suggest me how to do and it won't run in background it should always run in foreground.
    Any examples please let me know ASAP.
    Thanks
    Sagar.

    Hi Try this code with the same requirement i have also been working with i have got this code in SDN.
    Check this copy paste and execute i am getting the PDF file but not opening any how try and see
    *& Report  ZSDNF                                                       *
    REPORT  ZSDNF.
    TABLES :
      vbak,
      vbap,
      vbpa,
      mara.
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    SELECT-OPTIONS:
    s_vkorg FOR vbak-vkorg OBLIGATORY,
    s_vtweg FOR vbak-vtweg OBLIGATORY,
    s_spart FOR vbak-spart OBLIGATORY.
    SELECTION-SCREEN END OF BLOCK b1.
    SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-002.
    SELECT-OPTIONS:
    s_vbeln FOR vbak-vbeln,
    s_matnr FOR mara-matnr.
    PARAMETERS:
    p_kunnr TYPE vbak-kunnr.
    SELECT-OPTIONS:
    s_erdat FOR vbak-erdat OBLIGATORY.
    SELECTION-SCREEN END OF BLOCK b2.
    DATA : w_spono  LIKE  tsp01-rqident,
         w_binsize TYPE i,
         w_filelen TYPE i,
         t_sale LIKE TABLE OF tline WITH HEADER LINE.
    DATA:
    BEGIN OF t_sales OCCURS 0,
      vbeln TYPE vbak-vbeln,
      vkorg TYPE vbak-vkorg,
      vtweg TYPE vbak-vtweg,
      spart TYPE vbak-spart,
      erdat TYPE vbak-erdat,
      kunnr TYPE vbak-kunnr,
      posnr TYPE vbap-posnr,
      matnr TYPE vbap-matnr,
      arktx TYPE vbap-arktx,
      parvw TYPE vbpa-parvw,
      kwmeng TYPE vbap-kwmeng,
      kunnr1 TYPE vbpa-kunnr ,
    END OF t_sales.
    START-OF-SELECTION.
      SELECT vbak~vbeln
             vkorg
             vtweg
             vbak~spart
             vbak~erdat
             vbak~kunnr
             vbap~posnr
             matnr
              arktx
              parvw
             kwmeng
             vbpa~kunnr
        INTO CORRESPONDING FIELDS OF TABLE t_sales
        FROM ( ( vbak JOIN vbap ON vbapvbeln EQ vbakvbeln )
        JOIN vbpa ON vbpavbeln EQ vbakvbeln
                            and vbpaposnr eq vbapposnr
                               AND vbpa~parvw EQ 'WE' )
        WHERE vkorg IN s_vkorg
          AND vtweg IN s_vtweg
          AND vbak~spart IN s_spart
          AND vbak~vbeln IN s_vbeln
          AND matnr IN s_matnr
          AND vbak~kunnr EQ p_kunnr
          AND vbak~erdat IN s_erdat.
      IF sy-subrc EQ 0.
        NEW-PAGE PRINT ON.
        PERFORM display_sales_data.
        NEW-PAGE PRINT OFF.
      ELSE.
        MESSAGE 'No records found with the spcified criteria' TYPE 'E'.
      ENDIF.
      w_spono = sy-spono.
      CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
        EXPORTING
          src_spoolid                    = w_spono
      NO_DIALOG                      =
      DST_DEVICE                     =
      PDF_DESTINATION                =
       IMPORTING
         pdf_bytecount                  = w_binsize
      PDF_SPOOLID                    =
      LIST_PAGECOUNT                 =
      BTC_JOBNAME                    =
      BTC_JOBCOUNT                   =
       TABLES
         pdf                            = t_sale
       EXCEPTIONS
         err_no_abap_spooljob           = 1
         err_no_spooljob                = 2
         err_no_permission              = 3
         err_conv_not_possible          = 4
         err_bad_destdevice             = 5
         user_cancelled                 = 6
         err_spoolerror                 = 7
         err_temseerror                 = 8
         err_btcjob_open_failed         = 9
         err_btcjob_submit_failed       = 10
         err_btcjob_close_failed        = 11
         OTHERS                         = 12
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      CALL FUNCTION 'GUI_DOWNLOAD'
        EXPORTING
         bin_filesize                  = w_binsize
          filename                      =
                 'C:\Documents and Settings\Desktop\SO.pdf'
         filetype                      = 'BIN'
      APPEND                        = ' '
      WRITE_FIELD_SEPARATOR         = 'X'
      HEADER                        = '00'
      TRUNC_TRAILING_BLANKS         = ' '
      WRITE_LF                      = 'X'
      COL_SELECT                    = ' '
      COL_SELECT_MASK               = ' '
      DAT_MODE                      = ' '
      CONFIRM_OVERWRITE             = ' '
      NO_AUTH_CHECK                 = ' '
      CODEPAGE                      = ' '
      IGNORE_CERR                   = ABAP_TRUE
      REPLACEMENT                   = '#'
      WRITE_BOM                     = ' '
    IMPORTING
      FILELENGTH                    = w_filelen
        TABLES
          data_tab                      = t_sale
       EXCEPTIONS
         file_write_error              = 1
         no_batch                      = 2
         gui_refuse_filetransfer       = 3
         invalid_type                  = 4
         no_authority                  = 5
         unknown_error                 = 6
         header_not_allowed            = 7
         separator_not_allowed         = 8
         filesize_not_allowed          = 9
         header_too_long               = 10
         dp_error_create               = 11
         dp_error_send                 = 12
         dp_error_write                = 13
         unknown_dp_error              = 14
         access_denied                 = 15
         dp_out_of_memory              = 16
         disk_full                     = 17
         dp_timeout                    = 18
         file_not_found                = 19
         dataprovider_exception        = 20
         control_flush_error           = 21
         OTHERS                        = 22
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    *&      Form  display_sales_data
       This subroutine is used to display the sales report               *
       No interface parameters
    FORM display_sales_data .
      LOOP AT t_sales.
        AT NEW spart.
          SKIP 3.
          WRITE :/ 'Sales Organization : ', t_sales-vkorg,
            / 'Distribution Channel : ', t_sales-vtweg,
            / 'Division             : ', t_sales-spart.
          SKIP.
          WRITE:/ 'Sales Order'(001),
            15 'Order Date'(002),
            30 'Sold-to-party'(003),
            50 'Ship-to-party'(004),
            65 'Item'(005),
            75 'Material'(006),
            90 'Quantity'(007).
          SKIP.
        ENDAT.
        IF t_sales-kunnr1 IS INITIAL.
          t_sales-kunnr1 = p_kunnr.
        ENDIF.
        WRITE :/ t_sales-vbeln UNDER text-001,
          t_sales-erdat UNDER text-002,
          t_sales-kunnr UNDER text-003,
          t_sales-kunnr1 UNDER text-004,
          t_sales-posnr UNDER text-005,
          t_sales-matnr UNDER text-006,
          t_sales-kwmeng UNDER text-007.
      ENDLOOP.
    ENDFORM.

  • Scheduled Report Output to Printer

    Hi Guys,
    hope you are all well.
    Can someone help me.  I am have created a report and set this to be schedule at X time.  I need the report output via Business Objects XI to be to Printer.
    I have set up a printer and set it as a shared printer on the same server BO runs on.  I have also set the printer to Default.  When I schedule the report and set the Print Settings to Default Printer it does not print...no error messages...but no print.  Helppppp as I am going mad.
    Many thanks

    We just recently migrated to XI R2 on a new server, and did not consider the print settings...until a user noticed they could not print like normal
    We recreated the printers on the new server, and people could then choose a specific printer now. (We named the printers the same as the print ID on the server.)
    However, people could not choose Default Printer in Infoview (during Schedule). When they chose it, the report would be successful, but we were not sure where the output would go.
    I found a few articles on Knowledge base, and I think #1 and #2 may be our best alternatives.
    1202786 - A Crystal report printed through InfoView does not use the default printer on the client computer
    1203768 - The default printer is not chosen when printing from Infoview
    This last one seems little drastic - all scheduled reports on a jobs server would take the behavior of the job server. This seems excessive.
    1217095 - Report does not print when scheduled to printer in Crystal Enterprise or BusinessObjects Enterprise
    Article #1 &2 will require retooling of the rpt files, but we plan to address the user issues on a per report basis.
    Walter

  • Output by E-mail

    Hi friends,
    Please help me out . How to configure the billing output by E-mail to customer
    Thanks
    Sai

    Hi Sai Krishna,
    If your SD output configuration is set up correctly, an e-mail from SAP using medium 5 should go through just fine via SAPconnect (transaction SCOT). When it works, the external recipient should receive an e-mail with a PDF attachment containing the form image, regardless of whether it has been created via SAPscript or Smart Forms. Depending on your output determination settings, this even can happen in the background, without any interaction with the SAP front end (e.g. for invoices created automatically by a batch job).
    Typically, a failed send will be flagged in the message control table (NAST), and this table should be monitored closely. However, there are many reasons why a document hasn't gone through, and this can be the case with both outgoing faxes and e-mails from SAP. The solution to both is the same: After identifying the failed document, re-send it manually by going inside it in change mode and repeating the appropriate output. If an obsolete customer e-mail address was the culprit, a customer master change would also be required, along with an audit of any docs recently created for this customer.
    If any underlying data has changed since initial issuance, a re-sent document may not appear identical to the (failed) original. Sometimes, as when address info has been corrected, this can be a good thing. After all, the new document is more accurate than the old one.
    In other cases, such as when pricing info has changed, it might be a cause for serious concern. There are several ways to deal with this concern:
    1) Limit the types of changes allowed on certain docs after creation
    2) Set up a doc image archive via ArchiveLink and re-issue output from there instead of from the current doc; or
    3) For highly sensitive docs, consider a more secure delivery method.
    REFER BELOW LINK
    Sending a Smart Form output via e-mail
    you need to maintain the email address of the customer in the customer master and then need to configure the output type in the NACE transction .and in the settings choose the medium as email.
    http://help.sap.com/saphelp_nw04/helpdata/en/dc/6b7c9f43d711d1893e0000e8323c4f/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/69/e5cb365f6511d2b458006094b9476a/content.htm
    check the above links
    Rewards if Helpful...
    Regards...
    Praveen Kumar.D

  • Task Outputs Send e-mail message

    Hi all,
    When I run a task from scom operations console, a new window opens and I can see the result and task output as usual.
    Is it possible to send that task output via e-mail message to corresponding department'e e-mail address.
    Regards.

    Hi,
    In addition, for more information and usage about the commands Get-Task and Get-TaskResult, please also refer to:
    Get-Task
    http://technet.microsoft.com/en-us/library/gg132265.aspx
    Get-TaskResult
    http://technet.microsoft.com/en-us/library/gg132216.aspx
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]

  • Report output to be sent via mail

    Hi Experts,
    I want to send my customized ABAP report output to an email address (e.g my own email ID) as I need to send to the vendor (who doesn't have SAP access) as per the requirement.
    Can you please let me know is there any transaction or any other way with the help of which i can just input this report name and the email Id and then it will automatically send the output of the report to that email id.
    Thanks in advance.
    Any helpful entry will be rewarded.
    Warm regards,
    Raman.

    You might want to write a small program that retrieves your spool information, and send the corresponding ALV (internal table) by converting it and sending it via SAP Connect. Here is a sample of hos to attach and send your internal table:
    FORM send_file .
      DATA: send_request       TYPE REF TO cl_bcs,
            text               TYPE bcsy_text,
            document           TYPE REF TO cl_document_bcs,
            recipient          TYPE REF TO if_recipient_bcs,
            copy               TYPE ad_smtpadr,
            bcs_exception      TYPE REF TO cx_bcs,
            sent_to_all        TYPE os_boolean,
            att_name           TYPE sood-objdes,
            subject            TYPE so_obj_des.
    Get attachment name
      CONCATENATE g_ret_id '_' sy-datum sy-uzeit '_' g_fileid '.CSV' INTO
      att_name.
      TRY.
    Create the send request
          send_request = cl_bcs=>create_persistent( ).
    Create the document with attachments
    Main document
            APPEND 'Attachment test' TO text.
          document = cl_document_bcs=>create_document(
                        i_type    = 'RAW'
                        i_text    = text
                        i_subject = subject ).
    Add text attachment to document
          document->add_attachment( i_attachment_type    = 'CSV'
                                    i_attachment_subject = att_name
                                    i_att_content_text   = itab_file ).
          send_request->set_document( document ).
    Create recipient and add to send request
          LOOP AT itab_recipients INTO wa_recipients.
            IF wa_recipients-copy IS INITIAL.
              "To recipient
              MOVE wa_recipients-address TO g_rec_send.
              recipient = cl_cam_address_bcs=>create_internet_address(
              g_rec_send ).
              send_request->add_recipient( i_recipient = recipient ).
              CLEAR g_rec_send.
            ELSE.
              "CC
              MOVE wa_recipients-address TO g_rec_send.
              recipient = cl_cam_address_bcs=>create_internet_address(
              g_rec_send ).
              send_request->add_recipient( i_recipient = recipient
                                           i_copy = 'X' ).
              CLEAR g_rec_send.
            ENDIF.
          ENDLOOP.
    Send
          sent_to_all = send_request->send( i_with_error_screen = 'X' ).
          IF sent_to_all = 'X'.
            MESSAGE s022.
          ENDIF.
        CATCH cx_bcs INTO bcs_exception.
          MESSAGE e865 WITH bcs_exception->error_type.
      ENDTRY.
    ENDFORM.                    " send_file
    REPORT TO EMAIL
    ALV output to email
    How to send ALV Grid report to Email?
    Check the code...on http://sap4.com/wiki/index.php?title=ZOUTLOOK
    sending the output of a program through an email
    report output to email
    Sending ABAP Report by email
    Rewards if useful..............
    Minal

  • How to zip report output and send via mail from application

    Hello,
    I want to know how to zip the report output and send it by mail to concerned person from application
    I want this as the report is having more than 70000s of records.
    Also the XLS has the limitation of 2^16 records and the report is having more than this
    Any help is very much appreciated
    Regards,
    Vani

    1: Make a Dummy report. From some post parameter form trigger, run your original report with "srw.runreport" call. The original report can generate output to a file.
    2: Then withing this dummy report run, call a user exit to zip the
    original reports output. You need to write this user exit and attach them
    with reports.
    3: Now use Report 9i distribution for this dummy report to sent this external zip file through mail.
    With Regards
    Reports Team

Maybe you are looking for

  • Firefox slow to start and websites won't load?

    Setup: Windows Vista. Firefox 4.0.1. McAfee Total Protection 2011. Wireless home network. As of yesterday everything worked well. Tonight I am having problems 1) connecting to the internet - I have to reconnect to my router before it accesses the int

  • Call T.Code MB5B from with in BSP

    Hi All        i want ur's guidance on calling a Report Transaction Code (T.Code) from with in the  BSP.        Like T.Code MB5B is for Stock on Posting date . i want to call it in BSP with in the frame. please guide me . Regards Sachin

  • Regarding Activation of Datasource error

    We have replicated datasource from R3 source system and while trying to activate it was posting error of while activation of transfer structure with conversion exits., We are using 7.0 datasource only. We checked at RSA3 of datasource and data is com

  • Lightroom saves PSD files larger than needed ? ?

    Keep in mind that I am fitting into a large corperate work flow so certain things can not be changed.  Any hep much apreciated!! Software: LR5 PS CC Work flow and how problem presents it self: -A Jpeg is supplied to be clearcut -Jpeg is imported into

  • Writing file in applet

    My applet needs to write a temp file and then open it based on user demand. Obviously I can't write it to their file system. I want to write it to a folder specified on my webserver in the same location as my applet. What's the best way to achieve th