How to resolve the error "File could not open" in AL11?

Hi Friends,
When I am going to write a file via DATASET.
But it's showing me a error"File Could not Found"?
And I am unable to check my fiel at AL11.
Please suggest me the solutions.
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 default 'D:\EMP.TXT'.
PARAMETERS : p_asfile TYPE rlgrap-filename default 'EMP'.
SELECTION-SCREEN END OF BLOCK b1.
pbk = p_file.
CALL FUNCTION 'GUI_UPLOAD'
    EXPORTING
      filename                      = pbk
  FILETYPE                      = 'ASC'
has_field_separator           = ' '
  HEADER_LENGTH                 = 0
  READ_BY_LINE                  = 'X'
  DAT_MODE                      = ' '
IMPORTING
  FILELENGTH                    =
  HEADER                        =
    TABLES
      data_tab                      = it_emp
EXCEPTIONS
  FILE_OPEN_ERROR               = 1
  FILE_READ_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
  OTHERS                        = 17
  IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.
OPEN DATASET p_asfile FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
  IF sy-subrc <> 0.
    EXIT.
  ENDIF.
  LOOP AT it_emp INTO wa_emp.
    TRANSFER wa_emp TO p_asfile.
  ENDLOOP.
  CLOSE DATASET p_asfile.
==============================================
Regards,
Krrishna

