File open error under document tab in tcode BP

Hi expert
In a report, I am reading path ,file type ,name from a text file from the presentation server. The file gives all the information related to the file uploaded on application server. File can be of any type like cfg ,doc txt, bmp .
I have to read and link the file under document tab in BP code I am able to link but not able to open the file from the link another text format is giving dump error saying format not supporting.
I am reading and linking in binary mode because i do not have another option as we can read the file in text and binary mode only.
Please suggest any solution for this .
Point will be rewarded for this.
Prem.
Edited by: Prem Kumar on Jan 12, 2009 2:39 PM
Edited by: Prem Kumar on Jan 12, 2009 2:40 PM

HI,
  Just try it simply as below.
the possible reasons could be.
1) file with that name is not existing in that path
2) path name is wrong (u gave it as c:/ give it as c:\)
3) file may be open..
how ever just try with giving the file path and the output table and see how it works
*-- Read the File From PC
  CALL FUNCTION 'GUI_UPLOAD'
    EXPORTING
      FILENAME = V_FILENAME
    TABLES
      DATA_TAB = I_FILE
    EXCEPTIONS
      OTHERS   = 17.
Thanks
mahesh

Similar Messages

  • How can i attache a file(any type) under document tab in bp by abap report

    Hi
    I have to attache a fiel of any type .xls doc txt etc under document tab of BP . can you please guide me hoe can i be able to dod that.

    Hi Prem,
    You can attach this manually in the document tab of BP. Thats the standard functionality.
    Regards
    Arun Kumar

  • File opening error

    hello friends,
    i am doing data migration with lsmw withe directinput method so i did everything fine till the end i defined the logicalfiles also correctly and defined everthing perfeclty
    but i am getting below error
    File open error
    belrd110\INPUT\CT.TXT Permission  denied
    can anyone let me know where this is going wrong
    i am having the authorisation at the server level also and in the read and convert steps records and data coming perfectly but when i excute it at the end it is giving such error
    ur help will be appreciated
    Naveen

    Hi Naveen,
    Did you write your statment like this?
    OPEN DATASET P_DOWN FOR OUTPUT IN TEXT MODE.
    If it is not working, try to create a new file and access the same.
    Thanks,
    Sreekanth

  • Same Numbers file opens fine under host but blank under VMWare guest

    Am working toward a daily use virtual machine as an operating environment.  Using VMWare Fusion 4 and Lion 10.7.4 for both host and guest.  Host and guest each have 4 GB RAM allocated and gobs of disk space.
    Have iWork '09 installed under both host and guest.  Trying to use a Numbers worksheet that's stored both in iCloud and DropBox - doesn't matter which, same results.  This is the same physical file accessed from both host and guest.  In the host, worksheet opens fine.  In the guest, Numbers '09 starts fine, but no worksheet contents show - the tree shows on the left, but worksheet shows blank.  Have tried pulling in backup copy and re-uploading to DropBox.  Same results.  Same behavior for Pages .09.
    Other applications (other than iWork) seem OK so far.
    Anyone have an idea what may be going on?
    Thanks!

    UPDATE:
    I have backed up to Lion 10.7.3 in a new vmware guest, reinstalled iWork '09 from the retail disk into the guest.  No change.  Pages, Numbers and Keynote work spaces all show empty on guest screen (even though same files open fine under hot side).
    I have downloaded latest Parallels, installed, created Lion 10.7.4 guest, installed iWork '09 from retail disk and same results.  Host works fine, guest loads but shows blanks screen.
    I had a note from one person who said they had similar setup and same s/w versions all around.  Says his works fine under guest.  So far, only difference I can see is that he's running Numbers and Pages apps he downloaded from the App Store whereas I'm using an iWork retail disk.  We're both using iWork '09 version 2.1.
    Really now, could THAT be the problem? 
    Ideas anyone?
    Thanks.

  • File open error at ftp even the file is not open.....

    Hi,
    i get the error File open with the fm GUI_UPLOAD while uploading the XML file from FTP server.
    What is interesting is that i did not open the file, furthermore i closed all the windows else that sap window,
    but still i get the file open error.
    We create the xml file when created a new delivery. And this xml file is sent to a bukrs's ftp and they also sent the same xml after some validations done.
    When it arrives to our ftp server i make it post goods issue automatically but from yesterday i got the file open error, it was working fine just before today.
    What could be the problem?
    Hint: Yesterday and previous day files still work fine but files created today are faulty.
    Thanks.

    Thanks for replies.
    My code is that:
    call function 'HTTP_SCRAMBLE'
        EXPORTING
          source      = gv_password
          sourcelen   = slen
          key         = gv_key
        IMPORTING
          destination = gv_password.
      describe field gv_password length gv_pwd_len in character mode.
      call function 'FTP_CONNECT'
        exporting
          user            = 'HHH\GrupMMM'
          password        = gv_password
          host            = '10.10.10.10' "assume that is the host
          rfc_destination = 'SAPFTPA'
        importing
          handle          = gv_handle
        exceptions
          not_connected   = 1
          others          = 2.
      if sy-subrc eq 0.
        "concatenate 'put' ld_full_path '[' ld_full_path ']'
        *gv_com = 'lcd C:\MMM\RETURN_FILES'.*
        clear mtab_data.
        free mtab_data.
        call function 'FTP_COMMAND'
          exporting
            handle        = gv_handle
            command       = gv_com
          tables
            data          = mtab_data
          exceptions
            tcpip_error   = 1
            command_error = 2
            data_error    = 3
            others        = 4.
        if sy-subrc eq 0.
        endif.
    When i get the list of the return files i get data of each file via gui_upload.
    CALL FUNCTION 'GUI_UPLOAD'
            EXPORTING
              filename   = filename
              filetype   = 'BIN'                             
            IMPORTING
              filelength = totalsize
            TABLES
              data_tab   = xml_table[]
            EXCEPTIONS
              FILE_READ_ERROR = 1
              FILE_OPEN_ERROR = 2
              NO_BATCH = 3
              GUI_REFUSE_FILETRANSFER = 4
              INVALID_TYPE = 5
              NO_AUTHORITY = 6
              UNKNOWN_ERROR = 7
              BAD_DATA_FORMAT = 8
              HEADER_NOT_ALLOWED = 9
              SEPARATOR_NOT_ALLOWED = 10
              HEADER_TOO_LONG = 11
              UNKNOWN_DP_ERROR = 12
              ACCESS_DENIED = 13
              DP_OUT_OF_MEMORY = 14
              DISK_FULL = 15
              DP_TIMEOUT = 16.
    However i get the open error for all files created today.
    By the way, how can i use open dataset instead of ftp commands? How can i see the files at apllication server?
    i get the files via IP of the FTP but how can i get files from application server?
    Thanks.

  • DVD-MOV mpegstream clip error: "File open error: unsupported file type"

    I do it all the time this is the only time i've gotten this error, i use mpeg stream clip. I have a dvd I got from a DVR recorder, I open the dvd which shows 2 VOB files in the TS folder. the MENU gives "Warning: the stream may have timecode breaks." I "Fix Now" and it works fine. But i dont want the menu. the other VOB file in the TS folder, which should be the "movie I want" gives this error when opened,
    "File open error: unsupported file type"
    when I open anyway, I get an audio bar which has no sound, and no video.
    ANY IDEAS? I've been on this for hours PLEASE

    Hi,
    Do you have the [MPEG-2 component|http://www.apple.com/quicktime/mpeg2> installed on your computer? If not, you will need it to be able to convert VOB files.

  • Podcasts - File Open Error N97 mini

    I have successfully downloaded podcasts with my N97 mini, but when I go to open/play the podcast I keep getting a "File Open Error" ???

    Podcast Library Refresh - General Error
    1. Connect your 5800 to you PC in Mass Storage Mode OR connect the microSD to your PC via a Memory card reader.
    2. Open Windows Explorer and browse to your memory card drive ..
    - To remove and start fresh start go to E:\Private\10281e17 There you should see 4 files 2 are Mp3 files other are Podcast files. Delete the whole 10281e17 folder, its not harm since our device will automatically create a new structure of the folder.
    TQ
    I'm an Xploit - Please feel free to post your issues, feedbacks in this discussion forum and I'll do my level best to help, otherwise my knowledged friends whom are around willing to help you. Thank you !

  • Error in Documents Tab in CRM Quotation

    Hi
    I am trying to import a document (.xls) into the document tab of Quote.
    When I try to preview the document I get the following error
    "Error while setting data in data provider object".
    Any directions to sort this would be appreciated and rewarded.
    Thanks
    Pallav

    Hi
    No answers from anyone.
    Any directions expert ?
    Regards
    Pallav

  • File open error from oracle directory

    Hi
    I am testing 11g new feature for oracle secure file on my winxp system. Using the same example from Arup Nanda's writeup. it is giving me the following error, what could be the reason, need your experts assistance.
    SQL> conn checkup/checkup
    Connected.
    SQL> create directory SECFILE as 'c:\oracle';
    Directory created.
    Elapsed: 00:00:00.04
    SQL> grant all on directory secfile to public;
    Grant succeeded.
    Elapsed: 00:00:00.00
    SQL> declare
      2  l_size number;
      3  l_file_ptr bfile;
      4  l_blob blob;
      5  begin
      6  l_file_ptr := bfilename('SECFILE','contract.pdf');
      7  dbms_lob.fileopen(l_file_ptr);
      8  l_size := dbms_lob.getlength(l_file_ptr);
      9  insert into contracts_sec
    10  (
    11  contract_id,
    12  contract_name,
    13  file_size,
    14  orig_file
    15  )
    16  values
    17  (
    18  1,
    19  'Contract :'||1,
    20  null,
    21  empty_blob()
    22  )
    23  returning orig_file into l_blob;
    24  dbms_lob.loadfromfile(l_blob, l_file_ptr, l_size);
    25  commit;
    26  dbms_lob.close(l_file_ptr);
    27  end;
    28  /
    declare
    ERROR at line 1:
    ORA-22288: file or LOB operation FILEOPEN failed
    The system cannot find the file specified.
    ORA-06512: at "SYS.DBMS_LOB", line 635
    ORA-06512: at line 7
    Elapsed: 00:00:00.01
    SQL>The OS directory SECFILE is already available under 'c:\oracle' and the .pdf file is available under 'c:oracle\secfile'
    Rgds
    Suman

    Hi
    The OS directory SECFILE is already available under 'c:\oracle' and the .pdf file is available under 'c:oracle\secfile'Why its under 'c:oracle\secfile'? It should be under 'c:oracle\' ...SECFILE is the name of the directory in Oracle not on OS. So your pdf should be at 'c:oracle\'.
    Regards

  • Why, when I have two PDF file open, is one document faded out?

    Hi All
    I was wondering if someone out there could maybe help me?
    I’m having problems with opening documents in Adobe Acrobat Pro. When I have one PDF file open and I open another one, the one opened later has kind of a grey/black film making it difficult to read.
    I was wondering if maybe anybody out there has had similar problem? Or maybe you know what can cause this?
    Thank you in advance
    Pete

    Which version of Acrobat and which version of Windows do you have?

  • Canon 7d mark II raw files open error

    Photoshop elements 12 will not open the canon 7d mark II raw files, from what I read elements are not going to upgrade there camera profiles anymore, so anything new your just out of luck?  The support people have no clue.

    Faq:
    FAQ: Will Photoshop Elements work with my camera, or Why won't my raw files open?
    more specifically:
    Camera Raw plug-in | Supported cameras
    in which you find that your camera requires the ACR 8.7 version
    Camera Raw-compatible Adobe applications
    in which you see that PSE12 can't, and that PS13 can with an update.
    So what solution, since Adobe does not upgrade older versions? It's the free Adobe DNGconverter:
    Use the latest version of the free DNG Converter (for Macintosh or Windows)
    You can convert your files to the universaly compatible DNG format (the files will work with any version of the Camera Raw plug-in). See In depth : Digital Negative (DNG) for more information.
    This standalone utility lets you batch convert whole folders of raw files to the DNG raw format that your PSE12 can read.
    jazyjlb1 a écrit:
    ...  The support people have no clue.

  • PDF File opening error

    Hi,
    I have an BSP application in which I am fetching the pdf file data from an oracle table to a variable of data type xstring.
    Now I have to display this xstring again in pdf format in this BSP. The pdf file is generated but while opening it is giving error "There is an error in opening this document.The file is damaged and could not be repaired".
    What could be the reason.
    My On initialisation code is as:
    data: outputx type xstring.
    (The pdf file data is fetched from oracle table to outputx.)
    CREATE OBJECT cached_response TYPE CL_HTTP_RESPONSE EXPORTING add_c_msg
    = 1.
        cached_response->set_header_field( name  =
              if_http_header_fields=>content_type
                                      value = 'application/pdf' ).
        cached_response->set_status( code = 200 reason = 'OK' ).
        cached_response->server_cache_expire_rel( expires_rel = 180 ).
        l_pdf_len = xstrlen( outputx ).
        response->set_data( data = outputx
                                 length = l_pdf_len ).
         response->set_header_field(
                            name  = 'content-disposition'
                            value = 'attachment; filename=attach_pdf.pdf' ).
    CALL FUNCTION 'GUID_CREATE'
          IMPORTING
            ev_guid_32 = guid.
        CONCATENATE runtime->application_url '/' guid '.pdf' INTO
    display_url.
        cl_http_server=>server_cache_upload( url      = display_url
                                             response = cached_response ).
      navigation->response_complete( ).

    Still the pdf file is not opening.
    My On Initilisation code is as below:
    EXEC SQL.
      OPEN CUR FOR SELECT ORDER_NO,ORDER_DESC,DOC_TYPE
                 FROM SAPIBM.T_ORDER
                 where ORDER_NO = :orderno
    ENDEXEC.
    refresh : t_order.
    do.
      clear : wk_order.
      EXEC SQL.
        FETCH NEXT CUR INTO
                         :wk_order-ORDER_NO,
                         :wk_order-ORDER_DESC,
                         :WK_ORDER-DOC_TYPE
      ENDEXEC.
      if sy-subrc = 0.
        append wk_order   to t_order.
      else.
        exit.
      endif.
    enddo.
    EXEC SQL.
      CLOSE CUR
    ENDEXEC.
    if not t_order[] is initial.
      read table t_order into wk_order index 1.
      w_doctype = wk_order-doc_type.
      case w_doctype.
        when 'P'.
    outputx = wk_order-order_desc.
    CREATE OBJECT cached_response TYPE CL_HTTP_RESPONSE EXPORTING add_c_msg
    = 1.
    IF XSTRLEN( OUTPUTX ) > 0.
    response->delete_header_field(
    name = if_http_header_fields=>cache_control ).
    response->delete_header_field(
    name = if_http_header_fields=>expires ).
    response->delete_header_field(
    name = if_http_header_fields=>pragma ).
    response->set_header_field(
    name = if_http_header_fields=>content_type
    value = 'application/pdf' ).
       response->set_status( code = 200 reason = 'OK' ).
       response->server_cache_expire_rel( expires_rel = 180 ).
        response->set_header_field(
                          name  = 'content-disposition'
                           value = 'attachment; filename=attach_pdf.pdf' )
        response->set_header_field(
                       name  = 'cache-control'
                       value = 'max-age=0' ).
        l_pdf_len = xstrlen( wk_order-order_desc ).
        response->set_data( data = wk_order-order_desc
                                 length = l_pdf_len ).
        CALL FUNCTION 'GUID_CREATE'
          IMPORTING
            ev_guid_32 = guid.
        CONCATENATE runtime->application_url '/' guid '.pdf' INTO
    display_url.
        cl_http_server=>server_cache_upload( url      = display_url
                                             response = cached_response ).
      navigation->response_complete( ).
    endif.
      endcase.
    endif.

  • CVI 9.0 file open error (FileSelectPopup - hang) on Vista deployments

    Hello All,
    I seem to have a problem with my CVI 9.0 program developed inder XP (32 bit) when it is deployed to Vista (32 or 64 bit verisons). Apparently this a new problem as the software had been installed previously on at least one of these computers.
    The easiest way to describe the problem is try to use a popup to open a data file in Vista and the system hangs. However, if you drag-n-drop the file on the program it runs fine. There seems to be some issue with communication with the FileSelectPopup routine and the OS.
    I see there is a newer version (9.0.1) adn I am downloading now but I was wondering if this is a known error fix in this version or if I am chasing a new issue.
    Thanks, in advance

    Ok, I am 99% sure I found the issue.
    If the "Maximum Stack Size" under Options >> Build Options is set to a large value (in this case 700MB for a large table interface), you will see this hang.
    I don't think this a total RAM issue on the system as the testbed was a laptop with 4GB RAM.
    Sorry for the extended delay but it takes a while to iterate while relying on grad students laptop to recreate the error.
    I attached the test code here although I am not sure that the build environment is included. (The same code runs fine with the default "Maximum Stack Size").
    Greg
    Attachments:
    fileselectpopuptest.zip ‏409 KB

  • Re: CVI 9.0 file open error (FileSelectPopup - hang) on Vista deployments

    Hoffman,
    I have attached the file you were originally seeing hang; however, I recompiled this on an identical (well, as close to identical as I can get - Windows XP SP3 with the 9.1.0.428 runtime engine you specified) and, upon recompiling, both of the file selection popups appear and I don't experience any problems.  This attachment contains the recompiled code; if you run this does it hang or not? If it does then, as the executable still relies on your run-time engine, then my thought is that the problem may still lie here.  A repair only replaces missing files, it doesn't fix corrupted files so, as hesitant as I am to suggest this, an uninstall/reinstall of the run-time engine might be called for.  If it doesn't hang, then it is likely something on the compiler level that is giving us trouble.  In this case, I might suggest an uninstall/reinstall of CVI itself.  In either case, it appears to me that one of the files referring to this FileSelectPopup may have been corrupted since this problem seems isolated to a single machine.
    Let me know if you are able to run the executable that I've included, I think this will help us pinpoint the source of the problem you are seeing. 
    Regards,
    Trey C.

    Ok, I am 99% sure I found the issue.
    If the "Maximum Stack Size" under Options >> Build Options is set to a large value (in this case 700MB for a large table interface), you will see this hang.
    I don't think this a total RAM issue on the system as the testbed was a laptop with 4GB RAM.
    Sorry for the extended delay but it takes a while to iterate while relying on grad students laptop to recreate the error.
    I attached the test code here although I am not sure that the build environment is included. (The same code runs fine with the default "Maximum Stack Size").
    Greg
    Attachments:
    fileselectpopuptest.zip ‏409 KB

  • HT1338 safari pdf file open error

    Dear. Sir
    I have recently downloaded Adobe Reader X, new version. I don't have any problem with this application when I open the stored pdf file in my mac.
    However, it has serious problem with opening a new pdf file on safari.
    When I download pdf files, the pdf document shows as a black....!!! (No respond at all from Safari)
    Please help me out
    Yours faithfully 
    Euna Noh

    Back up all data.
    Triple-click the line of text below to select it, the copy the selected text to the Clipboard (command-C):
    /Library/Internet Plug-ins
    In the Finder, select
    Go ▹ Go to Folder
    from the menu bar, or press the key combination shift-command-G. Paste into the text box that opens (command-V), then press return.
    From the folder that opens, remove any items that have the letters “PDF” in the name. You may be prompted for your login password. Then quit and relaunch Safari, and test.
    The "Silverlight" web plugin distributed by Microsoft can also interfere with PDF display in Safari, so you may need to remove it as well, if it's present.
    If you still have the issue, repeat with this line:
    ~/Library/Internet Plug-ins
    If you don’t like the results of this procedure, restore the items from the backup you made before you started. Relaunch Safari again.

Maybe you are looking for