How to automatically maximize report output on HTML page

Hi,
I am using Oracle Database 10g and Oracle Developer Suite 10.1.2
on Windows XP.
I am using Run_Report_Object() and Web.Show_Document() respectively to call the Report from Oracle Form.
Well, it showed normally.
However, the Window is not maximized automatically when showed.
I had to maximize it manually.
I would like to know, how can I maximize the report output which is showed in new Window on HTML format automatically?
Is there anyway to do so?
BTW, I also use the Report to call another Report by providing the hyperlink using SRW.Set_Hyperlink
Can I do the same, maximize the Window?
Many thanks,
Buntoro

hi,
u'll have to set the second argument in your function to '_blank'
i.e, web.show_document(url,'_blank');

Similar Messages

  • How to retrieve complete report output in HTML format

    Hi,
    I'm looking for how to retrieve complete report output in HTML format.
    I have tried the following and it only give me first page of the report output where in the actual report output should be 5 pages. Is there something I'm missing.
    CallbackOption[] boCallOpt = new CallbackOption[1];
    ImageManagement boImgMan = new ImageManagement();
    boImgMan.setCallbackScript("getImage.jsp");
    boImgMan.setImageManagementHolder("imageName");
    boImgMan.setDocumentReferenceHolder("docRef");
    boCallOpt[0] = boImgMan;
    RetrieveData oRetrieveData = new RetrieveData();
    RetrieveView oRetrieveView = new RetrieveView();
    oRetrieveView.setCallbackOption(boCallOpt);
    oRetrieveData.setRetrieveView(oRetrieveView);
    Action[] oActions;
    oActions = new Action[1];
    oActions[0] = fillPrompts;
    oReportEngine.getDocumentInformation(boDocInfo.getDocumentReference(), null, oActions, null,oRetrieveData);
    Testing this on BOE XI 3.0
    Thanks,

    For Web Intelligence, HTML is an interactive viewing format and not an export format such as PDF.
    Note that the HTML will be embedded with postback URLs to the application for images and drill downs.
    Closest you'd get is to be able to specify HTML output of an entire REPORT rather than REPORT_PAGE in the ViewSupport.setViewMode method.  But this brings back just one report in the document, and will have postback URLs mentioned above.
    Sincerely,
    Ted Ueda

  • How to paginate the Report output spanning multiple pages

    Hello,
    We have a Report that has a custom Layout and it shows invoice information.
    Our system has to generate an Invoice per day.
    This Report is printed fine for single day.
    But our users have 2 requests:
    1. To print all the invoices for 1 month
    2. To save them to file.
    At least printing will do for now.
    The problem I got is pagination.
    When I made Month&Year as parameter and user selects 2001-OCT
    to print all invoices in Oct,2001, the Report is unable to print one invoice per page. In between the layout is rolling over to multiple pages.
    Is there a way I can control pagination or any settings?
    Thank you much.
    Madhav

    Hello,
    We have a Report that has a custom Layout and it shows invoice information.
    Our system has to generate an Invoice per day.
    This Report is printed fine for single day.
    But our users have 2 requests:
    1. To print all the invoices for 1 month
    2. To save them to file.
    At least printing will do for now.
    The problem I got is pagination.
    When I made Month&Year as parameter and user selects 2001-OCT
    to print all invoices in Oct,2001, the Report is unable to print one invoice per page. In between the layout is rolling over to multiple pages.
    Is there a way I can control pagination or any settings?
    Thank you much.
    Madhav

  • Want  report output in HTML

    Hi All!
    is it possible to get the report output in HTML based output?
    if yes,  can anyone send me the details?
    thanks in advance
    Alankaar

    Hi,
    Yes it is possible to do that.
    You can go thru the program below. Hope it could help you.
    REPORT  ZSS_CODE_2_HTML LINE-SIZE 300        .
    TABLES: D010INC.      
    Tabelle für die aufzunehmenden ABAP-Texte
    DATA: BEGIN OF SOURCECODE OCCURS 0,
    LINE(200),
    END OF SOURCECODE.
    Tabelle für den erzeugten HTMLCode
    DATA: BEGIN OF HTMLCODE OCCURS 5000,
    LINE(256),
    END OF HTMLCODE.
    DATA: BEGIN OF INCLUDETAB OCCURS 0,
    NAME LIKE D010INC-INCLUDE,
    END OF INCLUDETAB.
    DATA: TEXTELEMENTETAB LIKE TEXTPOOL OCCURS 50 WITH HEADER LINE.
    DATA: EINRUECK TYPE I,                 " Soweit im HTML einrücken
    CHAR2(2).
    Selektionsbild und Verarbeitung  -
    SELECTION-SCREEN BEGIN OF BLOCK BL1 WITH FRAME.
    PARAMETERS: PROGNAME LIKE D010SINF-PROG
             DEFAULT 'ZSS_CODE_2_HTML'.
    PARAMETERS: HTMLFILE LIKE RLGRAP-FILENAME
             DEFAULT 'c:     emp     est.html'.
    PARAMETERS: MITINCLD AS CHECKBOX DEFAULT 'X',
    MITTEXTL AS CHECKBOX DEFAULT 'X'.
    SELECTION-SCREEN END OF BLOCK BL1.
    SELECTION-SCREEN BEGIN OF BLOCK BL2 WITH FRAME.
    PARAMETERS: MITZEILE AS CHECKBOX DEFAULT 'X',
    ONSCREEN AS CHECKBOX DEFAULT 'X',
    SAPINCLD AS CHECKBOX DEFAULT 'X'.
    SELECTION-SCREEN END OF BLOCK BL2.
    Ein subtrivialer Tests
    AT SELECTION-SCREEN.
    READ REPORT PROGNAME INTO SOURCECODE.
    IF SY-SUBRC <> 0.
    MESSAGE E159(AT) WITH 'Programm konnte nicht eingelesen werden'.
    ENDIF.
    Programmanfang -
    END-OF-SELECTION.
    In der Tabelle sourcecode sollte hier schon der Quelltext stehen.
    PERFORM ERZEUGE_KOPF.
    PERFORM WRITE_SOURCE.
    Includes falls erwünscht
    IF MITINCLD = 'X'.
    PERFORM WRITE_INCLUDES.
    ENDIF.
    Textelemente falls erwünscht
    Includes falls erwünscht
    IF MITTEXTL = 'X'.
    PERFORM WRITE_TEXTELEMENTE.
    ENDIF.
    Und abschließen des Files
    PERFORM ERZEUGE_SCHWANZ.
    PERFORM ABSPEICHERN TABLES HTMLCODE
              USING HTMLFILE.
    Unterroutinen  -
    INCLUDE ZCD_SS_DEBUGROUTINEN.
          FORM ABSPEICHERN                                              *
    -->  FILENAME                                                      *
    FORM ABSPEICHERN TABLES TEXT_ZU_SCHREIBEN
         USING FILENAME LIKE RLGRAP-FILENAME.
    CALL FUNCTION 'WS_DOWNLOAD'
    EXPORTING
    CODEPAGE                = 'IBM'
    FILENAME                = HTMLFILE
    FILETYPE                = 'ASC'
              MODE                    = ' '
    TABLES
    DATA_TAB                = TEXT_ZU_SCHREIBEN
    EXCEPTIONS
    FILE_OPEN_ERROR         = 1
    FILE_WRITE_ERROR        = 2
    INVALID_FILESIZE        = 3
    INVALID_TABLE_WIDTH     = 4
    INVALID_TYPE            = 5
    NO_BATCH                = 6
    UNKNOWN_ERROR           = 7
    GUI_REFUSE_FILETRANSFER = 8
    OTHERS                  = 9.
    IF ONSCREEN = 'X'.
    LOOP AT TEXT_ZU_SCHREIBEN.
    PERFORM SHOW_ANY_STRUC USING TEXT_ZU_SCHREIBEN.NEW-LINE.
    ENDLOOP.
    ENDIF.
    ENDFORM.
    *&      Form  ERZEUGE_KOPF
      Erzeugt einen HTML-Rumpf bis zum Body
    FORM ERZEUGE_KOPF.
    HTMLCODE-LINE = ''.APPEND HTMLCODE.
    HTMLCODE-LINE = ' '.APPEND HTMLCODE.
    HTMLCODE-LINE = '
    CLEAR HTMLCODE-LINE.
    HTMLCODE-LINE+3 = PROGNAME.APPEND HTMLCODE.
    HTMLCODE-LINE = ' '.APPEND HTMLCODE.
    HTMLCODE-LINE = ' '.APPEND HTMLCODE.
    CLEAR HTMLCODE-LINE.APPEND HTMLCODE.
    HTMLCODE-LINE = ''.APPEND HTMLCODE.
    EINRUECK = 2.
    ENDFORM.                               " ERZEUGE_KOPF
    *&      Form  ERZEUGE_SCHWANZ
      Erzeugt die abschließenden HTML-Befehle
    FORM ERZEUGE_SCHWANZ.
    HTMLCODE-LINE = ' </body>'.APPEND HTMLCODE.
    HTMLCODE-LINE = '</html>'.APPEND HTMLCODE.
    ENDFORM.                               " ERZEUGE_SCHWANZ
    *&      Form  WRITE_SOURCE
       Schreibt den Sourcecode
    FORM WRITE_SOURCE.
    DATA: ROT.
    Erstmal die Überschrift hinstellen
    PERFORM ADDZEILE USING '>+' '
    PERFORM ZEILEUMB USING '' PROGNAME.
    PERFORM ADDZEILE USING '->' '
    CLEAR HTMLCODE-LINE.APPEND HTMLCODE.
    Link auf Includes
    IF MITINCLD = 'X'.
    PERFORM ADDZEILE USING '>+' '
    PERFORM ZEILEUMB USING '' '[Includes | #Includes]'.
    PERFORM ADDZEILE USING '->' '
    ENDIF.
    Link auf Textelemente
    IF MITTEXTL = 'X'.
    PERFORM ADDZEILE USING '>+' '
    PERFORM ZEILEUMB USING ''
    '[Textelemente | #Textelemente]'.
    PERFORM ADDZEILE USING '->' '
    ENDIF.
    Und Linie zum Trennen gegen den Quellcode
    PERFORM ADDZEILE USING '>+' ''.
    Und jetzt der Quellcode
    PERFORM CODELINES.
    ENDFORM.                               " WRITE_SOURCE
    *&      Form  ADDZEILE
       Fügt eine Zeile in den HTML-Code ein und korrigiert Einrücktiefe
    FORM ADDZEILE USING    VALUE(EINRUECKEN) LIKE CHAR2
               VALUE(TEXT).
    DATA: ER.
    ER = EINRUECKEN(1).
    IF ER = '+'.
    EINRUECK = EINRUECK + 1.
    ELSEIF ER = '-'.
    EINRUECK = EINRUECK - 1.
    ENDIF.
    CLEAR HTMLCODE.
    HTMLCODE+EINRUECK = TEXT.
    APPEND HTMLCODE.
    ER = EINRUECKEN+1(1).
    IF ER = '+'.
    EINRUECK = EINRUECK + 1.
    ELSEIF ER = '-'.
    EINRUECK = EINRUECK - 1.
    ENDIF.
    ENDFORM.                               " ADDZEILE
    *&      Form  SONDERZEICHEN
    Sonderzeichen in HTML darstellen
    FORM SONDERZEICHEN CHANGING ZEILE.
    DATA: S LIKE SY-SUBRC,
    LASTHIT LIKE SY-FDPOS,
    DUMMY(256).
    LASTHIT = 0.
    DO.
    DUMMY = ZEILE+LASTHIT.
    IF DUMMY CA '&'.
    REPLACE '&' WITH '&amp;' INTO DUMMY.
    ZEILE+LASTHIT = DUMMY.
    LASTHIT = SY-FDPOS + LASTHIT + 1.
    ELSE.
    EXIT.
    ENDIF.
    ENDDO.
    ÄÖÜäöüß<>"
    DO.
    S = 1.
    REPLACE 'Ä' WITH 'Ä'  INTO ZEILE.  S = S * SY-SUBRC / 4.
    REPLACE 'Ö' WITH 'Ö'  INTO ZEILE.  S = S * SY-SUBRC / 4.
    REPLACE 'Ü' WITH 'Ü'  INTO ZEILE.  S = S * SY-SUBRC / 4.
    REPLACE 'ä' WITH 'ä'  INTO ZEILE.  S = S * SY-SUBRC / 4.
    REPLACE 'ö' WITH 'ö'  INTO ZEILE.  S = S * SY-SUBRC / 4.
    REPLACE 'ü' WITH 'ü'  INTO ZEILE.  S = S * SY-SUBRC / 4.
    REPLACE 'ß' WITH 'ß' INTO ZEILE. S = S * SY-SUBRC / 4.
    REPLACE '<' WITH '&lt;'    INTO ZEILE. S = S * SY-SUBRC / 4.
    REPLACE '>' WITH '&gt;'    INTO ZEILE. S = S * SY-SUBRC / 4.
    REPLACE '"' WITH '&quot;'  INTO ZEILE. S = S * SY-SUBRC / 4.
    IF S = 1.EXIT.ENDIF.
    ENDDO.
    ENDFORM.                               " SONDERZEICHEN
    *&      Form  ZEILEUMB
          text
    FORM ZEILEUMB USING    VALUE(EINRUECKEN) LIKE CHAR2
               VALUE(TEXT).
    CONCATENATE TEXT '
    ' INTO TEXT.
    PERFORM ADDZEILE USING EINRUECKEN TEXT.
    ENDFORM.                               " ZEILEUMB
    *&      Form  CODELINES
    Schiebt die Zeilen aus sourcecode ins HTML-Format
    FORM CODELINES.
    DATA ZEILE(5).
    PERFORM ADDZEILE USING '>+' '
    LOOP AT SOURCECODE.
    Erst mal die Sonderzeichen ersetzen
    PERFORM SONDERZEICHEN CHANGING SOURCECODE-LINE.
    Bei einem Kommentar diesen Rot und kursiv darstellen
    IF SOURCECODE-LINE(1) = '*'.       " roter Kommentar
    CONCATENATE '+'
    SOURCECODE-LINE
    '+'
    INTO SOURCECODE-LINE.
    ENDIF.
    Bei Zeilennummerierung diese in dunkelblau dazustellen
    IF MITZEILE = 'X'.
    ZEILE = SY-TABIX.
    SHIFT SOURCECODE-LINE RIGHT BY 35 PLACES.
    CONCATENATE ''
    ZEILE
    INTO SOURCECODE-LINE(35).
    ENDIF.
    PERFORM ADDZEILE USING '' SOURCECODE-LINE.
    ENDLOOP.
    PERFORM ADDZEILE USING '->' '
    ENDFORM.                               " CODELINES
    *&      Form  WRITE_INCLUDES
          Die ganzen Includesources anfügen
    FORM WRITE_INCLUDES.
    DATA: FIRSTTIME.
    FIRSTTIME = 'X'.
    SELECT * FROM D010INC WHERE MASTER = PROGNAME.
    IF    SAPINCLD = 'X'
    AND D010INC-INCLUDE(1) = '<'.
    CONTINUE.
    ENDIF.
    IF FIRSTTIME = 'X'.
    PERFORM ADD_INCLUDES_HEADER.
    CLEAR FIRSTTIME.
    ENDIF.
    Die Namen der Includes merken und nacher am Anfang in den Quellcode
    als Navigationspunkte hinzufügen
    APPEND D010INC-INCLUDE TO INCLUDETAB.
    Namen und Quelltext schreiben
    PERFORM ADD_INCLUDE_NAME USING D010INC.
    READ REPORT D010INC-INCLUDE INTO SOURCECODE.
    PERFORM CODELINES.
    ENDSELECT.
    ENDFORM.                               " WRITE_INCLUDES
    *&      Form  ADD_INCLUDES_HEADER
       Für den 1. Include eine kleine Sonderbehandlung
    FORM ADD_INCLUDES_HEADER.
    HTMLCODE-LINE = ''. APPEND HTMLCODE.
    ENDFORM.                               " ADD_INCLUDES_HEADER
          FORM ADD_INCLUDE_NAME                                         *
    -->  UEBERGABE                                                     *
    FORM ADD_INCLUDE_NAME USING UEBERGABE LIKE D010INC.
    HTMLCODE-LINE = ' '. APPEND HTMLCODE.
    ENDFORM.                               " ADD_INCLUDE_NAME
    *&      Form  WRITE_TEXTELEMENTE
    Textelemente des Hauptprogramms auch noch ausgeben
    FORM WRITE_TEXTELEMENTE.
    PERFORM TEXTELEMENTE_HEADER.
    READ TEXTPOOL PROGNAME INTO TEXTELEMENTETAB.
    PERFORM HTML_TEXTELEMENTE USING 'im Hauptprogramm'.
    LOOP AT INCLUDETAB.
    READ TEXTPOOL INCLUDETAB-NAME INTO TEXTELEMENTETAB.
    CHECK SY-SUBRC = 0.
    PERFORM HTML_TEXTELEMENTE USING INCLUDETAB-NAME.
    ENDLOOP.
    ENDFORM.                               " WRITE_TEXTELEMENTE
    *&      Form  TEXTELEMENTE_HEADER
    FORM TEXTELEMENTE_HEADER.
    HTMLCODE-LINE = ''. APPEND HTMLCODE.
    ENDFORM.                               " TEXTELEMENTE_HEADER
    *&      Form  HTML_TEXTELEMENTE
          text
    FORM HTML_TEXTELEMENTE USING WOHER.
    DATA: WOHERNAME(80),
    TID(80),
    TKEY(80),
    TENTRY(80).
    WOHERNAME = WOHER.
    PERFORM SONDERZEICHEN CHANGING WOHERNAME.
    Das Ganze als Tabelle rauswerfen
    HTMLCODE-LINE = '
    '.APPEND HTMLCODE.
    CONCATENATE '
    ' WOHERNAME '' INTO HTMLCODE-LINE.APPEND HTMLCODE.
    HTMLCODE-LINE = '
    '.APPEND HTMLCODE.
    LOOP AT TEXTELEMENTETAB.
    TID    = TEXTELEMENTETAB-ID.
    TKEY   = TEXTELEMENTETAB-KEY.
    TENTRY = TEXTELEMENTETAB-ENTRY.
    und HTML-Sonderzeichen ersetzen
    PERFORM SONDERZEICHEN CHANGING TID.
    PERFORM SONDERZEICHEN CHANGING TKEY.
    PERFORM SONDERZEICHEN CHANGING TENTRY.
    HTMLCODE-LINE = ''.APPEND HTMLCODE.
    CONCATENATE '' INTO HTMLCODE-LINE.
    APPEND HTMLCODE.
    CONCATENATE '' INTO HTMLCODE-LINE.
    APPEND HTMLCODE.
    CONCATENATE '' INTO HTMLCODE-LINE.
    APPEND HTMLCODE.
    HTMLCODE-LINE = ''.APPEND HTMLCODE.
    ENDLOOP.
    HTMLCODE-LINE = '
    ' TID '
    ' TKEY '
    ' TENTRY '
    '.APPEND HTMLCODE.
    HTMLCODE-LINE = '
    '.APPEND HTMLCODE.
    ENDFORM.                               " HTML_TEXTELEMENTE
    Regards
    Rakesh

  • How to send a report output as a FAX ?

    Hallo Experts,
    How to send a report output as a FAX ?
    Suppose if I have all the data in an internal table, I will show it as a normal list OR ALV list output.
    In the application tool bar I should have a button, and by clicking it the output should go to the customer as FAX. How can I send it to a FAX ? Any Function modules ?
    Please help me with an example program.
    Regards,
    Matt.

    Hi,
    Hope the code given below helps you.
    FORM SEND_FAX
    TABLES DOC2FAX STRUCTURE TEST_DOC
    USING COUNTRY
    NUMBER.
    DATA: SID(5) TYPE N.
    DATA BEGIN OF POPT.
    INCLUDE STRUCTURE ITCPO.
    DATA END OF POPT.
    DATA BEGIN OF PRES.
    INCLUDE STRUCTURE ITCPP.
    DATA END OF PRES.
    CLEAR POPT.
    POPT-TDCOPIES = 1. " one copy
    * POPT-TDDEST = " done internaly by script,
    * POPT-TDPRINTER = " do not fill !!!
    POPT-TDNEWID = 'X'. " do not reuse old spool request
    POPT-TDDATASET = 'TEST'(022). " fill as you want
    POPT-TDSUFFIX1 = 'FAX'(023). " fill as you want
    POPT-TDSUFFIX2 = SY-UNAME. " fill as you want
    POPT-TDIMMED = 'X'. " send now
    POPT-TDLIFETIME = 8. " keep 8 days in spool
    POPT-TDTELENUM = NUMBER. " number without country code
    POPT-TDTELELAND = COUNTRY. " country of recipient
    POPT-TDCOVER = 'test fax'(024).
    POPT-TDCOVTITLE = 'test fax'(024).
    * POPT-TDIEXIT = 'X'.
    CALL FUNCTION 'PRINT_TEXT'
    EXPORTING
    APPLICATION = 'TX'
    ARCHIVE_INDEX = ' '
    ARCHIVE_PARAMS = ' '
    DEVICE = 'TELEFAX' "<<< here we say: fax it !
    DIALOG = 'X'
    HEADER = HEADER
    OPTIONS = POPT
    IMPORTING
    RESULT = PRES
    TABLES
    LINES = DOC2FAX
    EXCEPTIONS
    OTHERS = 01.
    * do not bother with exception in sample code
    * CANCELED = 01
    * DEVICE = 02
    * FORM = 03
    * OPTIONS = 04
    * UNCLOSED = 05
    * UNKNOWN = 06
    * FORMAT = 07
    * TEXTFORMAT = 08
    * EXTERNAL = 09.
    IF SY-SUBRC = 0.
    * arriving here means we could send:
    SID = PRES-TDSPOOLID.
    IF SID > '00000'.
    MESSAGE S433 WITH SID.
    ENDIF.
    LEAVE .
    ELSE.
    * do not bother with exception in sample code
    MESSAGE A400 WITH 'PRIN_TEXT'.
    ENDIF.
    ENDFORM. " SEND_FAX
    Regards,
    Siddarth

  • How to convert Oracle Report Output to Excel Spread Sheet..

    Hello Sir,
    How to convert Oracle Report Output to Excel Spread Sheet..
    Thanks..

    Hello,
    Please give us more information what kind of report(s). Sample example etc.,
    Sri

  • How to send the report output to the application server in a excel file

    Hello,
    how to send the report output to the application server in a excel file.
    and the report runs in background.
    Thanks in advance.
    Sundeep

    Dear Sundeep.
    I'm providing you with the following piece of code ... Its working fine for me ... hopefully it suits your requirement ...
    D A T A D E C L A R A T I O N *
    TYPES: BEGIN OF TY_EXCEL,
    CELL_01(80) TYPE C,
    CELL_02(80) TYPE C,
    CELL_03(80) TYPE C,
    CELL_04(80) TYPE C,
    CELL_05(80) TYPE C,
    CELL_06(80) TYPE C,
    CELL_07(80) TYPE C,
    CELL_08(80) TYPE C,
    CELL_09(80) TYPE C,
    CELL_10(80) TYPE C,
    END OF TY_EXCEL.
    DATA: IT_EXCEL TYPE STANDARD TABLE OF TY_EXCEL,
    WA_EXCEL TYPE TY_EXCEL..
    E V E N T : S T A R T - O F - S E L E C T I O N *
    START-OF-SELECTION.
    Here you populate the Internal Table.
    Display - Top of the Page.
    PERFORM DISPLAY_TOP_OF_PAGE.
    E V E N T : E N D - O F - S E L E C T I O N *
    END-OF-SELECTION.
    SET PF-STATUS 'GUI_STATUS'.
    E V E N T : A T U S E R - C O M M AN D *
    AT USER-COMMAND.
    CASE SY-UCOMM.
    WHEN 'EXPORT'.
    Exporting the report data to Excel.
    PERFORM EXPORT_TO_EXCEL.
    ENDCASE.
    *& Form DISPLAY_TOP_OF_PAGE
    text
    --> p1 text
    <-- p2 text
    FORM DISPLAY_TOP_OF_PAGE .
    SKIP.
    WRITE: /05(128) SY-ULINE,
    /05 SY-VLINE,
    06(127) 'O R I C A'
    CENTERED COLOR 1,
    132 SY-VLINE.
    WRITE: /05(128) SY-ULINE,
    /05 SY-VLINE,
    06(127) 'Shift Asset Depreciation - Period/Year-wise Report.'
    CENTERED COLOR 4 INTENSIFIED OFF,
    132 SY-VLINE.
    WRITE: /05(128) SY-ULINE.
    E X C E L O P E R A T I O N
    CLEAR: IT_EXCEL[],
    WA_EXCEL.
    PERFORM APPEND_BLANK_LINE USING 1.
    WA_EXCEL-cell_02 = ' XYZ Ltd. '.
    APPEND WA_EXCEL TO IT_EXCEL.
    CLEAR: WA_EXCEL.
    WA_EXCEL-cell_02 = 'Shift Asset Depreciation - Period/Year-wise Report.'.
    APPEND WA_EXCEL TO IT_EXCEL.
    PERFORM APPEND_BLANK_LINE USING 1.
    ENDFORM. " DISPLAY_TOP_OF_PAGE
    *& Form APPEND_BLANK_LINE
    text
    -->P_1 text
    FORM APPEND_BLANK_LINE USING P_LINE TYPE I.
    DO P_LINE TIMES.
    CLEAR: WA_EXCEL.
    APPEND WA_EXCEL TO IT_EXCEL.
    enddo.
    ENDFORM.
    *& Form EXPORT_TO_EXCEL
    text
    --> p1 text
    <-- p2 text
    FORM EXPORT_TO_EXCEL .
    DATA: L_FILE_NAME(60) TYPE C.
    Create a file name
    CONCATENATE 'C:\' 'Shift_Depn_' SY-DATUM6(2) '.' SY-DATUM4(2)
    '.' SY-DATUM+0(4) INTO L_FILE_NAME.
    Pass the internal table (it_excel which is already populated )
    to the function module for excel download.
    CALL FUNCTION 'WS_EXCEL'
    exporting
    filename = L_FILE_NAME
    tables
    data = IT_EXCEL
    exceptions
    unknown_error = 1
    others = 2.
    if sy-subrc <> 0.
    message e001(ymm) with 'Error in exporting to Excel.'.
    endif.
    ENDFORM. " EXPORT_TO_EXCEL
    *~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    When you click the button - Export to Excel ( GUI-Status) you'll be able to export the content of the Internal Table to an Excel file .......
    Regards,
    Abir
    Don't forget to award Points *

  • How to keep the filtered output in a page after user navigates back?

    How to keep the filtered output in a page after user navigates back to all records from another page.
    Currently it clears the search

    Hi,
    user13091824 wrote:
    How to keep the filtered output in a page after user navigates back to all records from another page.
    Currently it clears the search---While returing from page AM Return status should be True in pageContext.setForwardURL.:::
    pageContext.setForwardURL("OA.jsp?page=/XXX/oracle/apps/po/msg/webui/SearchPG",
    "SUPP_SEARCH",
    OAWebBeanConstants.GUESS_MENU_CONTEXT,
    null,
    null,
    true, // Retain AM
    OAWebBeanConstants.ADD_BREAD_CRUMB_NO,
    OAWebBeanConstants.IGNORE_MESSAGES);
    ---After setting AM Status to true u can able to c the values.
    Regards
    Meher Irk

  • How can i sedn report output as attachment in workflow  automatically in ma

    hi,
      i want to send mail with attachment of report output as acrobat reader format.
      how can i do this one autimatically,
    please let me know.
    thanks
    Sankar

    For this you need to activate access method M in spool administration tcode SPAD.
    Refer to this links below.
    Change mail subject and body text
    http://www.geocities.com/rmtiwari/Resources/MySolutions/Dev/Codes/Report/Z_RMTIWARI_SEND_SPOOL_MAIL_ATT.html
    Regds
    Manohar

  • How can I put an output stream (HTML) from a remote process on my JSF page

    Hello,
    I've a question if someone could help.
    I have a jsf application that need to execute some remote stuff on a different process (it is a SAS application). This remote process produces in output an html table that I want to display in my jsf page.
    So I use a socket SAS class for setting up a server socket in a separate thread. The primary use of this class is to setup a socket listener, submit a command to a remote process (such as SAS) to generate a data stream (such as HTML or graphics) back to the listening socket, and then write the contents of the stream back to the servlet stream.
    Now the problem is that I loose my jsf page at all. I need a suggestion if some one would help, to understand how can I use this html datastream without writing on my Servlet output stream.
    Thank you in advance
    A.
    Just if you want to look at the details .....
    // Create the remote model
    com.sas.sasserver.submit.SubmitInterface si =
    (com.sas.sasserver.submit.SubmitInterface)
    rocf.newInstance(com.sas.sasserver.submit.SubmitInterface.class, connection);
    // Create a work dataset
    String stmt = "data work.foo;input field1 $ field2 $;cards;\na b\nc d\n;run;";
    si.setProgramText(stmt);
    // Setup our socket listener and get the port that it is bound to
    com.sas.servlet.util.SocketListener socket =
    new com.sas.servlet.util.SocketListener();
    int port = socket.setup();
    socket.start();
    // Get the localhost name
    String localhost = (java.net.InetAddress.getLocalHost()).getHostAddress();
    stmt = "filename sock SOCKET '" + localhost + ":" + port + "';";
    si.setProgramText(stmt);
    // Setup the ods options
    stmt = "ods html body=sock style=brick;";
    si.setProgramText(stmt);
    // Print the dataset
    stmt = "proc print data=work.foo;run;";
    si.setProgramText(stmt);
    // Close
    stmt = "ods html close;run;";
    si.setProgramText(stmt);
    // get my output stream
    context = FacesContext.getCurrentInstance();
    HttpServletResponse response = (HttpServletResponse) context.getExternalContext().getResponse();
    ServletOutputStream out = response.getOutputStream();
    // Write the data from the socket to the response
    socket.write(out);
    // Close the socket listener
    socket.close();

    The system exec function is on the Communication palette. Its for executing system commands. On my Win2K system, the help for FTP is:
    "Ftp
    Transfers files to and from a computer running an FTP server service (sometimes called a daemon). Ftp can be used interactively. Click ftp commands in the Related Topics list for a description of available ftp subcommands. This command is available only if the TCP/IP protocol has been installed. Ftp is a service, that, once started, creates a sub-environment in which you can use ftp commands, and from which you can return to the Windows 2000 command prompt by typing the quit subcommand. When the ftp sub-environment is running, it is indicated by the ftp command prompt.
    ftp [-v] [-n] [-i] [-d] [-g]
    [-s:filename] [-a] [-w:windowsize] [computer]
    Parameters
    -v
    Suppresses display of remote server responses.
    -n
    Suppresses autologin upon initial connection.
    -i
    Turns off interactive prompting during multiple file transfers.
    -d
    Enables debugging, displaying all ftp commands passed between the client and server.
    -g
    Disables file name globbing, which permits the use of wildcard characters (* and ?) in local file and path names. (See the glob command in the online Command Reference.)
    -s:filename
    Specifies a text file containing ftp commands; the commands automatically run after ftp starts. No spaces are allowed in this parameter. Use this switch instead of redirection (>).
    -a
    Use any local interface when binding data connection.
    -w:windowsize
    Overrides the default transfer buffer size of 4096.
    computer
    Specifies the computer name or IP address of the remote computer to connect to. The computer, if specified, must be the last paramete
    r on the line."
    I use tftp all of the time to transfer files in a similar manner. Test the transfer from the Windows command line and copy it into a VI. Pass the command line to system exec and wait until it's done.

  • How to automatically send report after it is created?

    Hello,
    I am beginner and I would appreciate if someone could tell me general information.
    I found this tutorial how to save and access report.
    Storing and Accessing Reports in the Database
    In that tutorial report is saved onclick.
    Is there a way to automatically email report everytime report is generate or I should first save it (PDF, CSV,..) with SQL script and then email it?
    I also found that in Interactive report there is page process that can send e-mails. Is it possible that page process send e-mail with report or report should be also saved before sending?
    The reason for this is that we want to have a history of created reports.
    Thank you in advance.

    874887 wrote:
    The reason for this is that we want to have a history of created reports.
    Save report, then email it.
    I usually call COMMIT between the two steps.
    Use the APEX_MAIL package to send out an e-mail with an attachment.
    You should be able to modify the PL/SQL to do it all in one step
    declare
      l_report blob;
    -- Added this for APEX_MAIL
    l_mail_id NUMBER;
    begin
      l_report := apex_util.get_print_document (
      p_application_id => :APP_ID,
      p_report_query_name => 'blobquery',
      p_report_layout_name => 'blobquery',
      p_report_layout_type => 'rtf',
      p_document_format => 'pdf'
      insert into report_archive (
      filename,
      mimetype,
      report,
      created_date,
      created_by
      ) values (
      'BLOB Query Search Results ('||to_char(sysdate,'DDMonYYYY')||')',
      'application/pdf',
      l_report,
      sysdate,
      :USER
    -- COMMIT the insert so you don't e-mail out a report
    -- that was never saved
    commit;
    -- create e-mail here
    l_mail_id := APEX_MAIL.send( ... ); -- see document for usage
    APEX_MAIL.ADD_ATTACHMENT( .. ); -- see document for usage
    end;
    MK

  • How to send ALV report Output through mail in background !

    Hi ,
    I had an ALV Report. I want to send this report output to patricular email id every day ! Presenty i do this manually. I run the report and send the output to the particular email address. Now i want to schecule the report daily in background and the out put of the report should be mailed to particular email ids in background itself. How can i do this ?
    Is there and method or setting through which we can do this ?
    Regards

    Hi Nau,
    For this requirement you will have to write another program.
    This program will convert the spool requests into PDF document and sends an email  to the recipients that you specify.
    These are the threads which are already posted in The SDN.
    *http://wiki.sdn.sap.com/wiki/display/Snippets/Converts+spool+request+into+PDF+document+and+emails*
    *<a class="jive_macro jive_macro_thread" href="" __jive_macro_name="thread" modifiedtitle="true" __default_attr="353650"></a>*
    *<a class="jive_macro jive_macro_thread" href="" __jive_macro_name="thread" modifiedtitle="true" __default_attr="902985"></a>*
    You need to use the Function module :
    -- Sending the document
      CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
    I will provide you with the code to get this functionality.
    *&      Form  SEND_EMAIL
    form SEND_EMAIL .
    DATA:   t_mailpack   TYPE sopcklsti1 OCCURS 0 WITH HEADER LINE,
              t_mailhead   TYPE solisti1   OCCURS 0 WITH HEADER LINE,
              t_mailbin    TYPE solisti1   OCCURS 0 WITH HEADER LINE,
              t_mailtxt    TYPE solisti1   OCCURS 0 WITH HEADER LINE,
              t_mailrec    TYPE somlreci1  OCCURS 0 WITH HEADER LINE.
      DATA: wa_maildata    TYPE sodocchgi1,
            l_filename(50) TYPE c,
            l_fldname(30)  TYPE c,
            l_fldval(100)  TYPE c,
            l_lines        TYPE i,
            l_text         TYPE text128 .
      DATA: w_email_subrc  TYPE i.
      DATA: w_ship like vbfa-vbeln.
      CLEAR: wa_maildata,
             t_mailtxt,
             t_mailbin,
             t_mailpack,
             t_mailhead,
             t_mailrec.
      REFRESH: t_mailtxt,
               t_mailbin,
               t_mailpack,
               t_mailhead,
               t_mailrec.
    *-- Fill output file
    *- Fill header
      CLEAR: t_mailbin.
    *  t_mailbin[] = pdf_tab[].
      t_mailbin[] = it_att[].     "Uthaman
    *This line is added to get the shipment no in Subject Line
    SELECT SINGLE * FROM vbfa WHERE vbelv EQ nast-objky
                                AND vbtyp_v EQ c_vbtyp_v_j
                                AND vbtyp_n EQ c_vbtyp_n_8.
    w_ship = vbfa-vbeln.
    shift w_ship left deleting leading '0'.
    *-- File name
    if nast-kschl EQ 'ZFPL'.
      CLEAR l_filename.
      CONCATENATE 'Packing List -'
                  sy-datum+4(2) sy-datum+6(2) sy-datum(4) '.PDF' INTO l_filename.
    *-- Creation of the document to be sent File Name
      wa_maildata-obj_name = 'Packing List'.
    *-- Mail Subject
      CONCATENATE l_filename '-' 'Shipment No -' w_ship INTO wa_maildata-obj_descr SEPARATED BY space.
    *-- Mail Contents
      t_mailtxt-line = 'Packing List'.
      APPEND t_mailtxt.
    ENDIF.
    if nast-kschl EQ 'ZFBA'.
      CLEAR l_filename.
      CONCATENATE 'Booking Advice -'
                  sy-datum+4(2) sy-datum+6(2) sy-datum(4) '.PDF'
                  INTO l_filename.
    *-- Creation of the document to be sent File Name
      wa_maildata-obj_name = 'Booking Advice'.
    *-- Mail Subject
      CONCATENATE l_filename '-' 'Shipment No -' w_ship INTO wa_maildata-obj_descr SEPARATED BY space.
    *-- Mail Contents
      t_mailtxt-line = 'Packing List'.
      APPEND t_mailtxt.
    ENDIF.
    *-- Prepare Packing List
    *-- Write Packing List (Main Subject)
      CLEAR: l_lines, t_mailpack.
      DESCRIBE TABLE t_mailtxt LINES l_lines.
    *  READ TABLE t_mailtxt INDEX l_lines.
      t_mailpack-doc_size = ( l_lines - 1 ) * 255 + STRLEN( t_mailtxt ).
    *  CLEAR t_mailpack-transf_bin.
      t_mailpack-transf_bin = ' '.
      t_mailpack-head_start = 1.
      t_mailpack-head_num = 0.
      t_mailpack-body_start = 1.
      t_mailpack-body_num = l_lines.
      t_mailpack-doc_type = 'RAW'.
      APPEND t_mailpack.
      t_mailhead = l_filename.
      APPEND t_mailhead.
    *-- Write Packing List (Attachment)
      CLEAR: l_lines, t_mailpack.
      DESCRIBE TABLE pdf_tab[] LINES l_lines.
    *  READ TABLE pdf_tab INDEX l_lines.
      t_mailpack-doc_size = ( l_lines - 1 ) * 255 + STRLEN( t_mailbin ).
      t_mailpack-transf_bin = 'X'.
      t_mailpack-head_start = 1.
      t_mailpack-head_num = 1.
      t_mailpack-body_start = 1.
      t_mailpack-body_num = l_lines.
      t_mailpack-doc_type = 'PDF'.
      t_mailpack-obj_name = l_filename.
      t_mailpack-obj_descr = l_filename.
      t_mailpack-obj_langu = 'E'.
      APPEND t_mailpack.
    *-- Set recipients
    tables :  ztotcemail.
    SELECT SINGLE * FROM vbfa WHERE vbelv EQ nast-objky
                                AND vbtyp_v EQ c_vbtyp_v_j
                                AND vbtyp_n EQ c_vbtyp_n_8.
    CLEAR vttk.
    SELECT SINGLE * FROM vttk WHERE tknum EQ vbfa-vbeln.
    SELECT SINGLE * FROM ztotcemail WHERE tplst = vttk-tplst
                                      AND lifnr = vttk-tdlnr.
    IF SY-SUBRC EQ 0.
      t_mailrec-receiver = ztotcemail-smtp_addr. "'Here you will give the email address'.
      t_mailrec-rec_type  = 'U'.
      APPEND t_mailrec.
    ENDIF.
    **-- Sending the document
      CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
        EXPORTING
          document_data              = wa_maildata
          put_in_outbox              = 'X'
    *      commit_work                = 'X'  " N-16
        TABLES
          packing_list               = t_mailpack
          object_header              = t_mailhead
          contents_bin               = t_mailbin[]
          contents_txt               = t_mailtxt[]
          receivers                  = t_mailrec
        EXCEPTIONS
          too_many_receivers         = 1
          document_not_sent          = 2
          operation_no_authorization = 4
          OTHERS                     = 99.
      w_email_subrc = sy-subrc.
      IF sy-subrc EQ 0.
        MESSAGE s000(zotc) WITH 'Email output sent successfully'.
      ELSE.
        MESSAGE s000(zotc) WITH 'Can not send email output'.
      ENDIF.
    endform.                    " SEND_EMAIL
    Hope the above information will be helpful.
    Regards,
    Kittu

  • How to download the report output  into PDF format

    Hi friedns
    from the report output when user clicks download button
    it has to download to PDF format
    how to do this
    thanks in advance
    venu

    hi venu,
    check this sample code
    Save Report Output to a PDF File
    This report takes another report as input, and captures the output of that report. The output is then converted to
    PDF and saved to a local file. This shows how to use some of the PDF function modules, as well as an easy way to
    create PDF files.
    Source Code Listing
    report zabap_2_pdf.
    *-- Enhancements: only allow to be run with variant. Then called
    *-- program will be transparent to users
    *-- TABLES
    tables:
    tsp01.
    *-- STRUCTURES
    data:
    mstr_print_parms like pri_params,
    mc_valid(1) type c,
    mi_bytecount type i,
    mi_length type i,
    mi_rqident like tsp01-rqident.
    *-- INTERNAL TABLES
    data:
    mtab_pdf like tline occurs 0 with header line,
    mc_filename like rlgrap-filename.
    *-- SELECTION SCREEN
    parameters:
    p_repid like sy-repid, " Report to execute
    p_linsz like sy-linsz default 132, " Line size
    p_paart like sy-paart default 'X_65_132'. " Paper Format
    start-of-selection.
    concatenate 'c:\'
    p_repid
    '.pdf'
    into mc_filename.
    *-- Setup the Print Parmaters
    call function 'GET_PRINT_PARAMETERS'
    exporting
    authority= space
    copies = '1'
    cover_page = space
    data_set = space
    department = space
    destination = space
    expiration = '1'
    immediately = space
    in_archive_parameters = space
    in_parameters = space
    layout = space
    mode = space
    new_list_id = 'X'
    no_dialog= 'X'
    user = sy-uname
    importing
    out_parameters = mstr_print_parms
    valid = mc_valid
    exceptions
    archive_info_not_found = 1
    invalid_print_params = 2
    invalid_archive_params = 3
    others = 4.
    *-- Make sure that a printer destination has been set up
    *-- If this is not done the PDF function module ABENDS
    if mstr_print_parms-pdest = space.
    mstr_print_parms-pdest = 'LOCL'.
    endif.
    *-- Explicitly set line width, and output format so that
    *-- the PDF conversion comes out OK
    mstr_print_parms-linsz = p_linsz.
    mstr_print_parms-paart = p_paart.
    submit (p_repid) to sap-spool without spool dynpro
    spool parameters mstr_print_parms
    via selection-screen
    and return.
    *-- Find out what the spool number is that was just created
    perform get_spool_number using sy-repid
    sy-uname
    changing mi_rqident.
    *-- Convert Spool to PDF
    call function 'CONVERT_ABAPSPOOLJOB_2_PDF'
    exporting
    src_spoolid= mi_rqident
    no_dialog = space
    dst_device = mstr_print_parms-pdest
    importing
    pdf_bytecount = mi_bytecount
    tables
    pdf = mtab_pdf
    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.
    call function 'DOWNLOAD'
    exporting
    bin_filesize = mi_bytecount
    filename = mc_filename
    filetype = 'BIN'
    importing
    act_filename = mc_filename
    tables
    data_tab = mtab_pdf.
    FORM get_spool_number *
    Get the most recent spool created by user/report *
    --> F_REPID *
    --> F_UNAME *
    --> F_RQIDENT *
    form get_spool_number using f_repid
    f_uname
    changing f_rqident.
    data:
    lc_rq2name like tsp01-rq2name.
    concatenate f_repid+0(8)
    f_uname+0(3)
    into lc_rq2name separated by '_'.
    select * from tsp01 where rq2name = lc_rq2name
    order by rqcretime descending.
    f_rqident = tsp01-rqident.
    exit.
    endselect.
    if sy-subrc ne 0.
    clear f_rqident.
    endif.
    endform." get_spool_number
    Regards,
    Naveen

  • How to find a report output - URGENT

    Hi all,
    We have an ABAP program and its basically a report, how can I see the output of the report ie the list.
    Please let me know
    thanks
    Sabrina.

    thanks Priyank for your reply.
    Well we have an ABAP program in BW that outputs a flat file of data.  It is basically a report, it runs every morning and I need to find out the output of the report.  In SM37 when I select the job and click the button SPOOL, I get the following message that I don't have authorization to view the list.
    No authorization to select from spool request 24,323 in system CBP
    and then it says list contains no data.
    What should I do?  Please let me know.
    thanks
    Sabrina.

  • Report output in HTML not as in PDF

    I have developed a report in Report builder 10g when i get its output in HTML in browser from application, it does not show its format as like in PDF for example heading background colors, fields background colors and frame lines not showing in HTML format but in PDF there is no problem.
    Thanks in Advance.

    Unfortunately those are HTML restrictions.
    From the Reports Builder Online Help you can see the following for HTML output
    - The only drawn object supported in HTML is a solid, black, horizontal line. The line width specified in the report may be honored depending upon the browser. All other drawn objects (for example, rectangles or circles) in the report layout will not show up in the HTML output. Space for these drawn objects is reserved, but there is no visible representation in the HTML output.
    - Background (fill) and border (line) colors/patterns for text are not available in HTML. Bold, italic, underline, and foreground (text) color are supported if the browser supports them
    ====
    Hope it helps

Maybe you are looking for

  • Ram compatibility for White Macbook 2006

    Want to upgrade RAM and note Apple specs say RAM Type: PC2-5300 SO-DIMM 200 pin Someone local to me is selling the following 2007 Two x 1 GB PC2-5300 S)-CIMM/CL5 laptop ram # Memory Type: DDR2 667 SDRAM (MicroDIMM) # Capacity: 1GB # Bus Speed: 667MHz

  • MY MUSIC WILL NOT PLAY

    i have a 30 GB ipod cideo and i load songs on but when i try to play any songs on it they skip. i press the play button and the song titles come up lik ethe song is about to play but then the song doesnt play and then it goes to the next song as if t

  • Why is the time on my phone going back 2 hrs?

    When I woke this morning, my weather location was showing that my phone was located somewhere in Canada, The phone time was also 2 hours behind EST. I checked the phone settings and Time and Date are set to Automatic / Network provided values. I rebo

  • Problem Using Cookies

    I am using RoboHelp HTML 8. When using View Selected Item to view a topic I can use JavaScript to write and read information from a cookie. However, when compiled into a .chm file the same topic will no longer create a cookie (and presumably it also

  • ESS - Managers can view current salaries on old org structure

    Hi, I have a problem in SAP MDT and am hoping for some help. A manager can change the date range in MDT to view historical organisational structures and data... My problem is that managers can view old organisational structures with up to date person