How to set Logical path?

Hi,
Please reply.
Thanks in advance,

hi,
at selection-screen on value-request for f_app.
perform get_fname_app.
form get_fname_app.
data: c_fnh_mask type dxfields-filemask value '.',
search_dir type dxfields-longpath value '/sapglobal/users',
file_path like dxfields-longpath.
call function 'F4_DXFILENAME_TOPRECURSION'
exporting
i_location_flag = 'A'
i_server = ' '
i_path = search_dir
filemask = c_fnh_mask
fileoperation = 'R'
importing
o_path = file_path
exceptions
rfc_error = 1
others = 2
if sy-subrc eq 0.
f_app = file_path.
endif.
endform.
regards,
deepthi reddy

Similar Messages

  • How to set the PATH in Terminal?

    As a newbie to Bash and the Terminal, in connection with installing a new version of Ruby and various add-ons, I have been messing around with changing the PATH via various methods I've found on the internet, and trying to add a new directory to my PATH. Unfortunately, I cannot figure out how to set the PATH correctly. Here is what I understand so far:
    1. Bash first looks to ".bash_profile" in the home directory for PATH settings.
    2. If none, Bash then looks to ".bash_login" for PATH settings.
    3. If none, Bash then looks to ".profile".
    4. If none, Bash then looks to a system file in "/etc/profile" for default PATH settings.
    5. For a new shell after login, Bash looks for a ".bashrc" file.
    I cannot find any of the above files (I have Finder set to show hidden files already). Somehow, following some instructions from the internet without really knowing what I was doing over the past week I have set my PATH as follows:
    /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/Users/*****/src:/usr/X11/bin
    but I cannot find the file that is setting this PATH. I have tried creating a new ".bash_profile" shell file and putting it in various places such as "/bin" and "/usr/bin" but the file is not being read.
    * As a temporary workaround I tried using the command "source .bash_profile" upon login to set the PATH using the .bash_profile file that I created, but it does not work.
    * I am able to temporarily alter the path using the command "PATH=/usr/local/bin:$PATH" but this only lasts for an active shell; when I close out and reopen a new shell, it reverts to the default.
    So my questions are:
    Is it correct that there is a "/etc/profile" somewhere that is setting the default PATH? If so where is it? Should I alter it, or create a new ".bash_profile" somewhere to set the PATH? If not, where is my PATH being set? If I should create a new ".bash_profile", what exactly should go in it?
    Thanks in advance for any assistance.

    ... I created a new ".bash_profile" file directly under my home directory and it worked like a charm. Below is the content of the file:
    "PATH=/usr/local/bin:/bin/:/sbin/:/usr/bin/:/usr/sbin/:/Users/******/Ruby:/Users/*******/src:/Users/******/Java Programs/"
    What are the "..."'s? Is that just you, or is the contents of the file actually inside of double quotes?
    is there an 'export PATH' also in the file? As in
    PATH=/usr/local/bin:/bin/:/sbin/:/usr/bin/:/usr/sbin/:/Users/******/Ruby:/Users/*******/src:/Users/******/Java Programs/
    export PATH
    And did you either restart your Terminal session so your .bash_profile was read, or issue a 'source .bash_profile' command to execute the .bash_profile after your change?
    The only remaining problem is that from the home directory, I'm unable to directly run programs in the above-designated subdirectories (without first navigating to the subdirectory containing the file. Is there something wrong with the syntax or order of the directories I put in the path?
    For example: there is a file called "newprogram.rb" in the "Ruby" directory listed above. I should be able to execute it from the home directory using "ruby newprogram.rb" but it does not work. The same command works fine from within the "Ruby" directory.
    Does the 'ruby' command search PATH to find its scripts?
    Have you read the "man ruby" man page to see if it talks about PATH?
    A common Unix feature is that programs and scripts with the executable bit set, and are located in a PATH directory, will be run if you just type their names.
    For example, if the first line of newprogram.rb script starts with
    #!/usr/bin/ruby
    and if the script is executable
    chmod +x newprogram.rb
    And if it is in a directory in PATH, then just typing
    newprogram.rb
    should run your perl script using /usr/bin/ruby. If you want to use a different version of Ruby, then change the #! line so it point to your version of Ruby. Or if your version of Ruby is found earlier in PATH then the /usr/bin/ruby, you can use
    #!/usr/bin/env ruby
    as your script's first line which will search PATH for 'ruby' and use the first one it finds.
    Message was edited by: BobHarris

  • How to set the path variable on Windows ME?

    I want to get a friend of mine to start using java the only problem is that we both dont know how to set the path variable in Windows ME. I cant seem to find any instructions on it for ME. So if someone could please tell me how or give me a llnk to directions for Windows ME. Thanks.

    Refer to the Installation Instructions for the package that you installed - I believe #5 if the instructions has the information. A link to the instructions is at the page you installed from.

  • How to Configure logical path and how to retrieve physical path for an IDOC

    Hi ,
    I want to configure logical path for an IDOC,
    and then I need to retrieve Physical path from this logical path
    using a FM (eg. FILE_GET_NAME).
    How to configure the logical path for an idoc ?
    Regards ,
    Harshit Rungta

    Using Logical Files in ABAP Programs
    To create a physical file name from a logical file name in your ABAP programs, use the function module FILE_GET_NAME. To insert the function module call in your program, choose Edit ® Insert statement from the ABAP Editor screen. A dialog box appears. Select Call Function and enter FILE_GET_NAME. The parameters of this function module are listed below.
    Import parameters
    Parameters
    Function
    CLIENT
    The maintenance tables for the logical files and paths are client-dependent. Therefore, the desired client can be imported. The current client is stored in the system field SY-MANDT.
    LOGICAL_FILENAME
    Enter the logical file name in upper case letters that you want to convert.
    OPERATING_SYSTEM
    You can import any operating system that is contained in the list in Transaction SF04 (see Assigning Operating Systems to Syntax Groups). The physical file name will be created according to the syntax group to which the operating system is linked. The default parameter is the value of the system field
    SY-OPSYS.
    PARAMETER_1
    PARAMETER_2
    If you specify these import parameters, the reserved words  in the physical path names will be replaced by the imported values.
    USE_PRESENTATION
    _SERVER
    With this flag you can decide whether to import the operating system of the presentation server instead of the operating system imported by the parameter OPERATING_SYSTEM.
    WITH_FILE_EXTENSION
    If you set this flag unequal to SPACE, the file format defined for the logical file name is appended to the physical file name.
    Export Parameters
    Parameters
    Function
    EMERGENCY_FLAG
    If this parameter is unequal to SPACE, no physical name is defined in the logical path. An emergency physical name was created from table FILENAME and profile parameter DIR_GLOBAL.
    FILE_FORMAT
    This parameter is the file format defined for the logical file name. You can use this parameter, for example, to decide in which mode the file should be opened.
    FILE_NAME
    This parameter is the physical file name that you can use with the ABAP statements for working with files.
    Exception Parameters
    Parameters
    Function
    FILE_NOT_FOUND
    This exception is raised if the logical file is not defined.
    OTHERS
    This exception is raised if other errors occur.
    Suppose the logical file MYTEMP and the logical path TMP_SUB are defined as in the preceding topics and we have the following program:
    DATA: FLAG,
          FORMAT(3),
          FNAME(60).
    WRITE SY-OPSYS.
    CALL FUNCTION 'FILE_GET_NAME'
         EXPORTING
              LOGICAL_FILENAME        = 'MYTEMP'
              OPERATING_SYSTEM        = SY-OPSYS
              PARAMETER_1             = '01'
         IMPORTING
              EMERGENCY_FLAG          = FLAG
              FILE_FORMAT             = FORMAT
              FILE_NAME               = FNAME
         EXCEPTIONS
              FILE_NOT_FOUND          = 1
              OTHERS                  = 2.
    IF SY-SUBRC = 0.
      WRITE: /  'Flag      :', FLAG,
             / 'Format    :', FORMAT,
             / 'Phys. Name:', FNAME.
    ENDIF.
    The output appears as follows:
    HP-UX
    FLAG :
    FORMAT : BIN
    Phys. Name: /tmp/TEST01
    In this example, the R/3 System is running under the operating system HP-UX, which is member of the syntax group UNIX. The logical file name MYTEMP with the logical path TMP_SUB is converted into a physical file name /tmp/TEST01 as defined for the syntax group UNIX. The field FNAME can be used in the further flow of the program to work with file TEST01 in directory /tmp.
    Suppose we have a logical file name EMPTY with the physical file name TEST, connected to a logical path that has no specification of a physical path. If you replace the EXPORTING parameter 'MYTEMP' with 'EMPTY' in the above example, the output appears as follows:
    HP-UX
    FLAG : X
    FORMAT :
    Phys. Name: /usr/sap/S11/SYS/global/TEST
    The system created an emergency file name, whose path depends on the installation of the current R/3 System.

  • How to set class path for mysql

    hai, I have been trying to make a java program read from mysql database. but i don't know how to set the class path for mysql-connector-java-5_1_.0.6-bin. i set the class path in system variable as C:\Program Files\Java\jdk1.5.0_08\jre\lib\ext\mysql-connector-java-5_1_.0.6-bin.
    in the command prompt, i compile C:\javac abc.java and run java abc.
    when run it come out error java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
    i am using Window xp. can anybody help me??? TQ.

    hai, I have been trying to make a java program read
    from mysql database. but i don't know how to set the
    class path for mysql-connector-java-5_1_.0.6-bin. i
    set the class path in system variable as C:\Program
    Files\Java\jdk1.5.0_08\jre\lib\ext\mysql-connector-jav
    a-5_1_.0.6-bin.
    in the command prompt, i compile C:\javac abc.java
    and run java abc.
    when run it come out error
    java.lang.ClassNotFoundException:
    com.mysql.jdbc.Driver
    i am using Window xp. can anybody help me??? TQ.Right click on my computer icon,
    Goto properties->advanced->environment variables.
    Look for 'classpath' under system variable.
    Select it and click edit.
    put ';' and path of the mysql connector jar at the end
    suppose if u have jar file under d:/driver/mysqlconnector.jar
    thn put this value in variable value text box
    ;d:/driver/mysqlconnector.jar
    or simply put ur driver jar file in jre/lib/ext folder
    D:\j2sdk1.4.2_03\jre\lib\ext
    [Servlet tutorial|http://www.jsptube.com]

  • How to set dynamic path in forwards action

    Hi All,
    i have a requirement to set my path dynamically in forward action
    suppose i have
    @Jpf.Action(forwards = { @Jpf.Forward(name = "success1", path =  "/output1.jsp") })
         public Forward testIpc1() {
              Forward forward = new Forward("success1");
              System.out.println("IN PageflowportletController :: testIpc1() method called");
              return forward;
    Here the path="/output1.jsp" is hardcoded.is there any way to set the path dynamically in forwards action
    @Jpf.Action(forwards = { @Jpf.Forward(name = "success1", path =  dynamic_path) })
    how do i get the dynamic path set in my forwards action.
    Suggestions provided would be really helpful
    Thanks,
    Deepak

    http://java.sun.com/j2se/1.5.0/docs/tooldocs/windows/classpath.html

  • How to set local path for load library

    Hi,
    How do i set local path for native dll as i dont want to set the path in the environment variable.
    can i do like this
    System.loadLibrary("c:\abc");
    Thanks

    I believe that System.load() does exactly the same thing, but accepts fully qualified filenames. So give that a try.
    Failing that.... maybe you can add -Djava.library.path=
    to your command line to explicitely override the path set ?
    regards,
    Owen

  • How to set logical filename..

    Hi i have to set the logical filename in the output screen in by which my report should pick the files from the specified location
    can anybody tell how should i set the logical file name...
    thanks.

    Hi,
    Check this FM,
    CALL FUNCTION 'FILE_GET_NAME'
      EXPORTING
    *   CLIENT                        = SY-MANDT
        logical_filename              =
    *   OPERATING_SYSTEM              = SY-OPSYS
    *   PARAMETER_1                   = ' '
    *   PARAMETER_2                   = ' '
    *   PARAMETER_3                   = ' '
    *   USE_PRESENTATION_SERVER       = ' '
    *   WITH_FILE_EXTENSION           = ' '
    *   USE_BUFFER                    = ' '
    *   ELEMINATE_BLANKS              = 'X'
    * IMPORTING
    *   EMERGENCY_FLAG                =
    *   FILE_FORMAT                   =
    *   FILE_NAME                     =
    * EXCEPTIONS
    *   FILE_NOT_FOUND                = 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.
    Regards,
    Vik

  • How to set (class)paths for a Managed server?

    How does one configure the PATH and CLASSPATH and pass definitions (like "-Djava.library.path=c:\p\bea\wlserver6.1\bin")
    to a remotely-started managed server?
    The section in the WLS 6.1 AdminGuide.pdf that talks about configuring a managed
    server's Remote Start tab says on pages 3-9 to 3-10 that, "If you don't specify
    values for these fields and attempt to start the target server from the Administration
    Console, the Node Manager will attempt to start the target server with the values
    for these attributes that were used when starting the Node Manager. The Node Manager
    will be able to start the Managed Server in that case if you specified the required
    values on the command line when starting the Node Manager."
    So it sounds as if I can get the java.library.path definition and CLASSPATH sent
    to the server via the Node Manager startup command.
    Does that work when using the Node Manager as an NT Service? Here is my Win2K
    command file for setting up the Node Manager as an NT Service. Note that I'm trying
    to tell it where to find the Windows native libraries (wlserver6.1\bin for wlntio.dll)
    and the JDBC drivers (C:\SHADOW\jdbc\... and C:\Orant\jdbc\... ) :
    ========== BEGIN installNMNtService.cmd ================ @echo off
    SETLOCAL
    cd C:\p\bea\wlserver6.1\
    rem *** Set Classpath to load Weblogic Classes
    set CLASSPATH=.;C:\p\bea\wlserver6.1\lib\weblogic_sp.jar;C:\p\bea\wlserver6.1\lib\weblogic.jar;C:\SHADOW\JDBC\scjd12.jar;C:\orant\jdbc\lib\classes111.zip
    rem *** Set Command Line for service to execute
    rem *** %JAVA_HOME%\java will automatically be prepended.
    set CMDLINE=" -ms16m -mx16m -classpath \"%CLASSPATH%\" \"-Dbea.home=C:\p\bea\"
    \"-Djava.security.policy==C:\p\bea\wlserver6.1/lib/weblogic.policy\" \"-Dweblogic.nodemanager.weblogicHome=C:\p\bea\wlserver6.1\"
    \"-Dweblogic.nodemanager.reverseDNSenabled=true\" \"-Djava.library.path=c:\p\bea\wlserver6.1\bin\"
    \"-Dweblogic.nodemanager.listenAddress=111.111.111.123\" \"-Dweblogic.nodemanager.trustedHosts=./config/nodemanager.hosts\"
    weblogic.nodemanager.NodeManager"
    rem *** Install the service
    "C:\p\bea\wlserver6.1\bin\beasvc" -install -svcname:EDANodeManager -javahome:"C:\p\bea\jdk131"
    -execdir:"C:\p\bea\wlserver6.1" -extrapath:"C:\p\bea\wlserver6.1\bin" -cmdline:%CMDLINE%
    ENDLOCAL
    ================= END installNMNtService.cmd ==================
    But when I start a server remotely, it can't find the native libraries and it
    can't find the JDBC libraries in the CLASSPATH. Otherwise, it can serve up HTML
    pages at the correct port number so I know it's running.
    When starting a managed server remotely via the WLS 6.1 console, how do I tell
    the managed server where the native libraries and JDBC libraries are?
    Thanks!

    Hi,
    The memory setting on the WC_Spaces managed servers can be seen as mentioned below.
    ps -eaf | grep Spaces
    Above command shows something like this at the top of the output:
    /a01/app/oraweb/middle/jrrt-3.1.2-1.6.0/bin/java -jrockit -Xms512m -Xmx1024m -Dweblogic.Name=WC_Spaces1 ...
    Regards
    Sreedhar

  • JCO3 How to set trace path or catch trace message

    In old Jco can setTracePath
    http://help.sap.com/javadocs/NW04/current/jc/com/sap/mw/jco/JCO.html#setTracePath(java.lang.String)
    but in JCO 3 how can do that ?
    I found http://help.sap.com/saphelp_nw70ehp1/helpdata/en/f6/daea401675752ae10000000a155106/content.htm
    JCO trace
    name
    JCO*.trc
    location
    directory j2ee/cluster/server* or defined path
    how to switch on and off
    set JVM options for the server via the Config Tool and restart server: -Djco.trace_level=[0-10],-Djco.trace_path=[defined_path]
    any other methods?

    Hey Jacky,
    Please browse the API of class com.sap.conn.jco.JCo. There is a method call setTrace.
    public static void setTrace(int level,  java.lang.String path)
    Turns on the JCo trace. Allowed levels are [0 .. 10]. The common used are:
    0 - nothing
    1 - errors and warnings
    2 - execution path, errors and warnings
    3 - full execution path, errors and warnings
    4 - execution path, info messages, errors and warnings
    6 - full execution path, info messages, errors and warnings
    7 - debug messages, full execution path, info messages, errors and warnings
    8 - verbose debug messages, full execution path, info messages, errors and warnings
    As path value null, stdout, stderr or an existing path are allowed. If path is equals null or stdout or stderr JCo will trace out to the standard output (error) stream. If at least one JCoTraceListener is registered, the trace output will be sent to the listener only. To redirect the JCo trace into a file, the path value has to be set to an existing directory.
    Parameters:
    level - [0 .. 10]
    path - null, stdout, stderr or an existing path

  • How to set configure path info in 6.0 for developing a app

    For example:
    I install weblogic6.0 in c:\,so the path is c:\bea\
    and my working forlder is d:,I develop a new app named 'test'
    The path info is as follow:(root is d:\test\)
    \meta-info\application.xml
    \web\
    ..\web-info\
    \ejb\
    ..\ejb-info\
    So,when I look the document in the bea web site,they tell me how to deploy it
    with archive app a .war file.But that only for deploying.How to run it in developing
    stage?
    Help me,Please!

    Another question regarding the name of the JWS file:
    Found the following on one of WL 10.3 example server's help documentation pages:
    "The wsdlc task generates this JWS implementation file in the directory specified by the destImplDir attribute. The subdirectory hierarchy corresponds either to the packageName attribute or to the targetNamespace URL of the WSDL if the packageName attribute is not specified. The name of the JWS file is ServiceName_PortTypeNameImpl.java, where ServiceName and PortTypeName refer to the value of the name attribute of the appropriate <service> and its inner <port> element, respectively, in the WSDL file. The names of the methods and parameters in the JWS file are the same as the names of the operations and input parmeters in the WSDL file."
    Does this mean that the wsdlc task creates this file, with the name format specified above, by default. beccause, I dont see such a file created for me. What it creates for me is just the service_port_type_nameImpl file.
    Which one is correct?

  • How to set default path for file open in SQL Developer

    Hi,
    I am new to Oracle SQL Developer. Everytime when I open a file, it will default to the install directory. It is hurtingmy hand because I have to click back to the folder where I put my sql statements.
    Is there any way to set the Home or Work button to point to the location I like? or add anther button to point to my folder? I just don't want to click 5 to 10 times to open a file.

    There are a few things. One is that you can set a working directory for any files you run in the SQL Worksheet i.e. @myfile.sql will pick up this directory.
    You can also set a preference for exporting files.
    Also if you use File -> Open, it should remember where you were the last time, so you hunt the first time, then it remembers for the next time. There is a bug for ctrl-O that always goes back to the original directory, but that has been fixed for the next patch release, so ctrl -O will also remember where you were last.
    The differences here are because we are dependent on the IDE from JDeveloper, and so we don't have full control over the Save and Open dialogs. We are aware of this frustration and are planning to change this for a future release.
    Regards
    Sue

  • How to set the path for new version of  jdk 1.5.0

    hi
    i downloaded jdk 1.5.0 from sun website . i gave path like this C:\jdk1.5.0\bin; but showing error internal command doent reconiged.give me some instructions aboth this one with details.

    Read item #5 in the Installation Instructions for the file you downloaded.

  • How to set the PATH Environment variable with multiple homes?

    I have several Oracle homes, and now I cannot get reports to work anymore. These are the things I installed, in this order:
    - Oracle Database 10g
    - Oracle Developer Suite 10g
    - Oracle Discoverer 4
    - Oracle HTMLDB
    Now my PATH environment variable is flooded with paths, but none seem to work when I want to start Reports 10g. I deleted all of the paths from the other homes and still no luck.
    This was my original PATH:
    C:\oracle\product\10.1.0\db_1\jre\1.4.2\bin\client;
    C:\oracle\product\10.1.0\db_1\jre\1.4.2\bin;
    C:\oradev10g\jdk\jre\bin\classic;
    C:\oradev10g\jdk\jre\bin;
    C:\oracle\product\10.1.0\compdb_1\jre\1.4.2\bin;
    C:\oracle\product\10.1.0\compdb_1\bin;
    C:\oracle\product\10.1.0\compdb_1\jre\1.1.8\bin;
    C:\oracle\product\10.1.0\compdb_1\jre\1.4.2\bin\client;
    C:\Disco41Home\bin;C:\oracle\product\10.1.0\db_1\bin;
    C:\oradev10g\jdk\jre\bin\client;C:\oradev10g\jlib;
    C:\oradev10g\bin;
    C:\oradev10g\jre\1.4.1\bin;
    C:\oradev10g\jre\1.1.8\bin;
    C:\PROGRAM FILES\THINKPAD\UTILITIES;
    %SystemRoot%\system32;
    %SystemRoot%;
    %SystemRoot%\System32\Wbem;
    C:\WINDOWS\Downloaded Program Files;
    %SystemDrive%\IBMTOOLS\Python22;
    C:\Program Files\PC-Doctor for Windows\services
    and this is the PATH after I stripped it:
    C:\oradev10g\jdk\jre\bin\classic;
    C:\oradev10g\jdk\jre\bin;
    C:\oradev10g\jdk\jre\bin\client;
    C:\oradev10g\jre\1.1.8\bin;
    C:\oradev10g\jlib;
    C:\oradev10g\bin;
    C:\PROGRAM FILES\THINKPAD\UTILITIES;
    %SystemRoot%\system32;
    %SystemRoot%;%SystemRoot%\System32\Wbem;
    C:\WINDOWS\Downloaded Program Files;
    %SystemDrive%\IBMTOOLS\Python22;
    C:\Program Files\PC-Doctor for Windows\services
    What am I supposed to change to get Reports to work again (i.e. do more than just show the splash screen)?
    Forms and Designer work just fine....

    Never mind I found my solution here:
    Re: Oracle Developer hangs when starting...i'm desperate

  • How to set save path using FileStream?

    Hi everybody, I have a webcam that takes a snapshot in AIR. I understand that the code below is to write/edit a .txt file.
    var file:File = File.desktopDirectory.resolvePath( "Text.txt" );
    so how do I save multiple snapshots .jpg to my local network/C drive?

    Hi guys, I have been doing some trial and error and found the correct code to save the bitmap into my C drive. Thanks for reading this thread.
    var fl:File = File.desktopDirectory.resolvePath("C://grpphoto.jpg");
    -Zainuu

Maybe you are looking for