Dump - While downloading Excel file in Back Ground job.

Hi Friends,
I am running a report program in BackGround mode and Downloading an Excel file.
Getting the following dump report. (Working in 4.6C)
ABAP/4 processor: RAISE_EXCEPTION
Job cancelled
Help me to resolve this.
000380       CALL METHOD CL_GUI_FRONTEND_SERVICES=>DIRECTORY_LIST_FILES
000390         EXPORTING
000400           DIRECTORY                   = FILE
000410           FILTER                      = ''
000420           FILES_ONLY                  = 'X'
000430   *    DIRECTORIES_ONLY            = 'X'
000440         CHANGING
000450           FILE_TABLE                  = filetab
000460           COUNT                       = count
000470         EXCEPTIONS
000480           CNTL_ERROR                  = 1
000490           DIRECTORY_LIST_FILES_FAILED = 2
000500           WRONG_PARAMETER             = 3
000510           ERROR_NO_GUI                = 4
000520           others                      = 5.
000530
000540       IF SY-SUBRC <> 0.
     >         RAISE CNTL_ERROR.
000560       ENDIF.
I am calling the methods as shown below.
CALL METHOD cl_gui_frontend_services=>gui_download
    EXPORTING
      filename                = l_file
      write_field_separator   = 'X'
    CHANGING
      data_tab                = i_header
    EXCEPTIONS
      OTHERS                  = 22.
  IF SY-SUBRC NE 0.
   MESSAGE S208(05) WITH 'File download is failed'.
  else.
   MESSAGE S208(05) WITH 'File downloaded to specified path'.
  ENDIF.
  CALL METHOD cl_gui_frontend_services=>gui_download
    EXPORTING
      filename                = l_file
      append                  = 'X'
      write_field_separator   = 'X'
    CHANGING
      data_tab                = i_output
    EXCEPTIONS
      OTHERS                  = 22.
  IF SY-SUBRC NE 0.
   MESSAGE S208(05) WITH 'File download is failed'.
  else.
   MESSAGE S208(05) WITH 'File downloaded to specified path'.
  ENDIF.
Regards,
Viji

HI Vijayalakshmi,
you are using cl_gui_frontendsevices...class in background...
Is it possible to use this class in the background??
Plz check once...
Regards,
Vamshi

