Open dataset fails...says "error opening input file"

Hi,
I am trying to open a file in my BDC program and get the following error "error opening input file". Its a text file with continuous data. No delimiters and hence character count will be used to parse the data.
I am using the following statement to open it..
OPEN DATASET p_file FOR INPUT IN TEXT MODE ENCODING DEFAULT.
but sy-subrc is set to 8 !!
what could be the problem ??
thanks

This is pretty confusing !!I would explain to you my exact issue !!
I have a program in which there is no GUI_UPLOAD call but just a direct open dataset statement !!
This program runs fine for my collegue who has the file in a server (not the application server). She gives the full path name as
servername\foldername\filename.
I tried doing the same but as I did not have access to that server, it failed. So I received that file from her and stored it in my local system. So on program execution, i gave the path as c:\filename and I got the error message "Error opening the file"
Find below some code extracts..
PARAMETERS : p_sname TYPE d0100_mapn ,
             p_file(136) TYPE c ,
FORM open_file .
*open file in textmode
  OPEN DATASET p_file FOR INPUT IN TEXT MODE ENCODING DEFAULT.
  IF  sy-subrc = 0.
    DO.
    Read the file data and tranfer to workarea to internal table
      READ DATASET p_file  INTO  x_legacy_rec.
Please help in debugging this issue !!
thanks

