Getting Message as "File not open", when I ran background Job

Hi,
I developed a Migration Program, Which reads the data from Application serever and procced with further process in back ground mode.
Same program is workind fine in Development System in Back ground mode (SY-BATCH = 'X', Scheduled a batch Job). So I transported to Quality system.
Now When I run the program in background mode (SY-BATCH = 'X', Scheduled a batch Job), getting Message as "File is not Open" at Quality system. So I debugged the Batch job  through "JDBG", and found file opening and reading the content sucessfully.
But its not working without debugging mode and getting message as "File not open".
Is there any Authorizations required for background mode (without debugging).
So can you please help me on this how to solve this issue.

Try this code:
DATA: PATH_NAME(80) TYPE C,
        LV_FILENAME TYPE STRING.
  DATA: LW_XSTRING         TYPE XSTRING,
        X_LEN             TYPE I.
  DATA: FILE_AUTH_ERR TYPE REF TO CX_SY_FILE_AUTHORITY,
        FILE_OPEN_ERR TYPE REF TO CX_SY_FILE_OPEN,
        FILE_OPEN_MODE_ERR TYPE REF TO CX_SY_FILE_OPEN_MODE,
        FILE_CLOSE_ERR TYPE REF TO CX_SY_FILE_CLOSE,
        FILE_CONVERSION_ERR TYPE REF TO CX_SY_CONVERSION_CODEPAGE,
        FILE_TOO_MANY_ERR TYPE REF TO CX_SY_TOO_MANY_FILES,
        MESS TYPE STRING,
        W_TEXT TYPE STRING.
  DATA: L_RC TYPE INT4.
concatenate pathname lv_filename into lv_filename.
TRY.
      OPEN DATASET LV_FILENAME FOR INPUT IN BINARY MODE MESSAGE MESS.
    CATCH CX_SY_FILE_OPEN_MODE INTO FILE_OPEN_MODE_ERR.
      W_TEXT = FILE_OPEN_MODE_ERR->GET_TEXT( ).
      L_RC = 1.
    CATCH CX_SY_FILE_AUTHORITY INTO FILE_AUTH_ERR.
      W_TEXT = FILE_AUTH_ERR->GET_TEXT( ).
      L_RC = 2.
    CATCH CX_SY_CONVERSION_CODEPAGE INTO FILE_CONVERSION_ERR.
      L_RC = 3.
      W_TEXT = FILE_CONVERSION_ERR->GET_TEXT( ).
    CATCH CX_SY_TOO_MANY_FILES INTO FILE_TOO_MANY_ERR.
      L_RC = 4.
      W_TEXT = FILE_TOO_MANY_ERR->GET_TEXT( ).
    CATCH CX_SY_FILE_OPEN INTO FILE_OPEN_ERR.  "File already open
      L_RC = 5.
      W_TEXT = FILE_OPEN_ERR->GET_TEXT( ).
  ENDTRY.
  IF L_RC = 0.
    L_RC = SY-SUBRC.
  ENDIF.
  IF L_RC <> 0 OR SY-SUBRC NE 0.
Issue Error message in open file.
   CONCATENATE MESS 'Open dataset failed'  w_text INTO MESS SEPARATED BY SPACE.
   message Exx(yyy) with mess.
      ELSE.        "file exists and can be opened
  ENDIF.

