SAve output in html automatically.

Hi Freinds!
I need to save the out of my report into html automatically. I have a report which shows the pro-rate factor for a given period and delivers the output, i have an include program added to it which automates the process to directly save this out into html format and store in my N drive for future use as if this si lost its lost forever..
Unfortunatley I am unable to store it on my N drive , but when I change in my report to C drive it does automatically stores it there but not my N drive and an error pops saying Access denied.
Kind help will be appreciated.
Aarav

The code I have inserted is as follows.
*&  Include           ZMM_SAVE_LIST_HMTL
data: html type table of W3HTML with header line,
      gs_html type w3html,
      g_file type string,
      g_size type i,
      g_entries type i.
data: p_file_o(128) type c.
constants: p_file(128) type c value 'C:\'.
*     'N:\private\Production Accounting\Production Accounting\2008 Production\MonthEnd\0108\'.
  concatenate p_file syst-tcode p_werks p_lgort '.HTM' into p_file_o.
  CALL FUNCTION 'WWW_LIST_TO_HTML'
*   EXPORTING
*     LIST_INDEX       = 0
    TABLES
      HTML             = html.
  describe table html lines g_entries.
  read table html into gs_html index g_entries.
  g_size = g_entries * 510.
  g_file = p_file_o.
  CALL FUNCTION 'GUI_DOWNLOAD'
    EXPORTING
     BIN_FILESIZE                    = g_size
      FILENAME                        = g_file
      FILETYPE                        = 'BIN'
*     APPEND                          = ' '
*     WRITE_FIELD_SEPARATOR           = ' '
*     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                       = ' '
*     TRUNC_TRAILING_BLANKS_EOL       = 'X'
*     WK1_N_FORMAT                    = ' '
*     WK1_N_SIZE                      = ' '
*     WK1_T_FORMAT                    = ' '
*     WK1_T_SIZE                      = ' '
*   IMPORTING
*     FILELENGTH                      =
    TABLES
      DATA_TAB                        = html
*     FIELDNAMES                      =
   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
*        MESSAGE ID SY-MSGID TYPE 'I' NUMBER SY-MSGNO
         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.