Similar Messages

  • Open Dataset in Append -- Error: No such file or directory

    Good day Everyone
    I am opening 3 files in append:
    1 )/usr/sap/SAPBP/interface/XIU/batch/CUSTUPDT72_061011123801680.E3.SUCCESS
    2) /usr/sap/SAPBP/interface/XIU/batch/CUSTUPDT72_061011123801680.SUCCESS
    3) /usr/sap/SAPBP/interface/XIU/batch/CUSTUPDT72_061011123801680.E3.SUCCESS
    OPEN DATASET IV_FILENAME FOR APPENDING IN TEXT MODE ENCODING DEFAULT MESSAGE LV_MSG.
    When i do this, 1 one the files is created and the other 2 return message: No such file or directory.
    Since 1 of the files is being created, the directory cannot be invalid.
    Can anyone please provide me with sugestions on how i can get the other 2 open as well.
    Sincerely,
    Marc

    Hi Marc!
    Did you create your iv_filename as char70? Because then name 2) would fit and names 1,3) would be too long...
    As long as your coding is identical, here nothing further should go wrong.
    Also your names look quite OK, you wouldn't have a typo in the other names?
    Still an authority problem on OS-level can happen, but that's quite unlikely for files of same type.
    Regards,
    Christian

  • I am using Iphone 3gs. Last week I updated my itunes to latest version, although I couldnt not update my iphone OS since the download fails saying error 9006. For last 2 days all my Iphone applications fail to open except the default ones. Any solutions?

    I am using Iphone 3gs. Last week I updated my itunes to latest version, although I couldnt not update my iphone OS since the download fails saying error 9006. For last 2 days all my Iphone applications fail to open except the default ones. Any solutions?

    Download a free app and try again, you can delete the free app afterward.

  • TS1424 I can't open iTunes. Get error message "the file iTunes library.itl cannot be opened because it was created by a newer version of iTunes"

    I cannot open itunes.  Getting error message: "the file iTunes library.itl cannot be read because it was created by a newer version of iTunes"
    What do I need to do so I dont lose all my loaded music, etc.?
    Thanks

    If you still have an issue you may have to see about using the iTunes version (application) included with Snow Leopard 10.6 from the installer or an another one if available online, and see if that will install.
    Sometimes you may have uninstall the bits left in your system by the earlier (or later) iTunes installers; as they all leave a trace and these can stop a different version of iTunes from being installed.
    Not sure if the following site/link will tell the method...
    •Apple - Support - iTunes - install & update:
    http://www.apple.com/support/itunes/install/
    •Troubleshooting iTunes installation on Mac OS X:
    http://support.apple.com/kb/HT2311
    Good luck & happy computing!
    ps: i see you resolved this issue. it's magic!

  • When i try to open itunes it says 'Error - New iTunes Library"

    when i try to open itunes it says 'Error - New iTunes Library" and iTunes doesn't open. I need iTunes to work why is it not working??

    Try this article.

  • Can't open any pdf - says 'corrupt or damaged file'  every time!

    Can't open any pdf - says 'corrupt or damaged file'

    Were your PDF documents originally the email attachments opened in Apple Mail on your iPad/iPhone?  Apple Mail may have corrupted your PDF documents.
    Please see Problem #1 in the following FAQ document.
    How to avoid known PDF email attachment problems
    Unfortunately, you are not able to repair the corrupted/damaged files.  However, you can try to reopen PDF attachments using the workaround specified in the FAQ document.

  • When I load Illustrator creative suit (5.5) on my new computer, it loads Then I put in the serial number, which is correct, but when i go to click on the program to use it it says ERROR: localized resource file from this program could not be loaded. pleas

    When I load Illustrator creative suit (5.5) on my new computer, it loads Then I put in the serial number, which is correct, but when i go to click on the program to use it it says ERROR: localized resource file from this program could not be loaded. please re install of repair the application and try again. I have done this and it's still not working                  

    anomaly jade,
    You only need to use the serial number during installation.
    Have you, at least seemingly, been able to install, and then you are unable to start up?
    If that is the case, you could try to reinstall using the full three step way:
    Uninstall, run the Cleaner Tool, and reinstall.
    http://www.adobe.com/support/contact/cscleanertool.html

  • I'm trying to download Premier pro and I'm getting an error message saying "Error when extracting files"

    I'm trying to download Premier pro and I'm getting an error message saying "Error when extracting files". I use a PC and have made the purchase of that service. What's the problem?

    Hi ampsanru,
    We would need some information regarding the error, could you please post a screenshot moreover your system information i.e. OS, RAM & Graphics card.
    -Ankit

  • ITunes won't install. Says error writing to file C:\Program Files\itunes\itunes.resources\da.lproj\AboutBox.rft

    iTunes won't install. 
    Says error writing to file C:\Program Files\itunes\itunes.resources\da.lproj\AboutBox.rft
    Does anybody know what I need to do to fix this?

    I am the administrator, so this can't be a rights problem. The error message says "error writing to file c:\program files\apple software update\softwareupdate.exe. Verify that you have access to that directory".
    That one's consistent with disk/file damage. The first thing I'd try with that is running a disk check (chkdsk) over your C drive, as per the following document:
    How to perform disk error checking in Windows XP
    Select both Automatically fix file system errors and Scan for and attempt recovery of bad sectors, or use chkdsk /r (depending on which way you decide to go about doing this). You'll almost certainly have to schedule the chkdsk to run on startup. The scan should take quite a while ... if it quits after a few minutes or seconds, something's interfering with the scan.
    Does the chkdsk find/repair any damage? If so, can you get an install to go through properly afterwards?

  • Time Machine fails with "error while linking files on the backup volume"

    One of my drives was nearly full. I moved some folders from that drive to one that had more space.
    The next TM backup failed with "error while linking files on the backup volume". A full backup is about 620 GB, although this backup shouldn't have been a complete one. There was 570+ GB free on the drive.
    A Disk Verify reported "Drive appears to be okay." Earlier TM backups appeared to be fine (at least accessible). I swapped the TM drive for another, initialized it, and TM used that drive with no complaints.
    What does the message mean?
    Thanks,
    harv47

    Pondini wrote:
    harv47 wrote:
    The Time Machine Buddy widget shows no messages. None of the buttons do anything.
    What am I doing wrong?
    See #A1 in the Time Machine - Troubleshooting *User Tip,* also at the top of this forum.
    Your user account may not have permission to see the logs.
    The sentence beginning "If the message area is blank ..." shows how to figure out if that's the problem, and how to fix it.
    Post back if it's not clear, or doesn't work.
    The Tip had the answer. It was permissions.
    What follow are the messages for the last unsuccessful TM backup (on v.3), followed by
    the successful TM backup on the replacement drive (v.1). The line
    "Copied 11 files (0 bytes) from volume Bay 3 HPFS+." was odd.
    Starting standard backup
    Backing up to: /Volumes/Time Machine v.3/Backups.backupdb
    Event store UUIDs don't match for volume: Bay 3 HPFS+
    Event store UUIDs don't match for volume: Macintosh HD
    Node requires deep traversal:/Volumes/Bay 3 HPFS+ reason:kFSEDBEventFlagMustScanSubDirs|
    Node requires deep traversal:/ reason:kFSEDBEventFlagMustSc
    (Finished May 4, 2010 9:31:21 AM-- Status unknown)
    Starting standard backup
    Backing up to: /Volumes/TimeMachine v.1/Backups.backupdb
    Event store UUIDs don't match for volume: Bay 3 HPFS+
    Event store UUIDs don't match for volume: Bay 2 HPFS+
    Event store UUIDs don't match for volume: Macintosh HD
    Backup content size: 169.1 GB excluded items size: 0 bytes for volume Bay 3 HPFS+
    Backup content size: 305.5 GB excluded items size: 0 bytes for volume Bay 2 HPFS+
    Backup content size: 145.7 GB excluded items size: 7.5 MB for volume Macintosh HD
    No pre-backup thinning needed: 744.36 GB requested (including padding), 931.15 GB available
    Waiting for index to be ready (909 > 0)
    Copied 1951 files (169.0 GB) from volume Bay 3 HPFS+.
    Copied 4999 files (474.3 GB) from volume Bay 2 HPFS+.
    Copied 410304 files (612.4 GB) from volume Macintosh HD.
    No pre-backup thinning needed: 712.2 MB requested (including padding), 315.09 GB available
    Copied 11 files (0 bytes) from volume Bay 3 HPFS+.
    Copied 20 files (1.1 GB) from volume Bay 2 HPFS+.
    Copied 1103 files (1.1 GB) from volume Macintosh HD.
    Starting post-backup thinning
    No post-back up thinning needed: no expired backups exist
    Backup completed successfully.
    (Finished May 4, 2010 2:38:17 PM)
    I hope this is useful. Thanks for your help.
    harv47

  • OPEN DATASET output to Tab delimited text file???

    Can anyone suggest the best way for downloading a TAB DELIMITED text file to the application server using open dataset.
    I'm currently downloading the file, but I find that it puts "#"'s in place of empty numeric fields.
    any help appreciated,
    Lee

    Hi Lee,
      System identifies Tab delimited as #.
      But its not a problem.
      If you wang to download the data into intenal table,
    you need to do declare delimiter.
      Refer code:
    CONSTANTS:  c_split TYPE c VALUE cl_abap_char_utilities=>horizontal_tab,
               c_hash         TYPE c          VALUE '#'.
    data:wa_input_rec  TYPE char2000.
      OPEN DATASET p_appl IN TEXT MODE ENCODING DEFAULT FOR INPUT.
        IF sy-subrc = 0.
          DO.
            READ DATASET p_appl INTO wa_input_rec.
            IF sy-subrc <> 0.
              EXIT.
            ELSE.
    *-- Split the Tab # into corresponding Columns fields.
              PERFORM f0056_split_records.
              APPEND wa_input_file TO i_input_file.
              CLEAR: wa_input_rec, wa_input_file.
            ENDIF.
          ENDDO.
    FORM f0056_split_records .
      CLEAR wa_input_file.
      SPLIT wa_input_rec AT c_split INTO
    wa_input_file-column0
    wa_input_file-column1
    wa_input_file-column2
    wa_input_file-column3
    wa_input_file-column4   IN CHARACTER MODE.
    ENDFORM.                    " f0056_split_records
    Reward points if this helps.
    Manish
    Message was edited by: Manish Kumar
    Message was edited by: Manish Kumar

  • Open command fails with error -10810

    Switching from 10.4 to 10.5.3 I can no longer launch applications from the command line using the open command. For example:
    some bloke's macbook$ open TextEdit.app
    LSOpenFromURLSpec() failed with error -10810.
    Seems to be some kind of permissions issue since it does work if I sudo open. Anyone know how to fix this?

    It's interesting, yogh's post above might be the reason it's failing for you.
    Based on that post, I removed execute permissions from the TextEdit binary in /Applications/TextEdit.app/Contents/MacOS, then tried to use open to run the application. Here's what I get:
    % open -a TextEdit
    LSOpenFromURLSpec() failed with error -10810.
    Now, it may be that the above error is generic and could be generated by several things, but as yogh suggested it may be something to check...

  • Open Dataset fails with "Invalid Argument"

    From an ABAP program I can't write to a share folder on a windows 2000 box.  The share permissions are set to Everyone Full control.  I can write to a share on a windows 2003 box, but not windows 2000.  Here is my code:
    data: filename type string.
    data: open_message type string.
    filename = '
    servername\edi\test.txt'.
    open dataset filename for output
                            message open_message
                           in text mode.
                          encoding non-unicode.
    write: /1 open_message.
    I noticed that the kernel has the following info:
    ICU Version                 2.6.1 Unicode Version 4.0
    I was thinking there was a problem writing to a win 2000 box with an SAP Unicode Kernel.
    Anyone have a clue?
    Thank you,

    hi
    the shared folder must be accessible to the os user of your R3 installation. bcoz when u run the pgm this user will be used at the os level.
    for checking this logon to the R3 os and try to access the share path. it should be accessible without providing any logon credentials.
    rgds
    arun

  • Sharepoint 2010 .pdf will not open 'There was an error opening this document'

    In a Sharepoint 2010 document library attempting to open a .pdf from a machine connected externally to the system the error "There was an error opening this document. The filename, directory name, or volume label syntax is incorrect." comes up.
    When connected internally .pdf files open as expected.
    The .pdfs are being opened in the client application. 

    I can select a .pdf in the library, then choose 'Download a Copy' in the Sharepoint ribbon, then choose 'read',  then the .pdf displays.
    But I cannot just click on the item, it will give the error listed above.

  • MAXDB backup failed with error: end of file reached -917

    Hi I am performing a complete data backup for a database which is about 230 GB.
    Previously it had run successfully for many days, but since yesterday, I began to receive such error:
    Error: end of file reached(-917)
    The backup stopped itself after running for 1 hour, and from backup history I just saw above error message.
    I also had a look at the logs, and found below, could someone help me look into this issue?
    Appreciate your kind help in advance!
    2008-11-25 22:08:09      0xBE4 ERR 52012 SAVE     error occured, basis_err 5750
    2008-11-25 22:08:09      0xBE4 ERR     3 Backup   Data backup failed
    2008-11-25 22:08:09      0xBE4 ERR     1 Backup    +   Backupmedium #1 (F:\Dbbackup\QAS_data_01) end of file reached
    2008-11-25 22:08:09      0xBE4 ERR     6 KernelCo  +   Backup error occured, Error code 5750 "write_task_crash"
    2008-11-25 04:00:27     0x16A0     52024 SAVE     30462712 pages -> "F:\DBbackup\QAS_DATA"
    2008-11-25 04:00:28     0x1BE4     19626 IO       Async I/O thread stopped, 'F:\DBbackup\QAS_DATA'
    2008-11-25 04:00:28     0x1FC4     19626 IO       Async I/O thread stopped, 'E:\sapdb\QAS\DAT_0001'
    2008-11-25 04:00:28     0x1688     19626 IO       Async I/O thread stopped, 'E:\sapdb\QAS\DAT_0002'
    2008-11-25 04:00:28     0x15D4     19626 IO       Async I/O thread stopped, 'E:\sapdb\QAS\DAT_0003'
    2008-11-25 04:00:28      0xAEC     19626 IO       Async I/O thread stopped, 'E:\sapdb\QAS\DAT_0004'
    2008-11-25 04:00:28     0x179C     19626 IO       Async I/O thread stopped, 'E:\sapdb\QAS\DAT_0005'
    2008-11-25 04:00:28      0xDD4     19626 IO       Async I/O thread stopped, 'E:\sapdb\QAS\DAT_0006'
    2008-11-25 04:00:28     0x1AE8     19626 IO       Async I/O thread stopped, 'E:\sapdb\QAS\DAT_0007'
    2008-11-25 04:00:28     0x176C     19626 IO       Async I/O thread stopped, 'E:\sapdb\QAS\DAT_0008'
    2008-11-25 04:00:28     0x11B8     19626 IO       Async I/O thread stopped, 'G:\sapdb\QAS\DAT_0009'
    2008-11-25 04:00:28     0x1B4C     19626 IO       Async I/O thread stopped, 'G:\sapdb\QAS\DAT_0010'
    2008-11-25 04:00:28     0x1F60     19626 IO       Async I/O thread stopped, 'G:\sapdb\QAS\DAT_0011'
    2008-11-25 04:00:35      0xB8C     52012 SAVE     ready
    2008-11-25 04:00:35      0xB8C     19651 CONNECT  Connection released, T113
    Thanks,
    vivian

    Hello Shaun,
    Thank you so much for your reply. But I've checked that my F drive still have more than 480GB free space, so the space should not be the problem.
    And I've just run the backup once again, this time it keeps running for 2 hours, and then failed again with the same error.
    Is there other possible reasons of this error?
    Thanks a lot,
    Vivian

