Financial Reporting - Scheduling a Batch to Output/Email an Excel File

We're using version 9 and have no good way to systematically schedule a batch report and have the output saved/emailed as an Excel file, only pdf. Is this functionality in version 11? Has anyone developed creative alternatives?
Thanks

You may be able to utilize Excel and SmartView VBA features to achieve the same goal as this. With enhanced security in the newer realeases of Excel automacally sending emails could be a bit tricky, but if you look around on the web you should be able to find something with this ability. I'm not sure that you could use an FR report, but a report utilizing HSGetValue or ad-hoc functionality should function.

Similar Messages

  • Hyperion S9 BI+ 9.3 Financial Reporting Scheduler is stooping automaticall

    Hi while starting services Hyperion S9 BI+ 9.3 Financial Reporting Scheduler Server is stopping automatically why this is and if i launch FR Studio i am getting a error message "You are not authorized person. Contact your administrator" could I know the reason and how can i rectify.

    Hi,
    I believe- What you mentioned is a classic example of Memory leakage with Windows-Hyperion duo.
    We used to face similar situation with Windows & Hyperion EIS. So, during the off hours, a scheduled batch script kills
    the process & re-start the service +(as you seem to be now doing manually)+ .
    TASKKILL /F /IM olapisvr.exe > %LogFile%
    NET START "Hyperion Analytic Integration Server"  >> %LogFile%
    I'm not quite comfortable with this solution. However, we didn't face problems after doing this.
    - Natesh

  • Query output transfer to excel file

    hi all,
    how can i query output transfer to excel file ? i am not using any tool. please suggest me. is there any method that i transfer that output to excel file?

    You can create a csv file. See dump_csv function from Tom Kyte.

  • Financial Reports - Schedule Batch

    I have a report Book that has a User POV. In the Book, the reports are set to Book POV. There are multiple reports in the book, with 3 different datasources. I have created a batch with this report books. I am trying to schedule the batch using "MULITPLE" members for the POV so that the batch creates mutliple books - one for each of the cost centers in my Multiple Batch POV. The issue is that I cannot seem to define the Multiple POV list for all three datasources - only the last one seems to count, the rest resort back to the User POV? Does this only work if the report has onl a single Datasource or is there something special that has to be done to override the User POV with the Batch POV for each of the three datasources?

    You are probably better off posting this in Reporting forum
    Hyperion Query and Reporting
    Cheers,
    Abhishek

  • App Store Financial Report Schedule

    Hi, everyone,
    So my app went up for sale on Oct. 13. I'm wondering what the schedule is for receiving the financial report and then payment. Reading the forum, I see that payment does come about three weeks after the financial reports come, but when do the financial reports come? I had expected that I would receive one close to the beginning of this month, but none has come yet. Is a month defined to be "a month from the day your app went on sale," i.e., will I see a financial report closer to Nov. 13? Is it just that I won't receive one for October because my app wasn't for sale the entire month? Just trying to get a sense of when I can expect to receive a report and then payment.
    Thanks!

    Report for October should be available next week or so. The payment comes up to 45 days after that.

  • Crystal Reports Schedule using Batch File

    Hi,
    I am trying to automatically export Crystal Reports using a Batch file and Windows Task Scheduler. It sucessfully opens Crystal, but doesn't perform the export.
    "C:\Program Files\Business Objects\Crystal Reports 11.5\crw32.exe" "C:\reportname.rpt" /X 36 /D 1 /FN "C:\report export name.xls"
    Any help would be greatly appreciated.
    Thanks,
    Nick
    Edited by: NickHofmeyr on Apr 26, 2010 11:22 AM

    Hello,
    Sorry but CR doesn't support command line running of reports. You can use Crystal Reports Server, Businessobjects Enterprise or some third party tool that uses Crystal runtime.
    Thank you
    Don

  • Report output to MS. Excell file

    I want to print my report to MS. Excell file,
    Is there any driver to do that ?
    Or Is there anyway to do that ?
    I need the solution ASAP.
    Thank You
    ardian
    null

    Ardian B. Santoso (guest) wrote:
    : I want to print my report to MS. Excell file,
    : Is there any driver to do that ?
    : Or Is there anyway to do that ?
    : I need the solution ASAP.
    : Thank You
    : ardian
    Hi Ardian B. Santoso,
    1. Develop the Report in Character Mode.
    2. Save the O/P to file.
    3. And open the file with MS Excel.
    I hope this would be helpful for U.
    Have a Good Weekend.
    Good Luck
    Senthil Ramasamy
    null

  • Emailing the excel file

    Hi experts
    I want to send an excel file via email.
    can u plz send me the complete code with an example........
    Points should be rewarded if useful.
    Thanks and regards
    Ganesh Reddy

    Hi Ganesh ...
    Here is sample code .. which helps out ...
    REPORT z_mail_xls_attach.
    " Data retrieval related declarations
    TYPES:
    BEGIN OF t_emp_dat,
    pernr TYPE pa0001-pernr,
    persg TYPE pa0001-persg,
    persk TYPE pa0001-persk,
    plans TYPE pa0001-plans,
    stell TYPE pa0001-stell,
    END OF t_emp_dat.
    DATA:
    w_emp_data TYPE t_emp_dat.
    DATA:
    i_emp_data TYPE STANDARD TABLE OF t_emp_dat.
    " Mail related declarations
    "Variables
    DATA :
    g_sent_to_all TYPE sonv-flag,
    g_tab_lines TYPE i.
    "Types
    TYPES:
    t_document_data TYPE sodocchgi1,
    t_packing_list TYPE sopcklsti1,
    t_attachment TYPE solisti1,
    t_body_msg TYPE solisti1,
    t_receivers TYPE somlreci1.
    "Workareas
    DATA :
    w_document_data TYPE t_document_data,
    w_packing_list TYPE t_packing_list,
    w_attachment TYPE t_attachment,
    w_body_msg TYPE t_body_msg,
    w_receivers TYPE t_receivers.
    "Internal Tables
    DATA :
    i_document_data TYPE STANDARD TABLE OF t_document_data,
    i_packing_list TYPE STANDARD TABLE OF t_packing_list,
    i_attachment TYPE STANDARD TABLE OF t_attachment,
    i_body_msg TYPE STANDARD TABLE OF t_body_msg,
    i_receivers TYPE STANDARD TABLE OF t_receivers.
    "Start-of-selection.
    START-OF-SELECTION.
    PERFORM get_data.
    PERFORM build_xls_data_table.
    "End-of-selection.
    END-OF-SELECTION.
    PERFORM send_mail.
    "Form get_data from PA0001
    FORM get_data.
    SELECT pernr
    persg
    persk
    plans
    stell
    FROM pa0001
    INTO CORRESPONDING FIELDS OF TABLE i_emp_data
    UP TO 4 ROWS.
    ENDFORM. " get_data
    "Form build_xls_data_table
    FORM build_xls_data_table.
    "If you have Unicode check active in program attributes then
    "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 'PERNR' 'PERSG' 'PERSK' 'PLANS' 'STELL'
    INTO w_attachment
    SEPARATED BY con_tab.
    CONCATENATE con_cret
    w_attachment
    INTO w_attachment.
    APPEND w_attachment TO i_attachment.
    CLEAR w_attachment.
    LOOP AT i_emp_data INTO w_emp_data.
    CONCATENATE w_emp_data-pernr
    w_emp_data-persg
    w_emp_data-persk
    w_emp_data-plans
    w_emp_data-stell
    INTO w_attachment
    SEPARATED BY con_tab.
    CONCATENATE con_cret w_attachment
    INTO w_attachment.
    APPEND w_attachment TO i_attachment.
    CLEAR w_attachment.
    ENDLOOP.
    ENDFORM. "build_xls_data_table
    "Form send_mail
    "PACKING LIST
    "This table requires information about how the data in the
    "tables OBJECT_HEADER, CONTENTS_BIN and CONTENTS_TXT are to
    "be distributed to the documents and its attachments.The first
    "row is for the document, the following rows are each for one
    "attachment.
    FORM send_mail .
    "Subject of the mail.
    w_document_data-obj_name = 'MAIL_TO_HEAD'.
    w_document_data-obj_descr = 'Regarding Mail Program by SAP ABAP'.
    "Body of the mail
    PERFORM build_body_of_mail
    USING:space,
    'Hi,',
    'I am fine. How are you? How are you doing ? ',
    'This program has been created to send simple mail',
    'with Subject,Body with Address of the sender. ',
    'Regards,',
    'Venkat.O,',
    'SAP HR Technical Consultant.'.
    "Write Packing List for Body
    DESCRIBE TABLE i_body_msg LINES g_tab_lines.
    w_packing_list-head_start = 1.
    w_packing_list-head_num = 0.
    w_packing_list-body_start = 1.
    w_packing_list-body_num = g_tab_lines.
    w_packing_list-doc_type = 'RAW'.
    APPEND w_packing_list TO i_packing_list.
    CLEAR w_packing_list.
    "Write Packing List for Attachment
    w_packing_list-transf_bin = 'X'.
    w_packing_list-head_start = 1.
    w_packing_list-head_num = 1.
    w_packing_list-body_start = 1.
    DESCRIBE TABLE i_attachment LINES w_packing_list-body_num.
    w_packing_list-doc_type = 'XLS'.
    w_packing_list-obj_descr = 'Excell Attachment'.
    w_packing_list-obj_name = 'XLS_ATTACHMENT'.
    w_packing_list-doc_size = w_packing_list-body_num * 255.
    APPEND w_packing_list TO i_packing_list.
    CLEAR w_packing_list.
    "Fill the document data and get size of attachment
    w_document_data-obj_langu = sy-langu.
    READ TABLE i_attachment INTO w_attachment INDEX g_tab_lines.
    w_document_data-doc_size = ( g_tab_lines - 1 ) * 255 + STRLEN(
    w_attachment ).
    "Receivers List.
    w_receivers-rec_type = 'U'. "Internet address
    w_receivers-receiver = 'Enter ur mail id'.
    w_receivers-com_type = 'INT'.
    w_receivers-notif_del = 'X'.
    w_receivers-notif_ndel = 'X'.
    APPEND w_receivers TO i_receivers .
    CLEAR:w_receivers.
    "Function module to send mail to Recipients
    CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
    EXPORTING
    document_data = w_document_data
    put_in_outbox = 'X'
    commit_work = 'X'
    IMPORTING
    sent_to_all = g_sent_to_all
    TABLES
    packing_list = i_packing_list
    contents_bin = i_attachment
    contents_txt = i_body_msg
    receivers = i_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.
    IF sy-subrc = 0 .
    MESSAGE i303(me) WITH 'Mail has been Successfully Sent.'.
    ELSE.
    WAIT UP TO 2 SECONDS.
    "This program starts the SAPconnect send process.
    SUBMIT rsconn01 WITH mode = 'INT'
    WITH output = 'X'
    AND RETURN.
    ENDIF.
    ENDFORM. " send_mail
    " Form build_body_of_mail
    FORM build_body_of_mail USING l_message.
    w_body_msg = l_message.
    APPEND w_body_msg TO i_body_msg.
    CLEAR w_body_msg.
    ENDFORM. " build_body_of_mail
    Regards,
    sg

  • Alv output- download to excel file

    Hi
    I have ALV report. My requirement is
    For example i have 10 records in my ALV output.
    I want to download first 5 data to excel file.
    so i need to select the data and click the button download in alv screen. I created the download button in ALV screen.
    how to write coding for this

    Hi Kumar K,
    U can do it by feeling another internal table from the final internal table which u displayed...
    suppose u want the record 5 to 12 then
    LOOP AT itab FROM 5 TO 12.
    Append itab to itab2.
    ENDLOOP.
    So now Itab2 contains record 5 to 12...
    Logic:
    Create one Custom Button ... Now For Sy-ucomm of that button... provide popup window with FROM and TO parameters...
    Then using Loop... Endloop... select that much records form internal table to another internal table say itab2...
    Now using GUI_DOWNLOAD or WS_DOWNLOAD or any other FMs and pass the internal table to this FM...
    For more information on LOOP Syntax...
    LOOP AT itab - cond
    Syntax
    ... [FROM idx1] [TO idx2] [WHERE log_exp].
    Extras:
    1. ... FROM idx1
    2. ... TO idx2
    3. ... WHERE log_exp
    Effect
    The table rows to be read in a LOOP-loop can be limited by optional conditions; if no conditions are specified , all rows of the table are read.
    Addition 1
    ... FROM idx1
    Effect
    The specification FROM is only possible with standard tables and sorted tables. This specification only accepts table rows starting from table index idx1. For idx1, a data object of the type i is expected. If the value of idx1 is smaller or equal to 0, then it will be set to 1. If the value is larger than the number of table rows, the loop is not passed through.
    Addition 2
    ... TO idx2
    Effect
    The specification TO is only possible with standard tables and sorted tables. The specification only accepts table rows after table index idx2. For idx2, a data object of the type i is expected. If the value of idx2 is smaller or equal to 0, then the loop will not be passed. If the value is larger than the number of table rows, then the value will be set to the number of rows. If idx2 is smaller than idx1, then the loop is not passed as well.
    Addition 3
    ... WHERE log_exp
    Effect
    WHERE can be specified with all table-types. After WHERE, you can specify any logical expression log_exp in which the first operand of any singular comparison is a component of the internal table. For this reason, all logical expressions are possible except for IS ASSIGNED, IS REQUESTED and IS SUPPLIED. Dynamic specification of a component through bracketed character-type data objects is not possible. Loops at sorted tables must have compatible operands of the logical expression. All rows are read for which the logical expression is true.
    Notes
    The logical expression specified after WHERE is analyzed once at entry into the loop. Possible changes of the second operand during loop processing are not taken into account.
    While with standard tables all rows of the internal table are checked for the logical expression of the WHERE- addition, with sorted tables and hash tables (as of Release 7.0) you can achieve optimized access by checking that at least the beginning part of the table key in sorted tables and the entire table key in hash tables is equal in the logical expression through queries linked with AND. Optimization also takes effect if the logical expression contains other queries linked with AND with arbitrary operators.
    Hope it will solve your problem..
    Thanks & Regards
    ilesh 24x7

  • Run report in Backround and Save it automatic as Excel File

    I've created a report program that uses the alv grid. I run it in background, then i want to save it automatic as an excel file.
    can y help me
    Thanks

    Hi,
      When you run a report in background, irespective of the type of report, let it be Normal or ALV report, we have to use JOB FM's, such as JOB_OPEN, JOB_CLOSE. When you run a report in background, the data to be displayed is stored in the spool. So firt, you need to hold the spool data into an internal table, and then pass that internal table to GUI_DOWNLOAD, by hardcoding a path in the local system to download.
    Use this FM to hold the spool output in a internal table , RSPO_RETURN_SPOOLJOB.
    Hope this is helpful to you. If you need further information, revert back.
    Reward all the helpful answers.
    Regards
    Nagaraj T

  • Bug sending email with Excel file (immediate reply would he helpfull)

    Hi ,
       Below is have pasted a sample code where it will sends a email along with an attachtment (xls) .where the email is working perfectly but the xls file attachtment has a blank space in the first line .
    where iam facing the problem ,
    ie there should not be any blank lines at the top .
    Please run the code one i have pasted below .u can find the bug .
    can any one help me on this .
    please have ur mail id in ( reclist-receiver ) so that u can check for the output.
    This table requires information about how the data in the
    tables OBJECT_HEADER, CONTENTS_BIN and CONTENTS_TXT are
    to be distributed to the documents and its attachments.
    DATA: objpack LIKE sopcklsti1 OCCURS  2 WITH HEADER LINE.
    This table must contain the summarized data dependent on each object type.
    SAPscript objects store information here about forms and styles,
    for example. Excel list viewer objects store the number of rows and columns
    amongst other things and PC objects store their original file name.
    DATA: objhead LIKE solisti1   OCCURS  1 WITH HEADER LINE.
    *CREATION OF INTERNAL TABLE
    DATA : BEGIN OF itobjbin OCCURS 10 ,
           vbeln type vbrp-vbeln,
           matnr type vbrp-matnr,
           werks type vbrp-werks,
           fktyp like vbrk-fktyp,
           END OF itobjbin .
    This table must contain the summarized content of the objects identified as binary objects.
    *DATA: OBJBIN  LIKE SOLISTI1   OCCURS 10 WITH HEADER LINE.
    DATA:   objbin TYPE STANDARD TABLE OF solisti1 INITIAL SIZE 0
                   WITH HEADER LINE.
    DATA: wa_itobjbin LIKE itobjbin .
    This table must contain the summarized content of the objects identified as ASCII objects.
    DATA: objtxt  LIKE solisti1   OCCURS 10 WITH HEADER LINE.
    This table must contain the document recipients.
    DATA: reclist LIKE somlreci1  OCCURS  5 WITH HEADER LINE.
    This structure must contain the attributes of the document to be sent.
    DATA: doc_chng LIKE sodocchgi1.
    DATA: tab_lines LIKE sy-tabix.
    DATA : V_FKTYP LIKE VBRK-FKTYP.
    Creating the document to be sent
    doc_chng-obj_name = 'OFFER'.                      " input contains the attributes of the document to be sent
    doc_chng-obj_descr = 'EMAIL WITH EXCEL DOWNLOAD'.   "input contains title/subject of the document
    *BODY OF THE MAIL
    OBJTXT = 'Hi'.
    APPEND OBJTXT .
    OBJTXT = 'Test for excel download'.
    APPEND OBJTXT.
    OBJTXT = 'Below is the attachment with Billing Document Details'.
    APPEND OBJTXT.
    OBJTXT = 'Regards'.
    APPEND OBJTXT.
    DESCRIBE TABLE objtxt LINES tab_lines.
    READ TABLE objtxt INDEX tab_lines.
    doc_chng-doc_size = ( tab_lines - 1 ) * 255 + STRLEN( objtxt ).
    Creating the entry for the compressed document
    CLEAR objpack-transf_bin.
    objpack-head_start = 1.
    objpack-head_num   = 0.
    objpack-body_start = 1.
    objpack-body_num   = tab_lines.
    objpack-doc_type   = 'RAW'.
    APPEND objpack.
    Creating the document attachment
    (Assume the data in OBJBIN are given in BMP format)
    select vbeln matnr werks
            from vbrp into table itobjbin
            up to 10 rows
            where werks GE '1000'.
    loop at itobjbin.
    select single fktyp into  v_fktyp from vbrk where vbeln = itobjbin-vbeln.
    move v_fktyp to itobjbin-fktyp.
    modify itobjbin.
    endloop.
    PERFORM build_xls_data_table .
    DESCRIBE TABLE objbin LINES tab_lines.
    objhead = 'ABC.XLS'. APPEND objhead.
    Creating the entry for the compressed attachment
    objpack-transf_bin = 'X'.
    objpack-head_start = 1.
    objpack-head_num   = 1.
    objpack-body_start = 1.
    objpack-body_num   = tab_lines.
    objpack-doc_type   = 'XLS'.
    objpack-obj_name   = 'ATTACHMENT'.
    objpack-obj_descr = 'XLS'.
    objpack-doc_size   = tab_lines * 255.
    APPEND objpack..
    Entering names in the distribution list
    reclist-receiver = ''.
    reclist-rec_type = 'U'.
    APPEND reclist.
    Sending the document
    CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
         EXPORTING
              document_data = doc_chng
              put_in_outbox = 'X'
              commit_work   = 'X'
         TABLES
              packing_list  = objpack
              object_header = objhead
              contents_bin  = objbin
              contents_txt  = objtxt
              receivers     = reclist
         EXCEPTIONS
              too_many_receivers = 1
              document_not_sent  = 2
              operation_no_authorization = 4
              OTHERS = 99.
    CASE sy-subrc.
      WHEN 0.
        WRITE: / 'Result of the send process:'.
        LOOP AT reclist.
          WRITE: / reclist-receiver(48), ':'.
          IF reclist-retrn_code = 0.
            WRITE 'sent successfully'.
          ELSE.
            WRITE 'not sent'.
          ENDIF.
        ENDLOOP.
      WHEN 1.
        WRITE: / 'no authorization to send to the specified number of',  'recipients!'.
      WHEN 2.
        WRITE: / 'document could not be sent to any of the recipients!'.
      WHEN 4.
        WRITE: / 'no authorization to send !'.
      WHEN OTHERS.
        WRITE: / 'error occurred during sending !'.
    ENDCASE.
    *&      Form  build_xls_data_table
          text
    -->  p1        text
    <--  p2        text
    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
    CONCATENATE 'Billing Document' 'Material Number' 'Plant' 'Billing category' ' ' INTO objbin SEPARATED BY con_tab.
    CONCATENATE con_cret objbin  INTO objbin.
    APPEND  objbin.
    LOOP AT itobjbin  .
       CONCATENATE itobjbin-vbeln itobjbin-matnr itobjbin-werks itobjbin-fktyp' '
              INTO objbin SEPARATED BY con_tab.
       CONCATENATE con_cret objbin  INTO objbin.
       APPEND  objbin.
    ENDLOOP.
    thanks in advance,
    vinay .

    Hi ravi ,
         Thanks ,for your help .now xls is working fine .
    but now iam facing a problem with the same function module .for txt files .where all the records are formated in asingle line .
    can u provide a solution for this ,which would be very helpfull.
    below is have attached the sample code .
    Thanks,
    vinay.
    FUNCTION Z_KAILASH_ATTACHMENT1.
    ""Local Interface:
    *"  IMPORTING
    *"     VALUE(EMAILID)
    *"     VALUE(SUBJECT)
    *"     VALUE(ATYPE)
    *"  TABLES
    *"      ATTACH_FILE STRUCTURE  SOLISTI1
    *"      BODY OPTIONAL
    This table requires information about how the data in the
    tables OBJECT_HEADER, CONTENTS_BIN and CONTENTS_TXT are
    to be distributed to the documents and its attachments.
      DATA OBJPACK LIKE SOPCKLSTI1 OCCURS  2 WITH HEADER LINE.
    This table must contain the summarized data dependent on each object type.
    SAPscript objects store information here about forms and styles,
    for example. Excel list viewer objects store the number of rows and columns
    amongst other things and PC objects store their original file name.
      DATA OBJHEAD LIKE SOLISTI1   OCCURS  1 WITH HEADER LINE.
    This table must contain the summarized content of the objects identified as binary objects.
      DATA   OBJBIN TYPE STANDARD TABLE OF solisti1 INITIAL SIZE 0
                     WITH HEADER LINE.
    This table must contain the summarized content of the objects identified as ASCII objects.
      DATA OBJTXT  LIKE SOLISTI1   OCCURS 10 WITH HEADER LINE.
    This table must contain the document recipients.
      DATA  RECLIST LIKE SOMLRECI1 OCCURS 5 WITH HEADER LINE .
    This structure must contain the attributes of the document to be sent.
      DATA: DOC_CHING LIKE SODOCCHGI1.
      DATA: TAB_LINES LIKE SY-TABIX.
    Create the internal table for body , subject
      DATA: IT_BODY LIKE SOLISTI1 OCCURS 10 WITH HEADER LINE.
    CONSTANTS: con_cret TYPE C VALUE cl_abap_char_utilities=>horizontal_tab,
               con_tab TYPE C VALUE cl_abap_char_utilities=>cr_lf.
    Move Body to Internal Table (body into it_body)
      LOOP AT BODY .
        MOVE BODY TO IT_BODY .
        APPEND IT_BODY .
      ENDLOOP.
      DOC_CHING-OBJ_DESCR = SUBJECT.   "Subject of the Email
    Move the Subject and Body to OBJTXT
      OBJTXT[] = IT_BODY[].
    DESCRIBE TABLE OBJTXT LINES TAB_LINES.
    READ TABLE OBJTXT INDEX TAB_LINES.
    DOC_CHING-DOC_SIZE = ( TAB_LINES - 1 ) * 255 + STRLEN( OBJTXT ).
    CLEAR OBJPACK-TRANSF_BIN.
    OBJPACK-HEAD_START = 1.
    OBJPACK-HEAD_NUM   = 0.
    OBJPACK-BODY_START = 1.
    OBJPACK-BODY_NUM   = TAB_LINES.
    OBJPACK-DOC_TYPE   = 'RAW'.
    APPEND OBJPACK.
    Convert IT to Excel format
    IF ATYPE = 'XLS' .
    *CONSTANTS: con_cret TYPE C VALUE cl_abap_char_utilities=>horizontal_tab,
              con_tab TYPE C VALUE cl_abap_char_utilities=>cr_lf.
      LOOP AT ATTACH_FILE .
        REPLACE ALL OCCURRENCES OF '#' IN ATTACH_FILE WITH con_cret. "  INTO objbin.
        CONCATENATE  ATTACH_FILE con_tab INTO objbin.
        APPEND  objbin.
      ENDLOOP.
    ELSEIF ATYPE = 'TXT' .
      LOOP AT ATTACH_FILE .
        REPLACE ALL OCCURRENCES OF '#' IN ATTACH_FILE WITH con_tab. "  INTO objbin.
        CONCATENATE ATTACH_FILE ' '  INTO OBJBIN .
        APPEND OBJBIN .
      ENDLOOP.
    ENDIF.
    ****End-Code Excel Format .
    DESCRIBE TABLE objbin LINES tab_lines.
    objhead = subject. APPEND objhead.
    Creating the entry for the compressed attachment
    objpack-transf_bin = 'X'.
    objpack-head_start = 1.
    objpack-head_num   = 1.
    objpack-body_start = 1.
    objpack-body_num   = TAB_LINES.
    objpack-doc_type   = ATYPE.
    objpack-obj_name   = 'ATTACHMENT'.
    objpack-obj_descr = 'TEST'. "Attachment File Name
    objpack-doc_size   = TAB_LINES * 255.
    APPEND objpack..
    reclist-receiver = EMAILID.
    reclist-rec_type = 'U'.
    APPEND reclist.
    CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
      EXPORTING
       DOCUMENT_DATA                    = DOC_CHING
       PUT_IN_OUTBOX                    = 'X'
       COMMIT_WORK                      = 'X'
    IMPORTING
      SENT_TO_ALL                     =
      NEW_OBJECT_ID                   =
      TABLES
        PACKING_LIST                    = OBJPACK
       OBJECT_HEADER                    = OBJHEAD
       CONTENTS_BIN                     = OBJBIN
       CONTENTS_TXT                     = OBJTXT
       RECEIVERS                        =  RECLIST
    EXCEPTIONS
       TOO_MANY_RECEIVERS               = 1
       DOCUMENT_NOT_SENT                = 2
       OPERATION_NO_AUTHORIZATION       = 4
       OTHERS                           = 99 .
    ENDFUNCTION.

  • Portal : JSP : Output in an Excel File.

    Hi,
    I am unable to get the output on a JSP Page in Microsoft Excel
    I am trying to generate an Excel Report from my Portlet. I am picking up the data for the Report from Oracle Internet Directory.
    I have created a simple JSP file ( as a Portlet ) and deployed it on Oracle App Server. I then registered a new Provider for the deployed JSP Page and added the JSP as a Portlet in a new Portal Page.
    I am trying the following code snippet in the JSP :
    <%@ page contentType="application/vnd.ms-excel"%>
    I get this weird error :
    AbstractResourceRenderer.renderBody - received IOException
    java.io.UnsupportedEncodingException: Media Type of a TextResponseWrapper must start with "text/"
    If I am correct, Portal should support this feature. I must be able to publish reports to an Excel File.
    I am new to Oracle Portal and I find this strange. The JSP page works fine in JDeveloper, but when I access it via Oracle Portal, I get the " UnsupportedEncodingException ".
    I posted my question on Metalink and was told to post my question in this forum.
    I am not sure if I need to post any other information or Configuration Settings - please do let me know if any other information is necessary.
    Thanks,
    Sandeep.

    Ok,
    After many sleepless nights and a long struggle, we were able to arrive at a workaround - simple & something that works.
    We created a Servlet ( not a Portlet ) that generates the Excel File. The Servlet is not a Portlet and as such is not restricted in the content-types that it can use. We let the user arrive at this Servlet via a simple HTML link.
    Well, that's about it ! I just wanted to post this so that anyone else tearing their hair apart with the same issue can find some solutions.
    Still, I strongly feel that a superb product like Oracle Portal should support the various content types.........
    Regards,
    Sandeep

  • Oracle Matrix Rpt output to Microsoft Excel File

    I am looking for a solution that would take my current Oracle 9i matrix report output directly to an excel file. I have clients that need to see the report not in a pdf format(which I currently use) but in an excel format.
    Thanks,

    You could either use:
    a) DELIMITED output, assuming that the matrix isn't too large.
    b) DELIMITEDDATA output, which will just give you a dump of the data, and you'd need to construct the cross tab directly.
    c) In you're using 9i, then you could use jsp tags to output directly into an Excel html file (this could get pretty complicated for a matrix report). See an example of this at http://otn.oracle.com/products/reports/htdocs/getstart/demonstrations/index.html
    Regards,
    Danny

  • How to output to an excel file?

    Hi,
    I have written a program that gets data from the database and I like to find out how to output the data to an excel file. I have read about similar topic on the discussion board and the solution are for the online application. Mine is a desktop application. The user can specify what the destination file is. Can anyone help. Thanks.

    The simpliest way is to take your data and write it to a Comma Dilimeted File which Excel can read without any problems or user intervention. You would use an ObjectOutputStream. Hope this helps.

  • Sending email with excel file as an attachment

    Hi,
    In my procedure I am creating one excel file and keeping that excel file in one location as specified in UTL_FILE_DIR.Now my requirement is to pick that excel file from that path and send it as an attachment through an Email.
    Can anyone please give me the code to do that and what are the required set up to be done before sending the mail.
    Please help me in this regard. This is an urgent requirement.
    Thanks
    Subhabrata

    Hi,
    Please refer the following link:
    http://www.dbasupport.com/oracle/ora10g/10g_PLSQL02.shtml
    There is para headed Sending E-Mail and Attachments with UTL_MAIL will clarify all your doubts. Link Listing 2.6
    is good example.
    If you get stuck while coding, get back to us.
    Twinkle