Similar Messages

  • I get error message''one file not found'' when tring to sync Ipod Nano 6th gen to I tunes. Help

    I get error message''one file not found'' when tring to sync Ipod nano 6th gen to Itunes. Help

    See:
    iTunes cannot sync... apps not determined installed on...: Apple Support Communities
    installed apps could not be determined...: Apple Support Communities

  • The OE New Message box does not open when I click on an email address in Firefox. This is not a problem when I use MS Explorer. How can I fix it?

    OE is set as my default email in both Firefox and Windows XP. When I click on an email address on a website within Firefox the OE page comes up but the OE New Message window does not open. When I go to the same webpage using MS Explorer and click on the same email the OE New message does open. Is there a bud in Firefox that prevents the OE New Message from opening? Is there a way I can fix it?

    See this:
    [http://support.mozilla.com/en-US/kb/Changing+the+e-mail+program+used+by+Firefox]

  • Getting HTTP 404 - File Not Found when creating Items

    This happens when I try to create an item of any type. I can edit items already created, but I cannot create any new items.
    Take the Text Control for example:
    When I click on the Text item icon, I get the page that prompts for the Text Control Type. I select one, then I wait and get the HTTP 404. This happens with all items. For items that do not have subtypes, I get the error immediately.
    Any suggestions?

    I have some major work to do. This might require a call to Oracle.
    Udump trace file reveals the following for each attemp to create an item:
    ksedmp: internal or fatal error
    ORA-07445: exception encountered: core dump [ACCESS_VIOLATION] [_opidsa+360] [PC:0x2080540] [ADDR:0x0] [UNABLE_TO_READ] []
    Current SQL statement for this session:
    select
    nvl(htf.escape_sc(p.plug_name),wwv_flow_lang.system_message('CREATE_ITEM_WIZ.NO_REGION')) plug_name,
    i.item_sequence,
    i.name,
    i.prompt,
    nvl(i.item_plug_id,0) item_plug_id,
    i.DISPLAY_AS
    from
    wwv_flow_step_items i, wwv_flow_page_plugs p
    where
    i.flow_step_id = :FB_FLOW_PAGE_ID and i.flow_id = :FB_FLOW_ID
    and
    p.id (+) = i.item_plug_id
    order by nvl(item_plug_id,0), item_sequence
    I shut down the database. I get this when attempting to restart:
    SQL>
    Connected.
    SQL> shutdown immediate
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL> startup
    ORA-32004: obsolete and/or deprecated parameter(s) specified
    ORA-12528: TNS:listener: all appropriate instances are blocking new connections
    SQL> startup
    ORA-01041: internal error. hostdef extension doesn't exist
    SQL>
    Message was edited by:
    MartinWDC

  • Quicktime Movie Files Not Opening when sent from iLife

    REcently, my mom and dad have sent me QT files recently via email and I've been unable to open them. Here is the strange part...they just emailed them to me using the "share" feature within imovie and/or iphoto. The files compressed fine and emailed w/o problem. I was unable to open them which I think is very odd.
    Is there a problem with QT anyone know of out there? I'm using QT 7.1.5. My parents are both using the most recent ilife suite and QT.

    I have emailed an avi file to friend with aol mail address. When trying to open file quicktime error message says it is not a movie. When I used quicktime pro to mail the file it changed file to a .mim . Cannot find a program on their windows machine that will play the .mim file. How can you e-mail avi files in a way that windows users can view them ?

  • .doc files not opening when emailed

    All of the sudden no one on a PC can open my .doc files when I email them. Word is prompting them to install special software to open them...they're coming up as some kind of Japanese text. What's going on??? I haven't ever had this problem before.

    I'm not sure why it would have just started. What e-mail application are you using to send your files? Entourage? A Web e-mail client? Apple's own "Mail" program? What application are the recipients using? Some details like that might be helpful to troubleshoot your issue. If you're using Apple's Mail program, you might search/post in the Mail forums here:
    http://discussions.apple.com/forum.jspa?forumID=753
    -Doug

  • File not opening when deleted of desktop with Airport HD

    Hi,
    Recently i have moved some files over from my desktop to my airport HD, and it when i delete them off the desktop they wont open from the airport.
    What settings have i set wrong?
    Thanks in advance
    S

    It is an Excel for mac file.
    Let me explain.
    I worked on a new doc, then saved it to desktop. Then i dragged it over to the folder on aiport extreme HD, and if i delete the file from desktop it wont open. It says it cannot open file.
    PDF works fine.
    See screenshot.
    Could it be an issue with the settings in Excel?
    I will check with other files.

  • I am using Adobe Acrobat 9 Standard version in Windows 8.1 and when I try to create a .pdf file, I receive the following error message "Acrobat could not open "file name.log" because it is either not a supported file type or because the file has been dama

    I am using Adobe Acrobat 9 Standard version in Windows 8.1 and when I try to create a .pdf file, I receive the following error message "Acrobat could not open "file name.log" because it is either not a supported file type or because the file has been damaged.  To create a PDF document, go to the source application then print the document to .pdf"  I am going to the source application and printing the document to .pdf yet it's saving the file as a .log file.  After reinstalling the software, I initially didn't encounter this problem but on my second and third attempts to convert files to .pdf format, this error message reappeared.  How do I resolve this problem?

    I have a similar problem which i did not have before...and it exists only in some powerpoint files which i want to print as a pdf file...and i get the same message as above.
    the log says the bellow details...what's the problem and how can i resolve it? thanks.
    %%[ ProductName: Distiller ]%%
    %%[Page: 1]%%
    %%[Page: 2]%%
    Cambria not found, using Courier.
    %%[ Error: invalidfont; OffendingCommand: show ]%%
    Stack:
      %%[ Flushing: rest of job (to end-of-file) will be ignored ]%%

  • When try toupgrade to OS 5.1 downloads to itune ,but I get a message firmware file not conpatable

    When try to upgrade to os 5.1 it downloads to itunes,but then i get a message "firmware file not compatable"????

    Are you attempting to upgrade to the current version of iOS (5.1.1) or to 5.1? If you're not trying to update to the current version, it won't work. 5.1 is no longer signed.

  • When I try to update phone i get the message firmware file not compatible comes up when I go into my setteings on phone to update I can't find software option i checked in general settings it is not there,what can I do to get my iOS updated?

    I am having trouble updating my iOS software on my phone, I keep getting the error message firmware file not compatible what do I do now?
    Cindy

    A second generation iPod touch can't be updated past 4.2.1.
    (88824)

  • Why does FCP error "File Not Found" when I try to open my sequences????

    I recently updated all of my software and the following day I started getting errors "file not found" when I would try to open a sequence. Now all of my sequences are being lost and I am losing time and money because I can't meet deadlines! This *****!!! With one sequence I had to reedit the entire thing from scratch and when I did for some reason the old one would then open. But the next time I opened FCP both sequences would error out. Following the "file not found" the computer responds with another error "error: out of memory" What the devil is going on with this crap?

    I seem to have figured out what my problem was. After trying to build the same project (that failed on the Mac Pro) on my laptop and encountering the same errors, I realized that the problem had to be with one or more of my assets and not my new version of FCP, since my PowerBook is running FCP 5.0.4 and my Mac Pro is running FCP 5.1.2.
    In my case the "corrupt" file was a Photoshop PSD file. In the past (FCP 4.5) I was able to use PSD files with hidden layers. I would merge the visible layers into one layer, keep the hidden layers and save the file. Once in FCP, I imported the PSD file and kept right on truckin'. I've done this for years. For some reason now with FCP 5.1.2 (and 5.0.4), that's not flying anymore. Once I "Flattened" the PSD file in Photoshop (deleting all of the hidden layers) I was able to build the project without any errors.
    Interestingly, the technique I used to figure out which file was "corrupt" also allowed me to salvage parts of some of my "lost" sequences. I saw this posted in a forum at Creative Cow (creativecow.net). Basically, I opened up the project, clicked the OK button after the File Not Found error, went into the Browser, right clicked on the offending sequence, selected "Make Offline". When I double clicked the sequence it opened in the timeline with all of my assets offline. Then in the timeline, one by one, I right clicked on each clip and selected "Reconnect Media". Once I linked up the media, if I didn't get an error message, I would save as a new project (to salvage what WAS working), and go to the next clip. I did this until I found the offending PSD files.
    I hope this helps. Now it's time to play "catch-up"
    Mac Pro 3Ghz, 1GB RAM, ATI Radeon X1900 XT   Mac OS X (10.4.8)  

  • TS1717 My Itunes won't open and I am getting message "the file "iTunes Library .itl" cannot be ready because it was created by a newer version of iTunes".  Any suggestions?

    My iTunes won't open and I am getting message "the file iTunes library .itl"cannot be read because it was created by a newer version of iTunes.  Anyone have a suggestion?

    I don't know why this error occurs, unless you have attempted to downgrade iTunes.
    This method should get you up and running again.
    Empty/corrupt library after upgrade/crash
    Hopefully it's not been too long since you last upgraded iTunes, in fact if you get an empty/incomplete library immediately after upgrading then with the following steps you shouldn't lose a thing or need to do any further housekeeping. In the Previous iTunes Libraries folder should be a number of dated iTunes Library files. Take the most recent of these and copy it into the iTunes folder. Rename iTunes Library.itl as iTunes Library (Corrupt).itl and then rename the restored file as iTunes Library.itl. Start iTunes. Should all be good, bar any recent additions to or deletions from your library.
    See iTunes Folder Watch for a tool to catch up with any changes since the backup file was created.
    When you get it all working make a backup!
    tt2

  • Finder does not open when a file passes over (mac os X 10.8.3)

    Just installed mac os 10.8.3 mountain lion. As such, it seems with this OS X version the "finder" does not open when a file passes over (in order to move it from desktop).
    The screen dims a little and nothing else happens.
    How can I recover the "finder" functionality that apparently doesn not exist anymore?
    Is it something wrong that I am doing?
    Regards
    José

    Back up all data. Don't continue unless you're sure you can restore from a backup, even if you're unable to log in.
    This procedure will unlock all your user files (not system files) and reset their ownership and access-control lists to the default. If you've set special values for those attributes on any of your files, they will be reverted. In that case, either stop here, or be prepared to recreate the settings if necessary. Do so only after verifying that those settings didn't cause the problem. If none of this is meaningful to you, you don't need to worry about it.
    Step 1
    If you have more than one user account, and the one in question is not an administrator account, then temporarily promote it to administrator status in the Users & Groups preference pane. To do that, unlock the preference pane using the credentials of an administrator, check the box marked Allow user to administer this computer, then reboot. You can demote the problem account back to standard status when this step has been completed.
    Enter the following command in the Terminal window in the same way as before (triple-click, copy, and paste):
    { sudo chflags -R nouchg,nouappnd ~ $TMPDIR.. ; sudo chown -R $UID:staff ~ $_ ; sudo chmod -R u+rwX ~ $_ ; chmod -R -N ~ $_ ; } 2> /dev/null
    This time you'll be prompted for your login password, which won't be displayed when you type it. You may get a one-time warning to be careful. If you don’t have a login password, you’ll need to set one before you can run the command. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator.
    The command will take a noticeable amount of time to run. Wait for a new line ending in a dollar sign (“$”) to appear, then quit Terminal.
    Step 2 (optional)
    Take this step only if you have trouble with Step 1 or if it doesn't solve the problem.
    Boot into Recovery. When the OS X Utilities screen appears, select
    Utilities ▹ Terminal
    from the menu bar. A Terminal window will open.
    In the Terminal window, type this:
    res
    Press the tab key. The partial command you typed will automatically be completed to this:
    resetpassword
    Press return. A Reset Password window will open. You’re not  going to reset a password.
    Select your boot volume ("Macintosh HD," unless you gave it a different name) if not already selected.
    Select your username from the menu labeled Select the user account if not already selected.
    Under Reset Home Directory Permissions and ACLs, click the Reset button.
    Select
     ▹ Restart
    from the menu bar.

  • "File Not Found" When opening a file in illustrator CS3

        I having issues where when I click on a file it launches illustrator but then I get prompted with file not found. I then open illustrator and browse to the file and am to open it....any ideas? This one has me stumped.

    I think I found the problem. I am using Illustrator CS5 (15.0.02) running on MacOS (10.7.5).
    In my script, Folder.selectDialog function was returning "file:///Users/alex/Apps/temp", when I selected the temp folder from the dialog box. I want the function to return "/Users/alex/Apps/temp". If I hardcode the path (as shown below), the javascript runs fine.
    // Select the source folder.
    //sourceFolder = Folder.selectDialog( 'Select the folder with Illustrator files', '~' );
    sourceFolder = Folder("/Users/alex/Apps/temp");

  • Please Please help me. I have been trying to install Itunes 11 for 3 months. I deleted my old version and can not for the life of me get Itunes installed . I have Windows 7 Home. The message is " Could not open key: UNKNOWN\Components\DA42BC89BF25F5BDOAF1

    Please Please help me. I have been trying to install Itunes 11 for 3 months. I deleted my old version and can not for the life of me get Itunes installed . I have Windows 7 Home. The message is " Could not open key: UNKNOWN\Components\DA42BC89BF25F5BDOAF1

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

Maybe you are looking for

  • Mandatory field in selection screen of pnp logical database report

    Hi experts,      Im using pnp logical database in my report. It give the standard selection screen. I need to make some fields in the selection screen as mandatory like pnpwerks. How its possible. Give me some solution. Thanks, Priya.

  • Why can't I access my voicemail?

    For some time now I've noticed I haven't had any voicemail notifications. I went ahead and tried to call my voicemail but it no longer works. When I call, it acts like I'm calling from another phone and goes straight to my voicemail, and I hear my ow

  • SAP NetWeaver BI with Microsoft SQL Server 2012 Reporting Services using XMLA

    I am currently implementing SAP BW and am trying to connect the Microsoft SQL Server 2012 Reporting Services product.  I am able to connect to SAP BW but there is one problem when i click on Query Designer after adding a DataSet the screen just displ

  • ReplyTo Address in BPEL 11g

    Hi', We have a BPEL process A invoking BPEL process B, and for reply we are using replyToAddress to reply back from BPEL B to the BPEL process A. We are using correlation between these 2 process. These process are in SOA 10G, Now after migration to S

  • Groupware Adapter: Initial load Dump

    Hello at all, we want to connect our CRM 2007 to Microsoft Exchange. We have done all the steps of the GWI documentation and now we want download the customizing data from the CRM to the MAPBOX. When we start the inital load (TX: R3AS) we get an shor