Maybe you are looking for

  • Problem with DNS - ping/Safari cannot resolve, but host/dig work OK

    Hi All, Have a weird problem with DNS which is a bit similar to the following ones: http://discussions.info.apple.com/thread.jspa?threadID=2190208 http://forums.macrumors.com/showthread.php?t=337942 I connect with remote internal network via OpenVPN

  • How to install owb 10.2 on aix server

    server machine:      os: aix      owb version:10.2.0.1      oracle db version:10.2.0.1 client machine: compad notebook os:windows xp owb version:10.2.0.1 the oracle db is installed on the server machine when ready to install owb on the server machine

  • Computer will not boot up but fan will turn on and stay on.

    I have a Gateway and I did not have enough memory.  I bought 1Gig to give it enough memory to run the basic systems.  I added the memory to the slot in the hard drive and now it will not boot up.  The fan just turns on and runs.  I took out the new m

  • Updated to Bundle 3049...and Now Can't Access my Email

    Hi there!    I have an issue. I updated my bundle for OS 6.0 to 3049 (from 2409ish) today (Dec. 10, 2011). Since I was out and about, I updated via OTA rather than thru the comp. So far everything is A.O.K, and not haywire...sort of. Every time I try

  • Error 1310 when trying to update Acrobat X Pro?

    I keep getting error 1310 when I try to update Acrobat X Error writing to file C:\config.ms.\2c20c8I.rbf. Verify you have access to that file. Windows Vista  computer. I am signed on as an administrator with full access. A while back, I was having th