F4 Help for Logical file

Hi All,
i've declared a parameter where end-user can specify the logical file name. can anyone provide the code for F4 help for logical file name.
Regards
Faisal

Declare this :-->
PARAMETERS: p_apsvr  LIKE rlgrap-filename OBLIGATORY.
AT selection Screen
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_apsvr.
  PERFORM get_apsvr_path.
FORM get_apsvr_path .
  CALL FUNCTION '/SAPDMC/LSM_F4_SERVER_FILE'
    EXPORTING
      directory        = p_apsvr
      filemask         = '*'
    IMPORTING
      serverfile       = p_apsvr
    EXCEPTIONS
      canceled_by_user = 1
      OTHERS           = 2.
  IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE 'S' NUMBER sy-msgno
              WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.
ENDFORM.                    " get_apsvr_path

Similar Messages

  • Large file handling tips Help for illustrator file larger than 3 gb

    Can anyone provide advice for large file handling tips.  Help for illustrator file larger than 3 gb ie how often, when, and should I clear the clipboard? are here other tips?
    Thanks,
    Gavin

    My key tip is to EXPECT corruption. Keep every save separately so you can go back before damage (which might not be visible). Don't just keep a single old file or rely on daily backups.

  • Function module for logical file path and name

    Hello all,
    I am wondering is there any function module available to translate a logical file path to a physical file path and a logical file name to a physical file name? Thanks a lot!
    Regards,
    Anyi

    Please check the FM FILE_NAME_GET.
          CALL FUNCTION <b>'FILE_GET_NAME'</b>
             EXPORTING
               logical_filename = 'ZDELCHKREP'
               parameter_1 = it_cntry-cntry
             IMPORTING
               file_name        = l_file
             EXCEPTIONS
               file_not_found   = 08.
        CALL FUNCTION <b>'FILE_GET_NAME_USING_PATH'</b>       EXPORTING
             logical_path = 'ZDELCHKREP'
             file_name = l_file
           IMPORTING
             file_name_with_path = l_file.
    Message was edited by: Anurag Bankley
    Message was edited by: Anurag Bankley

  • Urgent help for linking file

    hi i am a noob in this area..can someone plz help me..
    well i have to do a link where it will open the latest file..
    how do i do tat......................
    String file = "C:/";
    File f = new File(file);
    String [] fileNames = f.list();
    File [] fileObjects= f.listFiles();
    %>
    <UL>
    <%
    for (int i = 0; i < fileObjects.length; i++) {
         if(!fileObjects.isDirectory()){
    %>
    <LI>
    <a href="<%= fileNames[i %">"><%= fileNames[i] %></A>
    (<%= Long.toString(fileObjects.length()) %> bytes long)
    <%
    tis code can loop for all the documents i have in my C drive..but i dont want it to loop .. i want it to search for me the latest file and just open it...
    thank you very much. </a>

    import java.io.File;
    public class LatestFileInDir {
         static long maxFileDate = 0;
         static String maxFilePath = "";
         static void getLatestFilePath(File fd) throws Exception {
            if (fd.isDirectory()) {
                 String[] children = fd.list();
                 for (int i=0; i<children.length; i++) getLatestFilePath(new File(fd, children));
    else {
         if(fd.lastModified() > maxFileDate) {
              maxFileDate = fd.lastModified();
              maxFilePath = fd.getCanonicalPath();
         public static void main(String args[]) throws Exception {
              getLatestFilePath(new File("C:\\TestDir"));
              System.out.println("Latest File : " + maxFilePath);
    }Cheers

  • Podcast Help for xml file!

    Hi!
    I am creating a podcast for my primary school that I work at.....yet I am having difficulties getting the text file to go with it.
    We used epodcast producer to make the mp3 file - but where do i go from here?
    Ultimately we want to list the podcast on itunes, but at the moment - people go to our website www.westonpoint.ik.org and download it manually from there in the documents choice.
    Where do we go from here?
    Cheers
    Chris
      Windows XP  

    http://www.podcast411.com/howto_1.html
    Read this tutorial - including all the comments at the bottom.
    Then let me know if you have any other questions.
    Rob @ podCast411

  • Help for logic

    Hi
    I have one scenerio. I need to create a table wtih ID,creation_dt,password. I have to maintain password history.
    If I first time login and enter a new pwd then it will store in my table. next time he/she change the password then it will also store in my table. upto 5 times. In the mean time If I give new passwords..it has to check with old passwords. if it same then display error message. If sixtime enter with new password then first one (old) password will be erase from the table.
    For this scenerio....What kind of table (normal table / object type / varray/nested) I have to create? how to store the data? how to delete first row when I insert 6th time with new password?
    Please help me in this regard...?
    For example..
    ID create_dt password
    1 01/01/2008 abc
    2 10/10/2010 xyz
    1 12/03/2009 pqr
    3 24/12/2008 abcd
    1 01/10/2010 wxyz
    2 22/12/2011 hijk
    1 19/09/2011 rstu
    2 10/01/2011 abc12
    1 11/12/2011 defg
    4 01/01/2008 klmn
    Now if id 1 enter update the password then his first record(old one) can be erased. 01/01/2008 abc.
    I need to implement this requirement .. Please your help / advises are very important.
    Help me..!!
    Regards
    SA

    can you manage you inserts into the password history table through a procedure?
    /* Formatted on 6/14/2011 4:11:33 PM (QP5 v5.149.1003.31008) */
    CREATE TABLE password_history
       user_id     INTEGER,
       create_dt   DATE,
       password    VARCHAR2 (20),
       CONSTRAINT password_history_uq UNIQUE (user_id, password)
    CREATE OR REPLACE PROCEDURE password_history_mgr (
       p_user_id     password_history.user_id%TYPE,
       v_password    password_history.password%TYPE)
    IS
    BEGIN
       FOR c IN (SELECT user_id,
                        create_dt,
                        password,
                        ROW_NUMBER () OVER (ORDER BY create_dt) rn
                   FROM password_history
                  WHERE user_id = p_user_id)
       LOOP
          IF c.rn > 6
          THEN
             DELETE FROM password_history
                   WHERE     user_id = c.user_id
                         AND create_dt = c.create_dt
                         AND password = c.password;
          END IF;
       END LOOP;
       INSERT INTO password_history
            VALUES (p_user_id, SYSDATE, v_password);
    END;
    exec password_history_mgr(1,'ghi');

  • Help for raw files

    How do I make Canon 5D MarkIII compatable with Lightroom 3 and cs5 (raw files)

    Excuse me, but Camera Raw 6.7 handles Canon 5D Mark III files directly, and it works with Photoshop CS5, so Mylenium's answer is incorrect. 
    You just need to update your Photoshop CS5 installation to include Camera Raw 6.7.  You may be able to do that by simply going through Help - Updates.
    You can check your facts starting here:  http://forums.adobe.com/thread/311515
    Which leads you here:  http://helpx.adobe.com/creative-suite/kb/camera-raw-plug-supported-cameras.html
    Note specifically the "What version of Camera Raw started to support my camera?" section, which states:
    -Noel

  • PLEASE HELP FOR POLICY FILE !

    Hello All,
    i write that code
    try {
    System.setSecurityManager(new RMISecurityManager());
         java.util.Properties prop = System.getProperties();
         prop.setProperty("java.security.policy","D:\\Borland\\AppServer\\var\\servers\\sas2\\wars\\tomcat3\\webcontainer_examples\\WEB-INF\\classes\\pol.policy");
    AddServerImpl addServerImpl = new AddServerImpl();
         Registry registry = LocateRegistry.createRegistry(1099);
         LocateRegistry.getRegistry().rebind("AddServer",addServerImpl);
    catch(Exception e) {
    out.println("Exception: " + e);
    After that i got that exception
    Exception: java.security.AccessControlException: access denied (java.util.PropertyPermission java.security.policy write)
    please any body tell me how i solve it ?
    i m thanksfull.
    Arif.

    I tried adding these lines to my code to set the policy inside the program:
    System.setSecurityManager(new RMISecurityManager());
    java.util.Properties prop = System.getProperties();
    prop.setProperty
    ("java.security.policy","C:\\Pawel\\School\\year4\\rmi\\policy.txt");
    This is the error that i get..
    Exception in thread "main" java.security.AccessControlException: access
    denied (
    java.util.PropertyPermission * read,write)
    at java.security.AccessControlContext.checkPermission(AccessControlConte
    xt.java:270)
    at java.security.AccessController.checkPermission(AccessController.java:
    401)
    at java.lang.SecurityManager.checkPermission(SecurityManager.java:542)
    at java.lang.SecurityManager.checkPropertiesAccess(SecurityManager.java:
    1259)
    at java.lang.System.getProperties(System.java:500)
    at FileServer.main(FileServer.java:10)
    My problem is that i have a GUI running thus i don't know how to start my FileSever classs with the java -Djava.security.policy=policy.txt FileServer
    ive tested the gui client part .. i can start the file server using the previous command line then connect to it thru the gui but as soon as i activate the fileserver thru the gui it does not work..
    should i have my gui just run a .bat file isntead of making a seporate thread for the fileserver?
    is there a way of doing that..
    or is there a way of setting the policy from the code?
    thanks
    pawel

  • Need Help for Jar Files Operations!

    Hi,
    I am trying to extract files from jar file using the java code. Does any one knows how can one do this using java code.
    Or
    is there any facility that I can use the unjar command inside the java code to extract it. I wonder about this!
    Or
    does java povide Java APIs provides facility for this. I have gone thourgh java.util.jar package but am not to get how can this be used for the above purpose?
    Thanks.
    Huzefa

    The following will display each file in the zip/jar file to the screen.
    ZipInputStream zin = new ZipInputStream( new FileInputStream( "z:\\myzip.zip" ) );
    ZipEntry entry;
    while( (entry = zin.getNextEntry() ) != null ) {
         System.out.println( "Entry: " + entry.toString() );
         byte[] buf = new byte[ (int)entry.getSize() ];
         zin.read( buf, 0, (int)entry.getSize() );
         System.out.write( buf, 0, (int)entry.getSize() );
    Jar* extends Zip*.

  • Pacifist help for reinstalling files

    Hey guys, newbie question here!
    I'm trying to use Pacifist as described here: http://discussions.apple.com/thread.jspa?threadID=1280947&tstart=75
    but I have no clue how to do this to reinstall those quartz files. I've downloaded Pacifist, but I'm not sure what package to open and how to reinstall etc.
    This seems to have resolved some people's ichat video problems as it seems I've tried all the other tricks - QT streaming, port 443, bandwidth 500, Firewall to allow specific ichat etc.
    The user I'm trying to chat with is running Tiger. We did connect successfully in video BEFORE I upgraded to 10.5.1 and before I installed Parallels.
    Thanks for any advice.

    Click here for instructions on using Pacifist.
    (27591)

  • Need urgent help for (Message file sp1 lang .msb not found)

    sir
    c:\oracle9i this is my database folder name
    c:\oraform this is my form folder name
    which one my oracle_home name
    sir i test this command
    c:\ set ORACLE_HOME=c:\ORACLE9I
    c:\ set ORACLE_SID=AAMIR
    c:\ sqlplus / as sysdba
    AND RUN SQL PLUS THEN SYSTEM GIVE ME THIS ERROR
    incorrect environment variable plus_dflt program execution error
    please give me idea how i run my system
    thank

    Duplicate post:
    ''Urgent'' incorrect environment variable plus_dflt program execution erro

  • Search help for files

    Hello, is there any search help for searching files in local pc?
    I need it for a dynpro.
    Any help?
    Thanks!

    Hi ,
    Try this way...
    PROCESS ON VALUE-REQUEST.
    FIELD <DYNPRO-FIELDNAME>  MODULE F4_filename.
    MODULE F4_filename INPUT.
    * Drop down to retrieve File Path
      DATA: w_lcnt      TYPE i,
            t_lfilename TYPE filetable,
            w_lfilename LIKE LINE OF t_lfilename.
      CALL METHOD cl_gui_frontend_services=>file_open_dialog
        EXPORTING
          window_title            = 'Find File Path'
        CHANGING
          file_table              = t_lfilename
          rc                      = w_lcnt
        EXCEPTIONS
          file_open_dialog_failed = 1
          cntl_error              = 2
          error_no_gui            = 3
          not_supported_by_gui    = 4
          OTHERS                  = 5.
      IF sy-subrc <> 0.
      ENDIF.
      READ TABLE t_lfilename INTO w_lfilename INDEX 1.
      IF sy-subrc NE 0.
        CLEAR w_lfilename.
      ENDIF.
      <DYNPRO-FIELDNAME> = w_lfilename-filename.
    ENDMODULE.
    regards,
    Prabhudas

  • Information about file Id, Logical file name and Physical file name

    Hi All,
    I am testing one program. Selection screen has 3 parameters, File Id, Logical File Name and Physical file name. In Physical File name, i am giving complete file name with path. But it is giving error. Please tell me, what is File id and what all information i need to enter for logical file name and physical file name.
    Thanks
    Puneet Aggarwal

    hi,
    try using this for filename.
    parameters : p_file like rlgrap-filename.
    Thanks,
    Gaurav

  • Logical file name transport

    Hi Friends,
    I have created logical path and logical file name using FILE Transaction code, the problem was logical Path was saved in transport request and logical file name not saved in Transport request, Could you please help me logical file name save are not in the transport request.
    Thanks in advance,
    Jayachandran.A

    Run transaction FILE, in the menu goto "Table view", "transport", select or create a transport request. In node "logical file name definition, cross client", select your file names and in the menu bar click on "include in request"
    Regards,
    Raymond

  • Logical file paths invisible

    Hello All,
    Can any 1 share their views on why excialty Logical file paths & Logical file names are used.
    From last 2 days we are facing an issue on our PRD system.
    In our case Logical file paths & Logical file names are used for interfacing external Application programs.
    The files are processed & sent either Inbound or Outbound.
    Apparently, The Logical file paths(2 of them) which was visible earlier is now invisible. The reason for this is unknown. But the Interface functions still work well.
    Is there a reason why its invisible suddenly? Can it be made visible again or do we need to create new ones?
    Tx-code FILE  is used for "Logical file path definition"
    Please suggest,
    Regards,
    Ravi

    Hi,
    >Can any 1 share their views on why excactly Logical file paths & Logical file names are used.
    Logical paths and files are very useful for 2 reasons.
    You can write abap programs independant from the OS, you can even have different OS in the same system. For example the CI server onh Unix and the app servers on Windows.
    On windows, it is also very useful to have paths independant of the environment (DEV, QAS, PRD) because you can use variables.
    Example you can use this kind of syntax :
    <P=SAPMSHOST>\SAP_IN\<SYSID>_<CLIENT>\DIR1\DIR2\<FILENAME>
    For the "invisible paths", I have absolutely no idea because all my logical paths have never disapeared until someone deleted them.
    Regards,
    Olivier

Maybe you are looking for

  • View salary details in a single screen in Simulation

    Hi All, InPayroll Simulation is there any way to view the salry details in a sigle screen , insted of going to the drop down and view SD

  • I upgraded to MFF 4.0.1 and now the browser will not ope, Taskmanager says that it is running.

    I upgraded and to newest version and computer froze on checking add-ons and plug-ins. I restarted compter and could not open Mozilla Firefox. So. I removed MFF and went to you website and downloaded latest version. It put an icon on desktop and put M

  • IPod touch reports no available memory after only 160 songs

    I upgraded to version 2.0 (the backup feature failed) and starting moving songs from my library to my 8GB touch. After only 160 songs were copied over I got a message saying the iPod is out of available space, and after checking the unit itself it sa

  • Jmstudio failed

    Hi! I'm using Debian etch with JMF 2.1.1e. I've solved some installation problems with AWT, but now I can't execute jmstudio to view my captured device (device has been found with jmfinit).It only says "Aborted" and stops execution. My Environment va

  • ECG Lead I configuration

    I would like to measure the ECG LEAD I configuration. I have the following hardware ( recommended by NI engineers) SCXI 1125 ( it only takes differential inputs since the signals are floating). SCXI 1305 - BNC conector inputs. DAQ PCI 6052E Labview 7