Maybe you are looking for

  • How to format unformated phone numbers Please...,

    Hello Good Evening, i have a phone number table which has single column in it with different style of phone numbers, i am trying to change it as required format Required format are 1) Always start with a 1 2) Only Left 14 charcaters after spaces elim

  • ALV Grid output in background Job

    Hello everyone, Can someonen plz tell me if I execute my report (with Grid ALV Display) in background (sy-batch not initial ) , will the ALV Grid be displayed ? If no, then in order to show success do I have to 'WRITE' the success message ? Thanks

  • Acrobat Pro 9 in OS X 10.6.7 won't print

    I am trying to print with my Epson Stylus R280 printer with Acrobat, and it is really strange. I get the print dialogue and it acts like it is going to print, but instead of printing the printer just ejects a blank page for every page I am trying to

  • AVAILABILITY OF TV-OUT CABLE FOR NOKIA 5800 XM

    CAN ANYONE TELL ME FROM WHERE CAN I GET NOKIA TV-OUT CABLE ( CA-75U) FOR MY NOKIA 5800 XM IN GUJARAT STATE? ANY STORE IN GUJARAT WHERE CAN I FIND THIS? ITS NOT  AVAILABLE AT NOKIA PRIORITY STORES. PLS HELP ON THIS..........................

  • How to invoke WS with oracle/wss11_saml_or_username_token_with_message_..?

    Hi, I need to develop a client that invokes WLS Web Services protected using the policy oracle/wss11_saml_or_username_token_with_message_protection_service_policy. Is there any sample code for reference especially on how/what to pass into the Binding