Directory Existence Check on Application Server

Is there any function module to check whether a given directory exists on Application Server or not.

This works pretty good for me.
REPORT ZRICH_0001 .
type-pools: abap.
data: path type string.
data: result type abap_bool.
path = '\<host>usrsapTSTSYS'.
CALL METHOD CL_GUI_FRONTEND_SERVICES=>DIRECTORY_EXIST
  EXPORTING
    DIRECTORY            = path
  RECEIVING
    RESULT               = result
  EXCEPTIONS
    CNTL_ERROR           = 1
    ERROR_NO_GUI         = 2
    WRONG_PARAMETER      = 3
    NOT_SUPPORTED_BY_GUI = 4
    others               = 5.
if result = 'X'.
  Write:/ 'Directory Exists'.
else.
  Write:/ 'Directory not found'.
endif.
Regards,
Rich Heilman

Similar Messages

  • Directory Existence Check Before File-Download.

    Hi,
      How to check the existence of a directory say USR/INTERFACES/HR/NONHR/SAP_TO_IFS/
    before I download a file into that particular directory using GUI_Download.
    Currently even if such a directory does not exist,
    The download is successful.
    But I want to validate the existence of the directory before the download.I tried using the FM PFL_CHECK_DIRECTORY.
    Kindly Advice.
    Thanks .

    Hello Renu
    It seems that you are mixing directories on presentation (GUI_DOWNLOAD) and application server (USR/INTERFACES/HR/NONHR/SAP_TO_IFS/).
    To check the existance of a directory on the presentation server use method cl_gui_frontend_services=>DIRECTORY_EXIST.
    This class has many more useful methods.
    Regards
       Uwe

  • Creating a directory statically in the Application Server

    Hi,
    I need to create a directory in the application server statically (not through code), in which I later have to store and read files. Most forums talk about doing this through AL11 --> Configure.
    While this does create an entry in the directory list in AL11, I doubt if the directory was actually created in the AS. Double clicking this directory name shows an error message in the status bar (Wrong order of calls <- CALL opendir: No such file or directory). So I believe the directory is not created at all.
    How do I set up a directory which I can browse and see, and use for creating / reading files?
    My AS is on AIX OS.
    Thanks,
    Z

    Hi,
    Yes, Could we not do it from SAP screens?
    Go to Al11 and in that you can see a tab Configure.
    There you can create the Directory and say Add button
    and then Save .
    and after that Using
    Open Data set ds1 for Output.
    will create the File if it is not there .
    you can specify the path in which you can create the files.
    check this thread as well:
    Creating a directory & subdirectory on Application Server
    Sachin
    Edited by: Sachin Dhingra on Jan 22, 2009 11:02 AM

  • Function - check path - application server or presentation server

    Hi Gentlemen!!
    I'm looking for a function to export a path and return if the path belongs of an application server or an presentation.
    thanks.
    Polak.-

    You can just check if the second character of the path variable is a ':'
    IF yes then presentation server
    else application server.

  • Create Directory via ABAP on Application Server

    Hej folks,
    does anybody know how to create a directory on the ApplServer via ABAP?
    Thanks in advance!
    boris

    You can create an external command via SM69 which you can then invoke through function module SXPG_COMMAND_EXECUTE
    For NT you'd need something like the following:
    Operating system command                             
    cmd                                                                               
    Parameters for operating system command              
    /c mkdir
    $/SAPGLOBALHOST/\?   
    Have fun,
    Mark
    Kudos to Pete Devereux and Pete White

  • Oracle application server 10g version checking scripts

    Hi does anyone know how the script to check the application server 10g version on R12.1.3, without checking it on the form.

    Hi Tunde,
    You can get the detailed version of all the 10.1.2 and 10.1.3 components using the below commands
    A. 10.1.3 Component Versions
    ========================
    1. Login in to Putty as application file system owner
    2. Source the applications env file under $ORA_CONFIG_HOME/10.1.3 directory.
    3. cd $ORACLE_HOME/OPatch
    4. opatch lsinventory -detail >> inv.out
    5. Review the inv.out file and check for the Oracle Application Server and other component versions.
    B. 10.1.2 Component Versions
    ========================
    1. Login in to Putty as application file system owner
    2. Source the applications env file under $APPL_TOP
    3. cd $ORACLE_HOME/OPatch - This will be pointing to 10.1.2 Home
    4. opatch lsinventory -detail >> inv.out
    5. Review the inv.out file and check for the Oracle Application Server and other component versions.
    I hope this clarifies your queries, Please let me know the same.
    Regards,
    Thiagarajan.

  • Download Excel file in the Unix directory of Application server

    Hi Friends,
    I have a requirement  of downloading the Excel file in the Unix directory path of the application server,i just need your inputs,it would be great help if you can send any sample coding for downlading the file in the Unix directory?
    Regards
    Dinesh

    You can use the following fm
    RZL_READ_FILE
    or
    use OPEN DATASET FOR INPUT.

  • InfoSpoke fails with message "Could not open file on application server"

    BW Experts,
    I created an InfoSpoke that is configured to extract to a flat file. The name of the file is specified using a logical filename. During extraction, the infospoke reports the error message "Could not open file on application server" adnd  marks the extraction process as red(failed). I have tried to run the InfoSpoke in background mode and in dialog mode and the same error appears. After i run in dialog mode, i checked SU53 for authorization errors and did not find any. I also tried changing the Logical filename setup in transaction FILE to a more "friendly" directory in which i'm sure i have authorizations (e.g. my UNIX home directory) and im still getting errors.
    Can you please share your thoughts on this? Any help will greatly appreciated. I also promise to award points.

    Hi Nagesh,
    Thanks for helping out.
    If i configure the InfoSpoke to download to a file using "File Name" option and also check the "Application server" checkbox, the extract works correctly (extraction to the defualt SAP path and filename=infospoke name). If i configure the InfoSpoke to download to the local workstation, the InfoSpoke also works correctly. It's only when i configure it to download to the application server and use the "Logical filename" option, that i encounter a failed extract.
    Here are the messages is the Open Hub Monitor:
    (red icon) Request No.147515
    0 Data Records
    Runtime 1 sec.
    (red icon)Run No. 1
    0 Data Records
    Runtime 1 sec.
    Messages for Run
    Extraction is running RSBO 305
    Could not open file on application server RSBO 214
    Request 147515 was terminated before extraction RSBO 326
    Request 1475151: Error occured RSBO 322
    If i clink on the error message, no messages nor clues are displayed. Note, this is a new InfoSpoke that is currently in the dev system.
    Please help.

  • Oracle application server fails with jdk1.6

    I have installed oracle application server 10.1.3.3, i want to use jdk1.6.0_xx. i configured in this following way
    Renamed the current JDK directory used by the Application Server installation ( in our case renamed jdk under this location “/product/10.1.3.1/OracleAS_1” to jdk.orig using mv jdk jdk.orig)
    Then went to this location /product/10.1.3.1/OracleAS_1 and execute “ln -s /usr/jdk/jdk1.6.0_13 jdk”
    check java version from this location /product/10.1.3.1/OracleAS_1/jdk/bin use ./java –version
    When i start i am getting this following error in the log file.
    Unrecognized VM option 'AppendRatio=3'
    Could not create the Java virtual machine.

    To get it starting, remove the AppendRatio.
    --olaf                                                                                                                                                                                                           

  • Configuring Forms Builder 10g to run (Ctrl-R) against application server

    I would like to run forms from my working directory against our development application server and config, rather than having a local OC4J running. I have configured this by setting the application server URL runtime preference to "http://<server>.<domain>:80/forms/frmservlet?config=dev". This works fine.
    However, when I run the Form, I get "FRM-40010: Cannot read form H:\Neil\TAF00180.fmx". This is because we open our FMBs from a locally mapped drive (i.e. I opened the FMB from H:\Neil\TAF00180.fmb). When run against the application server it seems Forms Builder trys to run an executable with the same path as the FMB - H:\Neil\TAF00180.fmx, but the application server has no knowledge of a mapped H-drive.
    The only solution I can think of is to have an H-drive mapped on the application server to the same location as our locally mapped network drive.
    This doesn't seem like the correct solution to me. How should we configure Oracle Forms 10g and the application server to allow us to run our own working versions against the applications server and config?

    Slava Natapov wrote:
    I guess Neil concern is that OC4J and Forms Server are using own formsweb.cfg and .env files
    And settings can be different.
    For example what if local formsweb.cfg configured to run Jinitiator, but server formsweb.cfg configured for JPI, or they configured with different lookandfeel parameter, or local and server default.env use different NLS_DATE_FORMAT?Hi Slava, Hi Neil
    I think this is more related to "discipline" for the developers....
    @ Neil : How many developers do you have in your team ?
    Are developers allowed to "customize" their formsweb.cfg and .env files ?
    or more customized basejinit.htm, registry.dat, additional jar files ... etc
    or more using different oracle_home for their installation of Developer Suite.
    @ Slava : Using local formsweb.cfg and .env files might not be a problem if every developer machine is installed the same way (i.e. the same oracle_home).
    Also, I don't think that using workingDirectory to network shared connection for each developer is a solution
    [dev1]
    workingDirectory= H:/dev1
    [dev2]
    workingDirectory= H:/dev2
    And at least this is requiring customized *.env files ! as the forms_path should be set for runtime in it for each developer.
    The registry entry is only for the builder to find the path to mmb and pll files for example, and compile well, but the runtime is using *.env files.
    And what about developing in windows and deploy it to linux ?
    I recently managed a project with junior and undisciplined developers. The boss had the same concern about each network drive per developer.
    My concern was how to eliminate all subjective considerations..
    And my answer was "Subversion" no mess with local or network version with the "copy of the copy of the copy of the fmb files".
    So all forms_path were set to C:\myApp\forms etc and each developer made a checkout and commit versions twice a day.
    And the Application Server was also "checked out" to have the latest revision and then ran it into a pre-version for production.
    If I had to make some important changes in the *.olb file or the *.pll files then I made a commit for all developers and then re-compile all *.fmb and re-commit and checkout again.
    I really don't matter if the developer used jinitiator or jpi but the right working copy.
    And standalone OC4J was enough to make basics tests for each developer.
    More tests were made by project managers at the application server level and then adjustments (if required) where sent to developers.
    Hope this helps.
    Regards,
    Jean-Yves

  • How to create sap directories in application server by coding.

    Hi Experts,
    Please tell me how to create a sap directory via coding in application server.
    Please tell me step by step n send the code also.I have tried alot using FM  'SXPG_COMMAND_EXECUTE' but i dont know how to use it n wht are d parameters i need to pass.
    Also, i found that we need to create a external command in SM69 to pass in this FM...i dont know how to create this.
    Please help me out.

    Hi friend,
    1. Goto to Transaction SM69.
    2. Click on F5.
    3. Click on F6.
    4. Enter a name in Command Name box          ex: z_com
    5. Enter a os command in Operating system command box.     ex: mkdir (creating a directory)
    6. Give location in application server in Parameters for operating system command box   ex: /C dir
    7. Click Save.
    Goto SE 38 and develop a report using FM 'SXPG_COMMAND_EXECUTE' .
    Ex:
    REPORT  zawi_demodownload                       .
    data: g_out like BTCXPM occurs 0,
            z_com type SXPGCOLIST-NAME  value 'mkdir'.
    CALL FUNCTION 'SXPG_COMMAND_EXECUTE'
      EXPORTING
        commandname                         = z_com
      TABLES
        exec_protocol                       = g_out
      EXCEPTIONS
       NO_PERMISSION                       = 1
       COMMAND_NOT_FOUND                   = 2
       PARAMETERS_TOO_LONG                 = 3
       SECURITY_RISK                       = 4
       WRONG_CHECK_CALL_INTERFACE          = 5
       PROGRAM_START_ERROR                 = 6
       PROGRAM_TERMINATION_ERROR           = 7
       X_ERROR                             = 8
       PARAMETER_EXPECTED                  = 9
       TOO_MANY_PARAMETERS                 = 10
       ILLEGAL_COMMAND                     = 11
       WRONG_ASYNCHRONOUS_PARAMETERS       = 12
       CANT_ENQ_TBTCO_ENTRY                = 13
       JOBCOUNT_GENERATION_ERROR           = 14
       OTHERS                              = 15.
    IF sy-subrc = 0.
    ENDIF.
    Thanks.......

  • Oracle9i Application Server Release 2 version

    Hi i have Oracle9i Application Server Release 2 on IBM-AIX
    I found this:
    http://www.oracle.com/technology/documentation/ias.html
    How i can check what is my exact version?

    ansver is here
    http://rnyb2.blogspot.com/2007/06/checking-oracle-application-server.html
    Version of Oracle application server

  • Installing Oracle Application Server 10.2 for Oracle Database Lite

    Can anybody please tell me how to install oracle application server 10.2 for oracle database lite (i use oracle database lite for my final project). I use wi-fi connection to synchronize between pda and my laptop as server. Should i install oracle internet directory before installing oracle application server? I have difficulties in installing application server, what are the options should i take in every page of installation? Thanks before.

    Install with the base, do not select any other options. Only choose webcache if you require the use of a software load balancer.

  • [XI 3.1] Deployment problems to Oracle Application Server

    Hello everybody.
    I'm new on BO products, and i have problems with installation on Oracle Application Server 10.1.3
    BuildVersion=12.1.0.882.BOE_Mira_RTM
    I have success installed OAS 10.1.3 (with patch 10.1.3.3.0), and when i'm installing BO following documentation, after installation no any BO applications in OAS found. This is first.
    Then i attempt install BO applications (CmcApp, AdminTools, etc...) manualy... I have success installation of CmcApp, but when try it to run, i get error ([logon_error_attach|http://www.sendspace.com/file/u8gyoj]), page with logo BO, but logon form (logon.faces) could't be found... i think *.faces on OAS does not work/support, it must be something like *.jsp, *.jspx, but not *.faces, or i must configure OAS in special way.
    Any suggestions?
    Thanks, Evgeny.
    Spasibo)
    p.s. With Tomcat which comes with BO all works fine.
    from documentation
    To use a Java web application server, select Java Web Application
    Server and choose one of the following options:
    Automatically deploy to a pre-installed Web Application Server.
    This will prompt you to enter the configuration and authentication
    information on the next screen.
    Admin is Secure?: Select this option to use Secure Sockets Layer (SSL) encryption for authentication.
    Note:
    If Admin is Secure? is not selected, you will still have to specify the username and password to access the server.
    u2022 Port: Administration port of the application server (for example u201C6003u201D). This should be the request port of the <notification-server> element in the opmn.xml file.
    u2022 Username: User with administration rights to the application server.
    u2022 Password: Password for account with administration rights to the application server.
    u2022 Server Instance: Name of the Oracle Application Server application server instance (for example u201Chomeu201D).
    u2022 Server Name: Name of the target application server (for example, u201Cmyserver.domain.comu201D).
    u2022 Group Id: Name of the server group to which the target application belongs (for example "Default_group").
    u2022 Application Server Installation Directory: The directory where the web application server is installed
    (for example C:\product\10.1.3\OracleAS_1).

    Thanks, guys for reply.
    To Denis Konovalov: Привет! Есть один срочный вопрос, не мог-ли бы ты мне на него ответить. если есть возможность, напиши, пожалуйста, на evgeny (точка) shekalev (собака) гмэйл.ком (защита стоит - не разрешают общаться ) - p.s. куда приятней общаться на родном) p.p.s. обещаю, сильно мучать не буду ))

  • Error installing Oracle Application Server OCA on SuSE 11.1

    Hi,
    I am installing OCA on a Linux SuSE 11.1.
    The Configuration assisent::
    Oracle Application Certificate Authority configuration assistant Failed.
    I Get following information from Oracle installer:
    Output generated from configuration assistant "Oracle Application Server Certificate Authority Configuration Assistant":
    /home/oracle/OraHome/oca/perl/bin/perl: error while loading shared libraries: libnsl.so.1: cannot open shared object file: No such file or directory
    Configuration assistant "Oracle Application Server Certificate Authority Configuration Assistant" failed
    Is there anyone who has a solution for this Error?
    Best Regards
    Tommy

    Try to comment out the LD_ASSUME_KERNEL entry in file $ORACLE_HOME/oca/bin/cminst.
    The entry was put there for bug 4527581 - OCA fails on RH4.0, but will generate error on some more recent Linux distributions.

Maybe you are looking for

  • Recording sound on my built in webcam doesnt work

    I recently just got my hardrive upated and then i had to reinstall my camera assistant software. The first time i installed it the when i recording something it would have no sound. Then i uninstalled it and installed it a second time, now when i rec

  • Help needed ASAP!  Ext. DVD-RW Drive Question

    I need help...I have a Mac Mini purchased in 2005 with just a CD-R (I didn't buy the SuperDrive model). I am wanting to connect a firewire DVD-RW drive to burn a slideshow created in iPhoto. However, I do not have iDVD on the machine, and when I try

  • Standby Database

    Hi all, Its ciirctical We have prodution database in 10.2.0.1 on sun solaris and its standby with same configuration on remote site. Both the database are operating in maximum avaialbilty mode: select protection_mode,protection_level name ,db_unique_

  • Popup message to all logged in users

    Good afternoon, Is there a way of sending a popup message to anyone logged into an APEX Application - such as: "System is going down for emergency reboot of server. Please log out.", or similar type of message. I understand that the potential exists

  • Translate Application- browser application based on the language defined

    Dear All Expert, My oracle apex application is develop in oracle 11g XE edition, apex application primary language is in english. And i would like to switch my application to chinese language based on the language defined on my oracle database table.