OAS Create File for Download with PL/SQL Pkg

On OAS 4.0.8.1, I am trying to create a PL/SQL DB Pkg to allow a WWW user to extract data from the DB and download it to their local workstation, for example, a class list of student names and ids in "tab-separated-values" format.
I think I have configured OAS and my browser to understand what to do with a MIME type of "TSV"s. I have issued the ora_util.mime_header to change the content type to "text/tab-separated-values", but all it does is send the header and the data to a WWW page. It appears that either the browser or the server does not recognize what to do with it, to prompt the browser to save the data (which is what I would like to have happen).
I am at my wit's end trying to figure out why it is not working. I have looked at all of the documentation I can lay my hands on, with no luck. Any suggestions, experiences, incantations?
Is what I am trying to do even reasonable? Is there a better way?
Phil
====
Phillip Brown
Administrative Computing
Information Services
Oregon State University

On OAS 4.0.8.1, I am trying to create a PL/SQL DB Pkg to allow a WWW user to extract data from the DB and download it to their local workstation, for example, a class list of student names and ids in "tab-separated-values" format.
I think I have configured OAS and my browser to understand what to do with a MIME type of "TSV"s. I have issued the ora_util.mime_header to change the content type to "text/tab-separated-values", but all it does is send the header and the data to a WWW page. It appears that either the browser or the server does not recognize what to do with it, to prompt the browser to save the data (which is what I would like to have happen).
I am at my wit's end trying to figure out why it is not working. I have looked at all of the documentation I can lay my hands on, with no luck. Any suggestions, experiences, incantations?
Is what I am trying to do even reasonable? Is there a better way?
Phil
====
Phillip Brown
Administrative Computing
Information Services
Oregon State University

