'Unknown Error' when running a file download in SM36/7 - fine when manual.

I am running a program through a scheduled job (in SM36/7), and the program downloads a file to a specified directory/folder on my file server. I am using the method
cl_gui_frontend_services=>gui_download
to do this.
However, this process fails in the background job. When I run it manually, it succeeds. In other words, there is nothing wrong with the code.
Essentially, I think there is some information missing that it can get from my logon when running it manually, but not in the background job.
Does anyone know of a solution for the above? Points will obviously be awarded.
I have searched the SAP Notes, and done some searching on the Net, but I have had no joy.
Thanks,
Casper

Hi Casper,
Frontend services wo'nt work in background job.
If you have to download a file from a background job, please use the following statement :
    OPEN DATASET filename FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
    IF sy-subrc EQ 0.
      LOOP AT itab.
        TRANSFER itab TO filename.
      ENDLOOP.
      CLOSE DATASET filename.
Hope this helps,
Erwan

Similar Messages

  • Unknown Error when I Logging and Transfer P2 Card files in FCP 6.0.6

    I have been trying for the past two week to Log and Transfer P2 files to my external hardrive using FCP 6.0.6 unsuccessfully.
    Originally I tried to Log and Transfer directly from the Panasonic HPX-170 in between my shooting. The first time it was a success but from then on I always get the same Unknown Error when attempting to transfer. When I encountered the Unknown Error during the second transfer I went on to create folders with the P2 contents on my external Hard Drive.
    When I drag any of the P2 folder content on the Log and Transfer window I can see all the clips. I can successfully transfer small B-roll clips I have but any big size file (all my interviews) return an Unknown Error symbol at the end of the transfer. I believe this is probably why I didn't encounter any issues during my first time.
    I tried deleting the preferences in FCP and then Logging and Transfer and it works if the systems settings are set for the Mac Pro but not for the external HD. The problem is I don't have enough space on my Mac. I have cleared 45GB of space but my P2 files total 54GB. I tried the same process with a Mac Power Book with FCP 5.1.4 and again in encounter the same problem.
    The external HD is a 1TB Western Digital that I have used before with FCP for editing but never before with P2 files. Its in good working order and has 79GB free space remaining. Both the camera and the P2 cards (16GB and 4GB) are also performing as expected.
    I would appreciate any suggestions.

    #36 - One or More P2 files failed to import.
    Shane's Stock Answer #36 - "One or more clips failed to import..."
    Very often in the field with this camera the camera operator will delete clips from the P2 card that they just don't like. That is the beauty of this camera. But, the still for that video file (located in the CLIP folder in the CONTENTS folder)...the still that you see when you are in the P2 Import window...is not deleted. So you will see the image, and the name, but the video file would have been deleted.
    What you can do it compare the file names in the VIDEO folder and CLIP folder and see if anything is missing. If something is, then you know what the problem is. You can then just import the rest a few at time, skipping that one.
    ALSO...in the P2 Import window...in the P2 Browser, there is a little sprocket drop down menu. Click on that and choose PREFERENCES. Uncheck REMOVE PULLDOWN and then try importing again.
    ALSO...make sure your file names aren't too long. Try shortening them and see if that works.
    ALSO make sure that the folders that contain the CONTENTS folder doesn't have any odd characters like /!@#$%^&*()?.
    Shane

  • I keep getting unknown error when trying to download apps

    Does anyone know why I keep getting unknown error when trying to download apps?

    does it says anything else than unknow error?
    try going to settings>store, click on apple id and then sign out. Restart iphone and sign back in and try downloading again

  • Unknown error when merging files

    I have encountered an unknown error when trying to combine files into a single pdf.  It specifically states: "No PDF file was created because Acrobat encountered an unknown error."  This is unusual as just yesterday I was able to perform this task with ease - and being able to do this task will save me hours of work time.  What has been done between yesterday and today - I updated my windows 7 and maybe even updated Adobe  Acrobat.9 Pro - I also deleted some malware that was unnecessary for my computer: Qwiklinx; yontoo; ... I did a restore to when this action worked but to no avail.
    Thank you for your thoughts on this matter.

    Hi Kylie,
    Which version of Premiere Pro are you using? Can we get more details about this case? FAQ: What information should I provide when asking a question on this forum?
    Thanks,
    Kevin

  • Unknown error when download apps or music

    I have an iPhone 4S and every time i want to download music or apps i get a message saying Unkown error...
    Please help me.
    Thanks

    This is what i found and it worked!
    Dseang21
    Re: unknown error when using appstore (to update or download apps) 
    May 11, 2012 5:14 PM (in response to ancientty)
    Same deal for me. I found an answer at ipadforums.com that fixed it for me. Go to settings, click on store, click on your user Id, sign out, and then sign back in. Hopefully it works for you too.

  • Unknown error when download is ending

    iTunes/10.6.3 (Windows; Microsoft Windows XP Professional Service Pack 3 (Build 2600))
    "Unknown Error" is occurs when download is ending.
    The above-mentioned error occurs frequently recently.
    But, I rarely succeed in downloading.
    So I confused.
    I can not suppose the reason.
    OS? itune application ?? network enviroment ?? Obstacle by plural factors?? rainy wether ???
    what is the reason why error occurs.
    and apple japan dose not give me any advice nor solution     It is a problem, too.
    I sent message "Unknown Error occured" to Apple Japan.
    Only they replyed that my message recived.

    This is what i found and it worked!
    Dseang21
    Re: unknown error when using appstore (to update or download apps) 
    May 11, 2012 5:14 PM (in response to ancientty)
    Same deal for me. I found an answer at ipadforums.com that fixed it for me. Go to settings, click on store, click on your user Id, sign out, and then sign back in. Hopefully it works for you too.

  • Why is my iphone saying "unknown error" when I try to download or update an app?

    Why is my iphone saying "unknown error" when I try to download or update an app?

    For answers, look to the right in the "More Like This" box.  You'll find your issue has already been addressed.

  • TS1702 unknown error when using the app store

    unknown error when using the app store

    Im sorry I will try to be more clear.. and I appreciate all of ur input. Wi-fi works fine.. everything opens and functions fine on the I pad. The problem is I will click on app store or the I tunes store...it opens fine and I am able to look at and download apps  etc... but after being in the appstore or I tunes store for a couple of minutes I get kicked out to the I pads home screen. Its like pushing the home button but I didn't. It only seems to do this when im in the app store or I tunes store. I have been using the chrome browser and other downloaded apps such as ebay just fine with out this problem occurring. Not sure about safari as I dont use it and use chrome instead. Um I don't think the home button its self is faulty because it works fine and as stated before this only happens when I am in the appstore or I tunes . I've only had this I pad 1 64gb wi-fi for a few days .. I got it off of ebay it was stuck in restore mode getting error code 1611.  I was able to successfully Restore it with I tunes and it running ios 5.1. Seams to work great besides the problem being mentioned.

  • Unknown error when executing MDX when refreshing Crystal Report with BEx

    Hello Experts,
    I have created a Crystal Report (Crystal 2008 SP1) with BEx Query (7.10) and have been able to refresh successfully when the SAP_ALL authorization is included in my user role. I don't want my end users to have SAP_ALL so I created a role and assigned the authorizations recommended in the SAP Integration Kit for BusinessObjects 3.1 Install Guide.
    When I run the report as one of the users assigned to my new role I get the following error in the trace file.
    ERROR: .\crdb_bwmdx_execution.cpp [200]: l_bapiGetStreamInfo failed with return code RFC_RC = 0 Exception:  BAPI Error: BAPI Error #:0
    Unknown error when executing MDX
    2188     6556     Caught DbError #1 with Message 'BAPI Error #:0
    Unknown error when executing MDX'
    2188     6556     Caught DbError #1 with Message 'BAPI Error #:0
    Unknown error when executing MDX'
    2188     6556     Caught DbError #1 with Message 'BAPI Error #:0
    Unknown error when executing MDX'
    I tried all the Fix Packs (ie 1.1., 1.2 and 1.3) for XI 3.1 Integration Kit to try resolving the error but it didn't work.
    The same query works fine in BEx Web when running as one of the users in the new role I created for Crystal Report users.
    Are there any other Authorizations that I need to include in the role?
    Cheers.
    Paul.

    We have been able to identify what causes the MDX driver to error and I will explain what we are trying to implement with the hierarchies.
    Firstly, we are creating reports of the HR cube Mutliprovider using the SAP MDX Driver which works well when there are no authorization analysis set on the cube. But with the authorization analysis set for on 0ORGUNIT for BEx Explorer Crystal returns the MDX error.
    Each of the Business Unit managers are assigned to an Organization Unit that will be used to restrict the employees that will be reported. To restrict the Managers to only see their Org Unit we have set the 0ORGUNIT object to use authorization ananlysis and a custom authorization variable to return only data for the Org Unit they belong too.
    In Crystal this works well when a manager has an Org Unit that is a head department of other Org Units. This scenario will give Crystal the NodeID and Parent NodeID to create the hierarchies in the report. But when a manager does not have any other Org Units beneath there own department then Crystal doesn't have a Parent NodeID to create the Hierarchies with the NodeID. In the RFC trace I can see an error when Crystal is trying to get the Parent NodeID but the user is not authorized to that Org Unit then it throws the error.
    We have got a temporary workaround which is to create the managers a dummy Org Unit below their own department. The workaround will do for now but shouldn't the MDX driver be able to recognise that it has returned the last level in the Org Unit Hierarchy and not return an error?
    The customer is looking for a product fix as they believe this should be handled by the driver. Is this a bug or a limitation of the product?
    Paul.

  • Adobe Media Encoder (Error compiling movie) Unknown error when writing to Isilon OneFS 6.5.5.18

    Adobe Media Encoder (Error compiling movie) Unknown error when writing to Isilon OneFS 6.5.5.18 while using Adobe Premiere Pro.
    Process:         Adobe Premiere Pro CC 2014
    Path: /Applications/Adobe Premiere Pro CC 2014/Adobe Premiere Pro CC 2014.app/Contents/MacOS/Adobe Premiere Pro CC 2014
    Identifier: com.adobe.AdobePremierePro
    Version:         8.1.0 (8.1.0)
    Code Type: X86-64 (Native)
    Parent Process: launchd [2538]
    Responsible:     Adobe Premiere Pro CC 2014
    Date/Time: 2015-01-06 14:04:23.500 -0700
    OS Version:      Mac OS X 10.9.2 (13C64)
    Report Version:  11
    Crashed Thread: 55  Dispatch queue: com.apple.root.default-priority
    Exception Type: EXC_BAD_ACCESS (SIGSEGV)
    Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000000
    Customer created test export with 777 permissions and set mount parameters to the following:
    mount_nfs -o vers=3,tcp,rdirplus,intr,nolocks,async,rsize=32768,wsize=32768
      -- Original mount options:
         General mount flags: 0x40 async
         NFS parameters: vers=3,tcp,nolocks,rsize=32768,wsize=32768,rdirplus
      -- Current mount parameters:
         General mount flags: 0x4000058 async,nodev,nosuid multilabel
         NFS parameters: vers=3,tcp,port=2049,nomntudp,hard,nointr,noresvport,negnamecache,callumnt,nolocks,quota, rsize=32768,wsize=32768,readahead=16,dsize=32768,rdirplus,nodumbtimr,timeo=10,maxgroups=16 ,acregmin=5,acregmax=60,acdirmin=5,acdirmax=60,nomutejukebox,nonfc,sec=sys
    The pcap shows once the movie is created a lockup call is responded from Isilon with Error: NFS3ERR_NOENT
    478         V3 CREATE Call (Reply In 479), DH: 0xea5f731c/QBRSN-0-0-1.mov Mode: UNCHECKED
    479         V3 CREATE Reply (Call In 478)
    484         V3 LOOKUP Call (Reply In 485), DH: 0xea5f731c/._QBRSN-0-0-1.mov
    485        V3 LOOKUP Reply (Call In 484) Error: NFS3ERR_NOENT
    V3 LOOKUP Reply (Call In ....) Error: NFS3ERR_NOENT  -   This is by design of OneFS, we coalesce files and then flush them out to disk which is why the commit time is accurate but the file is not immediately available. however when an async option is used within the mount options this should be avoided if writing asynchronously to the cluster.  Has anyone else seen this behavior lately? (current workaround is to store locally and transfer to the cluster via Finder)

    That error can happen for many reasons...one of the reasons that I occassionaly get it is because I try exporting a movie to an external drive that has been formated in the old FAT32 instead of the NTSF standard.  FAT32 only allows for file sizes up to 2 gigs.  And as soon as it reaches that...I would get that error.  I don't know if that is why you are getting that error...but it would be easy to check.  1) are you generating a file that is over 2 gigs?  2) is your drive that you are exporting to FAT 32 (just right click the drive in My Computer and select "properties" then just look for what it says next to "file system".

  • RH_START_EXCEL_WITH_DATA - System Error:unknown error when GUI_DOWNLOAD is

    Hi,
    I am using FM 'RH_START_EXCEL_WITH_DATA' to download data of an internal table to excel sheet.
    I'm passing the filename, internal table as mentioned below:
    CALL FUNCTION 'RH_START_EXCEL_WITH_DATA'
    EXPORTING
    DATA_FILENAME         = v_xls_file
    DATA_PATH_FLAG     = 'W'
    DATA_TABLE              = i_test[].
    But I am getting this following error:
    System Error: unknown error when GUI_DOWNLOAD is called.
    Thanks in advance.

    Hey Wincy , If you want to download Internal Table's data in to Excel just use the Method
    cl_gui_frontend_services=>gui_download....
    If you need any code assistance kindly Let me know. although  the method is easy to use and Works fine.

  • I keep getting an unknown error when trying to connect to the store. I ran diagnostics and it says secure link to itunes store failed.

    I keep getting an unknown error when trying to connect to the store. I ran diagnostics and it says secure link to itunes store failed. I've tried all suggestions from apple and nothing will work.
    Please Help

    I received this email from Apple and this corrected the problem for me...  I only had to reset the iTunes cache
    1) Open iTunes
    2) At the top menu, click File > Preferences (iTunes > Preferences on a Mac)
    3) In the Preferences menu, click the Advanced tab
    4) In the Advanced menu, you should see a button that says "Reset Cache". Please click this button.

  • Sync Setup gives unknown error when creating account

    Getting "unknown error" when trying to setup sync account. i have the latest version of firefox. i cleared the cache. I did a factory reset. none of it worked.

    Create a new profile as a test to check if your current profile is causing the problems.
    See "Creating a profile":
    *https://support.mozilla.org/kb/profile-manager-create-and-remove-firefox-profiles
    *http://kb.mozillazine.org/Standard_diagnostic_-_Firefox#Profile_issues
    If the new profile works then you can transfer some files from an existing profile to the new profile, but be careful not to copy corrupted files.
    *http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox
    Did you ever used sync before and have previously created an account?
    *https://services.mozilla.com/ Firefox Sync » Home
    *https://account.services.mozilla.com/

  • Unknown error when exporting 32-bit 5.1 wav audio

    I get the ever useful "Unknown error" when exporting the audio from Premiere Pro CS6 to a 32-bit, 5.1 channel uncompressed WAV file most of the time. I was able to get it to work just fine by pasting the audio to a new project, but that isn't working anymore. I get the same error when I change it to 24-bit audio. However, when I change to 16-bit sound it works fine.
    First, is there a real audible difference between 16- and 32-bit when it's all going through a WAV to AC3 converter? The AC3 files get dumped into Encore as the audio track so that I can get 5.1 sound on blu-rays instead of Encore re-encoding things.
    Second, what would cause it suddenly not work, and how can I get it working again?

    That error can happen for many reasons...one of the reasons that I occassionaly get it is because I try exporting a movie to an external drive that has been formated in the old FAT32 instead of the NTSF standard.  FAT32 only allows for file sizes up to 2 gigs.  And as soon as it reaches that...I would get that error.  I don't know if that is why you are getting that error...but it would be easy to check.  1) are you generating a file that is over 2 gigs?  2) is your drive that you are exporting to FAT 32 (just right click the drive in My Computer and select "properties" then just look for what it says next to "file system".

  • Unknown error when burning disc

    I get an unknown error when burning playlists to blank discs.  My computer begins to write the discs, but stops after a song or two. 

    Could you post your diagnostics for us please?
    In iTunes, go "Help > Run Diagnostics". Uncheck the boxes other than DVD/CD tests, as per the following screenshot:
    ... and click "Next".
    When you get through to the final screen:
    ... click the "Copy to Clipboard" button and paste the diagnostics into a reply here.

Maybe you are looking for