Problem with GUI_download in background

Hi all,
        When i ran the program in the background,the job has been canceled.
        the report should download the records into the local file have checked in debug mode the job has canceled when it comes to GUI_DOWNLOAD,GUI_download will not work in background or not.
if i ran the program in foreground it will generate the file.
please help me.
thanks
sriman.

Hi Sriman,
The FM GUI_DOWNLAOD will not work in background mode, as it has to download to the local PC, but when run in background it is being run on the APP server and thus loses the link with the Desktop, so it does not know what desktop to download the file to and hits an error which is why the program will dump.
Better to use the open dataset commands if running in background as this will download the file to the server, where the code is being run, you can easily FTP the file back on to the desktop if need be.

Similar Messages

  • Control_flush_error with GUI_DOWNLOAD in Background mode

    Hi Friends
    When I have executed the FM: GUI_DOWNLOAD in Background mode,
    I am getting the error: Control_flush_error .
    Can anyone please let me know Is we can use the FM: GUI_DOWNLOAD & GUI_UPLOAD in Background mode?
    If not can anyone please provide me the relevant SAP(OSS) Note.
    Points are assured for useful answers.
    Thanks
    Regards,
    Sree

    Hi,
      No you can't do that, the GUI_DOWNLOAD method of the class CL_GUI_FRONTEND_SERVICES, and the function module GUI_DOWNLOAD are dependent on the gui. You can not use these in the background. You must download to the application server, using the dataset statements.
    OPEN DATASET
    TRANSFER
    CLOSE DATASET
    Regards
    Kiran Sure

  • Problem with GUI_DOWNLOAD fm in Background

    Hi Friends
    In my Report I am using the FM: GUI_DOWNLOAD and while running the report in foreground, I am getting the proper results. But while running the same in Background I am getting the error: CONTROL_FLUSH_ERROR .
    As my understanding ,to resolve this we have to upgrade the sap gui.
    Can anyone suggest me the exact reason for this error and the solution as well.
    Points are assured for useful answers.
    Regards,
    Sree

    Dear sir ,
    there is nothing to worry about it,
    while instaltion of the sap-gui,
    your grapics gui nested options are not tckied,
    at the time of instalation,
    in that there are two option one is at os level and
    2nd one is backen level.
    pls check the both option ticked or not.
    also check that the gui patch of new Ecc.vesrion, is
    under the AMC of the sap or not.
    pls ask to your basis admisitrator to reasign the
    runtime memory area roll out, should be more then rool in
    area.
    i think problem must solve.
    pls try and do this and keep in contact.
    REWARDS are expected.
    yours
    vivek

  • Problem with cfdocument and background colors with table borders

    i am having a great deal of difficulty with cfdocument
    rendering my tables with cells that have background colors. the
    background colors seem to bleed through the table border. a picture
    at 100% magnification can be seen at
    http://www.vitad.com/cfdoc.jpg
    and at 1600% magnification at:
    http://www.vitad.com/cfdoc2.jpg.
    i am attaching sample code of the what generated the pdf in the
    pictures. btw, i am running cfmx 7 with hot fix 2.

    Hi fresher4flex,
    Since you are using the item Renderer for the DataGrid Column try to apply the styles dynamically to the background of your itemRenderer by making using of the rollOver and rollOut events.
    Thanks,
    Bhasker

  • Problem with gui_download when using DBF FILE type.

    Good Day Experts.
    I am trying to download excel file using function module  GUI_DOWNLOAD.
    declared  a table it_string type table string.
    initially I  appending my header to it_string. and then passing  my internal table to it  .
    this is how I am passing data into it_string.
    so in gui_download I am passing parameters as below. but I am not getting data into the excel file.
    I tried both ways passing field separator  as 'X' and '#'.
    please guide me where I am wrong.

    Hello Surendra,
    Can you please upload your code sample. Thanks.
    What i manage to find is using this function module  WS_DOWNLOAD.
    The file is downloaded in the directory -->  C:/
    Here is the code sample :
    TABLES: usr03,dd02l.
    DATA: zx030l LIKE x030l.
    DATA BEGIN OF zdfies OCCURS 0.
             INCLUDE STRUCTURE dfies.
    DATA END OF zdfies.
    DATA: BEGIN OF flditab OCCURS 0,
           fldname(11) TYPE c,
           END OF flditab.
    DATA itabusr03 LIKE usr03 OCCURS 0 WITH HEADER LINE.
    DATA tname LIKE dd02l-tabname.
    SELECT * FROM usr03 INTO TABLE itabusr03.
    tname = 'USR03'.
    PERFORM getfieleds.
    PERFORM dwdbffile.
    FORM getfieleds.
       CALL FUNCTION 'GET_FIELDTAB'
         EXPORTING
           langu               = sy-langu
           only                = space
           tabname             = tname
           withtext            = 'X'
         IMPORTING
           header              = zx030l
         TABLES
           fieldtab            = zdfies
         EXCEPTIONS
           internal_error      = 01
           no_texts_found      = 02
           table_has_no_fields = 03
           table_not_activ     = 04.
       CASE sy-subrc.
         WHEN 0.
           LOOP AT zdfies.
             flditab-fldname = zdfies-fieldname.
             APPEND flditab.
           ENDLOOP.
         WHEN OTHERS.
           MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
            WITH  sy-subrc.
       ENDCASE.
    ENDFORM.                    "GETFIELEDS
    FORM dwdbffile.
       CALL FUNCTION 'WS_DOWNLOAD'
         EXPORTING
    *      filename                = 'C:\USR03.DBF'
           filename                = 'C:\USR03.XLS'
           filetype                = 'DBF'
         TABLES
           data_tab                = itabusr03
           fieldnames              = flditab
         EXCEPTIONS
           file_open_error         = 1
           file_write_error        = 2
           invalid_filesize        = 3
           invalid_type            = 4
           no_batch                = 5
           unknown_error           = 6
           invalid_table_width     = 7
           gui_refuse_filetransfer = 8
           customer_error          = 9
           OTHERS                  = 10.
       IF sy-subrc <> 0.
         MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                  WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
       ENDIF.
    ENDFORM.                    "DWDBFFILE
    Thanks and Kind Regards,
    Yovish.

  • Problem with Gui_download using ASC File type - japanese characters

    Hi,
    During upgrade,while downloading data for japanese characters using GUI_DOWNLOAD Function module with file type as 'ASC', the space between 2 fields data getting much wider compared to 4.6C Version ws_download Function module's  data.
    Example: the gap between first field data and second field data in ECC 6.0 is 6 characters length,but in 4.6C it is 2 characters length.
    Is there any possibility to get the results similar to 4.6c version.Please give your valueable suggestions.
    Thanks
    BalaNarasimman

    Hi Sandra
    Please find the detailed information for your questions.
    1.Internal table content before download:During Debugging,it was observed that internal table content was same in both versions.For testing,i used only brand new data(Transaction entry).
    2.Download with code Page conversion:Yes,codepage parameter 4103 was explicitly passed into GUI_DOWNLOAD Function module.Also the front end code page which is used by system is 4110 . No errors occured.
    3.System is an Unicode system only.
    4.Actually this 6 character does not refer the byte value,only the gap between 2 fields data is getting referred in ECC 6.0.Please find the below example.
    Example - File data after Download:
    ECC 6.0: Field1            Field2      (gap - 6 characters space between 2 fields data)  Using GUI_Download
    data       u0152©Ïu201Dԍu2020      EN                               
         4.6C: Field1            Field2       (gap - 2 characters space between 2 fields data) Using WS_Download
         data    u0152©Ïu201Dԍu2020  EN    
    Note:Special characters are Japanese characters:

  • Problem with GUI_DOWNLOAD XLS File

    Hi Experts,
    I have used GUI_DOWNLOAD function to download my internal tables in .xls file in local system.  I have used 'ASC' as file type.
    File has been successfully created as .xls. But when you open that file in our local system and update some entries and try to save it, but it has not saving and its giving error. I am not able to update/change that file.
    Is there any other FM which I will use to download a .xls file perfectly...
    Regards,
    Ramesh.

    USe Function Like this:
    data : if_intern type  kcde_cells occurs 0 with header line.
    For calling File
    call function 'KD_GET_FILENAME_ON_F4'
        EXPORTING
          program_name = syst-repid
        CHANGING
          file_name    = p_file1.
    For Excel data upload
    call function 'KCD_EXCEL_OLE_TO_INT_CONVERT'
        EXPORTING
          filename    = p_filename
          i_begin_col = vf_start_col
          i_begin_row = p_brow2
          i_end_col   = vf_end_col
          i_end_row   = p_erow2
        TABLES
          intern      = if_intern.
    if if_intern[] is initial.
        p_text = 'No Data Uploaded'.
    endif.
    Edited by: shelly Malik on Aug 18, 2009 12:34 PM

  • Problems with .chart-plot-background and event handlers

    Hello. I'm trying to add event handlers to my chart so that the user can be allowed click within the chart itself to perform certain actions like dragging, zooming, etc. To avoid having to deal with handling mouse clicks that lie outside the chart itself (for example on the axes), I've found that:
    .chart-plot-background
    is the Region that gives me the entire chart and nothing else. However, when I attach mouse listeners to this Region, the event is only registered on half of the cells in the chart. If you've seen the default JavaFX Chart background layout, you know that it contains alternating rows of cells with slightly different coloring. I've found that only the rows with the lightest gray coloring actually register a mouse click on them, which makes me believe the dark grey cells are not part of the .chart-plot-background, but something else on top.
    To me, this feels like an oversight in how the regions of the chart are defined. Why can I not get a listener to work on the whole chart and nothing else? Currently the only workaround seems to be to take the Region:
    .chart-content
    instead, and compute the difference between this region and the .chart-plot-background in order to manually suppress mouse clicks that lie outside .chart-plot-background.
    Anyone have suggestions? Is this worth issuing on the JavaFX Jira?

    Hello,
    I'm not an expert on controls, but here is my guess based on your description: when you register an event handler on a "background" node, it is called only when the mouse hovers over the background node - I suppose the light gray is the background with the light gray cells being transparent and dark grey cells being filled. So the behavior seems correct - you can't expect the events to be delivered to background when it is covered by other nodes. I think you really should register the handler on the entire chart and filter out the events you don't want to handle. This however should not require much of computing the difference between the regions, it should be possible to do just something like
    if (!background.contains(event.getX(), event.getY())) {
        return;
    Provided that the background doesn't reach under the axes as well. Note that if there are any different transforms between the background and the node with the handler registered on it, you may need to recompute the coordinates by
    background.sceneToLocal(event.getSceneX(), event.getSceneY());
    And use the contains method on that.

  • Problems with titles and backgrounds PLEASE HELP

    At the beginning of my movie, I have inserted a title (pixie dust) which prompts me to include a background. I have done so. However, when i play the movie in full screen sometimes the title doesn't even show up at other times the title shows but without the pixie dust feature. I have tried to rectify this using precision editor but it doesn't work. When I play the video in the project library the pixie dust feature shows up. Please help. What am I doing wrong?

    This seemed to be a bug in iMovie v.8.0.6. I have the same problem independently of the font and the background but only at the beginning of the project.
    To avoid this problem make a short transition before the title clip and the text will appear in fullscreen mode too.
    Good luck.

  • Problems with ae comp/background. PLEASE help!

    Created ae comp with white background. Imported into FCP Studio but old ae .mov file (black background) shows up in viewer and exported sequence. However, when I "mouse over timeline, the everything is as it should be. Change the FCP backgroud to white as well. Somehow the earlier version of the ae comp remains. What am I missing?!?

    should i assume that there will be no help for this or there is no solution for which is offcourse not possible.

  • Problem with buttons in background

    Viewing the problem problem:
    http://www.ucsdkya.com/ >
    (you can skip the intro via link in top right) > cilck on the
    moon in upper right .
    When the new movie has loaded (its on Level 1), the buttons
    below it (on Level 0) still make their noises. How do I stop the
    response of these buttons?

    Mr. Rish wrote:
    > Viewing the problem problem:
    http://www.ucsdkya.com/ >
    (you can skip the intro
    > via link in top right) > cilck on the moon in upper
    right .
    >
    > When the new movie has loaded (its on Level 1), the
    buttons below it (on Level
    > 0) still make their noises. How do I stop the response
    of these buttons?
    Buttons remain their full functionality across multiple
    levels, always.
    There is few things you can do to avoid it:
    1)
    While loading something in level 1, send level0 timeline to
    an empty frame
    w/o any content using regular gotoAndStop() action.
    2)
    Place big button on bottom layer of the movie in level1.
    Buttons can't work across
    buttons so the big one will eliminated any button below, they
    still there tho
    you can't click them. You can then deactivate the hand
    pointer so the mouse cursor
    won't react to that big button using action like
    btn.useHandCursor = false;
    3)
    You could deactivate the buttons directly using btn.enabled =
    false; while to content
    is loaded and activated them when you need it back using
    btn.enabled = true;
    Best Regards
    Urami
    !!!!!!! Merry Christmas !!!!!!!
    <urami>
    If you want to mail me - DO NOT LAUGH AT MY ADDRESS
    </urami>

  • Problem with SUBMIT in Background

    Hi,
        I want to pass a internal table data to 2nd program from 1st program. I am using SUBMIT 2nd program and i am getting results in foreground , i am not getting in back ground .
    will you face this sort of problem ever.
    Please help me .
    Thanks in advance .
    Balaji.

    Hi Balaji,
    Please check this sample code.
    DATA: number TYPE tbtcjob-jobcount,
          name TYPE tbtcjob-jobname VALUE 'JOB_TEST',
          print_parameters TYPE pri_params.
    CALL FUNCTION 'JOB_OPEN'
      EXPORTING
        jobname          = name
      IMPORTING
        jobcount         = number
      EXCEPTIONS
        cant_create_job  = 1
        invalid_job_data = 2
        jobname_missing  = 3
        OTHERS           = 4.
    IF sy-subrc = 0.
      SUBMIT submitable TO SAP-SPOOL
                        SPOOL PARAMETERS print_parameters
                        WITHOUT SPOOL DYNPRO
                        VIA JOB name NUMBER number
                        AND RETURN.
      IF sy-subrc = 0.
        CALL FUNCTION 'JOB_CLOSE'
          EXPORTING
            jobcount             = number
            jobname              = name
            strtimmed            = 'X'
          EXCEPTIONS
            cant_start_immediate = 1
            invalid_startdate    = 2
            jobname_missing      = 3
            job_close_failed     = 4
            job_nosteps          = 5
            job_notex            = 6
            lock_failed          = 7
            OTHERS               = 8.
        IF sy-subrc <> 0.
        ENDIF.
      ENDIF.
    ENDIF.
    Hope this will help.
    Regards,
    Ferry Lianto

  • Problem with gui_download

    Hi,
    in my gui_download function I'm passing the 'ASC' value to the parameter filetype but, once I go to the txt file downladed and I try to save it as a csv file I realise that it's of type UTF-8 and not an ASCII type.
    Can anybody tell me why the file downloaded isn't of type ASCII?
    Thanks in advance.
    Regards.

    Hi,
    To save .txt file in .csv format.  Follow the below mentioned ways , Hope will help you to solve .....
    1) There are different ways in creating a CSV file. The RIGHT way is to use the function SAP_CONVERT_TO_CSV_FORMAT. You can just go through the FM. To complete, for every convert fuction there is an equal and opposite convert function,  TEXT_CONVERT_CSV_TO_SAP.
    2) Use this [LINK|How to create .csv file from ABAP report; as well.
    Regards,
    Saravana.S
    Edited by: saravanasap on Jan 27, 2012 5:49 AM

  • Problems with customising menu template backgrounds

    Hi.
    I am experiencing problems with changing the background of the included disc menu templates in PE9. I can change the background image to anything i like on the computer and all seems to work OK but when i burn the project to disc (PAL_Dolby DVD) the custom background image has gone and been replace with the default template imagine.
    Anyone got any ideas whats going on!
    Thanks

    This issue showed up with PrE 9. I do not recall reading of it with earlier versions.
    I do not know if the PSD files have some corruption, or if some change in PrE 9's code "did the deed," but many have filed a Bug Report, and I ask that you please do, as well. It should be an easy fix for Adobe (but I am not a coder, or software engineer, and could be wrong).
    Good luck to us all,
    Hunt

  • Internet Explorer Problem with Spry Menu Bar

    http://www.cloud9industries.com/clients/jewelryworld/index4.html
    OK here we go
    #1) In IE, the toolbar doesn't appear with the same decreased
    opacity as it does in Firefox and Safari. I'm using a png
    background image with a transparent background and I've defined the
    background color the same as the lower layer's color. Any ideas?
    #2) THE BIG ISSUE - IE doesn't display the drop down portions
    of the menu properly as they display horizontally. If the cursor
    moves into the <li> from another <li> the menu displays
    as aforementioned. If the cursor moves into the <li> from
    outside the menu bar, the menu bar behaves properly.
    This is the first page I've done with a Spry menu bar as it
    seems the former navigation bar process has been removed from
    Dreamweaver. Any tips will be greatly appreciated.
    Thanks,
    cloud9industries

    Hi,
    I took a look over your page and I noticed that you are using
    a very old spry version 1.4. The current released version is Spry
    1.6 and contains some major bug fixes for Menu Bar widget.
    Please update to this last Spry version. You can download the
    new files from
    here.
    The problem with the transparent background is an IE6 problem
    which doesn't support transparent backgrounds. This problem is
    fixed on IE7 and I check it and it works there.
    Please let us know if you still have problems with MenuBar
    after updating it to the new version
    Thanks,
    Diana

Maybe you are looking for

  • 2 table questions - resizing table & repositioning images

    Tables are challenging in ID5 but have managed to get through the hard stuff. Now for the fine points: 1) Is there a way to resize a table inputing hard measurements? The only way I see is by manually dragging the right end of the table in or out and

  • Terminal Returns Not Found Error for Most Commands

    Hi all, I'm really new to Mac OSX and UNIX based systems. I wanted to run a few Windows games on my Mac Mini so I started installing Wine and MacPorts. Having done so, I typed in "sudo port install wine" minus the quotes, the terminal returned a not

  • Mail merge doesn't see all records in Access query

    Office 13 running on Win 8.1. I have a query in Access that show 4 records when I run it. If I specify this query as my data source (select recipients) and then choose to edit the recipient list, there are only two records! The query in Access looks

  • OCP - Prepration suggestion

    Hello Gurus, Could you all give me your kind suggestions for OCP exam preparation? I'm currently preparing for 10G OCA (IZ0 - 042). Which material to follow and which topic needs more focus? Many thanks, Kam

  • Turning monitor creates color distortion

    I currently have an emac (1gig) which i purchased in April of 2004. Frankly its a tank..never had a problem! Until now...the monitor has a cyan and magenta discoloration which only appears when the computer is rotated. Starting when it reaches about