How to get the file name dialog on the selection screen

Hi All
I have a selection screen in which there is a parameter where I need to enter file name. Instead of typing filename in the parameter I would like to give a path from presentation server ( I am downloading Data to presentation server ).
How to achive this functionality in case of a parameter on the selection screen. I need to have File open Dialog box like Windows here and then it should show the filename and it's path in this parameter after selectiong from the dialog box.
Amol

Hi..,
Use the function module <b>F4_FILENAME</b> or <b>WS_FILENAME_GET</b> in the event
<b>AT SELECTION-SCREEN ON VALUE REQUEST FOR P_FILE.</b>
Parameters p_file type rlgrap-filename.
            AT SELECTION-SCREEN ON VALUE REQUEST EVENT            
at selection-screen on value-request for p_file.
  perform value_request.
*&      Form  value_request
      This subroutine proposes the possible input values             *
There are no interface parameters to be passed to this subroutine.  *
form value_request.
  call function 'WS_FILENAME_GET'
   importing
     filename               = p_file
   exceptions
     inv_winsys             = 1
     no_batch               = 2
     selection_cancel       = 3
     selection_error        = 4
     others                 = 5.
  check sy-subrc eq 0.
endform.              
Reward all helpful answers !!
sai ramesh

Similar Messages

  • How to get target file name and buffer the incoming messages?

    Hi Experts
    I have one scenarion like
    I wanted to find whether is there any file existing in target folder. If it exists I dont want to overwrite it but I have to buffer the incoming messages in some queue or something like that. And when ever the request comes next time I have to send the data buffered in queue first.
    I dont want to add any time stamp for target file to avoide duplication.
    Can we do this using XI. If yes please suggest me how to achive this.
    Regards
    Sowmya

    >
    Sowmya wrote:
    > Hi Experts
    >
    > I have one scenarion like
    > I wanted to find whether is there any file existing in target folder. If it exists I dont want to overwrite it but I have to buffer the incoming messages in some queue or something like that. And when ever the request comes next time I have to send the data buffered in queue first.
    >
    > I dont want to add any time stamp for target file to avoide duplication.
    >
    > Can we do this using XI. If yes please suggest me how to achive this.
    >
    >
    > Regards
    > Sowmya
    there is no standard way to achieve this. I suggest a redesign.
    post the files to a different directory and write a script which will move the file to the required target directory only if it is not present there.

  • How to get Sequence File Name ?

    Hello everybody !!
    I'm using TestStand 3.1 and i would like to get sequence file name. I've tried to use NameOf() function, but without success.
    Of course, I've searched previous posts about the same question, but nothing works.
    Is there someone able to tell me how to get sequence file name ?
    Thanks a lot.
    MrOrange

    MrOrange,
    first of all, the solution i will present only works for saved sequence files.
    you got all information you need within TestStand itself, just browse for RunState.SequenceFile.Path. here you can find the filename. but the path of the file is also included in the string, so this is a part you have to get rid off.
    you can use statements to extract the filename from the path. just search the string for the last occurence of "\\" (searchinreverse!) and then you can retrieve the right() part of the path. beware that right() needs the number of characters you want to extract, not the startindex!!
    hope this helps,
    Norbert B.
    NI Germany
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.

  • File Upload, how to get full file name

    Hi Experts,
    I have to get the complete file path when I use fileupload UI Element. but I am not able to achive this.
    I used a File Upload UI, with filename property mapped to string variable filename and Data mapped to a binary variable filedata.
    I tried to get the file name in below ways
    1. wdContext.nodefile().currentfileelement.getfilename();
    and
    2. through modifiablebinary type also.
    but in both cases I am getting only the file name, but not the complete path.
    Is there any way that I can get the file path.
    If I uplod a file in D drive (example.txt),
    I am getting the file name as example.txt but I want to get it as D://example.txt
    Please help me,
    Regards,
    Srinivas

    Hi
    What Stream are you using for read a file ?
    InputStream inputStream = resource.read(false);
    File  filePath = new File(inputStream.toString());
    wdComponentAPI.getMessageManager().reportWarning(filePath .getAbsolutePath());
    Best Regards
    Satish Kumar

  • When bates numbering a .pdf in XI, how can I change the file name to include the bates number AND its name?  I know under file output, there is an option for either/or.  I want both.  Thank you.

    when bates numbering a .pdf in XI, how can I change the file name to include the bates number and the file name?  I know under "file output: it's either/or.  I need both.  Thanks!

    Long ago I wrote a little demo using the touch command. Check out the following thread:
    http://forums.ni.com/ni/board/message?board.id=170&message.id=25128#M25128
    LabVIEW Champion . Do more with less code and in less time .

  • Error Occurred While Converting the file"name of song" The file name.......

    I get this message when I try to import some CD's to my library.
    A window pops up and says
    Error occurred while converting the file "name of song"
    The file name was invalid or to long.
    Anyone else ever get this message, and how can you import CD's???????

    I have had this exact same problem. I'm not sure how to fix it...

  • How Does The Browser Know The "File Name" field in the "Save As" dialog

    Hi!
    I have a servlet called co.com.SomeStaff who reads a binary file from the server an sends it to the breowser.
    The Browser opens the "Save As" Dialog whith the value "co.com.SomeStaff" in the File name field, but and I need the name "SomeBinariFile.exe" instead.
    How can I change that value?
    Thanks All.

    Use <%
    response.setHeader("Content-Disposition", "attachment; filename=filename.2save");
    %>

  • How do I get PDF files to *automatically* save as the file name provided by the source?

    When I download a PDF file in Firefox, the file name changes from whatever name source used (e.g, important-report.pdf) to a miscellaneous group of characters (e.g., X2ba5zt.pdf). I often want to save the file using the 'source' name. I realize that can so do by changing the file name, but I would like to know if there is a way to set the default so that the source file name is used.

    I am not seeing that behaviour. If I right-click a link to a .pdf file, I get the file saved with the original filename.
    Maybe one of the settings in about:config controls that?
    pdfjs.previousHandler.preferredAction is a setting that has a value of 4 with my setup. I have no idea what that means, and I could not find any explanation anywhere. You could try using different numbers for that value and see if any make any difference. Why has nobody bothered to explain that setting anywhere?

  • How to get a file save dialog box on button click

    Hi All,
    I have  some text  and I want to write this text in to a  file.Then I want to save this file to my local system using a file save dialog box so that I can choose the location where I want to save this file.Please tell me how can I do this in WebDynpro.
    If I cannot get the File save Dialog Box then how can I give the path while creating the new file so that it is created on my local system  as the application is running on server.
    Regards
    Rahul

    Hi Rahul,
    Sometime back I was also facing the same requirment and there are only two solutions to it one is what Armin suggested to use the file download UI element the other one you can get from this link How to write a file on our local machine using Web Dynpro
    Regards
    Sid

  • How to get IDL file name from CORBA IOR string

    hi, is it possible to get IDL file name from the IOR string? how?
    regards

    Hi,
    I don't think so.
    And if it was possible, which interface should be returned if
    the referenced object implements more than one?
    Regards.
    Karl

  • How to get a file name with file description

    Hi guys!
    I'm receiving the error message : Too many file open. So, i want the file name opened by process in /proc/PID/fd.
    Now, how can i do this ?
    Thanks!

    Hi guys!
    I'm receiving the error message : Too many file open.
    So, i want the file name opened by process in
    /proc/PID/fd.
    Now, how can i do this ?The easiest way is to use pfiles(1) on the process. Alternatively, on Solaris 10, look in /proc/PID/path...
    - Bryan
    Bryan Cantrill, Solaris Kernel Development. http://blogs.sun.com/bmc

  • How to get music file name in itunes

    OK I have some music files on pc side. wav files mostly. Some of them have proper id tags, some don't. When I try to import tagged ones to itunes I get only partial info preserved. So either I have to edit tags manually, which is tedious work, either I have to burn to cd and then import. The best is last way, but there is tremendous cd waste involved. Is there easier way to import files? Is there something like virtual cd for mac? I tried using disc utility, but nothing happens. Itunes doesn't recognize files...
    There are verbatim 32x cd-rw too, has anyone any experience with them? Speed is good and would solve waste problem too.
    For burning I use BURN version 1.71u

    Hi Bheem,
    Explain your scenario in detail..
    >>i need to get the file name of file in one of the node in xml content of that file.
    1. Create an node <b>Filename</b> in the target datatype.
    2. Check the Option Filename in the Adapter Specific Message Attributes in the sender file CC.
    3. Use the following UDF and map it to the Filename field in the target message type.
    public String getFileName(Container container)
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
    String ourSourceFileName = conf.get(key);
    return  ourSourceFileName; 
    Regards
    San

  • How to get full file name on MAC?

    Hi,
    In my plug-in, I have to get the full file name of the file opened in illustrator on MAC OS X. The following code works fine:
    SPPlatformFileSpecification theFileSpec;
    AIErr error = sAIDocument->GetDocumentFileSpecification(&theFileSpec);
    theFileSpec.name gives the file name of the open AI File.
    But, if the filename is greater than 31 characters (including extension), the returned filename is turncated to 31 characters in the format: {FIRST_22_Characters}#{5_DIGIT_NO}.ai. for example: if the file name is: 3896420_Sports_Football_Training_Top_II.ai
    The returned fileName is: 3896420_Sports_Footbal#3240A.ai
    Is there any other Illustrator API or a native MAC API to get the actual file name?
    Please Help
    Thanks,
    Hitesh

    Hi,
    hopefully I am steering you in the right direction, but if I recall, SPPlatformFileSpecification is an FSSpec, have you tried FSpMakeFSRef and seeing if the problem persists once converted to an FSRef?
    http://developer.apple.com/technotes/tn2002/tn2078.html
    Cheers,
    Garvan.

  • How do i put the file name right on the photo?

    how do I put the file extension number or name right on my photo for clients to order?

    DonRicklin wrote:
    Or put the file name as Copyright in Metadata and add Watermark (Simple Copyright) on Export!
    A plugin called LR/Transporter could probably automate that. However, I don't think many people will want to do this once all usages of the image are considered!
    So an export plugin called LR/Mogrify (which calls in the utility ImageMagick as an output processor) would be the next suggestion. This should let you put more or less whatever image parameter you want, onto the image as an automated label - also add borders outside or inside the image boundary, place the thumbnail inside a larger square canvas, a few other options. Then that can all be saved as a LR export preset for greater convenience and repeatability in the future.

  • Getting the file name before downloading the data

    Hello,
    i got following to downloading a file from the net,
    is there is a way to find out the file name of the downloading file if the url is eg; www.somewhere.com/?file=33
    OutputStream out = null;
              URLConnection conn = null;
              InputStream  in = null;
              try {
                   URL url = new URL(address);
                   out = new BufferedOutputStream(
                        new FileOutputStream(localFileName));
                   conn = url.openConnection();
                   in = conn.getInputStream();
                   byte[] buffer = new byte[1024];
                   int numRead;
                   long numWritten = 0;
                   while ((numRead = in.read(buffer)) != -1) {
                        out.write(buffer, 0, numRead);
                        numWritten += numRead;
                   }

    Check the response headers. You can use [URLConnection#getHeaderField()|http://java.sun.com/javase/6/docs/api/java/net/URLConnection.html#getHeaderField(java.lang.String)] for this. It may be available in the [content-disposition|http://www.w3.org/Protocols/rfc2616/rfc2616-sec19.html#sec19.5.1] header.

Maybe you are looking for

  • My mac turned off after installing i os x lion

    turned off but still on just that the screen is black, its been 45 min since that had happen to me thank you!

  • LONG Datatypes and Designer6

    I have an Oracle 7.3.4.4.0 database and am using Designer 6.0.3.4.0. I have a number of LONG fields within my database. And it appears that I'm having some troubles with the Web Modules that I'm developing. The PL/SQL code that Designer generates blo

  • Creating single .swf file without border causes control bar jump

    If the goal is creating a single .swf file and the answer is to simply uncheck the border checkbox, there's a small problem. If there is a Captivate control bar -- in my case a full length stretched one -- it will ride up and over the Captivate movie

  • IAC Operation Failed error

    I have seen a few complaints about this problem but no solutions anywhere.  Has Adobe ever weighed in on the topic?  Does anyone know what's going on?  I have at least 3 photos that seem to be forever stuck in edit mode as a result of the problem.  I

  • Client on windows 7 home for Oracle DB 8.1

    Hi all, I am looking for an Client who works on a Windows 7 home 64-bit Sytem to connect with the oracle 8.1 Database. Is there a way to achieve it. Thx