How to check whether the Application Server directory exits or not

Hi,
I have a selection screen in which I give the Application server file name(UNIX file) as input. Here, I would like to check whether the Server directory exists or not.
Let us say, the path I gave in the selection screen is /usr/sap/tmp/testfile.txt . Here, the file name is testfile.txt and the server directory is /usr/sap/tmp . I would like to check whether this directory /usr/sap/tmp exists in the server or not. I am not bothered about the file name as I am going to write data into the file. I am mainly concerned about whether the directory exists in the server or not. and one more thing... this is the Application Server path not the Local path.
Can anyone help me on the same how to check whether the server directory exists or not.
Thanks in advance.
Best Regards,
Pradeep.

Also you can use the FM EPS_GET_DIRECTORY_LISTING for this purpose.
  Store the directory name
    l_dpath = p_file+0(l_no).
  Validate the directory of the application server
    CALL FUNCTION 'EPS_GET_DIRECTORY_LISTING'
      EXPORTING
        dir_name               = l_dpath
      TABLES
        dir_list               = l_i_dlist
      EXCEPTIONS
        invalid_eps_subdir     = 1
        sapgparam_failed       = 2
        build_directory_failed = 3
        no_authorization       = 4
        read_directory_failed  = 5
        too_many_read_errors   = 6
        empty_directory_list   = 7
        OTHERS                 = 8.
  If any problem occurs with the directory then display proper
  error message
    IF sy-subrc <> 0.
    Display error message
      MESSAGE e018 WITH 'Problem with directory entered'(008).
    ENDIF. " sy-subrc <> 0
Regards,
Joy.

