Downloading a file from Database [Blob field]

I am trying to write an application which can upload and download files [Excel, Word etc.] to/from an Oracle 9i database Blob field. I am using Java/JSP for the same.
The upload part works just fine. However, when I try to download the file that I uploaded, I get an error.
A dialog box comes up asking me to Open/Save the file. However, when I try to save it, it says
�Internet Explorer cannot download �..tion=download&planId= testplan from localhost
Internet Explorer was not able to open this Internet Site. The requested site is either unavailable or cannot be found. Please try again later.�
I am using IE 6.0. I tested the same with Firefox browser and was able to download the file.
Can anyone help?
Code:
Following is the code I am using for the same.
/* Code to retrieve from Blob field */
String sqlString = "SELECT PLAN_DOCUMENT_NAME,PLAN_DOCUMENT FROM BRS_PLAN_DESCRIPTION WHERE PLAN_ID = ?";
ps = con.prepareStatement(sqlString);
ps.setString (1,planId);
rs = ps.executeQuery();
while (rs.next()) {
     fileBytes = rs.getBytes("PLAN_DOCUMENT");
     fileName = rs.getString("PLAN_DOCUMENT_NAME");
brsPlanDocument.setPlanId(planId);
brsPlanDocument.setFileName(fileName);
brsPlanDocument.setFileBytes(fileBytes);
/* Code for download */
String fileName = brsPlanDocument.getFileName();
String fileType = fileName.substring(fileName.indexOf(".")+1,fileName.length());
if (fileType.trim().equalsIgnoreCase("txt"))
     response.setContentType( "text/plain" );
else if (fileType.trim().equalsIgnoreCase("doc"))
     response.setContentType( "application/msword" );
else if (fileType.trim().equalsIgnoreCase("xls"))
     response.setContentType( "application/vnd.ms-excel" );
else if (fileType.trim().equalsIgnoreCase("pdf"))
     response.setContentType( "application/pdf" );
else if (fileType.trim().equalsIgnoreCase("ppt"))
     response.setContentType( "application/ppt" );
else
     response.setContentType( "application/octet-stream" );
response.setHeader("Content-Disposition","attachment; filename=\""+fileName+"\"");
response.setHeader("cache-control", "no-cache");
byte[] fileBytes=brsPlanDocument.getFileBytes();
ServletOutputStream outs = response.getOutputStream();
outs.write(fileBytes);
outs.flush();
outs.close();

Hi,
is this problem solved for you, I am also writing the java code to store different files in blob fields in database(db2udb) and allow users to open them through jsp pages. Upload seems to be working fine.....My big problem is only excel files are opened properly in both IE and Firefox. Word files, image files are not getting opened. Any suggestion as what I could be doing wrong....my jsp is kind of similar to the above one...
thanks in advace, please guide me
long pmsId = new Long(request.getParameter("pmsId")).longValue();
String fileName = request.getParameter("fileName");
int fileSeq = new Integer(request.getParameter("fileSeq")).intValue();
if(fileName.endsWith("txt")) {
response.setContentType("text/plain");
log.debug(" this is a text file");
} else if(fileName.endsWith("xls")) {
response.setContentType("application/vnd.ms-excel");
log.debug(" this is a excel file");
} else if(fileName.endsWith("gif")) {
response.setContentType("image/gif");
log.debug(" this is a image file");
} else if(fileName.endsWith("doc")) {
response.setContentType("application/msword");
log.debug(" this is a doc file");
} else if(fileName.endsWith("pdf")) {
response.setContentType("application/pdf");
log.debug(" this is a pdf file");
} else if(fileName.endsWith("ppt")) {
response.setContentType("application/ppt");
log.debug(" this is a ppt file");
} else {
response.setContentType("application/everythingelse");     
log.debug(" this is a unknown ile");
response.setHeader("Content-Disposition", "attachment;filename="+fileName);
OutputStream out1 = response.getOutputStream();
Class.forName("com.ibm.db2.jcc.DB2Driver");
db2Conn = DriverManager.getConnection("jdbc:db2:TESTDB","db2admin","db2fv1000");
//log.debug("connection obtained");
pstmt = db2Conn.prepareStatement(" SELECT * FROM UPLOADDOCS WHERE PMSID = ? AND DOCSEQ = ? ");
//log.debug("statemenmt prepared");
pstmt.setLong(1, pmsId);
pstmt.setInt(2, fileSeq);
rs = pstmt.executeQuery();
int count = 0;
if(rs.next()){
InputStream is = rs.getBinaryStream("DOCUMENT"); //"is" is
//now the binary data
//of the file
byte[] buf = new byte[4096];
int len;
while ((len = is.read(buf)) > 0)
     out1.write(buf, 0, len);
out1.close();
out1.flush();

Similar Messages

  • How to download a file from database

    Hi,
    My flex application contains a form that uploads a file into the server. This file is however saved in the database, and not on the disk. Most of the tutorials in the database explains how to download a file by passing the file's url to the "download" function of the fileReference Object. That dsnt work for me as my file is saved in the database.
    How do I download this file from the server ?
    For example, in php, we would do smthing like this :
    $content = $file_to_download['content'];
    $size = $file_to_download['content_size'];
    $type = $file_to_download['content_type'];
    $name = $file_to_download['filename'];
    header("Content-type:$type");
    header("Content-length:$size");
    header("Content-Disposition:attachment;filename=$name");
    header("Content-Description:PHP Generated Data");
    echo $content;
    When executing this file, it opens up the "download file" dialog box. How do i get the same effect in flex 4 ?

    You need the bytes use FileReference.download() and after download you can save
    it on disk with FileReference.save(); You also need FP 10 at least I think. Use
    the docs they are less error pron than mi memory :).
    C

  • Displaying PDF file from database BLOB

    I have successfully added a PDF file to a table as a BLOB. Now, I need to display the BLOB. I have created the following package but it does not display anything. Can someone please help?
    SQL> create or replace package image_get
    2 as
    3 procedure pdf( p_id in demo.id%type );
    4 end;
    5 /
    Package created.
    SQL> create or replace package body image_get
    2 as
    3
    4 procedure pdf( p_id in demo.id%type )
    5 is
    6 l_lob blob;
    7 l_amt number default 30;
    8 l_off number default 1;
    9 l_raw raw(4096);
    10 begin
    11 select theBlob into l_lob
    12 from demo
    13 where id = p_id;
    14
    15 owa_util.mime_header( 'image/pdf' );
    16 begin
    17 loop
    18 dbms_lob.read(l_lob,l_amt,l_off,l_raw);
    19 htp.prn(utl_raw.cast_to_varchar2(l_raw));
    20 l_off := l_off+l_amt;
    21 l_amt := 4096;
    22 end loop;
    23 exception
    24 when no_data_found then
    25 NULL;
    26 end;
    27 end;
    28 end;
    29 /
    Package body created.
    SQL> DECLARE
    2 l_pdf int(1);
    3 begin
    4 l_pdf := 1;
    5 image_get.PDF(l_pdf);
    6 end;
    7 /
    PL/SQL procedure successfully completed.
    SQL> DECLARE
    2 Image1 BLOB;
    3 ImageNum NUMBER := 1;
    4 BEGIN
    5 SELECT TheBLOB INTO Image1 FROM demo
    6 WHERE id = ImageNum;
    7 DBMS_OUTPUT.PUT_LINE('Size of the Image is: ' ||
    8 DBMS_LOB.GETLENGTH(Image1));
    9 /* more LOB routines */
    10 END;
    11 /
    Size of the Image is: 14064
    PL/SQL procedure successfully completed.
    SQL> exit
    Am I missing something? I recently discovered that I need to set SERVEROUTPUT on to display the DBMS_OUTPUT. Is their some other environment variable I need to set.
    Thanks!

    *Always post code wrapped in <a href=http://wikis.sun.com/display/Forums/Forums+FAQ#ForumsFAQ-Arethereanyusefulformattingoptionsnotshownonthesidebar?"><tt>\...\</tt> tags</a>:*
      PROCEDURE lf_html_pdf (pv_image IN VARCHAR2, pv_index IN NUMBER) is
         l_mime        VARCHAR2 (255);
         l_length      NUMBER;
         l_file_name   VARCHAR2 (2000);
         lob_loc       BLOB;
      BEGIN
          begin
            selecT OI_BLOB,DBMS_LOB.getlength (OI_BLOB)
            into lob_loc,l_length
            from ord_img
            where  oi_tno= pv_image
              and oi_ti='PDF'
              and oi_idx=pv_index;
          exception
                when others then
                null;
            end;
         OWA_UTIL.mime_header (NVL (l_mime, 'application/pdf'), FALSE);
         HTP.p ('Content-length: ' || l_length);
         OWA_UTIL.http_header_close;
         WPG_DOCLOAD.download_file (lob_loc);
      END lf_html_pdf; Start by getting rid of:
          exception
                when others then
                null;and never using it anywhere ever again.
    If you're not actually going to use the <tt>l_mime</tt> and <tt>l_file_name</tt> variables then remove these as well. (Although I really think you should set a filename.)
    >
    Error report:
    ORA-06502: PL/SQL: numeric or value error
    ORA-06512: at "SYS.OWA_UTIL", line 356
    ORA-06512: at "SYS.OWA_UTIL", line 415
    ORA-06512: at "HCLABPRO.PKG_PDF", line 220
    ORA-06512: at line 2
    06502. 00000 - "PL/SQL: numeric or value error%s"
    >
    The error stack indicates that the exception is being raised in <tt>HCLABPRO.PKG_PDF</tt>: what is <tt>HCLABPRO.PKG_PDF</tt>? Does this actually have anything to do with the procedure above?
    I get the error message as below when i execute the procedure above;How do you execute it?
    What happens when it's executed without the <tt>when others...</tt> built-in bug?

  • Downloading a file from App Server to User's Desktop

    Hi All,
    I know that there are many threads on file upload and download :-)
    I have tried to browse through most of them and could not find my solution.
    The requirement is to place a file in the unix app server directory and allow the user to download it using a link, to the user's desktop. In case you think that this has already been answered in an old thread, kindly give me the pointer. Any sample code for doing this, would be great.
    I know how to upload a file from desktop to table/app server. I know how to download a file from a BLOB column in database.
    Thanks,
    Amit

    You would not be able to use file upload or download beans, as they interact with the database and not the filesystem.
    You would need to write a simple file reader routing in plain java.
    Tapash

  • Downloading data from a BLOB Field using mod_plsql

    Hi,
    I am trying to use the mod_plsql to download data from a blob field, I have a web page where I can pick the file name to be downloaded from the documents table This table has the BLOB field that has the Data formatted in a text file format(contains carriage returns), when I open it up in the browser it is displaying it correctly , but when I right click on the file name and choose "Save Target As" and save it as text file it is ignoring the carriage returns and displaying entire blob in one line.
    Can somebody help me figure out why it's not recognizing the carriage returns?
    Any help would be greatly appreciated.
    Thanks

    Hi and welcome to the forum.
    Is there a way to retrieve data from a blob field and save it to temp table.Why would you want to do that?
    Can you provide some more details regarding your requirement?
    (Don't forget to mention your database version as well)
    Also, I wonder why you've added a 'decompress' tag to your question?
    edit, after seeing Tubby's reply
    Dang, the connection must be frozen here ;)
    Edited by: hoek on Jan 6, 2010 9:06 PM

  • Download File From MySQL BLOB

    I have written code to successfully upload files of all types to a MySQL database BLOB column. Does anyone have any working code that successfully downloads a file from the MySQL database BLOB column and prompts the user with a Save/Open dialog box that does not involve first writing to the filesystem?
    I have used the following which works for Microsoft Word files but does not work for Microsoft PowerPoint files. Any suggestions?
    String extension = methodToReturnExtension(request);
    response.setContentType( "application/octet-stream" );
    String fileName = "FileName" + extension;
    response.setHeader("Content-Disposition", "attachment;filename=" + fileName);
    BufferedInputStream bufferedInputStream = new BufferedInputStream( methodToReturnInputStream() );
    ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
    int start = 0;
    int length = 1024;
    byte[] buff = new byte[length];
    while ( bufferedInputStream.read( buff, start, length ) != -1 )
         byteArrayOutputStream.write( buff, start, length );
    bufferedInputStream.close();
    response.setContentLength( byteArrayOutputStream.size() );
    response.getOutputStream().write( byteArrayOutputStream.toByteArray() );
    response.getOutputStream().flush();For PowerPoint files it tells me that PowerPoint cannot open this file so I am assuming the data is getting corrupted somehow. Any help would be appreciated.
    Thanks,
    Jim

    OK I figured this out...for the most part. The following code works as long as you follow the additional steps listed underneath the code as well.
    //1.  Get the extension and create the filename
    String ext = methodToReturnExtension();
    String fileName = "ConopsDocument" + ext;
    //2.  Set the headers into the request.  "application/octet-stream means that this
    //    is a binary file.
    response.setContentType("application/octet-stream");
    response.setHeader("Content-Disposition", "attachment;filename=" + fileName);
    //3.  Write the file to the output stream.
    BufferedInputStream bufferedInputStream = new BufferedInputStream( methodToReturnInputStream() );
    ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
    int data = -1;
    while ( (data = bufferedInputStream.read( )) != -1 )
         byteArrayOutputStream.write( data);
    bufferedInputStream.close();
    response.setContentLength( byteArrayOutputStream.size() );
    response.getOutputStream().write( byteArrayOutputStream.toByteArray() );
    response.getOutputStream().flush();
    response.setHeader("Cache-Control", "no-cache");
    Additional Steps
    1) You must write this file to a MySQL LONGBLOB, a MySQL BLOB column will hold only up to 65 K worth of data, which is much smaller than I would like the users to be able to upload.
    2) You must change the max_allowed_packet parameter of my.cnf (my.ini on windows) to a larger number to avoid a PacketTooBigException. For my purposes I changed it to 50M.
    Additionally, I am restricted by tomcat (I believe it's tomcat) from uploading files greater than about 20 Meg. I am still not sure why but for my purposes around 15 Meg will suffice and I am not going to spend any more time investigating this issue.
    Hope this helps anyone out there looking for info on this subject.

  • One field is missing in downloading the file from report

    Hi Friends,
    I have a problem with downloading the file from SAP.
    Actually the report has to download 6 fields from the list of the report to a .txt file on the presentation server. But it is downloading only 5 fields. The missing field is DEA#. Actually now i have to fix that problem.
    I found that in the download process they have not inlcuded the DEA# field.
    Here in this 1 field is not getting dowloading from the list of the report to the text file.
    I'm giving a portion of the code.
    Like this they r calling the FM:
    FORM DOWNLOAD_FILE.
      CALL FUNCTION 'DOWNLOAD'
           EXPORTING
                FILENAME = P_OUTFIL
           TABLES
                DATA_TAB = I_OUTPUT.
      IF SY-SUBRC <> 0.
        WRITE:/ 'Error downloading file'.
      ENDIF.
    in code we have,
    data: v_output type t_output,
    data: i_output type t_output occurs 0.
    and,
    BEGIN OF T_OUTPUT,
           RECORD(200),
           END OF T_OUTPUT.
    when i debug the program,
    the record field is showing only the 5 fields not the missing 6th filed)DEA#).
    and we have another FORM :
    *&      Form  FORMAT_FILE_WITH_TABS
          Insert tabs between fields so when uploaded in Excel, the
          record will be separated into columns where a tab is found.
    FORM FORMAT_FILE_WITH_TABS.
      LOOP AT I_KNA1 INTO V_KNA1.
        CONCATENATE: V_KNA1-KUNNR
                     V_KNA1-NAME1
                     V_KNA1-NAME2
                     V_KNA1-STRAS
                     V_KNA1-ORT01
                     V_KNA1-REGIO
                     V_KNA1-PSTLZ
           INTO V_OUTPUT SEPARATED BY C_TAB.
        APPEND V_OUTPUT TO I_OUTPUT.
        CLEAR V_OUTPUT.
      ENDLOOP.
    ENDFORM.                               " FORMAT_FILE_WITH_TABS
    If you look into this FM, there is no mention of DEA# field,
    i hve tried to correct it by adding the "v_likp_dea" in the FM. when i did like this it is showing the DEA# field in the downloaded .txt file but only 1 value for all the records.
    My question is for each record i have to show its unique DEA#.
    I guess i could do this by putting it in loop, could anybody tell me how i can i do that, Please
    Thank you very much.
    Raj.

    In the subroutine format_file_with_tabs ,
    You should read  it_likp with the key that uniquely identifies for dea# . This should be done in the loop at i_kna1.
    Suppose kunnr identifies a unique dea# in it_likp internal table , then you should write
    FORM FORMAT_FILE_WITH_TABS.
    LOOP AT I_KNA1 INTO V_KNA1.
    clear v_likp.
    read table it_likp into v_likp
       with key kunnr = v_kna1-kunnr binary search.   (should sort the itab to use binary search with read. )
    CONCATENATE: V_KNA1-KUNNR
    V_KNA1-NAME1
    V_KNA1-NAME2
    V_KNA1-STRAS
    V_KNA1-ORT01
    V_KNA1-REGIO
    V_KNA1-PSTLZ
    v_likp-dea
    INTO V_OUTPUT SEPARATED BY C_TAB.
    APPEND V_OUTPUT TO I_OUTPUT.
    CLEAR V_OUTPUT.
    ENDLOOP.
    ENDFORM. " FORMAT_FILE_WITH_TABS
    Message was edited by: Kalidas Cheroolil

  • Storing a file in a BLOB field in the database through forms

    Hi, I want to have a form that lets the user choose a file he has on his client side and load this file into a BLOB field in the database.
    I know how to use "GET_FILE_NAME" to get the file, the second part is what I'm having problems with. Do I use an OLE object? How do I initailize it? Or what is the best way to go? Thanks.
    --Bassem                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Are you looking for something like this?
    DECLARE
       l_temp  clob;
       l_text  varchar2(2000);
    BEGIN
        l_temp := httpuritype('http://www.oracle.com/PO.xsd').getclob;
        l_text := substr(l_temp, 1, 2000);
        dbms_output.put_line(l_text);
    END;N.B.: Not Tested...
    Regards.
    Satyaki De.

  • How to download a file from Middleware server

    Hi,
    I have a requirement to list file names in a table layout and when user clicks on file name, file must be downloaded to the client tier. Source files are located in 11i Apps middletier.
    I did not find any examples on how to achieve this using OAF. All I see is downloading file from BLOB inside a database.
    please help..

    OAMessageDownloadBean is the bean that lets you download a file from middletier.
    Please see the File Upload and Download chapter in devguide for implementation details.
    Thanks
    Tapash

  • How to Download a file from web server using servlets

    how do we download a file from Java Web Server connecting to oracle database
    it should start as soon a i click a button in my html browser
    please reply as it is needed to complete my project to submited to the collage

    With SQLJ you can do it.
    When you look at:
    http://otn.oracle.com/sample_code/tech/java/sqlj_jdbc/files/basic/basic.htm
    or
    http://otn.oracle.com/sample_code/tech/java/sqlj_jdbc/files/advanced/advanced.htm
    There are samples for reading LONGRAW / BLOB from Database. If you want use it in servlet you have to pass the result to the responce object, set the correct mime-type and set the response.setContentLength( xx). This is for some PlugIns nessessary (pdf).
    regards Dietmar

  • Loading class file stored in BLOB field

    - I am able to store and retrieve Java files and XML files in and from a BLOB field, but when I store a class file and try and load it using Class Loader, it us unable to load the class. The size of the class file increases by 1 byte when I retrieve it from the database. Is this some security feature by the JVM? Is it not possible to store, retrieve and load a class file from a database table?
    Thanks
    Harini

    Hi,
    First, I would suggest you use fiddler (http://www.telerik.com/fiddler) to compare these two different client requests, second, please try to use Azure Storage Explorer (http://azurestorageexplorer.codeplex.com/) to do
    this instead of the Azure Web Storage Explorer. 
    Best Regards,
    Jambor
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • I cannot display image (read from oracle BLOB field) on browser?

    I cannot display image (read from oracle BLOB field) on browser?
    Following is my code, someone can give me an advise?
    content.htm:
    <html>
    <h1>this is a test .</h1>
    <hr>
    <img  src="showcontent.jsp">
    </html>showcontent.jsp:
    <%@ page import="com.stsc.util.*" %>
    <%@ include file="/html/base.jsp" %>
    <% 
         STDataSet data = new STDataSet();
    //get blob field from database     
         String sql = "SELECT NR FROM ZWTAB WHERE BZH='liqf004' AND ZJH='001'";
         //get the result from database
         ResultSet rs = data.getResult(sql,dbBase);
         if (rs!=null && rs.next()) {
              Blob myBlob = rs.getBlob("NR");
              response.setContentType("image/jpeg");//
              byte[] ba = myBlob.getBytes(1, (int)myBlob.length());
              response.getOutputStream().write(ba);
              response.getOutputStream().flush();
         // close your result set, statement
         data.close();     
    %>

    Don't use jsp for that, use servlet. because the jsp engine will send a blank lines to outPutStream corresponding to <%@ ...> tags and other contents included in your /html/base.jsp file before sending the image. The result will not be treated as a valid image by the browser.
    To test this, type directly showcontent.jsp on your browser, and view it source.
    regards

  • How to download a file from application server to presentation server

    Hi experts,
    I want to download a file from application server to presentaion server, file contaims three fields customer name, customer email id and status..
    help me out i m new into sap.

    Dear Aditya,
    Please check below thread
    http://scn.sap.com/thread/1010164
    it will help you.
    BR
    Atul

  • How to download a file from the net and save it into .txt format in a datab

    Can some one show me a tutorial on how to download a file from the net and save it into .txt format in a database?
    Thank you,

    http://java.sun.com/docs/books/tutorial/networking/urls/readingWriting.html

  • How to download a file from AL11 inot Excel format without collapse the col

    Hi,
    Please suggest how to download a file from AL11 to Excel sheet.currenlty all field are merging into single column.I writing this file via using DATASET.
    Regards
    Ricky

    Hi,
       Try this code,
    ==============================================
    TYPES : BEGIN OF ty_emp,
              empno(2) TYPE c,
              empid(10) TYPE c,
              empname(3) TYPE c,
            END OF ty_emp.
    DATA : it_emp TYPE TABLE OF ty_emp,
            wa_emp TYPE ty_emp.
    DATA : pbk TYPE string.
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    PARAMETERS : p_file TYPE rlgrap-filename.
    PARAMETERS : p_asfile TYPE rlgrap-filename.
    SELECTION-SCREEN END OF BLOCK b1.
    pbk = p_file.
    OPEN DATASET p_asfile FOR INPUT IN TEXT MODE ENCODING DEFAULT.
      DO.
        READ DATASET p_asfile INTO wa_emp.
        IF sy-subrc <> 0.
          EXIT.
        ENDIF.
        APPEND wa_emp TO it_emp.
      ENDDO.
    CLOSE DATASET p_asfile.
    Filling the already created file with download PS radiobutton
      CALL FUNCTION 'GUI_DOWNLOAD'
        EXPORTING
      BIN_FILESIZE                  =
          filename                      = pbk
      FILETYPE                      = 'ASC'
         append                        = 'X'
         write_field_separator         = ' '
      HEADER                        = '00'
      TRUNC_TRAILING_BLANKS         = ' '
      WRITE_LF                      = 'X'
      COL_SELECT                    = ' '
      COL_SELECT_MASK               = ' '
      DAT_MODE                      = ' '
    IMPORTING
      FILELENGTH                    =
        TABLES
          data_tab                      = it_emp
    EXCEPTIONS
      FILE_WRITE_ERROR              = 1
      NO_BATCH                      = 2
      GUI_REFUSE_FILETRANSFER       = 3
      INVALID_TYPE                  = 4
      NO_AUTHORITY                  = 5
      UNKNOWN_ERROR                 = 6
      HEADER_NOT_ALLOWED            = 7
      SEPARATOR_NOT_ALLOWED         = 8
      FILESIZE_NOT_ALLOWED          = 9
      HEADER_TOO_LONG               = 10
      DP_ERROR_CREATE               = 11
      DP_ERROR_SEND                 = 12
      DP_ERROR_WRITE                = 13
      UNKNOWN_DP_ERROR              = 14
      ACCESS_DENIED                 = 15
      DP_OUT_OF_MEMORY              = 16
      DISK_FULL                     = 17
      DP_TIMEOUT                    = 18
      FILE_NOT_FOUND                = 19
      DATAPROVIDER_EXCEPTION        = 20
      CONTROL_FLUSH_ERROR           = 21
      OTHERS                        = 22
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ==============================================
    Regards,
    Krrishna

Maybe you are looking for

  • Trouble: oracle 8i on pentium 4

    i think that this bug has been quite well-known. there are some workarounds to solve this, like renaming sym..dll to something else... but it doesn't seem to work fine... so i am just wondering if there is any workarounds to install 8i on pentium 4.

  • APP-PAY-07900

    Hi All, I am new to Oracle HRMS. Can you please help me t find the answer for this error message. The erroe message id APP-PAY-07900: This position is not valid for the duration of the assignement. This actully coming while assigning the position for

  • Reg: measuring point creation and measuring point counter creation

    how to create measuring point and measuring point counter. what is the difference between these two. what is measuring point category, what is measuring point what is measuring point object what is measuring position. can anyone explain me in an easy

  • Adobe Illustrator CS6 Update (version 16.0.3) Installation failed?

    Adobe Illustrator CS6 Update (version 16.0.3) Installation failed. Error Code: U44M1P7 Photoshop update work fined. Macintosh running Mountain Lion.

  • A problem when building a BAPI. Thanks a lot.

    When I build a BAPI, can I use an exsiting data element to define an import parameter? Or I MUST define the data element for every parameter? Thanks a lot.