Cl_gui_frontend_services= gui_download - wrong behaviour with Windows UAC

Hello,
we are using the method cl_gui_frontend_services=>gui_download to store files on the presentation front end (Windows Vista with UAC).
When the user has no windows rights to the target directory and UAC is active, then the method gui_download stores the file in other directory (C:\Users\<USER_NAME>\AppData\Local\VirtualStore\Windows) and returns with sy-subrc = 0.
In our opinion this is a critical problem but SAP doesn't want to correct it.
What do you think about it?
regards,
Kris

Hello kpsgoutam ,
thank you for your post but it's not an answer for my question. I know how to use 'gui_dowload'. The problem is, it works wrong with UAC and target directory, where you have no rights to write the file.
Consider following code:
REPORT ztest.
DATA:
" to reproduce the problem the UAC must be active
" and you can't have write rights to the target directory
  lv_filename TYPE string VALUE 'c:\windows\test.txt',
  lt_data     TYPE TABLE of string,
  lv_data     TYPE string,
  lv_outlen   TYPE i.
lv_data = 'Some test content'.
APPEND lv_data TO lt_data.
CALL METHOD cl_gui_frontend_services=>gui_download
  EXPORTING
    filename                  = lv_filename
  IMPORTING
    filelength                = lv_outlen
  changing
    data_tab                  = lt_data
  EXCEPTIONS
    file_write_error          = 1
    no_batch                  = 2
    gui_refuse_filetransfer   = 3
    invalid_type              = 4
    no_authority              = 5
    unknown_error             = 6
    header_not_allowed        = 7
    separator_not_allowed     = 8
    filesize_not_allowed      = 9
    header_too_long           = 10
    dp_error_create           = 11
    dp_error_send             = 12
    dp_error_write            = 13
    unknown_dp_error          = 14
    access_denied             = 15
    dp_out_of_memory          = 16
    disk_full                 = 17
    dp_timeout                = 18
    file_not_found            = 19
    dataprovider_exception    = 20
    control_flush_error       = 21
    not_supported_by_gui      = 22
    error_no_gui              = 23
    others                    = 24.
WRITE: / 'sy-subrc =', sy-subrc. " error: with active UAC the sy-subrc is 0
regards,
Kris

