Cl_gui_frontend_services= file_exist is not reading files from C drive

Hi experts ,
I am using the method 'cl_gui_frontend_services=>file_exist' to check whether a file exists in frontend machine or not. This method works fine and gives corerct result when i keep the file on desktop and provide the path of the files as parameter to the program but it is unable to check the existance of the same file if kept in C drive under folder program files e.g.(C:/Program files/Documware/Barcode.exe). Is this a limitation of the method or is due to some restriction/access permitions at system level that files could not be read from program files in C drive . kinldy provide your useful inputs if any one faced same issue and what is the  solution for this problem .
Regards
Priyank

ALL FUNCTION 'DX_FILE_EXISTENCE_CHECK'
    EXPORTING
      filename             = file
      pc                       = 'X'
*   SERVER              =
    IMPORTING
      file_exists           = file_exist
IF NOT ( sy-subrc = 0 and file_exist = 'X' )
  MESSAGE  'the input file does not exist.' TYPE 'E'.
ENDIF.

Similar Messages

  • PI sender communication channel not reading files from NFS directory

    Hello,
    I have a sender communication channel configured to read file from NFS directory which is on ECC server. A program in ECC generates the file and puts it on the ECC server in the output directory. PI sender communication channel is supposed to pickup this file and process it. If I give the NFS path as the source directory, I am getting error: Configured source directory '//Server/DIR/OUT' does not exist. I tried putting '
    Server\DIR\OUT' too but same error. Do I have to add the NFS path of ECC into PI as logical path?
    Any suggestions?
    Thanks,
    Sangita

    Hello Sangita,
    Your ECC server is an external system, therefore you need to activate FTP service in that system and use the transport protocol FTP:
    http://help.sap.com/saphelp_nw04/helpdata/en/e3/94007075cae04f930cc4c034e411e1/content.htm
    You can use NFS protocol when you have a local directory in XI server.
    Best Regards,
    .Luis Bernal.

  • Can not read file from URL

    I have this code for loadbitmap() function:
    String s = getCodeBase()+sdir+sfile;
    System.out.println("codeBase is=" + s);
    URL url = new URL(s);
    InputStream fs = url.openStream();
    BufferedInputStream bs = new BufferedInputStream(fs);
    And the file is a .bmp file, so I go on decoding this etc. It works fine within VisualCafe.
    When I created a virtual directory in IIS and run this applet from
    http://localhost/ImageApplet/ImageApplet.html address:
    I get in 1.3.1 Plug-in this error:
    codeBase is=http://localhost/ImageApplet/duke/some1.BMP
    Caught exception in loadbitmap!java.io.FileNotFoundException: http://localhost/ImageApplet/duke/some1.BMP
    If a type this as address in browser, it shows the image.
    Could any one tell me what I am doing wrong here?

    You can try this, even though it is not supposed to be different from your original code:
    URL url = new URL(getCodeBase(), sdir+sfile);
    System.out.println("getting image from " + url);
    InputStream fs = url.openStream();
    BufferedInputStream bs = new BufferedInputStream(fs);
    I could understand a SecurityException but a FileNotFoundException... A FileNotFoundException... You are reading from a stream originating from a URL, not a file!!!
    Which line causes the exception?

  • Reports server Cannot read files from mapped drive

    Hi,
    Am trying to run a report from a network mapped drive under WinNT 4.0 through report server.
    I get "REP-0110 Error opening or reading file" error message. After looking up the help on error, I find:
    1. The file being accessed does exist
    2. The login account has full privileges
    with the file/directory/drive in question.
    If the report to be run is on a local drive,
    everything is fine.
    Can anyone help me asap.
    Thank you
    Sundar
    null

    hello,
    there are multiple things to keep in mind :
    1) if you are using a mapped drive :
    mapped drives are on a per-user-basis. the reports-server-service is running as a system-service by default and will not have the same mapped drives as the logged on user. in fact it fill have NO drives mapped.
    what you could do is to use the UNC-path like \\servername\share\filename to adress the file
    2) problems with UNC
    there are some known problems using UNC to access files on remote machines in some versions of reports. pls check with oracle support services in case this causes problems.
    regards,
    the oracle reports team

  • CS5.1 Not Opening Files from Hard Drive

    I'm on a 2010 iMac with the lastest OS, and every time I try to open a RAW file from one of my external hard drives, I get an error messages that says "Could not complete your request because of a program error."  If go to the file through the hard drive and then drag it to Photoshop, it opens up, but if I go to File>Open> and then choose my external drive.

    i have the question posted over there too..
    Interestingly - I reinstalled CS4. files open with no issue using CS4 as external editor.
    Also - files open with no issue if PS Elements is used as the External editor.
    Looks like the issue is with CS5.

  • Handbrake not reading dvd from optical drive

    i am trying to rip a couple of dvds to my mac book using handbrake. everything was going fine for a while. then on one cd, it would start the scanning but would freeze. tried mac the ripper and had the same thing happen. ejected the disc, tried with a different one, with the same results. put in yet another one and it was not recognized by the computer at all. now the dvd's are being recognized, but still freezing in the scanning stage.

    ALL FUNCTION 'DX_FILE_EXISTENCE_CHECK'
        EXPORTING
          filename             = file
          pc                       = 'X'
    *   SERVER              =
        IMPORTING
          file_exists           = file_exist
    IF NOT ( sy-subrc = 0 and file_exist = 'X' )
      MESSAGE  'the input file does not exist.' TYPE 'E'.
    ENDIF.

  • Playing but not copying file from other drive?

    How can I play an audio file or a video off an external hard drive connected directly to my mac or accessed over a wireless network without the file being copied to the mac that it is being played on?
    Thanks.

    Turn off the option in iTunes to "copy files to iTunes Music folder when adding to library" in the iTunes -> Advanced -> General preferences). Then when you add the track to iTunes, it won't be copied to the internal drive.

  • Can not delete files from Adobe reader

    can not delete files from adobe reader.

    Can you let us know a little more about what you are trying to do? Adobe Reader opens pdf files but does not store them so, there's nothing to delete.

  • How can I save adobe reader file from gmail into my adobe reader app?? i would like to open one file in place where I'm not able to access internet and for that reason i would like to save it. is that even possible?

    How can i save adobe reader file from my gmail into my adobe reader application. or is there any other way i can save it into my phone so I'm able to open in any situation not just from my gmail???

    Long hold on the document in mail and it should give you the open in... option, select adobe reader and the file is now saved locally for viewing even while offline.

  • I just stared having problems with importing files from nikon D810 into LR 5.7 it pop a window saying it can not read files on working on a imac 27" running yosemite on my mac pro after a few times it finally was able to read files and import them into LR

    I just stared having problems with importing files from nikon D810 into LR 5.7 it pop a window saying it can not read files on working on a imac 27" running yosemite on my mac pro after a few times it finally was able to read files and import them into LR I never had this problem before was there some kind of update that could of cause this?

  • The Wifi storage options are interesting but it seems they only allow to read files from the device on the iPad but not transfer files to the storage device via WiFi.   I'm looking for a possibility to use the iPad for photography while traveling, without

    the Wifi storage options are interesting but it seems they only allow to read files from the device on the iPad but not transfer files to the storage device via WiFi.
    I'm looking for a possibility to use the iPad for photography while traveling, without the access to a computer.
    Shooting photo's in RAW format crates pretty big files that will fill up the iPad's memory pretty fast if you shoot a lot during a (let's say) month long trip.
    my idea was to use load the photo's to the iPad so i could view them and sort out any bad ones. then copy them over to the storage device so i can continue using my CF cards for shooting. I have an image thank for copying the photo's directly to the HDD but it would be so sweet to be able to check them on the iPad before hand.
    any suggestions?

    Check out pogo plug device, it allows you to upload camera roll via wifi.

  • Apostroph and euro sign not read corectly from txt file

    apostroph and euro sign not read corectly from txt file.
    my code is like this:
    FileInputStream fis= new FileInputStream(x+".html");
    BufferedReader br=new BufferedReader(new InputStreamReader(fis,"UTF-8"));
    String Line="";
    while ((Line = br.readLine()) != null) result+=Line;
    br.close();
    fis.close();
    I use UTF-8 because the file contains also French characters.
    What's the problem?
    THANK YOU!

    apostroph and euro sign not read corectly from txt
    file.
    my code is like this:
    FileInputStream fis= new FileInputStream(x+".html");
    BufferedReader br=new BufferedReader(new
    InputStreamReader(fis,"UTF-8"));
    String Line="";
    while ((Line = br.readLine()) != null) result+=Line;
    br.close();
    fis.close();
    I use UTF-8 because the file contains also French
    characters.
    What's the problem?
    THANK YOU!
    This is from the FileInputStream API documentation:
    FileInputStream is meant for reading streams of raw bytes such as image data. For reading streams of characters, consider using FileReader.

  • Reading Files from an FTP location based on Timestamp

    Hi,
    I have a requirement of reading files from an FTP location. The files should be read in the order they were saved in the folder. Can someone tell me how to solve this?
    Thanks,
    Ravi

    Hi Arik,
    Thanks for your reply. I tried doing what u said, but it isn't working. My requirement is to List the files in the folder using FTP adapter and get the file name with the least file stamp from the FTP adapter and pass the FileName dynamically to another FTP adapter which reads the file based on the FileName. When i tested after including the property (for listing the files) you mentioned, it is giving the following error (copied from flow trace):
    <messages>
    <input>
    <Invoke_getFileListFTP_FileListing_InputVariable>
    <part name="Empty" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <empty xmlns="http://xmlns.oracle.com/pcbpel/adapter/ftp/APP_SequentialFileTransfer/PRJ_SequentialFileTransfer/WS_GetFileList_FTP"/>
    </part>
    </Invoke_getFileListFTP_FileListing_InputVariable>
    </input>
    <fault>
    <bpelFault>
    <faultType>0</faultType>
    <bindingFault xmlns="http://schemas.oracle.com/bpel/extension">
    <part name="summary">
    <summary>Exception occured when binding was invoked. Exception occured
    during invocation of JCA binding: "JCA Binding execute of
    Reference operation 'FileListing' failed due to: Exception
    occured when binding was invoked. Exception occured during
    invocation of JCA binding: "Could not instantiate
    InteractionSpec
    oracle.tip.adapter.ftp.outbound.FTPListInteractionSpec due
    to: Cannot set JCA WSDL Property. Error while setting JCA
    WSDL Property. Property setListSorter is not defined for
    oracle.tip.adapter.ftp.outbound.FTPListInteractionSpec Please
    verify the spelling of the property. ". The invoked JCA
    adapter raised a resource exception. Please examine the above
    error message carefully to determine a resolution. ". The
    invoked JCA adapter raised a resource exception. Please
    examine the above error message carefully to determine a
    resolution.</summary>
    </part>
    <part name="detail">
    <detail>Cannot set JCA WSDL Property. Error while setting JCA WSDL
    Property. Property setListSorter is not defined for
    oracle.tip.adapter.ftp.outbound.FTPListInteractionSpec Please
    verify the spelling of the property.</detail>
    </part>
    <part name="code">
    <code>null</code>
    </part>
    </bindingFault>
    </bpelFault>
    </fault>
    <faultType>
    <message>0</message>
    </faultType>
    </messages>
    Thanks,
    Ravi
    Edited by: Ravi Santosh on Apr 24, 2012 11:02 PM

  • Reading file from an external folder.

    Iam tring to read an external file from the C:\ drive. Given below is the code.
    DATA LV_XLS(100) TYPE C.
    DATA LV_CONTENT TYPE XSTRING.
    LV_XLS = 'C:\XML\Report.xls'
    READ DATASET LV_XLS INTO LV_CONTENT.
    But when i execute iam getting an error - FILE NOT FOUND. How do i read file from an external folder. My requirement is to strictly read from an external folder. Please help.
    If this is not possible please advice as to how the file could be moved to the SAP root directory. Iam not able to locate the root.

    hi,
    This is the code to read a excel file from the local system.
    Read data set you are using in your code corresponds to files on application server thats the reason its throwing an error.
    * Parameter variable declaration for browsing the file location       *
    PARAMETERS:
      p_file TYPE ibipparms-path OBLIGATORY.
    data:
    it_text TYPE truxs_t_text_data .
    AT SELECTION-SCREEN  ON VALUE-REQUEST FOR p_file.
      CALL FUNCTION 'F4_FILENAME'
       EXPORTING
         program_name        = syst-cprog
    *   DYNPRO_NUMBER       = SYST-DYNNR
         field_name          = ' '
       IMPORTING
         file_name           = p_file.
    START-OF-SELECTION.
      CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
        EXPORTING
    *   I_FIELD_SEPERATOR          =
    *   I_LINE_HEADER              =
          i_tab_raw_data             = it_text
          i_filename                 = p_file
        TABLES
          i_tab_converted_data       = t_cust
      EXCEPTIONS
        conversion_failed          = 1
        OTHERS                     = 2
      IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    This is to read a text file from local system.
      CALL FUNCTION 'GUI_UPLOAD'
        EXPORTING
        filename                      =  'D:\FILEINTERFACE\file.TXT'
    *    FILETYPE                      = 'ASC'
         has_field_separator           = 'X'
    *    HEADER_LENGTH                 = 0
    *    READ_BY_LINE                  = 'X'
    *    DAT_MODE                      = ' '
    *    CODEPAGE                      = ' '
    *    IGNORE_CERR                   = ABAP_TRUE
    *    REPLACEMENT                   = '#'
    *  IMPORTING
    *    FILELENGTH                    =
    *    HEADER                        =
        TABLES
          data_tab                      = t_kna1
    *  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.
      ENDIF.
    PS.  In both of the above mentioned function modules make sure that the file structure is similar to the internal tables used.
    Thanks
    Sharath

  • Can the aTV read files from an iTunes library on my nas drive without my computer being on

    I have my itunes library on a My Book Live nas drive that contains all of my digital movies and TV shows. I want to be able to watch my movies from the library without a computer running. I understand that Apple has chosen to chain you to the computer and your itunes account through Home Sharing but I can not see why they couldn't allow you to access a nas drive without a computer running because your aTV is tied to your itunes account also so why do they force you to run a computer 24/7 365 in order to access the files you have bought and paid for.
    I have a love/hate for Apple because I love the quality of the products they make but I hate how they make all of the digital files you purchase only accessible through a computer running Home Sharing even though the files are not stored on the computer.
    I have tried several things to get this to work without a computer but no luck. The only way I have found to be able to do this is to Jailbreak your aTV and install 3rd party software (which I don't want to do) that will allow you to by pass the computer and Home Sharing (which is dumber than ****) because that is all I want to do is eliminate the need of a computer running wasting electricity (I thought Apple was supposed to be an enviro friendly company, guess not). I am not trying to steal or give someone else my purchased movies and using the aTV and an internet connection they could still be able to tie your media to your itunes account so I just don't get there thinking, or lack of thinking I should say.
    Is their a way to do this without Jailbreaking or modifying your aTV?
    If not is Apple ever going to wake up and allow there customers to actually USE the media they purchase from them without Home Sharing and a computer running?

    _Skull wrote:
    Can the aTV read files from an iTunes library on my nas drive without my computer being on
    no it can't. you need itunes open and running

Maybe you are looking for

  • Need help in double click the column in ALV

    hello all , I am new to Abap coding . I have got the following requirement . there are 2 columns in my alv grid output list . First  column shows both the sales orders and Quotation . 2nd column shows the document type ..If the document type is ZQT t

  • How do I make my hp J4580 printer print wirelessly from my mac 10.7.5 laptop

    Hi, I would like to make my HP J4580 all in one printer wirless.  I have a mac 10.7.5 laptop.  I have read the other posts and it appears to be possible but I can't figure out how to do it.  One of the posts said you need an Ethernet cable, however,

  • PO for item of service Level short and long text using sap script

    Please let me know how to do the PO for item of service Level short and long text using sap script. <MOVED BY MODERATOR TO THE CORRECT FORUM> Edited by: Alvaro Tejada Galindo on May 5, 2009 10:25 AM

  • LSMW and condition

    Hi, I loaded material master data such as product type, name, unit … I used lsmw and Message Type CRMXIF_PRODUCT_MATERIAL_SAVE. I’d like additionally add Conditions (price e.g. 0PR0 type, Sales org., Dis. Chan.) to this data. Which message type shoul

  • Report header user exit

    Hi ABAB'ers Does anyone know the spesific user exit used for getting data automatically for report header? I mean FBL3N transaction. I want to get G/L account from-to and period from-to to report header. The figures for the header should come straigh