Similar Messages

  • Hi i can not install itune. There are the error show " Could not open key: Unknown\Components\32A7D634EB632D11CABB00087CCFBB48\DAEC106DF4E2BBB458CC2CA9C46 E3A0C.

    Hi,
    i can not install itune. There are the error show
    " Could not open key: Unknown\Components\32A7D634EB632D11CABB00087CCFBB48\DAEC106DF4E2BBB458CC2CA9C46 E3A0C. Verify that you have sufficient access to that key. or contact your support personal.
    I have tried some soution from the similar case to uninstall itune and also related components already but finally the probelm still occured.
    Please you help to suggest me what can i do?  I need to restore my back up data to the new iphone as the previous one got stolen.
    BR,
    Sirorath A.

    Try the following user tip:
    "Could not open key: UNKNOWN\Components\[LongStringOfLettersAndNumbers]\[LongStringOfLettersAndNumbe rs]" error messages when installing iTunes for Windows

  • How to solve the error message "Could not activate cellular data network: PDP authentication failure"when using 3g or gPRS on safari with an iphone 4 and latest software updates

    Please can someone help me to solve the error message "Could not activate cellular data network: PDP authentication failure"when using 3G or GPRS on safari with an iphone 4GS and latest software updates. I have tried resetting the network and phone settings. I have restored the factory settings on itunes and still the problem persists.

    All iPhones sold in Japan are sold carrier locked and cannot be officially unlocked by the carrier. If you unlocked it, it was by unauthorized means (hacked), and support cannot be given to you in this forum.
    Hacked iPhones are subject to countermeasures by Apple, particularly when updating the firmware. It is likely permanently re-locked or permanently disabled.
    Message was edited by: modular747

  • How to solve the error:  "lightroom could not import this catalog because of an unknown error" when trying to "import from catalog"?

    I have around 400,000 photos of 15 years so given the high number, I organized all my photos into 6 catalogs to avoid potential problems. All the photos and the catalogs are in a 4TB Seagate external hard drive. I use Adobe Lightroom 5 and I use a PC with the latest Windows Office 2013.
    I wanted to have a NEW Catalog of all my rated 1 Star+ photos of all the years in a single Catalog. So I created what I called Star+ Catalog and I was told the best option is to import a Catalog at a time and given that there is no means to filter importing only Stared photos, I would import all the photos and then delete all the UnStared photos. I did that for Catalog Year 2014 but at the end gave me the message: "lightroom could not import this catalog because of an unknown error". It actually had imported around 40k photos from about 50k total. I tried again and again and every time I end up with the same thing. I created another new Catalog and stared from scratch and the same ting happened: the ONLY EXACT 40k or so photos were imported and the rest were not!! When I imported Catalog Year 2013 of around 45k photos, it worked perfectly. But when I imported Catalog Year 2012 of 35k photos, the same thing happened!! 
    Any advice: 1) on how to solve this? and 2) if there is a better and easier way to create this Master Catalog of All Stared Photos of All my Catalogs?

    OK, my starting point is that LR can happily contain 400000+ photos, and it's a mistake to create a 1 star plus catalogue as you suggest. Instead, I'd recommend you create a master catalogue of all your photos, which you can then query however you want - 2 star, or a certain keyword, or with "xyz" in the title etc.
    If you are intent on going that way, you could try a slight change from what you've done so far. Instead of trying to import an entire catalogue and then delete no-star pictures, take the 2014 and 2012 catalogues and select only the 1 star photos. Then do an Export as Catalog for these items, and import the 2014-1star and 2012-1star into your new catalogue. That may get you past the problem images which I suspect are the problem.
    If that doesn't work, or if you follow my initial advice, you're going to need to identify the image where the failure occurs. You may have a corrupt image file, and replacing it from your backup may be sufficient to resolve the problem. Alternatively, it may be a corrupt record in the catalogue, and in this case it may be sufficient to remove the image from the catalogue and import it again. You might try selecting everything in the 2014 catalogue and seeing if you can do an Export as Catalog, creating a clean 2014, and deleting 2014's previews folder might also get rid of a potential problem. Something else is to try the Export as Catalog for images 1-40000, then a second Export as Catalog for images 40002-50k.
    So a few things you'll need to try, rather than a magic bullet, and a recommendation to change the underlying direction.
    John

  • How to resolve "The specified Server could not be found" issue

    I reinstalled my Mac OS X. (Format and and install)
    Installation was successful but i can't connect to the world(Internet.)
    Whenever i start Internet explorer it will prompt me "The specified Server could not be found"
    MY current Settings:
    Configure: Built-in Ethernet
    TCP/IP: Configure Using DHCP, the reset setting are blank.
    I'm using Cable modem (Starhub - Singapore Internet Services provider) and connect to a router & from router i used LAN cable connect G4 Ethernet port.
    Any1 can give me a hand to resolve this issue, please.
    On About this Mac it shown I'm using Mac OS X build 4K78
    Processor: 2X PowerPC G4
    Thanks

    Can you connect to ANYTHING at all on your network ???
    If you get the message that the server could not be found you should wait for a few minutes until the diagnostics launches automatically with the FIVE yellow, green or red balls to indicate ISP, Ethernet & other status reports...
    M

  • I keep getting the error message "could not open a scratch file because the file is locked" even after resetting my preferences. I have to use Ctrl, Alt, Shift to start photoshop every time

    I'm unable to start Photoshop without holding down Ctrl, Alt, Shift each time I open it. Also Lightroom is now unable to open photos in Photoshop. I'm at a loss as to how to fix this.

    Hi there! Because the forum you originally posted in is for beginners trying to learn the basics of Photoshop, I moved your question to the Photoshop General Discussion forum, where you'll get more specialized help.
    To help others help you, please read through this article and provide any additional relevant details.

  • HELP ME!!!! itunes wont open, error says could not open key......

    I attempted to update itunes to the newest upgrade, and the upgrade was unsucceful, and now this error comes up everytime i try to open itunes (it wont open at all). the error says
    Could not open key:
    HKEYLOCALMACHINE\Software\Classes\.wav\OpenWithList\iTunes.exe.
    Verify that you have sufficent access to that key, or contact your support personnel.
    This makes no sense since this is on my home PC

    hmmm. okay, if you're currently just getting the "itunes has encountered an error ..." let's try the following technique.
    preliminaries
    download and save a fresh copy of the itunes 6.0.1.3 installer to your hard drive. (eventually we're going to run the install from there rather than online.)
    iTunes 6.0.1.3 Installer
    switch off any antivirus and antispyware applications prior to any uninstalls, installs or repair installs.
    uninstall
    use the complete uninstall instructions given in the following document to remove your existing itunes and quicktime:
    Troubleshooting iTunes, iPod Software, and QuickTime installation on Windows
    ... and if you run into problems on the uninstall, try using the Installer Cleanup utility:
    Description of the Windows Installer CleanUp Utility
    reboot after uninstalling.
    reinstall
    remember to switch off your antivirus and antispyware.
    reinstall itunes using the 6.0.1.3 installer you downloaded previously.
    if you get the "itunes has encountered a problem ..." error message again after that install, first check to see if your Quicktime will launch. if you get an error message when you try to launch quicktime, try using the following technique:
    iTunes 6 for Windows unexpectedly quits when opened
    keep us posted on your progress.
    love, b

  • Error message when trying to play music on computer states The song ... could not be used because the original file could not be found.  However, my library shows how many items and the GBs used.  How do I locate the files?

    When I try to play my iTunes music on my computer, an error message comes up and state "The song (title of song) could not be used because the original file could not be found.  Would you like to locate it?
    When I click on Locate It, I cannot find where the music file may be located.  Does anyone have any suggestions?
    This all occurred when I attempted to do a backup to an external hard drive.  Unbeknownest to me, the files did not copy over and do not appear on the external hard drive. 
    When I open my iTunes library, at the bottom of my music list it shows how many songs and the GBs, so it appears that the files are still there; however, cannot be located.
    Thank you.

    Hi angela dfromtx,
    When tracks in iTunes display a it means the file cannot be located; it may have been moved or deleted. You'll have to locate the file manually if it is still available. For more information refer to the following article:
    iTunes: Finding lost media and downloads
    http://support.apple.com/kb/TS1408
    Alternatively, if your media was downloaded from the iTunes Store, you may be able to download it again free of charge:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store
    http://support.apple.com/kb/HT2519
    Thanks,
    Matt M.

  • How I can diable in firefox dialog box "download error could not be saved, because the source file could not be read. " when file not downloaded

    How I can diable in firefox dialog box "download error could not be saved, because the source file could not be read. " standart download manager when file not downloaded

    It is possible that anti-virus software is corrupting downloaded files or is interfering otherwise.
    Try to disable the real-time (live) scanning of files in your anti-virus software temporarily to see if that makes downloading work.
    See:
    *http://kb.mozillazine.org/Unable_to_save_or_download_files
    You can try to set the browser.download.manager.scanWhenDone pref on the <b>about:config</b> page to false.
    *http://kb.mozillazine.org/about:config

  • HT1933 I bought six songs using my itunes gift card in February but I cannot play the songs or downlaod them to my ipod because I get an error saying the original file could not be found.  I have used the gift card previously with no issue.  How do I fix

    I bought six songs using my itunes gift card in February but I cannot play the songs or downlaod them to my ipod because I get an error saying the original file could not be found.  I have used the gift card previously with no issue.  How do I fix it?

    Have you moved or deleted those tracks on your computer (the gift card has got nothing to do with it) ?
    You might be able to re-download them via the Purchased link under Quick Links on the right-hand side of the iTunes store home page on your computer's iTunes (re-downloading isn't possible in all countries) - if those songs appear there then delete the entries from your iTunes library (where you are clicking on them to play them and gettinf the 'original file' error), and they should then get a cloud symbol against them for re-downloading.
    If they don't appear in that link then have you got them on, for example, an external drive ?

  • I have a new computer that downloaded all of my playlist. but i cannot play all songs. i get a error that say "the song could not be used because the original file could not be found. would you like to locate it? but it does not help to resolve.

    i installed itunes to my new computer and transfered all my playlist from the older computer. the software came with the new computer hp link up. the problem
    comes in where i want to play a certain song on a playlist and this error pops up "the song could not be used because the original file could not be found.
    would you like to locate it? which is of no help.
    is there a solution to this problem?

    The file path for these songs IS NOT correct per your iTunes Library file. 
    See: http://dougscripts.com/itunes/scripts/ss.php?sp=listmias  for an Applescript to locate these files for re-adding.

  • On some of my files there is a ! in front of it, if I try to play the song, I get an error message; "The song "_____" could not be used, because the original file could not be found. Would you like to locate it?" Then when I click "Locate", I get nothing.

    I'm really dumbfounded on this one and it's driving me bonkers!!!! On some of my music files there is a ! in front of it, if I try to play the song, I get an error message; "The song "_____" could not be used, because the original file could not be found. Would you like to locate it?"
    This began to happen when Chuck made playlists2burn on2CD-and then he would delete the playlist; sending all the song files into oblivion. Certain songs have a ! right next to the file name, and as I stated before, i get that error message:
    "The song "_____" could not be used, because the original file could not be found. Would you like to locate it?"
    So I click on "Locate". No help. I get a menu with folders that say "catroot" and other folders which names I cannot remember, but I scroll PAST the file folders, & it's just a bunch of ".DLL" files.....I don't understand what any of the names of the folders mean...it's frustr8ing-coz this is my 2nd iTouch, my 1st one got stolen & I can't afford2buy my music back at this time & i NEVER before had a single problem with losing song file locations.
                  Is there anyone out there who has been through this frustrating game of chasing your tail?....<that's how I feel>
    If so I would be ever so gr8ful if maybe someone with the knowledge would be so kind as 2 tell me how/where 2 retrieve these songs & how to put everything back where it belongs, I would be 4ever gr8ful !!!
    I can't afford 2 replace the songs just like I'm unable 2 buy back my old music from my stolen iTouch....man that was an awesome collection-someday I'll be able 2 afford 2 do that & I would like 2 have all the new music that I paid 4 but cannot find when I got my new iTouch....that would just be  wonderful.
                 I hope someone sees this post that can help me retrieve these files....losing $100.00 of iTunes is a REAL BUMMER!!!!!!
                                                      ThanQ SO very much!
                                                                             [email protected] or [email protected] or [email protected] .
                                                                                               You can also find me on Facebook, my given name is Tiffinie Trimmer, &
                                                                                                that's my Facebook "handle".    ThanQ 4 taking the time 2 read all of this!
                                                                                                hope 2 get a reply someday....I'll B checking all my emails & my Facebook, as well
                                                                                                as marking this page in my FAVORITES so I can find it fast! Take Care!!!

    I was not complete clear.
    Since you never changed the settings in the advanced section of iTunes preferecnes, you have to chech that your music is really in the location setted in the folders reported in the advanced section.  If not you have 2 ways: reset the position of this folders or in the actual disk organisation or in the pointing on the preferences.
    If you press the reset button you just give to itunes its default setting as for the position of the music files: probably this will be a good choice if you have never changed any default preference.
    But before I would check the folders and see if the songs are really there
    In my iTune I have this, and I believe it is the default.
    Users/YOURHOMEFOLDERNAME/Music/iTunes/iTunes Music

  • Library Lost - Please HeIp I tried updating my old ipod & now all 10,000 songs in my library have an ! next to them and I get the error message "song " " could not be used because the original file could not be found" on every song I try to play

    Please help - this morning I tried updating one of my old ipods for my wife (this ipod hasn't been updated in 2-3 years).  I plugged it into my pc, it was recognized and the software updated.  I created a new playlist and tied to sync the ipod.  This ipod had never been used on this pc/itunes since the pc is only 2 years old.  When I tried to sync the ipod it stated that it would have to erase all the old songs on the ipod prior to syncing.  I clicked ok and it proceeded to wipe out the old ipod and sync the new playlist (~1000 songs).  When the sync was complete there were only 6 songs from the new playlist (all purchased this morning from itunes) on the ipod and to my horror all ~10,000 song on my pc in itunes now have a ! next to them.  Only my recent purchases from itunes do not.  When I click on a song with the ! I get the error message "the song " " could not be used because the original file could not be found."  How do I correct this issue - I am scared to hook my ipads or other ipods to my pc for fear of losing everything?!?!?  I spent 100s of hours burning the 10,000 songs from my cd collection and do not want to have to do it again. 
    Any help is greatly appreciated.

    This "original file cannot be found" thing happens if the file is no longer where iTunes expects to find it. Possible causes are that you or some third party tool has moved, renamed or deleted the file, or that the drive it lives on has had a change of drive letter. It is also possible that iTunes has changed from expecting the files to be in the pre-iTunes 9 layout to post-iTunes 9 layout,or vice-versa, and so is looking in slightly the wrong place.
    Select a track with an exclamation mark, use Ctrl-I to get info, then cancel when asked to try to locate the track. Look on the summary tab for the location that iTunes thinks the file should be. Now take a look around your hard drive(s). Hopefully you can locate the track in question. If a section of your library has simply been moved, or a drive letter has changed, it should be possible to reverse the actions.
    Alternatively, as long as you can find a location holding the missing files, then you should be able to use my FindTracks script to reconnect them to iTunes .
    tt2

  • I recently reset my computer and copy my music from an external hard drive to my itunes library.  When I click on a song to play i get an error message that says " the song could not be used because the original file could not be found".  need help

    I recently reset my computer and copy my music from an external hard drive to my itunes library.  When I click on a song to play i get an error message that says " the song could not be used because the original file could not be found".  But when I have my external hard drive plug in the song will play with no problem.  What do I need to do to play my music without having the external harddrive plug in ????????  Please help

    Because the location for each song in your library is on your hard drive.  If the hard drive isn't there, how can iTunes play it?
    You'll have to move/copy the music from your hard drive to your computer's hard drive.
    Basically, EASIEST way to do all this, if you don't care about your play counts, etc...
    -Delete EVERYTHING from iTunes, so that your library is now empty.
    -Go to "Advanced" inside of the "Preferences" window, found in the "Edit" drop-down.  You can also access Preferences by pressing Ctrl+, (Press Ctrl and the comma key)
    -Change your iTunes Media Folder Location to something simple, but on your computer. I use C:/iTunes.  Make sure "Keep iTunes Media Folder Organized" and "Copy files to...." are both checked.  You can close Preferences now.
    -Now, drag and drop your music from your hard drive into your iTunes library.  iTunes will automatically add the music to your library, as you would expect, and also creates a copy of each file to place into that iTunes Media Folder you just created.
    Shouldn't have any more problems...

  • This is a new notification coming up with iTunes, why and how do I fix it? The song "Penny Lane" could not be used because the original file could not be found. Would you like to locate it?

    This is a new notification coming up with iTunes, why and how do I fix it?
    The song “Penny Lane” could not be used because the original file could not be found. Would you like to locate it?
    Max

    Hey xxCreepyFiaxx,
    First, I would try the following suggested steps for when you don't see content in iTunes after updating:
    Quit iTunes.
    Download and install the latest version of iTunes.
    Use the Finder (Mac) or Windows Explorer (Windows) to go to the iTunes folder that contains the iTunes library files:
    Mac OS X
    /Users/username/Music/iTunes/
    Microsoft Windows Windows XP and Windows 2000
    \Documents and Settings\username\My Documents\My Music\iTunes\
    Microsoft Windows Windows Vista and Windows 7
    \Users\username\Music\iTunes\
    Drag the iTunes Library file from the above location to the Desktop.
    Open the Previous iTunes Libraries folder in the iTunes folder.
    Locate the file named iTunes Library YYYY-MM-DD where YYYY-MM-DD is the date you upgraded iTunes (Year-Month-Day).
    Drag this file to the iTunes folder (the enclosing folder).
    Rename this file to iTunes Library.
    Open iTunes.
    You should now see your missing content in iTunes.
    via: No content shows up in iTunes after updating
    http://support.apple.com/kb/TS1967
    If that doesn't resolve the issue, then I'd go through the steps in here:
    iTunes: Finding lost media and downloads
    http://support.apple.com/kb/TS1408
    Have a good one,
    Delgadoh

Maybe you are looking for

  • To P or not to P?

    I'm really confused with this issue, Progressive or Interlaced? I've looked over the forum but can't get a solid answer as to which one to use. I know about what they are and how they work but it still doesn't help me understand what I should use. Th

  • Would a 13" Macbook Pro (2.4GHz) be able to efficiently run Logic Pro?

    I'm thinking of buying a Macbook Pro, but I'm really tight on money. Would the lowest model of Macbook Pro still be able to efficiently run Logic Pro?   

  • Good speakers or Bluetooth speakers to use with GarageBand for iPad?

    Hey guys, I got an electric guitar plugged into my iPad to use as an amp. I play it in a church for a music group who perform for the mass. I need speakers as the ones I am currently using don't play loud enough. If they are bluetooth it would be fin

  • Migration to new 3TB Time Machine/Time Capsule?

    From an earlier posting, I think A Silverstone asked for a step-by-step procedure. I have a similar issue I would like a procedure(s) on.  Actually two identical issues. 1. I wish to purchase Apples new 3TB tower Airport/Time Machine to replace a 1TB

  • I'm disgusted with these forums now.

    I just can't even get in. I click and click and click on "Ask the Community," and, nothing happens. This has been going on for weeks.