Similar Messages

  • How to check whether the Application Server file has already been opened?

    Hi Experts,
    I have a query related to Application Server file. I am using multithreading concept to process the data and write it in to a single file.
    For example, I have 4 workprocesses. Each workprocess will process the data and whenever it has a record available it will access the file and write it directly.
    Problem is the statements that are written in the workprocess is same and I want to check the status whether the file has been opened or not ?
    Thanks in advance!!!
    Thanks,
    Babu Kilari

    Depends on the structure, and whether the data needs to be sorted in some way in the final file.
    In any case, I don't think there will be a significant performance difference between using OPEN DATASET again and getting funny with Unix commands.
    If you don't need to sort the final file, you can use strings to read, concatenate and write the data even without line-based DO ENDDO loops, this works pretty fast.
    I hope we are not talking about GBytes of data
    Thomas

  • How to check whether the user has a certificate or not?

    Hi everyone.
    We're currently finishing a web project and the last step is to check whether users accessing the application have a valid certificate or not.
    Users with a valid certificate can access all the data. Users without any certificate installed on their browsers may still proceed, but they won't be able to see all data. Please note that the lack of a certificate doesn't mean an error - it's just another use case.
    Is there any way to check whether users have a certificate installed on their browsers?
    Thanks in advance.
    Edit: sorry, I forgot to post some tech details. We're using Struts 1.2 on a Tomcat 5 app server.
    Message was edited by:
    advaca

    I am not sure how Tomcat handles this, but you need to use two-way (mutual authentication) request but not enforce SSL between Tomcat and the client browser. This will make the browser prompt the user for the cert they want to send. Then you'll need to tackle the other part of your problem, getting the correct content displayed depending on whether the user sent a cert or not. I'm even less help there than I was on the first part of your question.
    So, yeah - good luck with that
    Lee

  • How to check whether a Oracle server is installed or not ?

    Hi,
    How cani check whether a Machine has oracle server installed or not ?
    I have a machine where i have the client tools installed but not server. In that case how can i check whether this machine has oracle server is installed or not?
    Thanks in Advance..

    user11000236 wrote:
    Hi,
    How cani check whether a Machine has oracle server installed or not ?
    I have a machine where i have the client tools installed but not server. In that case how can i check whether this machine has oracle server is installed or not?
    Thanks in Advance..http://tinyurl.com/ngunhv
    Kamran Agayev A. (10g OCP)
    http://kamranagayev.wordpress.com
    [Step by Step install Oracle on Linux and Automate the installation using Shell Script |http://kamranagayev.wordpress.com/2009/05/01/step-by-step-installing-oracle-database-10g-release-2-on-linux-centos-and-automate-the-installation-using-linux-shell-script/]

  • How to check whether the report is being called or not

    Iam using srw.run_report.for calling another report. I have registered both the report in oracle apps11.0.3. When i run the master report in oracle apps I want to see whether the second report is called or not. How to check this.
    Thanks.

    try to check it in C:\Reports6i\Bin
    C:\Reports6i\Bin <-- this may varry depending on the location of your reports.
    btw, are you generating a pdf file?

  • How to findout whether the mail server supports STARTTLS or not?

    Hi,
    In my application I want to use explict SSL over SMTP, IMAP and POP3 by using the property "mail.<protocol>.starttls.enable"
    . I did see the documentation for mail.<protocol>.starttls.enable property as
    "If true, enables the use of the <code>STARTTLS</code> command (if
    supported by the server) to switch the connection to a TLS-protected
    connection before issuing any login commands".
    How do I findout whether the server supports STARTTLS or not?
    What will be the outcome if I use the property "mail.<protocol>.starttls.enable" though the server doe's not support STARTTLS? plain text connection will be there or will it throw any exception?
    Thanks in advance!
    PrasadKT

    The "mail.<protocol>.starttls.enable" property will use STARTTLS if the server
    supports it, and won't if it doesn't. Not using it might cause later commands to fail.
    Newer versions of JavaMail also have a "mail.<protocol>.starttls.required"
    property that will cause the connection to fail if the server doesn't support
    STARTTLS.

  • How to check whether the Workflow event is triggered or not ?

    Hello All,
        My scenario is like this :
    1. Go to MM02
    2. Change a material of any view other than the classification.
    3. Save it.
    4. Go to transaction SWEL and check there .
    5. An entry has been created in that across the object type Y01BUS1001.
    6. Now I can check in the Transaction CFG1 the Log details.
    7. This is correct.
    8. Now the same procedure is not working when I change the material for the classification View.
    9. Do i need to check something else ?
    10. When the classification data is changed for a material the Object type Y01BUS1003 has to be triggered.
    Can any one help me out ?
    Regards,
    Deepu.K

    Hi,
    If you are using the Event collector, you can check in from RSA1-> Tools-> Event collector. You cannot trace whether that event was raised from anywhere I think
    Regards

  • How to check whether the new records are inserted or not in SSIS

    Hi All,
    I have a SSIS package which insert data from Table A  to Table B . I need to insert only new records to Table B. If any record is not there it should insert the record if not ignore that record.
    I used Lookup Transformation but it doesn't works from me, which tab should i need to select? Like in General tab we have  ignore failure, Fail Component,Redirect rows to no match output, Redirect rows to error output?
    Please help me on this issue. 
    Thanks, Shyam Reddy.

    On what basis you're doing the lookup? Are you using correct column for the lookup? It should be based on common columns based on which tables are related (mostly primary key column)
    Can you also show the column tab to see how you've done the mapping  ?
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • How to check Whether the File is in Progress or used by some other resource

    Hi All,
    I am retrieving a file from the FTP server using Apache commons FTP.
    I need to check whether the file is fully retrieved or in progress.
    for now i can able to use the file which is partially retrieved. it is not throwing any file sharing exception or i am unable to find whether it is in progress.
    How to check whether the file is in progress ? or The file is accessed by some other resource ?
    Pls Help me.
    Thanks,
    J.Kathir

    Hi Vamsi,
    Explicitly such kind of requirement has not been catered and i dont think you would face a problem because any application that is writing to a file will open the file in the read only mode to any other simultaneous applications so i think your concerns although valid are already taken care off .
    In the remote case you still face a problem then as a work around. Tell the FTP administrator to set the property to maximum connections that can be made to ftp as one. I wonder if you have heard of the concept of FTP handle , basically the above workaround is based on that concept itself. This way only one application will be able to write.
    The file adapter will wait for its turn and then write the files.
    Regards
    joel
    Edited by: joel trinidade on Jun 26, 2009 11:06 AM

  • R12.1.1 staging complete! How to check whether the stage is Good

    Hi Gurusl,
    I have completed staging R12.1.1 for Hp unix B.11.31. I want to know how to check whether the stage is good for installation or whether it is corrupted. Is there any metalink note or script from where we can check it. Ur help will be highly appreciated. Thanks in advance
    regards,

    Hi,
    Please refer to (Note: 802195.1 - MD5 Checksums for R12.1.1 Rapid Install Media).
    Regards,
    Hussein

  • How to find out the application server info

    Hi, I am wondering how to find out the application server info in Java code, just like how to find out the db platform being used. Thanks

    Hi,
    I am not aware of any spec defined way of finding out such info. There may be vendor specific APIs or mechanisms.
    But you can use environment entries in your deployment descriptors to specify the information and make use of the entries inside your j2ee component. That will make your code platform neutral.
    Sahoo

  • How to check whether a user session is null or not

    Hi
    I am using Jdeveloper 11.1.2.2
    I have a use case of running some Junit test case, this is the problem I have :
    There are some Junit tests which are written for some VO's. While testing insert and update operation in Junit there is two mandatory columns Created by and Updated by to be entered for committing into the database.
    These values are taken from the UserName of the current UserSession .
    So for getting the these values for each user I thought of displaying a JPanel before the test is run, where the user enters the Username and password which is validated and the user is verified.
    First, I need to check whether there is a session present or not. For checking this, I wrote a createUserSession() and did like this inside it :
    if(fixture.getApplicationModule().getSession().getUserData().isEmpty())If so to show the Jpanel and get the user details and verify the user.
    But while running the test itself I found that the session is already present, now I just have to input the values based on who is the user.
    But Junit doesn't run the tests in the order in which the test are written. So I have to call this in all the test cases.
    The Question is :
    How can I check whether the session is already present or not, so that I don't have to ask the user every time while every test is running to enter the Username and Password ?
    Thanks,
    Nigel.
    Edited by: Nigel Thomas on Jul 30, 2012 10:26 AM

    Hi,
    wondering why don't you create test users and then automatically log them in as Jan Vervecken did on the threads I pointed you to. This way your test cases run without user interaction. To test if a session exists for a user, I would put a custom property into user data. If this property exists, the user session is an existing one. However, make sure the information you save into the user data survives passivation as otherwise the information you get out of this is not accurate. See: http://tompeez.wordpress.com/2011/07/08/jdev-always-test-your-app-with-applicationmodule-pooling-turned-off/
    Frank

  • How to check wheather the project is having 'AUC' or not.

    Hi friends,
    How to check wheather the project is having 'AUC' or not.
    Regards,
    Safiq.

    Hi Basha ,
    as per my knowledge , WBS will have AUC ,Settlement rules  etc, so u need to check asset tables based on the WBS element .
    regards
    Prabhu

  • Oracle AS Web Cache - How to check whether the request goes throught it ?

    Hi,
    My application runs on Oracle 10g App Server,
    The OracleAS Web Cache is also running
    the command opmnctl status shows...
    WebCache - Alive
    WebCacheAdmin - Alive
    Is there any way to check whether the request form the client goes through the Web Cache ?
    B'coz when i checked OracleAS Web Cache Administrator UI
    The information like Total Requests Served, Cahce Hit , Cache Misses etc are 0 and it does'nt changes...
    I have the directive keepAlive as[b] off in httpd.conf, will this have an impact over Web Cache ???
    Plz suggest me a way to check whether the request goes through Web Cache or directly to Oracle HTTP Server ??
    Deepak.C

    Keepalive has no impact on webcache, but it does have a huge impact on performance. So far I found no proper reason to put it off in any production system.
    Anyway, logging from webcache and/or apache (ias) should show how requests are going from the client to the AS.

  • How to find out the application server instance name?

    Hi,
    I installed an Oracle application server a long long while ago and completely forgot the things about the installation, including the name of the instance (I installed single instance, not cluster). Now I am trying to create a connection to the application server and I am prompted to fill in the instance name. Where in the installation can I find out the instance name?
    The version of the server as displayed when the server is started:
    $ ./oc4j -start
    Starting OC4J from /oraInventory/j2ee/home ...
    09/10/08 16:04:39 Oracle Containers for J2EE 10g (10.1.3.2.0)  initializedThis 10.1.3.2.0 number is somewhat confusing. As I understand it, right now if you download a copy of the Application server from Oracle web site, the current version is 10.1.3.1.0.
    I am also reading the installation guide now and when looking at the server starting messages on the screen, I realize that installing the server in the oraInventory directory is not quite right. Does that interfere with the correct functioning of the server? I installed it but have never tried to use it until now.
    Many thanks for your help!
    Newman

    J. Newman wrote:
    Hi,
    I installed an Oracle application server a long long while ago and completely forgot the things about the installation, including the name of the instance (I installed single instance, not cluster). Now I am trying to create a connection to the application server and I am prompted to fill in the instance name. Where in the installation can I find out the instance name?If you have access to that server, then the following should give the instance name.
    grep 'IASname' $ORACLE_HOME/config/ias.properties
    you should also see it in the AS Control Console page.
    The version of the server as displayed when the server is started:
    $ ./oc4j -start
    Starting OC4J from /oraInventory/j2ee/home ...
    09/10/08 16:04:39 Oracle Containers for J2EE 10g (10.1.3.2.0)  initializedThis 10.1.3.2.0 number is somewhat confusing. As I understand it, right now if you download a copy of the Application server from Oracle web site, the current version is 10.1.3.1.0.
    Regarding the version numbers, this fourth digit refers to the Component-specific release number. The OAS documentation says this about it.
    "This digit identifies a release level specific to a component. Different components can have different numbers in this position depending upon, for example, component patch sets or interim releases."
    I am also reading the installation guide now and when looking at the server starting messages on the screen, I realize that installing the server in the oraInventory directory is not quite right. Does that interfere with the correct functioning of the server? I installed it but have never tried to use it until now.
    Many thanks for your help!
    NewmanI think Oracle software should always be installed in a separate directory. I think it may also generate errors in its functioning but it will certainly create a whole lot confusion and mess in later administration and configurations.
    hope that helps!
    AMN
    Edited by: AMN on Oct 8, 2009 5:14 PM

Maybe you are looking for

  • My IP4 on/off switch has stopped functioning.

    My On/Off switch has stopped functioning. No depression, no click and no response. Has anyone else had this problem and if so, did you solve it? How?

  • EAS Login Error

    HI i can login into the Administration servers but couldnt drill down essbase servers, its prompting the follwing error Error: 1051293: Login fails due to invalid login credentials Thanks

  • Inserted value too large column: n

    Hi All, I'm loading some large flat files onto SAP HANA and the error file contains a large amount of errors stating that "ROLLBACK - inserted value too large for column: 104 >>". I'm getting a lot of errors and the number showing next to column vari

  • Video with Transparent background

    Hi I am trying to create a video through Adobe Premiere Elemements 10 that has a transparent background. I need it to be in .FLV, .SWF or .MP4 format. I have created the alpha etc but i think i am not exporting it correctly. Can anyone explain the st

  • Can't Decide on Motherboard

    I,m putting together a new upgrade and have decided on the K9N Diamond.. Here are the parts i have so far. AMD Athlon 64 X2 Dual-Core 6000+ 3.0GHz Processor OCZ  High Performance 800/PC2-6400 - DDR2 SDRAM 1GB Dual CH Vista Upgrade 5-5-5-15 Memory (2p