CL_GUI_FRONTEND_SERVICES= FILE_OPEN_DIALOG causes SAPGUI to crash

Hi,
When I try to select a file to download or upload an LSMW project my SAP GUI freezes completely, and the only way out is to kill it via Windows task manager.
After quite some research I found out that:
- This happens only on some PC's (but all PC's have the same SAP GUI version, i.e . 7.10)
- When I debug this I see that the issue happens somewhere within CL_GUI_FRONTEND_SERVICES=>FILE_OPEN_DIALOG
- The default folder passed to that method is C:\. If I change it to something else (in debug change mode), everything goes well
Anybody experienced this before?
Thanks
Patrick

Hi Jepoy,
You can set the result of the save button which is action_ok in a variable. So when u execute the same code again, just pass this below method call.
IF lv_result = cl_gui_frontend_services=>action_OK.
         RETURN.
       ENDIF.
Regards,
Sivaganesh

Similar Messages

  • Live! Cam Voice causing XP to crash

    I have been using the Live! Cam Voice with no problems for about two months. However, now all of a sudden it is causing XP to crash and reboot, sometimes after an hour or so, and sometimes all it takes is having WebCam Center opened without uploading. I have tried uninstalling and reinstalling, and downloading the latest version of the driver and installing just that, while uploading from non-Creative software - XP still crashes, so I assume it is the driver that is the problem.
    I have also the driver and software for the NX Ultra (can't remember the exact name) installed, but this hasn't been interfering, as I said everything worked smoothly until a few days ago. Incidentally, the crashing started after I installed MS desktop search which made the PC very slow; it isn't currently installed, but the crash/reboot problem persists.
    Any idea what is wrong, and what I can do? Ta.

    Did you ever solve this problem? I have a similar problem on my desk top running Vista Home. I couldn't get the Vista driver (download from this wesite) to load so resorted to trying the XP dri've. This seemed to work until Vista put the machine into "Sleep" mode. After coming out of Sleep mode I eith have to restart the computer or disconnect and reconnect the webcam.

  • Error when using the method cl_gui_frontend_services= file_open_dialog

    Hello Experts,
    I am currently practicing BDC and I think the first step is to locate where my text file is. Now based on my code below, after selecting my text file nothing happens.
    Also, what will be my next after getting the file from a specific location? Thanks guys!
    REPORT  z_aris_practice_bdc_0
            NO STANDARD PAGE HEADING
            LINE-SIZE 255
            LINE-COUNT 64
            MESSAGE-ID zz.
    *BDC Data
    DATA: BEGIN OF bdc_tab OCCURS 0.
            INCLUDE STRUCTURE bdcdata.
    DATA: END OF bdc_tab.
    *Internal Table
    DATA: BEGIN OF it_input OCCURS 0,
             user     TYPE usr02-bname,
             title    TYPE sza5_d0700-title_medi,
             lname    TYPE addr3_data-name_last,
             fname    TYPE addr3_data-name_first,
             initials TYPE addr3_data-initials,
             nickname TYPE addr3_data-nickname,
             function TYPE addr3_data-function,
          END OF it_input.
    DATA: gt_lines TYPE sy-tabix,
          gt_file  TYPE filetable,
          wa_file  TYPE filetable,
          gt_subrc TYPE i.
    *CONSTANTS
    CONSTANTS: c_mask(60) TYPE c  VALUE ',..'.
    *Selection Screen
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    PARAMETERS: p_input LIKE rlgrap-filename.
    SELECTION-SCREEN END OF BLOCK b1.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_input.
      CALL METHOD cl_gui_frontend_services=>file_open_dialog
        EXPORTING
       WINDOW_TITLE            =
       DEFAULT_EXTENSION       =
       DEFAULT_FILENAME        =
       FILE_FILTER             =
          initial_directory       = 'C:\Temp\'
          multiselection          = 'X'
        CHANGING
          file_table              = gt_file[]
          rc                      = gt_subrc
       USER_ACTION             =
        EXCEPTIONS
          file_open_dialog_failed = 1
          cntl_error              = 2
          error_no_gui            = 3
          OTHERS                  = 4.
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
               WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    *START-OF-SELECTION
    START-OF-SELECTION.
      PERFORM put_in_itab.
      PERFORM process_records.
    *&      Form  get_files
          text
    FORM put_in_itab.
      DATA: lv_file TYPE string.
      lv_file = p_input.
      CALL FUNCTION 'GUI_UPLOAD'
        EXPORTING
          filename                      = lv_file
        FILETYPE                      = 'ASC'
         has_field_separator           = 'X'
        HEADER_LENGTH                 = 0
        READ_BY_LINE                  = 'X'
        DAT_MODE                      = ' '
        CODEPAGE                      = ' '
        IGNORE_CERR                   = ABAP_TRUE
        REPLACEMENT                   = '#'
        CHECK_BOM                     = ' '
        VIRUS_SCAN_PROFILE            =
        NO_AUTH_CHECK                 = ' '
      IMPORTING
        FILELENGTH                    =
        HEADER                        =
        TABLES
          data_tab                      = it_input
       EXCEPTIONS
         file_open_error               = 1
         file_read_error               = 2
         no_batch                      = 3
         gui_refuse_filetransfer       = 4
         invalid_type                  = 5
         no_authority                  = 6
         unknown_error                 = 7
         bad_data_format               = 8
         header_not_allowed            = 9
         separator_not_allowed         = 10
         header_too_long               = 11
         unknown_dp_error              = 12
         access_denied                 = 13
         dp_out_of_memory              = 14
         disk_full                     = 15
         dp_timeout                    = 16
         OTHERS                        = 17
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ELSE.
        DESCRIBE TABLE it_input LINES gt_lines.
      ENDIF.
    ENDFORM.                    "get_files
    *&      Form  process_records
          text
    FORM process_records.
      LOOP AT it_input.
      ENDLOOP.
    ENDFORM.                    "process_records

    Hii viraylab,
    go throgh this link..This sample code solves ur problem....
    /people/milind.upasani/blog/2007/03/07/step-by-step-approach-to-ceate-simple-bdc-session-program-using-reusable-template
        U are new to BDC it seems...
        first u read the sap help ... then u will come know what to do after wards....
        http://help.sap.com/saphelp_47x200/helpdata/en/fa/097720543b11d1898e0000e8322d00/frameset.htm
    Be familiar with the structure BDCDATA.
    <b>Data transfers</b>  In this page..
    Next u need to know about the <b>transaction RECORDER the tcode is SHDB.</b>
    Nothing is difficult in this ..
    For example When u r creating a data element in SE11 u go through some screens in a flow, by clicking some pushbuttons and by generating some function codes manually, and entering values manually...
    But here u wont do it manually, these values will be populated from file into an internal table...
    Before calling a transaction into which u r going to populate the data is to be filled into a table with structure <b>BDCDATA.</b>
    <b>U need to use CALL TRANSACTION 'SE11' using BDCDATA or
    the session method..</b>
    Reward points for helpful answers...
    sai ramesh

  • Had to start Firefox in safe mode cause it kept crashing after i deleted the file. Now Fire fox Crashes every time I open it and I have to put it in safe mode j

    Had to start Firefox in safe mode cause it kept crashing after i deleted the file. Now Fire fox Crashes every time I open it and I have to put it in safe mode just to use it, also it's not syncing with my iPad.

    If you use Norton software, try disabling your Norton extensions. As of last week, there were severe compatibility issues with Firefox 24.

  • How do I fix problem causing Indesign to crash everytime I open it?

    I have had InDesign CC 2014 installed on windows 8 computer for month but recently I cannot open it as evertytime it crashed saying 'windows has encountered a problem causing InDesign to stop working' I have tried everything I can think of...please help! (I have it through creative cloud and my other programmes are fine so I don't understand why it is just InDesign?)

    What happened the last time it did work? Was there a crash? You might have bad recovery data that is causing it to crash again on restart.
    See Replace Your Preferences  for directions to the HIDDEN folders where your prefs are stored. The recovery folder is in the same location as the InDesign SavedData file. Empty it and try again.

  • IPhone iOS 8: Tapping on photo icon in messages app causes app to crash

    Issue (?ios 8 bug?): Tapping on photo icon in messages app causes app to crash. Present in ios 8.0, and also still in ios 8.0.2. iPhone 6+ 64GB.
    I just wondered if anyone else has been having this problem.
    Initially it worked great. Tapping the photo button next to the text box in message should bring up a menu with your latest photos and other sharing options. However, after the first couple of days, tapping the button brought up the menu, the phone freezes, and then after a few seconds the photo app crashes.
    Deleting most of my photos restored the function, but after another couple of days (and some more photos) it started happening again so I think perhaps it is related to the number of photos. After about 5-10 photos it loads the menu very slowly and its quite buggy. After 20+ photos it wont load the menu at all without freezing and the app crashing.
    My iphone 6+ was set up as a new phone (not restored from back-up).
    I hope this is some kind of bug that will be fixed in ios 8.0.3, but wondered if anyone else has the same problem or has any solutions?
    My workaround at the moment is just to go the photos app and either copy and paste the photo into a message, or share the photo via the photos app.

    I have this same issue with my 128 gb 6 plus.  I've tried restoring as new on a few occasions, but to no avail.  I did notice while my pc was synchronizing my apps, that the feature worked fine a few times until the synchronization was complete.  I seriously hope that the numbers of photos limits one's use of the feature, because i purchased the 128 gb 6 plus so that i could keep photos at my ready.
    Has anyone heard of a solution yet?

  • Exit CL_GUI_FRONTEND_SERVICES= FILE_OPEN_DIALOG once I get the file name

    Hi
    I have where I have a selection screen that finds the file, you can say where to get the file. After that I need to close that window. How do I close it???
    Below is an example of my program. After I choose the file and execute the program, I have a <b>write</b> statement. I don't see that statement on the screen. How do i terminate the input screen and display text.
    Parameters :  AUSZFILE      LIKE RFPDO1-FEBUMSF.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR AUSZFILE.          "mo271101
      DATA: L_FILES TYPE FILETABLE,                            
            H_FILES TYPE FILE_TABLE,                           
            L_RC LIKE SY-SUBRC.                                
      CALL METHOD CL_GUI_FRONTEND_SERVICES=>FILE_OPEN_DIALOG        CHANGING                                               
          FILE_TABLE              = L_FILES                    
          RC                      = L_RC                       
        EXCEPTIONS                                             
          FILE_OPEN_DIALOG_FAILED = 1                          
          CNTL_ERROR              = 2                          
          ERROR_NO_GUI            = 3                          
          NOT_SUPPORTED_BY_GUI    = 4                          
          OTHERS                  = 5.                         
      IF SY-SUBRC <> 0 OR L_RC < 0.                            
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO       "mo271101
                   WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.   
      ELSE.                                                     "mo271101
        READ TABLE L_FILES INDEX 1 INTO H_FILES.              
        AUSZFILE = H_FILES-FILENAME.                           
      ENDIF.
    Write AUSZFILE.
    Thanks in advance

    You must remember the START-OF-SELECTION event here,  after you select the file name and click F8, the START-OF-SELECTION event is triggered, but if it is not there, nothing will happen.
      if sy-subrc <> 0 or l_rc < 0.
        message id sy-msgid type sy-msgty number sy-msgno       "mo271101
        with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      else.                                                     "mo271101
        read table l_files index 1 into h_files.
        auszfile = h_files-filename.
      endif.
    start-of-selection.            "<--  Add this
      write:/ auszfile.
    Regards,
    RIch Heilman

  • Windows doesn't recognize Ipod and causes iTunes to Crash. . HELP!!

    Hi,
    Recently, I plugged in my ipod (30GB Photo) to my computer (running windows XP with SP2) and it caused itunes to crash. I rebooted the machine and tried again and the same thing has happened. I've spent the past day trying to fix it. I have done the following things and nothing has worked:
    -reset my IPOD
    -formated my IPOD (erased all the songs)
    -uninstalled and reinstalled ITUNES & QUICKTIME
    -tried to reinstall the ipod on the computer using the original cd.
    -disabled startup items to check if anything has been conflicting
    -tried all the usb ports on my computer and 2 different wires
    I don't know what else to do! I don't think the ipod is formatted for windows anymore (is that possible?) and whenever I try plugging it in, iTunes freezes up until I unplug the ipod. As well, Explorer recognizes it as a "Removable Disk" not IPOD.
    Please helpppppp! Thank you sooo much

    Hi there
    You're pretty much describing a problem I had yesterday.
    I've got the 2gb model and initially it was working fine. I run off a 4 port usb hub with other equipment running as well.
    Everything was okay but I kept getting a balloon telling me that usb 2.0 would be faster, so I routed my extension cable directly to a usb 2.0 port on my computer and all of what you describe started.
    The PC showed my nano as a removeable drive but could not be acesssed. If I managed to get it recognised in itunes (took forever) then it just said it was corrupted and was unable to restore.
    After much cursing and trawling the internet for answers, I gave up and put the cable back to the hub.
    And.....everything worked again !!
    I can only conclude that my hub (quite old) does not work on usb 2.0, or putting the extension cable (5m) straight into my PC causes a power drop / signal loss ??
    Are you using an extension cable or a hub? something to try.
    Good luck anyway
    Regards
      Windows XP Pro  

  • Microsoft Office for Mac open recent File menu option causing AFP to crash

    Hi all,
    We have an Xserve running Mac OS X Server Leopard 10.5.8. The Xserve hosts three file shares for about 60 users. Our network is 99% Mac based running mostly 10.5.8 with a few 10.6.x. We have historically over the past several years had the AFP service become unreliable and crash frequently. Late last week the AFP service crashes constantly. The quick solution to getting it up and running is to delete the AFP.conf file in /etc.
    We have troubleshot one cause of AFP crashing to the Open Recent... File menu option in Microsoft Office for Mac applications. That is, through some amount (haven't been able to narrow it down to how much) of opening documents on the share via the Open Recent menu the AFP service will crash.
    Here's what's happening in the AppleFileServer .crash file:
    Process: AppleFileServer [26065]
    Path: /usr/sbin/AppleFileServer
    Identifier: AppleFileServer
    Version: ??? (???)
    Code Type: X86 (Native)
    Parent Process: launchd [1]
    Date/Time: 2010-04-12 13:25:54.666 -0700
    OS Version: Mac OS X Server 10.5.8 (9L34)
    Report Version: 6
    Anonymous UUID: 273147DD-D725-4DAB-B403-95391FF85FE1
    Exception Type: EXCBADACCESS (SIGBUS)
    Exception Codes: KERNPROTECTIONFAILURE at 0x0000000000000015
    Crashed Thread: XX
    ******** blah *********
    Thread XX Crashed:
    0 AppleFileServer 0x0004bc15 operator+(OSException&) + 103513
    1 AppleFileServer 0x00064988 operator+(OSException&) + 205260
    2 AppleFileServer 0x0006da4e operator+(OSException&) + 242322
    3 AppleFileServer 0x000711f3 operator+(OSException&) + 256567
    4 AppleFileServer 0x00071446 operator+(OSException&) + 257162
    5 AppleFileServer 0x00076686 operator+(OSException&) + 278218
    6 AppleFileServer 0x000790d7 operator+(OSException&) + 289051
    7 AppleFileServer 0x0004560c operator+(OSException&) + 77392
    8 AppleFileServer 0x00044269 operator+(OSException&) + 72365
    9 AppleFileServer 0x00044343 operator+(OSException&) + 72583
    10 libSystem.B.dylib 0x9587c155 pthreadstart + 321
    11 libSystem.B.dylib 0x9587c012 thread_start + 34
    This is followed by a lot of these entries in AppleFileService.log file:
    IP xx.xx.xx.xx - - [12/Apr/2010:13:25:54 -0800] "Login username" 0 0 0
    IP xx.xx.xx.xx - - [12/Apr/2010:13:25:54 -0800] "No matching key: username" 1271103954 1271103943 1
    ** - - [12/Apr/2010:13:26:15 -0800] "Mounted Volume VOLUME1" 0 0 0
    ** - - [12/Apr/2010:13:26:15 -0800] "Mounted Volume VOLUME2" 1 0 0
    ** - - [12/Apr/2010:13:26:15 -0800] "DiskArbStart -" 0 0 0
    Our solution is to have all our users turn off the open recent option in Word, Excel, and PowerPoint. Not an ideal solution but it may get the AFP service running "good enough."
    Has anyone had an experience like this before or can anyone duplicate the AFP service crashing when trying to open documents on a share via the open recent menu? Any other ideas?
    Thanks

    Update.
    I have been able to consistently reproduce a problem where the AFP service will crash if a file that a user has an alias to is moved to a folder and the user is denied access to .
    1. On your Mac create an alias to a file or folder, that you have access to, that is stored on a share served via AFP. The alias can be in the Places section of a Finder window, on the Desktop, or anywhere an alias can be created. Lets call what the alias points to the target.
    2. Move the target to a folder on the AFP share and deny the user or group Read & Write access to that folder.
    3. Try accessing the target via the alias created in step 1.
    The AFP service should crash.
    Can anyone reproduce this crash scenario too?

  • External hard drive causing finder to crash

    The problem in a nutshell:
    On 2 different occasions today, trying to open the hard drive folder (after not accessing the EHD for a couple hours) caused Finder to crash and my Macbook hung on shutdown - I had to unplug the USB hub or do a forced manual shutdown. When restarting the computer, my computer couldn't read the hard drive - I did find a way to fix that (see details below).
    I don't know why this is happening in the first place or whether this indicates a bigger problem. Thus far, all data on these drives is backed up elsewhere, but I want these drives to be my backup (aside from DVD hard copies, of course). If anyone knows what may be causing this problem, I'd appreciate your help, thanks!
    My system:
    I have an early 2008 Macbook with OSX 10.6.8 and 4GB RAM.
    Last week I bought two identical Hitachi DeskPro 3TB USB hard drives -- call them External HD A & B --, connected to my Macbook via a USB hub that has its own power source. The EHDs have their own power sources as well. All power sources are plugged into surge-protected power strips. (The EHD B is a cloned copy of the EHD A using backup software).
    Each EHD is divided into 3 partitions.
    In System Preferences, I did NOT choose to have the hard drive(s) go to sleep whereever possible.
    Both EHDs run cool - I've never seen any sign of overheating.
    Details of What Happened:
    Both times, I was actively using my computer but hadn't accessed the EHD for a couple hours or so.  Both times, only EHD A was present in the Finder. (EHD B was physically plugged in, but ejected from Finder, as is my ususal practice.)
    Upon restart, I got a message that "a drive plugged into this computer cannot be read", giving me the option to Initialize, Ignore, or Eject. Restarting my Macbook (with one or both EHDs connected) didn't make a difference.
    Neither drive showed up in Disk Utility, but they both showed up in System Profiler under USB, albeit with much fewer details than when the drives are showing up normally. The scanner attached to the USB hub has worked just fine.
    Both times, the solution to the undetectable EHD problem was to plug in the drive's power source directly into the wall socket and the drive would promptly show up on my desktop. (It doesn't matter whether I plugged the USB directly into my Macbook or kept it plugged into the USB hub.) Once I do that, I can eject the drive, plug it back into the power strip, and it works just fine. I verified the drives in Disk Utility both times and they tested ok.

    I'm replying to my own post here since it's far to late to update the original message: To update: after more than 6 months, I can verify that the solution given at bottom of my original post (plugging the drive directly into a wall socket) has worked every time, both in the US and in Asia.  I have no idea why this is so, just that it works.

  • Pop up coming twice while using CL_GUI_FRONTEND_SERVICES= FILE_OPEN_DIALOG

    Hello All,
      I am calling the method FILE_OPEN_DIALOG of the class CL_GUI_FRONTEND_SERVICES to display the pop up to select the file from the desktop.After i select the file and execute the program it displays the report and when i clcik the back button it gives me the pop up again.I have used  CALL METHOD CL_GUI_CFW=>FLUSH.Inspite of this it is not working properly.
    Thanks,
    Rakesh.

    Try This.....
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR F_PATH.
    CALL METHOD cl_gui_frontend_services=>file_open_dialog
      CHANGING
        file_table              = file
        rc                      = rtrncode
      EXCEPTIONS
        file_open_dialog_failed = 1
        cntl_error                   = 2
        error_no_gui               = 3
        not_supported_by_gui = 4
        others                        = 5

  • Upgradtion doubt in calling cl_gui_frontend_services= file_open_dialog

    hi,
        Im upgrading from 4.5b to ecc 6.0 in the following code the export parameter  Default extn parameter in the call method
    cl_gui_frontend_services=>file_open_dialog does not get displayed
    i,e *.xls should be there bydefault it is not there in 6.0 how to get it. check the code once
    ws_filename get fm is in comments
    CALL FUNCTION 'WS_FILENAME_GET'
          EXPORTING
               DEF_FILENAME     =  C_DEFFILE
               DEF_PATH         = L_LOCFILE
               MASK              = C_MASK
               MODE             = C_MODE
          IMPORTING
               FILENAME         = L_FILE
          EXCEPTIONS
               INV_WINSYS       = 1
               NO_BATCH         = 2
               SELECTION_CANCEL = 3
               SELECTION_ERROR  = 4
               OTHERS           = 5.
    IF SY-SUBRC EQ 3.
       MESSAGE I999 WITH 'Action Cancelled by user'(044).
       EXIT.
    ENDIF.
    CALL METHOD cl_gui_frontend_services=>file_open_dialog
      EXPORTING
        DEFAULT_EXTENSION        = '*.xls,'
        FILE_FILTER              = '.'
      CHANGING
        file_table               = W_FILENAME
        rc                       = w_rc
      EXCEPTIONS
        FILE_OPEN_DIALOG_FAILED = 1
        CNTL_ERROR              = 2
        ERROR_NO_GUI            = 3
        NOT_SUPPORTED_BY_GUI    = 4
        others                  = 5.
    IF W_RC IS NOT INITIAL.
       READ TABLE W_FILENAME INTO W_AREA INDEX 1.
    IF SY-SUBRC = 0.
       L_FILE = W_AREA-FILENAME.
    ENDIF.
    ENDIF.

      CALL METHOD cl_gui_frontend_services=>file_open_dialog
        EXPORTING
          window_title            = 'File Selection'
          default_filename        = '*.xls'
          file_filter             = '(*.xls)|*.XLS|'
        CHANGING
          file_table              = lt_filetable
          rc                      = lv_filecount
        EXCEPTIONS
          file_open_dialog_failed = 1
          cntl_error              = 2
          error_no_gui            = 3
          not_supported_by_gui    = 4
          OTHERS                  = 5.

  • Server path not drive CL_GUI_FRONTEND_SERVICES= FILE_OPEN_DIALOG

    Hi folks
    When using the CL_GUI_FRONTEND_SERVICES=>FILE_OPEN_DIALOG or WS_FILENAME_GET we some times have the server path returned.
    And sometimes the drive letter returned.
    See two examples:
    1: \\blrx1\os390out\id1\test.txt
    2: R:\os390out\id1\test.txt
    What to do when we ALWAYS want the server path returned??
    Best regards
    Carsten

    I have used this several times in my own coding and I always get the \\
    in my end result
    method import_the_file_locn.
      data:
        lv_wintitle type string value 'Select Upload File',
        lv_deffile type string value 'asset_data',
        lv_dir type string value 'c\:',
        ls_file type line of filetable,
        lv_rc type i,
        lv_user_action type i.
      free gv_sdir.
      call method cl_gui_frontend_services=>file_open_dialog
        exporting
          window_title            = lv_wintitle
          default_filename        = lv_deffile
          initial_directory       = lv_dir
        changing
          file_table              = gt_file
          rc                      = lv_rc
          user_action             = lv_user_action
        exceptions
          file_open_dialog_failed = 1
          cntl_error              = 2
          error_no_gui            = 3
          others                  = 4.
      check lv_user_action is initial.
      read table gt_file into ls_file index 1.
      translate ls_file to lower case.
      gv_sdir = ls_file.
    endmethod.
    I don't know whether it is perhaps a mapping issue / windows setting that results in the path returned with the mapped drive?
    I just debugged one of methods above and I cant recreate the same issue when I pick up a file in a mapped directory, sorry.
    I guess there is also the option for you to do some substring manipulation and path mapping in a look up table - but if you have hundreds of servers rather than a few maybe not the best workaround.

  • Exceptions in  cl_gui_frontend_services= file_open_dialog

    hi when upgrading from 4.5 to 6.o Im getting the following exception
    When the pop up box is cancelled during the download option, a success message is displayed in 6.0 whereas an error message is displayed in 4.5.
    here is the code
    CALL METHOD cl_gui_frontend_services=>file_open_dialog
      EXPORTING
        DEFAULT_EXTENSION        = '*.xls,'
        DEFAULT_FILENAME         = '*.xls,'
        FILE_FILTER              = '.'
      CHANGING
        file_table               = W_FILENAME
        rc                       = w_rc
      EXCEPTIONS
        FILE_OPEN_DIALOG_FAILED = 1
        CNTL_ERROR              = 2
        ERROR_NO_GUI            = 3
        NOT_SUPPORTED_BY_GUI    = 4
        others                  = 5.
    IF W_RC IS NOT INITIAL.
       READ TABLE W_FILENAME INTO W_AREA INDEX 1.
    IF SY-SUBRC = 0.
       L_FILE = W_AREA-FILENAME.
    ENDIF.
    ENDIF.
      IF SY-SUBRC EQ 3.
        MESSAGE I999 WITH 'Action Cancelled by user'(044).
        EXIT.
      ENDIF.
    plz tell me where is the eror

    chk the data declearsation data type.
    CALL METHOD cl_gui_frontend_services=>file_open_dialog
        EXPORTING
          window_title            = 'Import from a local file'
          default_extension       = 'DAT'
         DEFAULT_FILENAME        =
          file_filter             = l_file_filter
          initial_directory       = 'C:\'
         MULTISELECTION          =
         WITH_ENCODING           =
        CHANGING
          file_table              = l_file_table
          rc                      = l_rc
         USER_ACTION             =
         FILE_ENCODING           =
        EXCEPTIONS
          file_open_dialog_failed = 1
          cntl_error              = 2
          error_no_gui            = 3
          not_supported_by_gui    = 4
          OTHERS                  = 5
          CALL METHOD CL_GUI_FRONTEND_SERVICES=>GUI_DOWNLOAD
            EXPORTING
              FILENAME                = V_FILE
              FILETYPE                = 'ASC'
              WRITE_FIELD_SEPARATOR   = 'X'
            CHANGING
              DATA_TAB                = IT_MAIN[]
            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
              OTHERS                  = 23.
          IF SY-SUBRC <> 0.
         MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                   WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
          ENDIF.

  • Regarding CL_GUI_FRONTEND_SERVICES= FILE_OPEN_DIALOG

    I'm using CL_GUI_FRONTEND_SERVICES=>FILE_OPEN_DIALOG to replace WS_FILENAME_GET which is an obsolete function module in ECC6.
    WS_FILENAME_GET was making use of the file mask -
    ',.csv  ,.csv ,.txt ,.txt.'
    When I use the same string in the file_filter parameter of FILE_OPEN_DIALOG, it doesn't work.
    Can somebody tell me the correct string format? I would like *.csv & *.txt as the file mask in the open dialog.
    Thanks!

    Hi
    U can give like this |.csv| ,|.csv |,|.txt |,|.txt.|'
    i think it will work.
    Thanks

Maybe you are looking for

  • Exporting Planning 9.3.0.1 security

    We are needing to export Planning security for 9.3.0.1. Cannot find the Export utility for this. Looked in the Planning/Utils folder and only find the ImportSecurity utility. We will be re-importing into a new environment running 9.3.1. We can find t

  • DRG-50901: text query parser syntax error

    The query SELECT * FROM ij where CONTAINS (ij.summary, 'ATTENZIONE!') > 0 returns an error: ORA-29902: error in executing ODCIIndexStart() routine ORA-20000: Oracle Text error: DRG-50901: text query parser syntax error on line 1, column 13 Why? There

  • Preview Works Fine - Packaged Application Fails

    Greetings - Working on a html/javascript AIR app that basically inspects a directory structure and writes out an xml file.  When I preview the application from within Dreamweaver using the Preview in Adobe AIR button, all works as expected.  It write

  • DC and Mail Server VMs On Same Machine???

    I don't see any issues. We have a few clients we setup this way and so far so good. I believe this is pretty much what VMware intended. Larger businesses can afford redundant servers and enterprise licensing, but us smaller businesses must work with

  • How to quit Andoid-app instead of suspending

    I made an app using air 2.6. When I hit the quit-button on my Android-phone and later on I restart the app, it continues where I quit it, but I want to totally restart from the beginning. I looked over the internet for hours, but I can't find any sol