Need a File Parameter with Browse Functionality in ABAP

Hi
I Need a File Parameter with Browse Functionality in ABAP.
Can anyone help me with logic.
Regards,
Sree

Check below code:
PARAMETERS: p_file TYPE localfile.
DATA: l_path TYPE string,
      l_fpath TYPE string,
      l_fname TYPE string.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
  CALL METHOD cl_gui_frontend_services=>file_save_dialog
    EXPORTING
      window_title         = 'Save to...'
      default_extension    = '.txt'
      initial_directory    = 'C:\'
    CHANGING
      filename             = l_fname
      path                 = l_path
      fullpath             = l_fpath
    EXCEPTIONS
      cntl_error           = 1
      error_no_gui         = 2
      not_supported_by_gui = 3
      OTHERS               = 4.
  IF sy-subrc EQ 0.
    MOVE l_fpath TO p_file.
  ENDIF.

Similar Messages

  • Sending XML file from SAP to Windows Based file server with FTP function

    Hi Gurus,
    We are using SAP BW 3.0B version.
    I need to convert data in ODS to XML format and send this XML file to remote server which  is not a SAP application server, it is just a Window Based file server with FTP function..
    By writing some ABAP code I have converted ODS data into XML format (which gets saved in my local system)
    (Is that I need to put this file in Application Server to send it to the other servers? )
    Now the thing is how I can send this file to that Windows Based file server.
    plz suggest me.... what can be done......
    Thanks in Advance
    Madhusudhan
    Edited by: Madhusudhan Raju on Dec 3, 2009 4:25 AM

    I dont think the above code support windows OS. Because I always execute this script via UNIX.
    I think you can try this option, go to command prompt, goto the destination path where you have an XML file using cd....
    ftp (destination servername), specify the username and password.
    afterthat, use the command put and filename.
    check whether the file had reached destination successfully or not.
    For automation purpose, you can use the following script like
    ftp: -s: test.txt  (servername)
    In test.txt,
    UserName
    Password
    bin
    cd /files
    put file.xml
    bye
    Also, you can check in SM69, there will be some SAP external commands to automate the file transfer.
    Thanks
    Sat
    http://support.microsoft.com/?kbid=96269

  • Incorrect parameter with CALL FUNCTION - WE19

    hi! All
    while creating IDOC through WE19 - Start Inbound it creates IDOC with Status - 64."IDoc ready to be transferred to application" "No filters , No conversion , No version change ."
    Incorrect parameter with CALL FUNCTION
    This parameter was "MASSAVEINFOS".
    but i have Included this parameter in my Function module.
    INPUT_METHOD TYPE INPUTMETHD
    MASS_PROCESSING TYPE MASS_PROC
    NO_APPLICATION_LOG LIKE SY-DATAR
    MASSAVEINFOS LIKE MASSSAVINF
    whats the mistake i have done.
    Regards
    Kv

    That will not be possible KV, as the call to the FM is not being made, as far as i see you have completed the needed settings.
    As i do not have access to an SAP system, i suggest that you try below,
    1) Go to WE19, enter the IDOC number and F8.
    2) In this screen, click on Inbound function module.
    3) In the field for inbound function module press F4, it should list your FM name here if all the necessary we42/82/57, BD51 and WE20 have been done correctly.
    Another thing that you can try is, on WE19,
    1) Idoc Number F8
    2) /h - to start Debug
    3) Now click on Standard inbound, in the debug mode press F5 once.
    4) Now put a break point on all message statement
    See where exactly the message of wrong FM is being thrown, it will most probably be after a select statement on one of the tables associated with WE42/82/57/BD51 etc. With this you will where you have missed out.
    All the best !!!
    Regards,
    Chen
    Edited by: Chen K V on Mar 18, 2010 8:55 AM

  • HT1338 In order to some calculator functions on the "Bankrate" website I need to enable the Java Browser function.  I can I accomplished that task?

    In order to some calculator functions on the "Bankrate" website I need to enable the Java Browser function.  I can I accomplished that task?

    In recent versions of Lion, Java is automatically disabled (for security reasons) if it goes unused for a certain amount of time.  You can re-enable it in the General pane of the Java Preferences app, found in /Applications/Utilities.  (Check the box at the top of that pane.)  If trying to open Java Preferences results in a message asking if you want to install Java, you don't actually have Java yet.  Click the install button to install it.
    Note that having Java turned on in your web browser is dangerous, due to recent proliferation of malware that uses Java to install itself.

  • Not able to copying files/folders from one Document Library to another Document Library using Open with Browser functionality

    Hi All, 
    We have SharePoint Production server 2013 where users are complaining that they are not able to copy or move files from one document library to another document library using “Open with Explorer” functionality.
    We tried to activate publishing features on production server but it did not work. We users reported following errors:  
    Copying files from one document library to another document library:
    Tried to map the document libraries and still not get the error to copy files: 
    In our UAT environment we are able to copy and move folders from using “Open with Explorer” though.
    We have tried to simulate in the UAT environment but could not reproduce the production environment.  
    Any pointers about this issue would be highly appertained.
    Thanks in advance
    Regards,
    Aroh  
    Aroh Shukla

    Hi John and all,
    One the newly created web applications that we created few days back and navigated to document library, clicked on “Open with Explorer”, we get this error.
    We're having a problem opening this location in file explorer. Add this website to your trusted and try again.
    We added to the trusted site in Internet Explorer for this web application, cleared the cache and open the site with same document library but still get the same above error.
    However, another existing web application (In same the Farm) that we are troubleshooting at the moment, we are able click on “Open with Explorer”,  login in credentials opens and we entered the details we are able to open the document
    library and tried to follow these steps:
    From Windows Explorer (using with Open with Explorer), tried to copy or move a files to
    source document library.
    From Windows Explorer moved this file to another destination document library and we got this error.
    What we have to achieve is users should be able to copy files and folders using
    Open with Explorer functionality. We don’t know why Open with Explorer
    functionality not work working for our environment.  
    Are we doing something wrong? 
    We have referred to following websites.
    we hope concepts of copying / Moving files are similar as SharePoint 2010. Our production environment is SharePoint 2013.   
    http://www.mcstech.net/blog/index.cfm/2012/1/4/SharePoint-2010-Moving-Documents-Between-Libraries https://andreakalli.wordpress.com/2014/01/28/moving-or-copying-files-and-folders-in-sharepoint/
    Please advise us. Thank you.
    Regards,
    Aroh
    Aroh Shukla

  • How to find the number of data items in a file written with ArryToFile function?

    I have written an array of number in 2 column groups to a file using the LabWindows/CVI function ArrayToFile...Now if I want to read the file with FileToArray Function then how do I know the number of items in the file. during the write time I know how many array items to write. but suppose I want the file to read at some later time then How to find the number of items in the file,So that I can read the exact number and present it. Thanks to all
    If you are young work to Learn, not to earn.
    Solved!
    Go to Solution.

    What about:
    OpenFile ( your file );
    cnt = 0;
    while ((br = ReadLine ( ... )) != -2) {
    if (br == -1) {
    // I/O error: handle it!
    break;
    cnt++;
    CloseFile ( ... );
    There are some ways to improve performance of this code, but if you are not reading thousands of lines it's quite fast.
    After this part you can dimension the array to pass to FileToArray... unless you want to read it yourself since you already have it open!
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

  • Need help file sharing with a powermac G4 and ibook

    I need to transfer files from my G4 to an ibook. I am using ethernet slot B on the G4 and the ibook has an airport card. I also have a router. Does anyone have an easy way to do this? I want to set up a connection between these two computers without using the internet. Appletalk is active on the g4, and file sharing is on yet the activity monitor does not show the ibook as a connected user. I tried to find the G4 on the ibook by connecting to server but it does not recognize the g4 when I either type the name of the computer or browse the network. Any help would be greatly appreciated. Would a CD writer for the G4 be a better option?
    Thank you.

    I tried to find the G4 on the ibook by connecting to server but it does not recognize the g4 when I either type the name of the computer or browse the network.
    If you are running Mac OS before 9 and trying to connect to Mac OS after 10.3, you will not be able to do it without additional software.
    If you connect the iBook to the router with an Ethernet cable, you may be more successful, as some routers do not pass AppleTalk packets from wireless to wired.
    The FireWire approach will also work, and yes, it mounts the other computer's drives on your desktop.

  • I Need Help : File Managment with ITunes

    I have a library of music on an external drive. I ripped my CD's with Winamp in .wav format. I bought an IPod, and ultimately would like to convert my .wav files on my external drive into .aac, then upload to my ipod. I imported the file into my music library (iTunes reorginized all of my files, which was a problem) but they remain in .wav format. When I highlight the file and run "convert to .acc" from the "Advanced"drop down menu. This converts the file, buy duplicates an instance of the song, and it is very difficult to manage the files (determining which have been coverted ect)
    Any suggestions?

    Right click on any column title of the Library view and check "Kind" so you will see amoung other information the file kind (AAC, MP3, etc.).
    Then, left click on the column title "Kind" so your song will be ordered by kind. Now you have all you WAV and AAC songs separated. You can now delete the ones you want and remove the "Kind" column when no longer needed.

  • Help needed in XSLT MAPPING with RFC function module

    null
    Edited by: Ram Kishore on Sep 25, 2009 1:09 PM
    Edited by: Ram Kishore on Sep 25, 2009 1:10 PM

    Hi Arunava,
    If you dont have any key field in ItemData1 and ItemData2 in the incoming flat file, then you have to insert a keyfield in both the ItemData1 ,ItemData2 .
    For this ,you need to use ItemData1.keyFieldValue and ItemData2.keyFieldValue in your FCC parameters.
    Also, need to mention the keyFieldName in both ItemData1 ,ItemData2.(ex:ItemData1.fieldNames).
    Hope the below blog would help you.
    /people/sukumar.natarajan/blog/2007/06/12/content-conversion-in-sender-file-adapter--2-new-useful-parameters
    Regards,
    Swetha.

  • Dynamic file parameter with include directive

    I would like to include the file path contained in a string variable with the include directive.
    I'm trying to do the following:
    <%
    String var_fileToInclude = "inc/topnav_" + var_sectionType + ".jsp";
    include file=var_fileToInclude;
    %>
    I get the following error:
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: Unable to compile class for JSP:
    An error occurred at line: 6 in the jsp file: /news/special_reports/climate/inc/topnav_includer.jsp
    include cannot be resolved to a type
    3: String var_fileToInclude = "inc/topnav_" + var_sectionType + ".jsp";
    4: out.println( "var_fileToInclude = " + var_fileToInclude );
    5:
    6: include file=var_fileToInclude;
    7:
    8: %>
    Stacktrace:
         org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:92)
         org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
         org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:423)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:317)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:295)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:282)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:586)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    Any help is greatly appreciated.
    -- Ryan Chapin

    hello,
    Are you able to print the file name. if you are able to print the file name properly then try to include the file as below
    <jsp:include page="<%=filevariablenema%>" flush="true" />
    I hope this will help. Let me know on the same.
    Thanks
    Suresh

  • Need to make quiz with many functions on JAVA.

    I've to make quiz on JAVA, (Test japaneese)
    the goal is to write an answer of hieroglyph, answer can be The Number code of hieroglyph, or the AB code of hieroglyph
    On the first interface i have to:
    1) Write your name
    2) Choose test ( 1. By Number code, 2. By AB code)
    3) Choose order (1. Correct, 2. Random)
    4) Type the limit of hieroglyph: for example from 1 to 30, or from 550 - 600 (Cuz there're 1945 Hieroglyphs)
    On the second hieroglyph:
    1) Displays hieroglyph
    2) Displays status info: chosen parameters (for example Test: By number code; Order: Random; Hieroglyph 1 of 30; Elapsed time: 00:01:23)
    3) Input box where you have to type your answer
    4) Next button
    On the last interface will be displayed the percentage of the questions answered correctly - for example: 1) False: the correct is .... 2) True 3) False: the correct is .... etc; Points: 10 of 30
    I've some code: but i've to edit it to take what i need;
    Could any body help me what to do....i've only 2 weeks.
    I'm not genius in JAVA as some of you....so do not criticize me....as DB i've used an array...cuz i don't know how to connect JAVA to DB...
    As program code i've take analogue of my program already integrated in NetBeans 6.8 (Anagram Game) and little bit change it..
    Here's the code #1: (I've deleted many objects in arrays....cuz in every array 1945 objects, i mean hieroglyphs, number codes and AB codes)
    package com.toy.anagrams.lib;
    * List of the first test answers =)
    final class StaticWordLibrary extends WordLibrary {
        private static final String[] WORD_LIST = {
    "A","PABHA","ABGBQQQQ","BGBA","ABAA","SAQLABHAA","ABQ","QLPO","ABBPBPC","QQLSFFJA","PAARPO","PR","PBABPO","POAABQLA"
    * I've commented second List of the test answers =) test BY NUMBER CODE....cuz i don't know exactly yet how to connect it. I've added only prefix NUM (WORD_LIST_NUM)
    * private static final String[] WORD_LIST_NUM = {
    * "1","4/1/30","173","13/2/1","96","180","1/25","86","140/9/21","42/14/39","84/4/O","4/5","9/75","167","116/48","74","94","147"
    * List of the questions
        private static final String[] SCRAMBLED_WORD_LIST = {
       "&#19968;","&#21491;","&#38632;","&#20870;","&#29579;","&#38899;","&#19979;","&#28779;","&#33457;","&#23398;","&#27671;","&#20061;","&#20241;","&#37329;","&#31354;","&#26376;","&#29356;","&#35211;","&#20116;","&#21475;","&#26657;","&#24038;"
        final static WordLibrary DEFAULT = new StaticWordLibrary();
        private StaticWordLibrary() {
        public String getWord(int idx) {
            return WORD_LIST[idx];
        public String getScrambledWord(int idx) {
            return SCRAMBLED_WORD_LIST[idx];
        public int getSize() {
            return WORD_LIST.length;
        public boolean isCorrect(int idx, String userGuess) {
            return userGuess.equals(getWord(idx));
    }The 2nd code:
    package com.toy.anagrams.lib;
    * Interface defining logic
    public abstract class WordLibrary {
         * Constructor for subclasses.
        protected WordLibrary() {
        public static WordLibrary getDefault() {
            return StaticWordLibrary.DEFAULT;
        public abstract String getWord(int idx);
        public abstract String getScrambledWord(int idx);
        public abstract int getSize();
        public abstract boolean isCorrect(int idx, String userGuess);
    }P.S. If it's not possible to make in 2 weeks....can anybody suggest me where i can find almost such program where i can change data of questions; and no matter in what code it was programmed...
    BIG THANX TO ALL OF YOU!!! no matter could you help or not =) and sorry for my english =)

    georgemc wrote:
    What's JAVA?
    Fact: Java 1.2 can finish an infinite loop in as little as 2 minutes.

  • How make file association with a sgd application

    hi!
    I need to know, how i make file association from a sgd client.
    I need open file .doc with a sgd application just make doble click in the file .doc
    in the client
    SO: rhel5u1
    i have word.desktop file
    [Desktop Entry]
    Version=1.0
    Encoding=UTF-8
    Name=word2003
    Icon=/home/ssa01/.tarantella/icon-cache/srsgd.sunssa.com/windows.gif
    Categories=Application;SGD;
    Type=Application
    Exec="/home/ssa01/.tarantella/tcc/4.50.907/ttatcc" -profile "srsgd.sunssa.com::Default" -application ".../_ens/o=applications/cn=word2003"
    Terminal=false
    please help me!!

    guinn8181
    it showed up as a ProTools (an audio editing application I have installed) plug-in … How can a firmware update meant for a specific hardware but tied to a third party softwareThen this is a bug in ProTools. The "Open with" should show "<None>".
    You need not concern yourself too much with this, since the system will run this updater as and when necessary—you don't need to run it yourself.

  • Hello i have a problem with onfocus function on ipad. i am trying to bring my cursor on a text box on a button click. It works fine with safari web browser but not on ipad. Need a solution.

    Hello i have a problem with onfocus function on ipad. I am trying to bring my cursor on a text box on a button click. It works fine with safari web browser but not on ipad. Need a solution.

    I don't think that a software update from Apple will solve the issues that you are having. You have a rogue installation. After you posted I have just done the following:
    Disk Utility can verify  my partitioned Volume (including my boot disk) AND REPAIR the non-boot disks on the same Volume without a glitch. It repairs the non-boot disks containing data smoothly.
    I have used Mail to send some mails from some Yahoo and Hotmail accounts to my Thunderbird client containing GMail accounts - absolutely normal.
    I have iLife '09 but my iMovie '09 and iPhoto '09 open in a jiffy and I see no issues here. I have 6GB RAM (Maximum) on an early 2008 Macbook Pro with a 750GB hard drive partitioned with 120GB reserved for the Boot Drive.
    I am sorry that I cannot help further but I am sure there must be a way to reinstall the software without having to revert to restoring your ML backup. I have two clones and if you have such I would attempt to do that through that rather than through Time Machine - that is of course if you have a cloned drive.
    Good luck!

  • File uri with query string can't be propagated by desktop.browse()

    I have been trying to show some help pages using the following command:
    java.awt.Desktop.getDesktop().browse( helpURI);
    while the helpURI.toString() prints out the following:
    file:///C:/Share/Code/phoenix/Install/REDIST/Help_Files/en/wwhelp/wwhimpl/js/html/wwhelp.htm?context=BD&href=Chapter%202%20-%20Configuration.1.14.html
    But when the getDesktop().browse() API is executed it will only propagate the uri-path and not the query string.
    So the browser shows the following url as a result of the browse() call:
    C:\Share\Code\phoenix\Install\REDIST\Help_Files\en\wwhelp\wwhimpl\js\html\wwhelp.htm
    But if I manually copy the string "file:///C:/Share/Code/phoenix/Install/REDIST/Help_Files/en/wwhelp/wwhimpl/js/html/wwhelp.htm?context=BD&href=Chapter%202%20-%20Configuration.1.14.html" to the internet explorer it works fine.
    So can somebody give me any guidance on how I can propagate the file uri with query string through the browse() API or is there a better API for that?
    Sibon.

    The "cmd /S /C" suggestion didn't seem to work. I don't think the problem is in java but how the command line parameter needs to be added from msdos shell to "iexplore.exe"
    When from the command line I enter the following command:
    iexplore.exe file:///C:/Share/Code/phoenix/Install/REDIST/Help_Files/en/wwhelp/wwhimpl/js/html/wwhelp.htm?context=BD&href=Chapter%202%20-%20Configuration.1.14.html
    I get the same result as invoking from java Desktop API --- it truncates everything from question mark. I tried palying around with double quotes, single quotes, escaping and nothing seem to work.
    Any ideas?

  • Why do I get an alert saying "Could not initialise the application's security component. The most probable cause is problems with files in your browser's profile directory. How can I solve it??

    The full alert is " Could not initialise the application's security component. The most probable cause is problems with files in your browser's profile directory. Please check that this directory has no read/write restrictions and your hard drive is not full or close to full. It is recommended that you exit the browser and fix the problem. If you continue to use this browser session, you might see incorrect browser behaviour when accessing security features."
    This is just started three/four days ago. I need assistance quickly as I can't access any secure sites e.g bank accounts/homepage etc.

    See [[Could not initialize the browser security component]]

Maybe you are looking for

  • How to get rid of deleted songs in music list?

    I have many songs I don't want on my phone anymore. With ios7 it shows all the songs I have purchased on all my devices. Is there anyway to get rid of this because I have useless sound effects on my phone (I used them for a project) and songs I don't

  • Alu MB 2.4 or "old" MBP 2.5?

    I need to purchase a new Mac laptop for my 14-year old daughter. She would love the new alu MB 2.4 but the former top of the line MBP is basically at the same price at Amazon. What is the sensible thing to do? Old screen better, more expansion, speed

  • Horizon View 6.1 and Windows 2012 as Desktop OS

    Hi Community, we are currently running a PoC for Horizion View 6.1. Various reasons  require to use Windows Server 2012 r2 as guest os, afeature which should exist in 6.1 according the release notes. When trying to create a linked clone pool with a w

  • InDesign CC Switch Language (ENG/FRA)

    Sorry for this question: i use InDesign CC in ENG language but i need use it 1 days of the week in FRA. What is the best way to have this configuration?

  • Bridge preferences causes program crash

    Hi I'm on an intel mac running OSX 4.9. I use Bridge CS3 2.1.1.9 When I try to open preferences, Bridge quits. Do I trash the preferences file? If so, what's it called and where would I find it? Will that affect my star ratings? Thanks, Alan