Similar Messages

  • How to download the application file to local file by back ground job?

    hi:
      can any one tell me how to download the application file to local file by back ground job? thanks in advance..
    Monson

    Hi,
    In order to download a file from application layer to a local file in background,
    first write a report(ZREPORT1) in which do the following steps:
    OPEN DATASET g_file_1 FOR INPUT IN TEXT MODE ENCODING DEFAULT.
    loop the g_file and append all the data into another internal table.
    end of this report you shd have all the data in the application layer file into your internal table.
    Now create another report(ZREPORT2) and submit this report in background.
    that is,
    JOB_OPEN
    JOB_SUBMIT and
    JOB_CLOSE
    and in job_submit submit ZREPORT1 which downloads the file in application layer.
    Please reward points if helpful.
    Regards,
    Arul.

  • Dump while downloading to excel file!!

    Hi,
    I'm getting a dump while downloading the ALV (Grid) report into an excel file.
    When i inspected, the dump was - " Only character-type data objects are supported at the argument position "obj". In this particular case, the operand "obj" has the non-charcter-type type "P". "-
    i'm having few currency values to be displayed.
    Thought of an alternative my moving the values into char type field and to display it, but the values are getting rounded of.
    Thanks in advance..
    Any help would be suitably rewarded.
    Kumar R.

    All the internal fields to be char type..if download functionality to be given..
    if there is any issue in doing this...
    create any another field in ur table(internal ) of type c length same like ur coressponding currency or quatity field....
    move these fields into ur new char field and then prepare fieldcatlog on this..
    hope this helps...
    i handled like this only..
    Praveen .

  • Error While downloading the file A server Error has occurred, please try again later Downloading Yahoo mail Application Attachments  Trying to download My Photos and movie 3 items so i can delete them all

    I have icloud and a new iPhone5 ! They work good , took pictures and a few short movies, plugged in my phone to my iMac transfered Items to iPhoto then inported items to iMovie. when getting to know what i was doing i decided to delete pictures and movies i no longer wanted. when i looked for a few missing items i opend Finder and there some where buyt i had already trashed them and deleted the doubles. Still could not find missing pictures and movies 3 items and today after calling yahoo about a different complant with sending feed back for Yahoo mail Applications login . i opened up Attachments Not the Large Attachments just Attachments and there were the 3 items i had been hunting for to Trash and delete. the mail Attachments file does not have the Option to delet Files and photos and movies. When i tried to Download the 3 items a window shows up that says Error While Downloading the Files, A Server Error has occured, please Try Again later. nothing works how do i remove the Trapped photo and movie Blank Files and trash them?  Onece they get into my downloads i can do something with them as i understand.    That part of it kind of keeps me in Question also because why should i have to down load my own files of Attachments / Pictures and movies if they are comming from my iMac?    How much better is iLife11 then iPhoto08 and iMovie08 .  Thanks Greg

    Hello,
    Thank you for your post.
    This is a quick note to let you know that we are performing research on this issue.
    If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Simon Wu
    TechNet Community Support

  • Download Excel file from  from a second server

    Hi,
    In our Java based web application (jsp pages) users need to download Excel files stored on a different server (business tier) than the first application server server that hosts only the presentation tier.
    For security reasons users don't access the second application server. From a technical point of view what's the best solution to answer this requirement ? The logic should be the following: the user clicks on a report name that is displayed on this browser, the request is sent to the first application server that will retrieve the report stored on a second server and will return it to the user.
    Thanks a lot.

    it's been a while since i've done ejb stuff, but i believe you can configure an ejb to "runas" a different user. so, you would configure an ejb on the accessible server to "runas" a user who has access to the secondary server.

  • I am getting dump while downloading

    i am getting dump while downloading file  to presentaion server .
    please suggest me .
    code is like below.
    PARAMETERS : p_dwn   TYPE dxfile-filename.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_dwn.
        CALL FUNCTION 'F4_FILENAME'
      EXPORTING
        PROGRAM_NAME        =
        DYNPRO_NUMBER      =
        FIELD_NAME                =
           IMPORTING
             file_name           = p_dwn.
        CALL FUNCTION 'GUI_DOWNLOAD'
             EXPORTING
                  filename              = p_dwn
                  filetype              = 'ASC'
                  write_field_separator = 'X'
             TABLES
                  data_tab              = t_zvtpmheader.
        IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.

    Hi Veeru,
    This dump you are getting because of type mismatch, just change the file path as follows :-
    data declaration should be like this.
    PARAMETERS : p_dwn TYPE STRING. <<<----
    it will surely work.
    cheers
    Dhirendra

  • Error while activating ODS is not caught in the back ground job..

    Hi All,
    We have a back ground job to load data to ODS and to activate it..If there is any error while loading or activating the data, back ground job is going into loop instead of cancelling the job..As the job is going into loop we are unable to trace the error unless we cancel the job manually and checking it..We have switched off displaying any messages while doing the back ground job...also we can not set any time limit for the job as it always depends on the volume of the data.
    My requirement is , back ground job must get cancelled if there is any error while loading the ODS..Can anybody suggest any idea on this..
    Thanks for reading.
    Umamaheswar kumar

    Hi Uma,
    A few hints for running and schedule and monitoring process chains:
    - always schedule the process chain in tcode RSPC
    - check the log in RSPC for error messages, or
    - check BW monitor for the ODS concerned (tcode RSMO, tab Details)
    if anything is not working fine, the status of the corresponding load will show you the errors, warnings ...
    either in RSPC - log or RSMO.
    hope it helps.
    Regards,
    Lilly

  • Firefox crashes whenever i want to install any addon or download any file. Some times i am receiving error while downloading any file like "could not be saved, because you cannot change the contents of that folder"

    I am the user of latest firefox 3.6.6 browser. I am getting problems of frequent crashes whenever i tries to install any addon. The crashes also occures whenever i want to download any file.
    I am also receiving errors while downloading any file like:
    "C:\Users\****\AppData\Local\Temp\******.001.part could not be saved, because you cannot change the contents of that folder.
    Change the folder properties and try again, or try saving in a different location. I already changed it many many times but still the same problem."
    Adobe flash palyer is also giving problems of not responding. I am using updated version of it already. Java is also updated.
    I already uninstalled firefox compeletly and re installed it many many times but still the same problem. I also scanned my computer with avira and malware bytes' Anti malware and got no dection. Please ractify this problem ASAP lest my profession will suffer.
    == Crash ID(s) ==
    b7f518f2-8d86-41ca-8bab-aee632100709; 1d790e10-d8eb-4904-98c9-94bc62100708; f042d319-b9f8-42ed-a8cb-57c7d2100708

    Please help.
    It is getting worse
    Adobe flash player is crashing. I already uninstalled and re installed the latest ver. Also it is hanging randomly.
    Please help.

  • Error message while upload excel file (with macro) to sap (iw28)

    While upload excel file to sap through iw28, i get error message (vb)
    u2022     i have to say that the excel file contain macro , with out the macro , work fine .
    u2022     The error display just in refresh command.
    the error message :
    Public Sub ALV_CUS_Exit()
    Dim objs As ChartObjects
    Dim obj As ChartObject
    Dim sheet As Worksheet
    Dim r As Range
    For Each sheet In Sheets
    Set objs = sheet.ChartObjects
    For Each obj In objs
    Set r = Sheets("RawData").UsedRange
    obj.Chart.SetSourceData Source:=r
    Next obj
    Next sheet
    End Sub

    hi,
    This is releated to the ABAP coding...There might be some ouput problem in the Abap list viewer...Pls check it with the ABAP consultant...
    Regards
    Priyanka.P

  • URL Link on downloaded Excel File

    Hi,
    I have got a requirement.
    For study and analysis purpose user download data on excel file from OCOD. Struture(Contents) of downloaded excel file is same as screen.
    But the problem is when user click on 'DETAIL' (which has URL link) he/she is directed to Live OCOD and asked for log in with ID and Password, even if
    user is logged in OCOD.
    What i want to do is.
    1) Download Excel file without any URL link.
    2) If 1) is not possible then do not want to have 'DETAIL' option of downloded file.
    3) Method for avoiding relog into OCOD.
    Thanks in Advance
    Yuj

    Yuj, within the application click on the Training and Support link in the upper right, then click on Add-On Applications, then click on Reports and Analysis for Excel Template. In order to take the webinar click on Browse Training, then click on Training Resources by Job, then click on All Users, then click on Using Mail Merge for Word and Reports and Analysis for Excel with Oracle CRM On Demand.

  • In SAP Webdynpro using ABAP,how to colour the downloaded excel file?

    Hi all Experts'
    I have downloaded the data from the webdynpro application into an excel file in the presentation server using a custom button in a layout of a view in the webdynpro component.
    Now the requirement is to colour the column heading names and the downloaded excel file should show the full column length.
    Could anybody help me on this how to do this two things.
    Thanks in advance.

    Hi,
    You can use this function GUI_EXEC.
    Let say you want to use winzip to zip the file then what you should do like this:
    use this command --> ' -min -a D:\WALCOTT.ZIP D:\MBARANG.TXT'
    D:\MBARANG.TXT --> path to the file you want to Zip
    D:\WALCOTT.ZIP --> result zip file
    The command above is depends on the software you use to zip.
    then
      DATA: cmdguiexec(150).
      cmdguiexec = cmd.
      CALL FUNCTION 'GUI_EXEC'
        EXPORTING
          command          = cmdguiexec.
    Hope this help you.
    Best Regards,
    Victor.

  • While downloading excel template I am getting error in Weblogic 10.3.4

    while downloading excel template I am getting error as java.lang.IllegalStateException: Cannot resize buffer - 325  bytes have already been written (Servlet 2.3, sec. 5.1)

    Ankit,
    You are trying to set speed 1000 on a 10g sfp.
    type is 10Gbase-SR
    You will need to insert a 1gig sfp and then you will be able to set the speed.
    Also, I noticed that you posted first with interface 2/6 and the output you gave me was for 4/6. Are you sure you're in the right interface?

  • Filename of downloaded Excel file

    I frequently download Excel files from a website that seems for the most part windows centric. These excel files have an extension of .xls, I can double click them to open, but when opened they just have the file name of WORKSHEET. If I rename the file in the finder the same thing happens. If I try to open the file in numbers I get something like
    <table border="1">
    <!-- <tr><td colspan = "15" valign="middle" align="center">Date: 8/1/2008</td></tr>-->
    <!-- <tr><td colspan = "15" valign="middle" align="center">Investor's Business Daily Æ</td></tr> -->
    <tr><td colspan = "15" valign="middle" align="center">Investor's Business Daily 100</td></tr>
    <tr><td colspan = "15" valign="middle" align="center">Data as of 8/1/2008 market close</td></tr>
    Any idea? Now I have to open the file in excel, then do a save as, type in the file name (if I don't want WORKBOOK), then delete (or write over) the original file. What can I tell the website people?

    Hello ,
    In my procedure i am passing id and with the help of that id , ia am fetching values from the database.
    i have declared on clob type variable say v_insert where i am storing table structure(like worksheet) which i need on excel
    example
    v_insert := v_insert||'<tr>';
            v_insert := v_insert||'<td></td> <td></td> <td></td> <td></td> <td></td> <td></td> <td><b>Column1_Value</b></td> <td>abc</td>';
        v_insert := v_insert||'</tr>';then i am converting that clob into blob and storing the content into BLOB type variable say v_blob
    below is the code used for downloding the blob content.
    wpg_docload.download_file(v_blob);Thanks,
    Jitendra

  • Error Raised while uploading Excel file to SAP

    Hi All,
    I am getting error while uploading excel file into SAP using the function module 'TEXT_CONVERT_XLS_TO_SAP'.
    Error Message is UX(893) -  'Excel file & cannot be processed' .
    Please let me know what went wrong.
    Regards,
    Deepthi

    Hi,
    1 .TEXT_CONVERT_XLS_TO_SAP  Funtion module will work if you have installed Microsoft Excel at front end.
    2. Whenyou declare internal table for upload, specify the char only in the strcture ,don't specify any data element or dictionary reference.    If the data element and dictionaly reference is character field then its ok.
    eg.
    types:begin of st_data,
               field1 type char15,
               field2 type char23,
              endif.
    3. Close the excel before you upload
    Hope this might solve your issue.
    Regards
    Aromal R

  • Where are the Download Excel Files going?

    Safari 6 seems to download Excel files as requested from a web site but they do not appear anywhere in the Download Folder I have specified. The site successfully downloaded the files before I upgraded to Safari 6. I now have to switch to Firefox to download these files.  Where are they going?

    Erik Lommers (guest) wrote:
    : What happened to the files? Yesterday I tried to download the
    : different trunks of the ora805 file and suddenly everything
    : stops.
    : The ftp-server is there, but the whole linux directory is gone!
    : Does anyone have an explanation?
    : When will the files be available again?
    Point your browser to:
    http://www.oracle.com/products/trial/html/trial.html#oracle8
    null

Maybe you are looking for

  • What is the relation between delivery num , sales order num and invoice

    what is the relation between delivery num , sales order num and invoice

  • How do I save documents from iBooks on iPad to my iMac?

    I am upgrading to iPad Air 2. Yeay! I am backing up everything on my old iPad (3rd generation), preparatory to erasing it to hand it on to a family member. There are documents I have saved into iBooks on my old iPad that are nowhere else, all categor

  • Texts in sales order

    Hi Folks, I am using the Bapis BAPI_SALESORDER_CHANGE and BAPI_TRANSACTION_COMMIT to add texts to the existing orders.I am passing the following fields in the Bapi. SALESDOCUMENT = 'sales order number(VBELN)'. <b>ORDER_ITEM_INX</b> ITEM_NUMBER = item

  • 100% CPU usage by iCal

    For some reason my iCal application uses 100% of CPU. What can I do to avoid it?

  • Problem with Signature tab drop down in Outlook for Mac 2011

    I am setting up Outlook 2011 on my mac and have run across a problem with the signatures that I have been unable to resolve. I have set up 2 signatures for my two different pop accounts and thought that if I defaulted them to their appropriate accoun