Similar Messages

  • Error in maintenence optimizer while selecting files for download for EHP4

    HI,
    We are trying to download files for upgrade of ECC (HCM) and Portal systems from EHP3 to EHP4.
    This download we are doing through the Solman 7.0. Solman is currently at 7.0 but going to be upgraded soon to EHP1.
    Problem is that after we select the files for download of ECC EHP4, in step 2.1 i.e. 'choose stack', the next screen shows error as "Only one EhP release is allowed additionally".
    Is this because the Solman is not upgraded to EHP1 yet or soem other reason?
    Please let us know.
    Thanks for your time.
    Thanks & Regards,
    Kunal.

    ..have a look at the How-To Install EHP4 Guide (http://service.sap.com/~sapidb/011000358700000293582009E.PDF)
    3.4.2 Only one EHP release is allowed
    Issue: You get the error message: u201COnly one EHP release is allowedu201D
    Reason: This problem is documented in SAP Note 1139602.
    If you get this error message, then you already have installed another SAP enhancement package on this system before (for example SAP enhancement package 3 for SAP ERP 6.0).
    The error tells you that you have chosen too few technical usages. If you continued with this selection, you would not update all of the software components to SAP enhancement package 4 that are currently on SAP enhancement package 3. So in the end, some software components would be on SAP enhancement package 3 while others would be on SAP enhancement package 4. That way you would have several SAP enhancement package versions in one system, which is a state that is not supported.
    Solution: SAP Solution Manager Maintenance Optimizer requests you to select more technical usages and proposes a list for you to choose from.
    If you implement SAP Note 1287216, then Maintenance Optimizer automatically pre-selects the technical usages that are already installed on the system. In the example here, the technical usage Central Applications has been installed on a previous version of SAP enhancement packages.
    In rare cases you still get the error after accepting what SAP Solution Manager proposes. The reason for this is that you updated software components without properly covering technical usages.
    Hope that helps - best regards,
    Christian.

  • Function module to choose the file for download and upload

    what is the function module to choose the file for download and upload  for presentation server.
    give me with example

    Please search in SCN.
    This has been discussed so many times.

  • How do I add a PDF file for download to my iWeb page?

    How do I add a PDF file for download to my iWeb page?
    I have created one using Apples Pages program.
    Thanks!

    Hi-
    You need to create a text link to the file...
    On your page, type a word that you want to be the link... then select the word, and in the inspector pane, click the link tab (the arrow on the far right) and check "enable as hyperlink." Then choose "file" from the dropdown menu and a chooser box will open for you to locate the file on your hard drive.
    Choose the file by clicking "open" once it's located. Then the next time you publish, the file will be uploaded and linked to!
    Hope this helps... I think I got all the steps in there!

  • Problems creating the Master Repository with MS SQL Server 2000

    Hello guys!
    I can't create the Master Repository with MS SQL Server 2000 database.
    Wath is the correct adress in the URL?
    I select the Driver: com.microsoft.jdbc.sqlserver.SQLServerDriver and the URL: *jdbc:microsoft:sqlserver://<host>:<port>;SelectMethod=cursor[;<property>=<value>...]*
    Thanks
    Maurício
    Edited by: user857262 on 03/10/2008 10:05

    Hi Maurício,
    For MS SQL Server the following drivers should avaliable in /drivers folder (http://www.inetsoftware.de/),
    * msutil.jar
    * mssqlserver.jar
    * msbase.jar
    JDBC Driver is:
    com.microsoft.jdbc.sqlserver.SQLServerDriver
    JDBC URL is:
    jdbc:sqlserver://serverName\instance:port;property=value[;property=value]
    Example,
    jdbc:sqlserver://myHost:1433;selectMethod=cursor;databaseName=myDB
    Thanks,
    G

  • Error when creating files for transport request SAPK-700BGINPLMWUI

    Hello experts,
    We're upgrading our 46c System to ERP 6.0 EHP4.
    In Phase  EHP_INCLUSION we get the following error Message: Disassembling package queue failed, rc = "2", reason = "Error when creating files for transport request SAPK-700BGINPLMWUI"
    We've already checked the SAINT version; Upgrade Fix, SAPCAR version. We've checked our TMS as well and everything seems  O.K.
    Any help would be really appreciated!!!
    Complete Error message:
    EhP component PLMWUI, 700                                                                               
    Looking for SAINT package for 'PLMWUI' ...                                                                               
    R3upReadNewPackages:                                                                               
    patchType='U', langVect='DEC'                                                                               
    RFC Login to: System="X05", Nr="00", GwHost="sxt ", GwService="sapgw00"                                                 
    RFC Login succeeded                                                                               
    Calling function module "spda_read_new_packages" by RFC                                                                     
      ismovesVersion='0'                                                                               
    R3upReadNewPackages: exit: rc=0                                                                               
    ... No matching package found.                                                                               
    R3upReadNewPackages:                                                                               
    patchType='I', langVect='DEC'                                                                               
    RFC Login to: System="X05", Nr="00", GwHost="sxt ", GwService="sapgw00"                                                 
    RFC Login succeeded                                                                               
    Calling function module "spda_read_new_packages" by RFC                                                                     
      ismovesVersion='0'                                                                               
    R3upReadNewPackages: exit: rc=0                                                                               
    Found: name = 'PLMWUI', release = '700', package = 'SAPK-700BGINPLMWUI', type = 'AOI'                                  
    ... Matching package found: 'PLMWUI','700','SAPK-700BGINPLMWUI'                                                             
    (trc) R3upPatchDisassembleQueue: 1 package queue entries                                                                    
    (trc) R3upPatchDisassembleQueue: force=YES                                                                               
    (trc) R3upPatchDisassembleQueue: 1 packages will be disassembled                                                            
    Starting disassembling package queue                                                                               
    Date & Time: 20100319133139                                                                               
    Starting RFC Login to: System = "X05", GwHost = "sxt ", GwService = "sapgw00"                                           
    RFC Login to: System="X05", Nr="00", GwHost="sxt ", GwService="sapgw00"                                                 
    RFC Login succeeded                                                                               
    Calling function module "SPDA_DISASSEMBLE_QUEUE" by RFC                                                                     
    Input table IT_PATQ:                                                                               
    "SAPK-700BGINPLMWUI","000","AOI","PLMWUI","700","SAP PLM Web UI","00"                                                       
    Call of function module "SPDA_DISASSEMBLE_QUEUE" by RFC succeeded                                                           
    Logging off from SAP system                                                                               
    Date & Time: 20100319133139                                                                               
    Disassembling package queue failed, rc = "2", reason = "Error when creating files for transport request SAPK-700BGINPLMWUI"

    Hello Anthes,
    Please Check the things in following sequence :
    1.Use latest SAPehpi, R3trans and tp versions.
    2. users/group authorization issue and/or ownersip limitations (set 777) .Reboot the server to make sure, that the authorisations are updated and there is no lock on a file in the EHPI dir.Repeat the phase.
    Folders where permissions should be 777 are Upgrade directory, Data Directory, Cofile directory and .../EPS/in.
    3. Source file corruption can be ruled out by execution
    R3trans -l /usr/sap/<SID>/..../abap/data/R-700BGINPLMWUI.SAP (The data file corresponding to the Package which is giving error). Check if this ends fine.
    Note 2050
    4. Confirm that your transport tool is 'healthy' by testing it in STMS. In SPAM in client 000 use the function Disassemble package and enter the package <Package name>.
    5. Try to update the kernel if it not helps.
    Best Regards
    Niraj

  • How do I export v-card formatted files for use with either Numbers or Excel?

    How do I export v-card formatted files for use with either Numbers or Excel?

    Did you open Automator and just look around?
    Actions are listed in the left pane.
    You drag them into the workflow on the right in the order you need to process the items that you want.
    If this is a on-off requirement, just make a Workflow. If you plan to use it often, make it an Application.
    If you want to select the contacts you want to export, use a get Selected action. You'd then select the contacts in Contacts App before running the workflow.
    I'm not on a Mac to take screenshots, so you'll have to look at Automator's help or google for more info.

  • Product documentation for download with associated product

    I have a client that would like to list products on a website. These products will have documents associated with them. Is it possible to use the Media Download Module to upload all my documents and have them available for download with each corresponding product? Can I use the product database to make this happen? How do I associate the documents with each individual product?
    Each document would be unique to the associated product and I would like to make the process of associating documents for download as easy/painless as possible.
    Any help would be greatly appreciated. I dont exactly know where I should start looking.

    Hello Lucas_J,
    You can, from the product description wysiwyg, use the hyperlink manager to get a link to the document needed for the product. Once you've selected the media download you want; select the url, copy and paste it into a custom field.
    Then within the Large Product Layout, set up that custom field to be inside of an a tag:
    <a href="{tag_custom 1}">use tag for product name or give generic default</a>
    That to me would be the easiest you could make it.
    Hope this helps,
    Chad Smith | http://bcgurus.com/Business-Catalyst-Templates for only $7

  • I'm sorry, I have to convert the mov file. for use with fce and / or imovie11, better ProRes422 or intermediate codec?

    I'm sorry, I have to convert the mov file. for use with fce and / or imovie11, better ProRes422 or intermediate codec?

    FCE only used AIC for HD.
    Al

  • New After Effects project file for download

    New After Effects project file for download:
    http://marko-stojkovic.blogspot.com/p/animation_03.html
    and more on: http://www.marko-stojkovic.blogspot.com/p/animation_03.html

    Not that I'm aware of. I think the largest one I've ever made was around 98mb. At that point, the file became way too cumbersome, and I ended up splitting up the project more efficiently into multiple project files. There may be a limit, but if not, then it would probably be any file size limits imposed by your OS.

  • Why Apple doesn't provide .jpg-files for photos with date and our like Blackberry and Samsung?

    why Apple doesn't provide .jpg-files for photos with date and our like Blackberry and Samsung?
    I have to save photos (for medical use) on my pc and this suffix would be useful to identify them quicker.
    Thanks

    http://www.learn.usa.canon.com/resources/blogs/2014/20140708_winston_filenames_b log.shtml

  • Facing problem with posting Excel file for download - Content in browser

    I am trying to post an Excel file to download from a servlet to a JSP. The content is written properly but to the IE browser and not in an Excel. I even tried giving the ContentType as Word/CSV etc. But nothing works, the content gets displayed only in the browser.
    PLEASE HELP.
    Code snippet in calling JSP:
    DownloadServlet downServlet = new DownloadServlet();
    downServlet.download(response);
    Code in Servlet:
    public class DownloadServlet extends HttpServlet{
    public void download(HttpServletResponse response) throws IOException {
              /*PrintWriter out = response.getWriter( );
              response.setContentType("text/html");
              out.println("<H1>Hello from a Servlet</h2>"); */
         /*HSSFWorkbook wb = new HSSFWorkbook();
    HSSFSheet sheet = wb.createSheet("Sheet1");*/
    String strData = "This is a Test for Download";
    byte[] b = strData.getBytes();
    //response.reset();
    response.setHeader("Content-disposition", "attachment; filename=" + "Download.xls");
    response.setContentType( "application/msword" );
    //response.addHeader( "Content-Description", "Download Excel file" );
    ServletOutputStream out = response.getOutputStream();
    out.write(b);
    //out.flush();
    out.close();          
    }

    Hi Naresh,
    My thoughts on a possible solution, convert the last character value to a HEX value and check if it falls within the ASCII/Unicode CP range, Obviously this becomes easier if you are just looking at a single language character set.
    The below FM and code helps you check if the character falls within the ASCII char set.
    DATA: l_in_char TYPE string,
          l_out     TYPE xstring.
    CALL FUNCTION 'NLS_STRING_CONVERT_FROM_SYS'
      EXPORTING
        lang_used                   = sy-langu
        SOURCE                      = l_in_char
      TO_FE                       = 'MS '
    IMPORTING
       RESULT                      = l_out
      SUBSTED                     =
    EXCEPTIONS
       illegal_syst_codepage       = 1
       no_fe_codepage_found        = 2
       could_not_convert           = 3
       OTHERS                      = 4.
    IF l_out LT '0' OR l_out GT '7F'.
      WRITE: 'error'.
    ENDIF.
    Links: http://www.asciitable.com/
              http://www.utf8-chartable.de/unicode-utf8-table.pl
    Regards,
    Chen
    Edited by: Chen K V on Apr 21, 2011 11:25 AM

  • Cannot create file at download

    When I go to download a file, the Mini goes to the download page and starts to download the file. It stops after 8.3K of the file with the note of "can not create file" and the down load stops. I have tried to retry the download with out any success. I have checked the permissions and they ae OK. Where do I look??

    newdavetoapple-
    Greetings and welcome to the Apple boards.
    Gruisinger is on it-how full is the drive you are writing too? You may want to get yourself an external drive to both move some files too and to use for backup purposes.
    Luck-
    -DaddyPaycheck

  • Create data base table with EXEC SQL

    Hello,
    I nead to create o data base table with EXEC SQL in an Abap program.
    My code is :
    TRY.
       EXEC SQL.
          CREATE table zt_hello ( mandt char(4) NOT NULL,
                                  kunnr char(10) NOT NULL,
                                  PRIMARY KEY (mandt, kunnr) )
        ENDEXEC.
      CATCH cx_sy_native_sql_error INTO exc_ref.
        error_text = exc_ref->get_text( ).
    ENDTRY.
    IF sy-subrc = 0.
      COMMIT WORK.
    ENDIF.
    But it still not working.
    Can you help me please.
    Thanks.
    Edited by: widad soubhi on Jul 14, 2010 5:26 PM

    Please refer this code
    REPORT z_struct_create .
    DATA: my_row(500) TYPE c,
    my_file_1 LIKE my_row OCCURS 0 WITH HEADER LINE.
    DATA: dd02v TYPE dd02v.
    DATA: my_file_tab1 LIKE dd03p OCCURS 0 WITH HEADER LINE.
    SELECTION-SCREEN BEGIN OF BLOCK blk WITH FRAME TITLE text
    NO INTERVALS.
    PARAMETERS:
    name TYPE ddobjname,
    testo TYPE text40,
    file_1 LIKE rlgrap-filename.
    SELECTION-SCREEN SKIP.
    SELECTION-SCREEN END OF BLOCK blk.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR file_1.
    PERFORM file_selection USING file_1.
    INITIALIZATION.
    text = text-001.
    START-OF-SELECTION.
    IF file_1 IS INITIAL.
    MESSAGE ID 'Z0017_BDI' TYPE 'I' NUMBER 001.
    EXIT.
    ENDIF.
    CALL FUNCTION 'WS_UPLOAD'
    EXPORTING
    filename = file_1
    filetype = 'ASC'
    TABLES
    data_tab = my_file_1.
    IF sy-subrc 0.
    MESSAGE ID 'Z0017_BDI' TYPE 'I' NUMBER 002.
    EXIT.
    ENDIF.
    LOOP AT my_file_1.
    IF sy-tabix > 1.
    CLEAR my_file_tab1.
    SPLIT my_file_1 AT ';' INTO
    my_file_tab1-fieldname
    my_file_tab1-datatype
    my_file_tab1-leng
    my_file_tab1-decimals
    my_file_tab1-ddtext
    my_file_tab1-inttype = 'C'.
    my_file_tab1-INTLEN = my_file_tab1-leng.
    my_file_tab1-tabname = name.
    my_file_tab1-position = sy-tabix - 1.
    my_file_tab1-ddlanguage = sy-langu.
    my_file_tab1-OUTPUTLEN = my_file_tab1-leng.
    APPEND my_file_tab1.
    ENDIF.
    ENDLOOP.
    dd02v-tabname = name.
    dd02v-ddlanguage = sy-langu.
    dd02v-tabclass = 'INTTAB'.
    dd02v-DDTEXT = testo.
    dd02v-MASTERLANG = sy-langu.
    IF NOT my_file_tab1[] IS INITIAL.
    CALL FUNCTION 'DDIF_TABL_PUT'
    EXPORTING
    name = name
    dd02v_wa = dd02v
    TABLES
    dd03p_tab = my_file_tab1
    EXCEPTIONS
    tabl_not_found = 1
    name_inconsistent = 2
    tabl_inconsistent = 3
    put_failure = 4
    put_refused = 5
    OTHERS = 6
    IF sy-subrc 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    ELSE.
    MESSAGE ID 'Z0017_BDI' TYPE 'I' NUMBER 003.
    EXIT.
    ENDIF.
    *& Form file_selection
    -->P_FILE_1 text
    FORM file_selection USING p_file.
    CALL FUNCTION 'WS_FILENAME_GET'
    EXPORTING
    def_filename = ''
    def_path = 'c:\'
    mask = ',.,..'
    mode = '0'
    title = 'Selezione file'
    IMPORTING
    filename = p_file
    RC = RCODE
    EXCEPTIONS
    inv_winsys = 1
    no_batch = 2
    selection_cancel = 3
    selection_error = 4
    OTHERS = 5.
    ENDFORM. " file_selection
    File Template:
    Fieldname;Data Type;Lentgh;Dec.;Descr.
    FIELD1;CHAR;000020;000000;my field 1
    FIELD2;CHAR;000008;000000;my field 2
    FIELD3;CHAR;000007;000000;my field 3
    FIELD4;CHAR;000006;000000;my field 4

  • Read files in directories with PL/SQL

    Hi
    Is there any way to read files (just the names) in a directory just using PL/SQL? I mean, finding out the files with .dat extension in a given directory, for example.
    Thanks

    I don't know Forms but I know SQL*Plus and Oracle database. Normally PL/SQL running on the database can only access files on the host where the database instance is running even if you start PL/SQL with a SQL*Plus connection from another host.
    PL/SQL runs only the database instance not on the client side even if you start the PL/SQL code from a remote connection with SQL*Plus.

Maybe you are looking for

  • Development and features roadmap for MDM

    Hi Guys, Does anyone know of a good resource, where I can get an idea of what SAP's plans are for the developement of the MDM product? Thanks, Robert

  • Sharing movies after re-installing iMovie 5

    Gratefully found you guys the other day as crisis unfolded. Realised from reading here that problem with editing my movie was iLife '06. I'd installed it mid-project as well. Slapped wrist, lesson learned. Followed recipe to re-install 5. Went well.

  • Delete lines from internal table

    Hello experts! I have two internal tables. select options sa_tknr and gt_versand_plan. sa_tknr-low contents transportation-Nr. gt_versand_plan has transportation-Nr too (gt_versand_plan-tknum). How can I delete all transportation-Nr from gt_versand_p

  • Materials/links about programming macros with VBA in Dektop Intelligence (Business Objects 12)

    Hello! Does somebody provide me some good materials & links about programming with VBA in Dektop Intelligence for creating macros ? I am experienced VBA programmer and beginner in Business Objects

  • Monitoring system status in BAM

    Hi, Our Customer requires system status monitoring so the question is: Is it possible to monitor the status of the Database, the App server and the BPEL server and display it in BAM in a not too complicated way. Regards Eskil