Similar Messages

  • 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.

  • Output Type not automatically determined at invoice creation

    Hi Friends,
    I am facing a problem that while i am generating the invoice for a particular billing document type, the output type is not automatically being determined. Instead, I have to go into the invoice in change mode (VF02) Header>Output and assign the output type to it and select the local printer and save in order to print the invoice.
    I am generating the invoice for this Invoice Type/Output type for the first time.
    Please suggest the possible causes.
    Regards,
    Pankaj

    Hello Pankaj,
    Suppose you are using output type RD00 for invoice print out. You have maintained the condition record for RD00 in transaction code VV31. The most important thing here is the assignment of the printer.
    Suppose for output type RD00 you are maintaining the condition record for key combination - Sales Organization + Distribution Channel + Division.
    At the header level you will see the Sales Organization & Distribution Channel & at the item level you will see the Division.
    Sales Organization = BP01
    Distribution Channel = 01
    Division.............Name..........Funct.........Partner............Medium......Disp. Time.....Langu
         01............... Std Division..........BP............--......................1......................3................---
    Select the line item & click on Communication. Here assign the output type which you will use for the print out. Now Save the condition record.
    After doing this try running one sales cycle  - sales order - delivery - invoice. Save the invoice & now check in the change mode (transaction code VF02) the system will determine the output type RD00 automatically.
    Note:
    1. In the create mode the system will not display the output type RD00, after you have saved the invoice the output type will be determined automatically.
    2. Also check if there is any requirement assigned for the key combination in the access sequence (IMG - Sales and Distribution - Basic Functions - Output Control - Output Determination - Output Determination Using the Condition Technique - Maintain Output Determination for Billing Documents - Maintain Access Sequences)
    With best regards,
    Allabaqsh.
    (Idhasoft Ltd.)

  • Report Output In HTML Format

    Hi,
    i have my report output of 4 paes. when i tried to save them in HTML format , it saves all pages all together in 1 html. i want to save each page in different html.
    like i have 4 pages in report output .. i want 4 html for each different page .
    Can anybody help me ..its urgent

    Hi,
    You can do in this way ...
    CALL FUNCTION 'WWW_ITAB_TO_HTML'
         TABLES
              HTML   = F_HTML
              FIELDS = FLDS
              ITABLE = ITAB.
    IF SY-SUBRC NE 0.
      WRITE: / 'Error in generating the html format'.
      EXIT.
    ENDIF.
    CALL FUNCTION 'WS_DOWNLOAD'
         EXPORTING
              FILENAME         = 'c:test.html'
              MODE             = 'BIN'
         TABLES
              DATA_TAB         = F_HTML
         EXCEPTIONS
              FILE_OPEN_ERROR  = 1
              FILE_WRITE_ERROR = 2
              OTHERS           = 9.
    call these 2 Fucntion modules for every page. so each page it wil downlaod a HTML page
    Regards
    Sudheer

  • Save Output to: setting not being saved

    This has been driving me nuts for a couple of years, so I figured I'd finally ask if anyone else sees this behavior.
    My script grabs a PDF and converts each page to new, separate, PDF files using a custom name and number. There are three components: Ask for Finder Items, PDF to Images, and Make Finder Item Names Sequential.
    My problem appears in the PDF to Images part. I have the "Save Output to:" setting set to a folder ON my desktop (Outbox). Every time I open the script it has reverted to "Save Output to: Desktop". I can change it, run the script from within Automator, and it works fine. If I save it (or save-as), when I next open the script, it will have reverted to Desktop. I have tried every iteration I can think of to get it to remember to store the files in the correct folder, but it just won't save this setting.
    I am in the habit of just opening the script first, and changing the setting, then running the script before I have closed it, so this is no big deal -- but it does make it two more steps, which kinda defeats the whole purpose of automator.

    Understood, but you mentioned scripts and AppleScript is used extensively with workflows. If there aren't any in yours, then all I can suggest is peruse http://www.automatedworkflows.com/tips/podcast.html
    Also, see http://discussions.apple.com/thread.jspa?threadID=2039384 and Introduction to Automator tutorial at http://automator.us/leopard/video/index.html

  • Convert pdf and output to html

    I need help!
    If I have a pdf file and I want to upload to iFS, should I convert it to html or test format and save to database with iFS feature? Or it's better to save as a pdf file and output as html with iFS feature.
    Also, if I a some images in the pdf file, what should I do?
    Thank you so much in advance.
    Hong
    null

    Try to use filterDocumnet() and getFilteredDocument() in oracle.ifs.beans.Document. It helps to generate the PDF into HTML format.
    null

  • Output type not automatically determined (no output device specified)

    the output device is already specified for this output
    we dont want to manually add the output on all the invoices where the output was not automatically determined before... what should we do?
    is there a way not to manually add them?
    thanks in advance
    Pablito

    Hi
    You really dont need to add the output in all these documents.
    You have to maintain the masterdata for output records in VV31.
    Now just open all the invoice documents one by one in Change mode through transaction code VF02 and just save it
    Whenever a document is opened in change mode, the output gets automatically triggered. Hence the output type will be automatically populated in the output screen. Once you save the document, the output gets successfully executed, and you will get the desired document
    Reward if this helps you

  • Adobe Bridge CS6, Output to HTML Gallery coding issue.

    Adobe Bridge CS6, Output to HTML Gallery coding issue.
    I have created the html, JavaScript, css file using the output function in Bridge CS6, which nicely generates the coding, pages, folders and files. I can edit the html files such as gallery title, name, etc., in Dreamweaver CS6 just fine and preview them in a selected browser (both chrome and IE) and everything works fine.
    When I ftp upload the files and directories into my hosting account (Go Daddy), the images do not show up. The file table appears but the thumbs images does not appear and when selected to preview the larger image, it does not appear either. I have not altered the file structure at all. Go Daddy says it is a coding issue, but I cannot fine any errors.
    Have you seen this issue before? All Adobe help research have failed. Any suggestions??

    Have you asked on Go Daddy site for help in uploading Adobe Bridge script?  Just to say it is coding is not helpful. 

  • Email Output type : No Automatic trigger of output type while saving doc.

    Hi Gurus - To trigger an email from the output type, I've configured a output type with medium as 5(external send) with communication strategy and created condition records with medium as 5 to trigger immediately.
    While creating corresponding document, the output is not automatically determined, it required to manually feed the output type every time. Can you please provide if any settings were missed to trigger immediately!!
    In Output analysis showing a message as "No print data determined for the communication strategy"
    Steps:
    1. Configured the output type with Medium as"5" and associated partner functions.
    2. Created the condition records with medium as 5 and trigger immediately.
    Thanks,
    Sree

    Hi ,
    while maintaining condition record for output type when you click on communication method, give logical destination as 'LP01'.Hope this will solve.PLease let me know if you have any issues on this.
    Thanks and regrads,
    Rajeshwar

  • Need some help in saving video message from viber to my Iphone. I disabled the thing that would save photos and videos automatically then, there comes a video I want to save. After loading and watching it, I press the "save to gallery"

    Need some help in saving video message from viber to my Iphone 5S with new ios 8's program . I disabled the thing that would save photos and videos automatically then, there comes a video I want to save. After loading and watching it, I press the "save to gallery" thing but it doesn't save in gallery. I tried all, restarting my phone, rebooting then turning on the save automatically thing and when I watch it again, it still wouldn't save.

    Probably a good question to ask Viber or look at their support site.

  • Smartform output in html

    Dear all ,
    I want to take smartform output in html format . the logos are not coming as well as the header template the records are coming in next line not side by side .my code is :
        gs_output_options-xsfcmode  = 'X'.
        gs_output_options-xsf = 'X'.
        gs_output_options-xsfoutmode = 'A'.
        gs_output_options-xsfformat = 'X'.
        xsfparam_line-name  = 'GRAPHICS'.
        xsfparam_line-value = 'EXTRACT'.
        APPEND xsfparam_line TO gs_output_options-xsfpars.
        xsfparam_line-name  = 'GRAPHICS-DIRECTORY'.            
        xsfparam_line-value = c_gr_dir.
        APPEND xsfparam_line TO gs_output_options-xsfpars.
        xsfparam_line-name  = 'CONTENT-ID'.                  
        xsfparam_line-value = 'ENABLE'.                        
        APPEND xsfparam_line TO gs_output_options-xsfpars.
      CALL FUNCTION fm_name
       EXPORTING
         control_parameters = gs_ssfctrlop
         output_options     = gs_output_options
      p_graphics[] = gs_job_output_info-xmloutput-xsfgr[].
      p_html = gs_job_output_info-xmloutput-trfresult
        CONCATENATE 'C:\TEST\TC1_' p_vbeln '.html' INTO p_file.
        CALL FUNCTION 'GUI_DOWNLOAD'
          EXPORTING
            BIN_FILESIZE            = html_len
            filename                = p_file
            filetype                = 'BIN'"'ASC'
           trunc_trailing_blanks   = 'X'
          TABLES
            data_tab                = p_html-content
          CALL METHOD cl_gui_frontend_services=>execute
            EXPORTING
              document               = p_file

    This question (logos and html smartform output) has been discussed several times related to email sending.  Try searching the forum.  You may find some relevant info in other posts.  Have you tried reaching the url that's generated for the logo?

  • How do I save songs in the Automatically Add to iTunes folder

    How do I save songs in the Automatically Add to iTunes folder?  Is this done via settings somehow?
    Stated another way......songs recently added to my music folders in the iTunes libary are not updated in the media library automatically.  How do I save songs in the Automatically Add to iTunes folder?
    Still another way......I'm trying to backup songs in my iTunes library by dragging them into a flash drive.  But I noticed that not all songs are included in the iTunes Media folder from which I am making my backup file.  Is there a better way to do a backup?  If not, how do I get the iTunes Media file updated to include all songs in my iTunes library?

    See this Apple support document.
    http://support.apple.com/kb/ht1751
    B-rock

  • Smartform output as html

    Hello,
    I want to convert smartform output to html and send the output in an email body. I have followed the blog Sending HTML Email from SAP CRM/ERP and got the output in outlook but its not formatted correctly in other email clients. If any body else had same issues and was able to resolve, please suggest. Also I am trying to convert form spool output to html and send it but I am not able to use LIST_FROM_MEMORY Fm , its not returning the abap list table. So is there a way to convert form spool output to abap list?

    HI friend,
    I am not having the exact solution for your requirement but i think this will help you a bit.
    See this white paper in SND for sending mails in HTML format.
    Link: [Sending mail with HTML attachment|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/e009f97e-ee5d-2e10-31ba-9c9509e5925c?QuickLink=index&overridelayout=true]
    I think this will help you. If you have any doubt in that white paper please revert back to me i will help you.
    Thanks,
    Sri Hari

  • Bridge CS6 Output to HTML Gallery - images not showing up

    Bridge CS6 Output to HTML Gallery issue - my images are not showing up. The files look the same on the local and remote files. The images populate on the local and not on the remote. Is this a JavaScript problem.
    Any help is appreciated.
    I've done a work around solution by using Lightroom, creating a quick collection for a custom order HTML web gallery. I would much prefer to stay within Bridge CS6 and have its HTML gallery actually work...

    Hi AlbiDan,
    Its possible that it might be a Javascript issue. I see that javascript is used in the HTML gallery. Did you upload through Bridge or from an FTP client? Do you have the URL for a broken gallery?
    -Dave

  • Download Background job output to Excel automatically

    Dear Experts,
    Hi there... Please note the following scenarion and give me your expert solutions on the same...
    I have created a SALES QUANTITY REPORT for exports... In this there are many conditions applied to achieve data in many of the columns of this report. If we run it for 2-3 months it is not a problem... The output comes at a marginal wait time... But the moment it is run for a whole year then it just goes on and on.... I cannot fine tune also.... because of the conditions... For better performance and fast retrieval i have used views in this report to achieve quick output...
    The thing is when i put it to execute in Background it comes within an hour or so... But the output is not readable.... so here is what i want:
    1. First of all why report executes so quickly when put in background, whereas in foreground it takes more than 4 hours and also no guarantee of output.. This is to satisfy my curiosity...
    2. I want the output to get automatically converted into excel and get stored in a specific folder the moment the job is finished in background without any format getting disturbed. The report is prepared in ALV...
    Please gurus help me out.
    Thanks...
    Jitesh

    It is giving me the following error: -
    17.02.2009 11:24:41 Job started                                                                             00           516          S
    17.02.2009 11:24:41 Step 001 started (program Z_SD_SQR_EXPORT, variant &0000000000007, user ID JBABAP)      00           550          S
    17.02.2009 11:24:45 Incorrect Print Parameter                                                               0K           091          I
    17.02.2009 11:24:45 Spool request (number 0000014520) created without immediate output                      SY           355          S
    17.02.2009 11:24:45 Excel file c:\sqr\sqrexport.xls cannot be processed                                     UX           893          E
    17.02.2009 11:24:45 Job cancelled after system exception ERROR_MESSAGE                                      00           564          A
    form DOWNLOAD .
    CALL FUNCTION 'SAP_CONVERT_TO_XLS_FORMAT'
      EXPORTING
    *   I_FIELD_SEPERATOR          =
    *   I_LINE_HEADER              =
        i_filename                 = 'c:\sqr\sqrexport.xls'
    *   I_APPL_KEEP                = ' '
      tables
        i_tab_sap_data             = it_final
    * CHANGING
    *   I_TAB_CONVERTED_DATA       =
    * EXCEPTIONS
    *   CONVERSION_FAILED          = 1
    *   OTHERS                     = 2
    IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    endform.                    " DOWNLOAD
    Please reply..
    Thanks,
    Jitesh

Maybe you are looking for