Similar Messages

  • CL_GUI_FRONTEND_SERVICES= GUI_DOWNLOAD not working in Windows 7 OS

    Hello experts,
    The FM CL_GUI_FRONTEND_SERVICES=>GUI_DOWNLOAD is not working in windows 7 OS.  The error is - Data provider exception.  But is is ok in XP. 
    Is there any solution for this.
    Thanks in advance,
    Balaji

    Now
    I've applyed patch 8 and no problem with CL_GUI_FRONTEND_SERVICES=>GUI_DOWNLOAD
    Have you sure you've have all authorization to write a file there?
    Max

  • Wrong behaviours with TableCellRenderer

    Hi.
    I implemented my tablecellrenderer for dates. The problem is that the values of the column I rendered are not visually selected when I click on them.
    Moreover:
    when I click on a cell, sometimes it changes its content, according to the row I was selecting before.
    if three rows have the same date value, all three are selected.
    I tried using setOpaque (true) but this selected all the rows in that column.
    Here is my renderer..thanks for any little help
    public class DateTableCellRenderer extends JLabel implements TableCellRenderer {
    Timestamp curDate;
    public Component getTableCellRendererComponent(JTable table, Object value,
    boolean isSelected, boolean hasFocus, int rowIndex, int vColIndex) {
    if(value!=null){
    if (value instanceof Timestamp) {
    curDate = (Timestamp) value;
    SimpleDateFormat a = new SimpleDateFormat("dd/MM/yyyy", Locale.ITALY);
    String text = a.format(curDate);
    this.setText(text);
    if (isSelected) {
    this.setOpaque(true);
    setForeground(table.getSelectionForeground());
    setBackground(table.getSelectionBackground());
    } else {
    this.setOpaque(false);
    setForeground(table.getForeground());
    setBackground(table.getBackground());
    return this;
    }

    You're right. I forgot using the code tags to format my class. Here is my situation:
    I have a dinamic JTable to which I added a TableSorter. In the model I added object like BigDecimal, Strings and Timestamp and I created a TableCellRenderer for each type I can have inside the table. The wrong behaviours are those described in the previous post.
    Any help?
    Thanks camickr, but I think that the link you gave me is wrong

  • Strange disc utility behaviour with windows partition

    Hi,
    I have created a 30 gig partition for windows XP (FAT32) on my macbook, which all works fine, but back on the mac volume, I tried to make an additional 10 gig partition for which I planned to save all my audio work in Logic to. It appeared to create it fine, but the volume scheme was totally messed up in Disc Utility; i.e. the windows portion took up practically the whole scheme, there was 500 MB "unused" in gray, "Macintosh HD" had a tiny portion, which overlapped the blue used "system" part (also overlapped by the unused bit). I couldn't seem to fix this problem, yet doing command-i on all volumes gave the right numbers and it added up.
    Has anyone else seen any strangeness? All I can think of is that bootcamp isn't too happy with additional partitions, so disk utility goes a bit mad so to speak! I know that bootcamp will only create a windows partition on a single un-partitioned volume. Essentially, I just wondered if I could make more partitions after installing a windows partition.
    cheers,
    David

    Hi Philip
    Before you get too alarmed I think what Zeny described is, potentially, a totally different scenario to yours and not entirely applicable. From your description it doesn't sound like your PowerBook currently has any of the symptoms commonly associated with hard drive failure.
    That said it is possible that there may be a bad sector on the drive, which an erase whilst zeroing all data will resolve. At the same time it may also just be a software glitch.
    Either way, it is worth giving the PB and hard drive a full check with the likes of DiskWarrior, Drive Genius, Apple Hardware Test, etc.
    2.0GHz MacBook, 15" 1.25GHz/12" 1GHz PBs, 2xPPC Mac minis, 12" iBook G4,   Mac OS X (10.4.8)   Cube, 2xTAMs, iPod 4G & nano 2G, 1G & 2G iPs, AEBS, AX

  • I am fairly new to MacBook. I want to copy a picture from a web site to Word and i can't select it using the usual command. What am I doing wrong? With windows it was very simple

    Why can't a copy a picture from the web in MS word using the available commands?

    Ask Microsoft by posting in their forums.  Not an Apple product.
    Microsoft for Mac Support

  • Adobe Photoshop Incompatible with Windows 7 ?

    I typically do not have problems installing Microsoft products, Corel products, HP products, AV software, dozens of other companies products on my Windows 7 Home Premium computer. I have never had problems installing Adobe products on ME, XP, Vista. However, every recent Adobe product I have purchased have failed to install on Windows 7 Home Premium and it typically takes support several hours to fix, if it can be fixed at all. It involves creating new accounts, disabling services, disabling the UAC, doing partial restarts (I did not even know those existed) and normal restarts, etc (I do have administrative rights on my account(s)).
    Today I was working with customer support (taking control of my desktop). We did not succeed to install Adobe Photoshop Elements 9.
    During the installation a windows dialog box was displayed which stated that the Adobe installation .exe file was incompatible with Windows UAC.
    There is clearly something wrong with the Adobe installer because Adobe products are the only products that cannot be installed.
    Why is it so difficult tp install Adobe products on a Windows 7 system?
    Does anyone know what is going on?
    Is the Adobe installer really incompatible with Windows 7 as the Windows dialog box stated?
    Thomas

    Thank you for your help all three of you,
    I finally succeeded to install.
    I was using the downloaded version (not the DVD), I should have mentioned that. I did two things. I turned off the UAC (as suggested) and I moved the installation files from my user account folder where they were placed by default (I initially just accepted the default). The user account was protected despite my administrative rights, which is why install using setup.exe in the user account location failed. I have a feeling that I would not have had to turn off the UAC or move the files out of the user account folder if I had run as administrator. I'll remember that next time. It is funny customer support did not see this.
    Anyway, now it is installed
    Thomas

  • All my purchased song from iTunes are not playing complete (iPod and computer with Windows Vista), unexpectedly stops and continues with next song. What am I doing wrong?

    All my purchased song from iTunes are not playing complete (iPod and computer with Windows Vista), unexpectedly stops and continues with next song. What am I doing wrong?

    Are the songs playing whole in iTunes? if not download them again.
    else read this Apple Support Article on your problem
    Have a nice day!

  • Replacing WS_DOWNLOAD with CL_GUI_FRONTEND_SERVICES= GUI_DOWNLOAD

    Hi Guys,
       I'm currently changing the programs that uses the obsolete function WS_DOWNLOAD with CL_GUI_FRONTEND_SERVICES=>GUI_DOWNLOAD, and I just want to ask what are the valid FILETYPE for GUI_DOWNLOAD and how can I use a WK1, XLS and DAT filetype in GUI_DOWNLOAD.

    Hi,
    PARAMETERS    p_file  LIKE rlgrap-filename.       
    DATA lv_file TYPE string.
    lv_file = p_file.
      CALL FUNCTION 'GUI_DOWNLOAD'
           EXPORTING
                filename                = lv_file
                filetype                = 'ASC'
                write_field_separator   = c_x
           TABLES
                data_tab                = i_download
           EXCEPTIONS
                file_write_error        = 1
                no_batch                = 2
                gui_refuse_filetransfer = 3
                invalid_type            = 4
                no_authority            = 5
                unknown_error           = 6
                header_not_allowed      = 7
                separator_not_allowed   = 8
                filesize_not_allowed    = 9
                header_too_long         = 10
                dp_error_create         = 11
                dp_error_send           = 12
                dp_error_write          = 13
                unknown_dp_error        = 14
                access_denied           = 15
                dp_out_of_memory        = 16
                disk_full               = 17
                dp_timeout              = 18
                file_not_found          = 19
                dataprovider_exception  = 20
                control_flush_error     = 21
                OTHERS                  = 22.
      IF sy-subrc ne 0.
        MESSAGE i000 WITH text-005. "Error in File downloded
       ENDIF.
    Instead of 'ASC', you can give 'WK1' or 'XLS' if you want.

  • Cl_gui_frontend_services= gui_download - issue with german special char

    Hello,
    we are using cl_gui_frontend_services=>gui_download to create from an itab an excel file.
    We face the issue that in this excel file german special characters like Ä, Ü, Ö, ß are not displayed correctly.
    I think we need to use a different codepage. But which one?
    could you please give us a short coding example how to call cl_gui_frontend_services=>gui_download.
    Thanks a lot
    Kind regards
    Manfred

    Hi,
    Check the system is unicode or non-unicode . Codepage for Unicode system is ' 4102' and non-unicode is '1100'.
    Below are the sample code for the GUI_download with Class.
    DATA:  l_filename    TYPE string,
           l_filen       TYPE string,
           l_path        TYPE string,
           l_fullpath    TYPE string,
           l_usr_act     TYPE I.
    l_filename = SPACE.
    CALL METHOD CL_GUI_FRONTEND_SERVICES=>FILE_SAVE_DIALOG
      EXPORTING
        DEFAULT_FILE_NAME    = l_filename
      CHANGING
        FILENAME             = l_filen
        PATH                 = l_path
        FULLPATH             = l_fullpath
        USER_ACTION          = l_usr_act
      EXCEPTIONS
        CNTL_ERROR           = 1
        ERROR_NO_GUI         = 2     
        NOT_SUPPORTED_BY_GUI = 3
        others               = 4.
    IF sy-subrc = 0
          AND l_usr_act <>
          CL_GUI_FRONTEND_SERVICES=>ACTION_CANCEL.
    CALL FUNCTION 'GUI_DOWNLOAD'
      EXPORTING
        FILENAME                        = l_fullpath
       FILETYPE                        = 'DAT'
      TABLES
        DATA_TAB                        = T_DOWNL
    EXCEPTIONS
       FILE_WRITE_ERROR                = 1
       NO_BATCH                        = 2
       GUI_REFUSE_FILETRANSFER         = 3
       INVALID_TYPE                    = 4
       NO_AUTHORITY                    = 5
       UNKNOWN_ERROR                   = 6
       HEADER_NOT_ALLOWED              = 7
       SEPARATOR_NOT_ALLOWED           = 8
       FILESIZE_NOT_ALLOWED            = 9
       HEADER_TOO_LONG                 = 10
       DP_ERROR_CREATE                 = 11
       DP_ERROR_SEND                   = 12
       DP_ERROR_WRITE                  = 13
       UNKNOWN_DP_ERROR                = 14
       ACCESS_DENIED                   = 15
       DP_OUT_OF_MEMORY                = 16
       DISK_FULL                       = 17
       DP_TIMEOUT                      = 18
       FILE_NOT_FOUND                  = 19
       DATAPROVIDER_EXCEPTION          = 20
       CONTROL_FLUSH_ERROR             = 21
       OTHERS                          = 22.
    IF SY-SUBRC <> 0.
       MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
               WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDIF.
    Edited by: Sumodh P on May 11, 2010 5:24 PM

  • Replace FM GUI_DOWNLOAD with CL_GUI_FRONTEND_SERVICES= GUI_DOWNLOAD

    Hi,
    I want to replace FM GUI_DOWNLOAD with CL_GUI_FRONTEND_SERVICES=>GUI_DOWNLOAD in one of our old program, however parameter FIELDNAMES is used, and this parameter is no longer available in CL_GUI_FRONTEND_SERVICES.
    Any idea is there any other parameter for this? HEADER might be, but I don't think so, as it has a different purpose in FM 'GUI_DOWNLOAD' also.
    Thanks in advance,
    Peter

    Hi Peter
       One work around will be to use the method twice,
    first to download the header to file and then in append
    mode to download the data.
    Kind Regards
    Eswar
    Message was edited by: Eswar Rao  Boddeti

  • HT1296 When I sync my iphone with Windows 7, the contact moves to my computer, but the contact is not complete. No phone numbers. What am I doing wrong? I have also tried sync-ing with Yahoo, and that doesn't work either.

    When I sync my iphone with Windows 7, the contact moves to my computer, but the contact is not complete. No phone numbers. What am I doing wrong? I have also tried sync-ing with Yahoo, and that doesn't work either.

    The music sync is one way - computer to iphone.  The only exception is itunes purchases.  File>Transfer Purchases
    It has always been very basic to always maintain a backup copy of your computer for just such an occasion.  Use your backup copy to move everything to your new computer.

  • IS THERE SOMTHING WRONG WITH WINDOWS OR THE SOFTWARE APPLE IS MAKING?

    PLEASE SOMEONE INFORM ME?????????

    Well we all know there's several things wrong with Windows...
    Of course, it would help if you detailed your problem?

  • Verizon Media Manager will not start automatically with Windows, even though it is set to do so.

    Verizon Media Manager will not start automatically with Windows, even though it is set to do so.  This started with the latest update.  I see that the desktop icon for Media Manager now has a security shield on it, and it requires UAC confirmation when you start it, which I don't remember the old version doing.
    One thing I noticed, msconfig.exe shows that "C:\Program Files\Verizon\McciTrayApp.exe" is set to start at Windows startup, but the desktop icon used to start Media Manager manually has a target of ""C:\Program Files\Verizon\Verizon Media Manager\Release\Verizon Media Manager.exe" Verizon Media Manager".
    I don't remember what the previous version was, but this one is 9.4.86.  It asked me if I wanted to update it a few days ago, and I said yes.
    I am running Windows 7 Home Premium.
    Solved!
    Go to Solution.

    Try setting the startup option to off and then to on again. It looks to be pointing to a wrong location.
    Attached is a partial screen shot of my msconfig setting.
    Attachments:
    media manager startup cmd line.jpg ‏18 KB

  • Ipod touch with windows vista

    Hi,Im looking into geting the ipod touch,but I have read that the ipod touch does not work well with windows vista. I know the new itunes 7.5 just came out. Has that version fixed the problems with the ipod? Also what are the problems the ipod touch is haveing with vista. I have windows vista 32 bit OS. Thank you very much for your help.

    Hey, yeah I have major problems syncing to Vista. The album artwork is assigned to the wrong songs or sometimes a chunk of the picture is not in the right place, some of my songs stop half way through the song then the iPod skips to the next song on the list. My movies periodically decide to crash and the only way to get past these spots is to skip ahead (which is very difficult on the iPod touch especially when the movie is long cause you dont want to miss too much) but yeah just letting you know that there ARE some issues with it not saying that yours will do the same but it might.

  • I am trying to install my CS4 Suite onto new PC with Windows 8.  It installed Photoshop but nothing else.  It is asking me to "Install with 'setup.exe'"  Which i dont think is on there.  Is there a way around this?  Thanks in advance.

    I am trying to install my CS4 Suite onto new PC with Windows 8.  It installed Photoshop but nothing else.  It is asking me to "Install with 'setup.exe'"  Which i dont think is on there.  Is there a way around this?  Thanks in advance.

    Run the cleaner tool and reinstall with sufficient user privileges and security stuff turned off. Your install went wrong because you didn't consider this.
    Mylenium

Maybe you are looking for

  • Bank manual entry the Group number is not displayed

    Hi Friends, Bank concepts T code FF68 screen in the group field I mention *. And posted the entire one. After that I went to OVERVIE option and selected my bank. Here the issue is *if u mention GROUP field as a *. System automatically given the numbe

  • Image size for 4:3 format appears somewhat zoomed in when viewed on my TV

    I am using Final Cut Express HD to create movies and have just started using iDVD '08 to create dvds, and have run across something bothersome in iDVD: When I view the iDVD movies on my TV that were created in a 4:3 format (640x480 resolution) in Fin

  • Automatic Refresh of  Portlet

    Hi, I have a portlet which needs to be refreshed automatically in a defined a intervel of time. Could you please help. Thanks, Ramesh

  • Alien spacecraft problem

    HI. I'm having trouble with a game I'm trying to make, when I try to reference the bullets it fires it keeps coming up with Error #1010: A term is undefined and has no properties. It's doing this when I try to reference a alien spacecraft bullet in t

  • How to add lines in combobox?

    I want to add very thick colored lines in this combobox so .. how do i do that.. thanks public class NewJFrame extends javax.swing.JFrame {     /** Creates new form NewJFrame */     public NewJFrame() {         initComponents();           // <editor-