File path error in same screen.

hey guys,
I want to check my file path validation and display error in same screen itself.
I used my GUI_UPLOAD method in START OF SELECTION. to read the file.
If error it displays error in some other plain screen.
I know AT selection screen will allow me to display in same screen.
But is the way of using GUI_UPLOAD method in AT selection screen is advisable?
or else please give me alternate way.
ambichan

Hi
You can use in AT Selection screen
data result.
CALL METHOD CL_GUI_FRONTEND_SERVICES=>FILE_EXIST
  EXPORTING
    FILE                 =  'C:\test.txt'
  RECEIVING
    RESULT               =
EXCEPTIONS
   CNTL_ERROR           = 1
   ERROR_NO_GUI         = 2
   WRONG_PARAMETER      = 3
   NOT_SUPPORTED_BY_GUI = 4
   others               = 5
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
           WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
the return parameter will be "X" if file exists else it will be blank.
Cheers

Similar Messages

  • Opening a pdf file twice in the same screen

    How can I open a pdf file twice in the same screen so that they are side by side?

    In Adobe Reader try the menu Window > New Window

  • Invalid Report File Path Error

    I have included several Crystal Reports as embedded resources in a Visual Studio 2010 C# project.  When I try to run the application on a client PC I receive an invalid report file path error.  Why am I receiving this error if the rpt is embedded in the manifest?

    The following code now works on my development machine.  It obtains the server name and database name from the configuration file.  When I run on my client PC, however, it prompts me to log into the database.  It provides the correct server name but the database name is blank and integrated security is not checked.  The database name field is not enabled so I cannot provide a value.
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Linq;
    using System.Text;
    using System.Windows.Forms;
    using CrystalDecisions.CrystalReports.Engine; //jp
    using CrystalDecisions.Shared; //jp
    namespace WindowsFormsApplication1
        public partial class FormRptArtist : Form
            private CrystalReport1 crReportDocument = new CrystalReport1();
            public FormRptArtist()
                InitializeComponent();
                ToolTip toolTip = new ToolTip(); toolTip.SetToolTip(btnHelp, "Flash Video Training / Help");
                helpProvider1.HelpNamespace = GlobalClass.gb_help;
            private void FormRptArtist_Load(object sender, EventArgs e)
                TableLogOnInfos crtableLogoninfos = new TableLogOnInfos();
                TableLogOnInfo crtableLogoninfo = new TableLogOnInfo();
                ConnectionInfo crConnectionInfo = new ConnectionInfo();
                Tables CrTables;
                bool repeat = true;
                while (repeat)
                    try
                        crConnectionInfo.ServerName = Properties.Settings.Default.CrystalServer;
                        crConnectionInfo.DatabaseName = Properties.Settings.Default.CrystalDatabase;
                        crConnectionInfo.IntegratedSecurity = true;
                        CrTables = crReportDocument.Database.Tables;
                        foreach (CrystalDecisions.CrystalReports.Engine.Table CrTable in CrTables)
                            crtableLogoninfo = CrTable.LogOnInfo;
                            crtableLogoninfo.ConnectionInfo = crConnectionInfo;
                            CrTable.ApplyLogOnInfo(crtableLogoninfo);
                        crystalReportViewer1.ReportSource = crReportDocument;
                        crystalReportViewer1.Refresh();
                        break;
                    catch (Exception exp)
                        MessageBox.Show(exp.Message);
                        DialogResult result1 = MessageBox.Show("Try Again?", "Database Connection Error",
                            MessageBoxButtons.RetryCancel);
                        if (result1 == DialogResult.Retry)
                            FormCrystalParms newWindow = new FormCrystalParms();
                            newWindow.ShowDialog();
                        else
                            repeat = false;
            private void CrystalReport11_InitReport(object sender, EventArgs e)
            private void btnHelp_Click(object sender, EventArgs e)
                GlobalClass.displayflashhelp(this, "formrptartist");     
            private void crystalReportViewer1_Load(object sender, EventArgs e)

  • Compiling Media invalid file path error when buring a DVD

    Hello,
    I have updated to 3.0.2 Premiere Elements and the latest XP Home updates. I had 2.0 and it worked without any problems. I bought 3.0 and have had nothing but problems, I can capture, access files and put a video together but no matter if to file or to DVD I always get this error
    "Burn DVD Progress screen"
    "Compiling Media invalid file path"
    then it all stops and nothing.
    Any help or suggestions appreciated, I searched the web for this error and found nothing, when I search here I seem to get every Adobe product comes up but no premiere.
    Thank you

    I started to do the FAQ to build a clean AVI file. I also re-installed the program, did an update to 3.0.2, defrag. Made sure I had 118gig space. All in order. Still I got the errors. Then I thought perhaps since this pointed to a path that somewhere a path was not correct. So I looked under Preferences - scratch disks - and found they all pointed to the D drive where I had some old Adobe files. It appears the 2.0 version worked when I had the files stored on another partition and 3.0 did not like this. So when I moved everything in Scratch Disk to the same folder on C: where I installed 3.0 things seemed to begin to work.
    I tested it by burning to a file and then to an actual DVD and both worked well. I have a quad core chip.
    Now the problem seems to be when I edit each end of a clip, "the IN and OUT" the in does not seem to be saved or rendered. When I get to the preview I can still see and hear date prior to the SET IN. I save, re-save and re-render and it still happens. However some clips it works fine.
    Thanks again for pointing me in a direction so at least I can start to trouble shoot.

  • Application Viewer Deployment Problem - War File Path Error

    Hello all!
    I just installed a new CC&B demo environment (2.2SP6 on Apache/Windows) and the application viewer is not working at all. The first thing it does is throw a bunch of errors, such as
    source file does not exist data/tables/updated.xml
    source file does not exist data/maintobj/updated.xml
    source file does not exist data/alg/updated.xml
    source file does not exist data/batchContro/updated.xml
    Then the App Viewer shows the following:
    Data Dictionary Not built - submit F1-AVTBL
    Maint. Object Not built - submit F1-AVMO
    Algorithm Not built - submit F1-AVALG
    Batch Control Not built - submit F1-AVBT
    To Do Type Not built - submit F1-AVTD
    Service XML Built 2008-04-14 (15:40)
    Java Docs Built 2008-04-16 (08:43)
    Cobol Source Built 2008-04-14 (10:22)
    Manually submitting one of those throws this error:
    File path to WAR file and location to expand WAR file are required if Use War File is switched.
    Anyone seen anything like this?
    Edited by: Adam D. on May 25, 2010 1:43 PM

    That worked! Thank you so much. App viewer loads now and all the F1-* items show as built. Only problem now is all the CM xml files seem to be missing. Every time you click something in app viewer it throws an error such as:
    Source file does not exist data/maintobj/ENG/CM/ext_BATCHCNTL.xml
    This is just one of them. There are many, and they all exist in that same CM directory... which doesnt exist haha
    Thanks again for the advice!

  • How to give dynamic file path in the selection  screen

    Hi All,
    How to give dynamic file path f4 functionality to user on the selection so that he can browse for the path in the presentation serve? I believe there is one fun module is there for this purpose I am not getting that
    Please help me in this regard.
    Thanks&Regards
    Mahesh

    HI,
    check this program.
    <b>report ZWA_TEST2.
    PARAMETERS: a(100) default 'PRESS F4'.
    data: filet type table of FILE_TABLE.
    data: wa type file_table.
    data: count type i.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR a.
    CALL METHOD CL_GUI_FRONTEND_SERVICES=>FILE_OPEN_DIALOG
      CHANGING
        FILE_TABLE              = filet
        RC                      = count .
    loop at filet into wa.
      a = wa-FILENAME.
    endloop.</b>
    Regards,
    HRA

  • Physical file path on the selection screen from AL11 Tcode

    Hi All,
    Please let me know some body how do we give only physical file path(only directory not the file names) on the selection screen?I need to see when I press F4 only the physical file directories of the application server.
    Thanks in advance.
    Mahesh

    Hi,
    This FM will be helpful.....
    F4_dxfilename_toprecursion
    CALL FUNCTION 'F4_DXFILENAME_TOPRECURSION'
    * EXPORTING
    *   I_LOCATION_FLAG       = ' '
    *   I_SERVER              = '?'
    *   I_PATH                =
    *   FILEMASK              = '*.*'
    *   FILEOPERATION         = 'R'
    * IMPORTING
    *   O_LOCATION_FLAG       =
    *   O_SERVER              =
    *   O_PATH                =
    *   ABEND_FLAG            =
    * EXCEPTIONS
    *   RFC_ERROR             = 1
    *   ERROR_WITH_GUI        = 2
    *   OTHERS                = 3
    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,
    Mdi.Deeba Najam.

  • File Path Error

    Hi All,
    In System Initialization>General Settings>Path Tab all paths coming by default are wrong(no existance of such folders). When I am changing the path and update, it's showing an error message and the application is getting closed.
    For Example,
                   Bydefault-
                             Microsoft Word Templates Folder = C:\Program Files\SAP\SAP Business One Server\WordDocs\English\
                    But I want change it to-
                             Microsoft Word Templates Folder =C:\Program Files\SAP\SAP Business One\WordDocs\English

    Hi,
    I'll use this thread because I am with a problem related to this one.
    I have defined the folders path on the server. Now I want to see an invoice on pdf on a client machine and it says the path does not exist.
    Is there any way to define the same folders to all the client machines?
    Thanks,
    Pedro

  • File path error1

    I'm getting file path error when I run my VI.  It seems that there are control characters in my filepath that are causing the error. However, I'm not sure how to fix this error. I've attached a screenshot of the error message and my VI.
    I'm using the VI as a subvi in another application.
    Thanks
    Attachments:
    file error1.png ‏40 KB
    PM2_FileNamePathDialogBoxCSVFile.vi ‏30 KB

    The error message also says that the command requires GPIB controller blah blah blah, but I assume it's clear to you that that's not the issue. The error you got is error 1, which the description says quite clearly is invalid input. If you look at the message you will also see that the error was at the CLOSE file function. The only relevant input you give to the close function is the reference, so that's what you need to look at.
    Do you know how to debug in LV? You need to place probes on the relevant wires and then run the code. Do that for the input to the close function. My guess is that you will find out that the reference was already closed somewhere.
    Try to take over the world!

  • File path notation

    I need to disply several file paths in the same panel. In order to reduce
    panel size I would like to use the 'dotted' Windows notation like
    'C:\WIND...\FILE.TXT and let the user display the full path in a separate
    window. Is there a standard Windows function to obtain the reduced string
    from the full path name?
    TIA

    Hi all, I still have problems with includes in extendscript. Has somebody an idea how to write a function to include aboslute file like this: include (MY_SCRIPT_DIR + 'test.jsx'); // result shoud be something like that // #include "/Applications/MAMP/htdocs/extendscript-library.org/lib/photoshop/photoshop-lib.jsx" Thanks you!

  • Error message: "Can't open file "[File path, file name].key"

    If I attempt to open any Keynote files, I now get this error message.
    "Can't open file "[File path: file name].key"
    To clarify, the text in the square brackets above would be the file path and then the file name.
    The file then will appear on the screen, but is unresponsive to any clicks or menu commands.
    The files will open successfully on other Macs, so they aren't corrupt.
    Also - I've just checked, and opening Keynote and trying to create a new presentation leads to the same problem: All screen menus / buttons are dead - all I can do is drag the window around the screen.
    I've tried to reinstall Keynote, but this hasn't resolved the problem.
    Is there some corrupt preference file (or similar) that I need to get rid of? Is there an easy way to do a complete uninstall of Keynote so I can try another install? Or is this a symptom of something else?
    All ideas gratefully appreciated!
    Message was edited by: Brendan Donlon

    All the issues I describe in my questions around this time re: Keynote were actually symptoms of a soon-to-die laptop. The Hard Disc was corrupting, and Keynote was the first application to be affected.

  • File Not Found Error in Welcome Screen

    Help please!
    I have exactly the exact problem described below but do not have a folder with the same name as the volume created under the volume. Please can someone help - I've tried everything. This problem only happened when I upgraded to Dreaweaver CC!
    "On launching Dreamweaver on your Macintosh if your Welcome Screen is not loading and if you see a "File not found" error, please check if you have a folder with the same name as your volume created under the volume. For more info on this please go through the attached pdf document. Other dialogs/panels in dreamweaver that will be blank due to this issue are Jquery Swatches panel, Adobe Edge Webfonts tab in Manage Fonts dialog,W3c Error Info dialog, Externalise Javascript dialog and svn revert dialog. After following the changes mentioned in the attached document please check all the affected dialogs/panels to confirm everything is working as expected."
    Thanks,

    File Not Found Error in Welcome Screen
    07-Nov-2013 10:25
    Tags: #dreamweaver_cs6_update
    Help please!
    Live preview also not working.
    I have exactly the exact problem described below but do not have a folder with the same name as the volume created under the volume. Please can someone help - I've tried everything. This problem only happened when I upgraded to Dreaweaver CC!
    "On launching Dreamweaver on your Macintosh if your Welcome Screen is not loading and if you see a "File not found" error, please check if you have a folder with the same name as your volume created under the volume. For more info on this please go through the attached pdf document. Other dialogs/panels in dreamweaver that will be blank due to this issue are Jquery Swatches panel, Adobe Edge Webfonts tab in Manage Fonts dialog,W3c Error Info dialog, Externalise Javascript dialog and svn revert dialog. After following the changes mentioned in the attached document please check all the affected dialogs/panels to confirm everything is working as expected."
    Thanks,
    Martin Bond
    [personal information removed by moderator]

  • Error while saving the file path

    I have come across a problem in LSMW.
    In specify files step when I was trying to give the filename either in Presentation server or Application server and then save ,I am getting an error called 'No Logical Path has been specified'. In debugging I can see p_log_path and p_log_file are initial where as p_phys_file_compl has the file which is created automatically with standard naming convention. These 3 fields represents Converted Data files. I think the problem is with settings since the error is not happening to other users. If we double click 'Converted Data'  I can see Logical Path and Logical File fields. If I give the same file that is used for converted data it is asking me to create and if we agree then it creates and then we are able to save. So I think there is some setting changes or some other thing happened which at this stage I couldn't find out because I have not changed any settings. So can you please let me know if u have come across the same problem or if u know the solution.

    In the <b>specify files path</b> have u specified the paths correctly.
      5  Legacy data          On the PC (frontend)                                                                               
    VASG3 INPUT FILE               Y:VHDEV TEST FILE unlinked genl1.txt                      
                                            Data for one source structure (table)                       
                                            Delimiter tabulator                                                                               
    Order of fields as in source structure definition           
                                            With end of record sequence (text file)                     
                                            Codepage ASCII                                                                               
    Legacy data          On the R/3 server (application server)                                    
      5  Read Data            File for read data (application server)                                                                               
    5  Read Data                      /int/T82/conv/VNH_ASGN3.lsmw.read                                                                               
    A82      /int/A82/conv/VNH_ASGN3.lsmw.read                                      
                 P82      /int/P82/conv/VNH_ASGN3.lsmw.read                                      
                 T82      /int/T82/conv/VNH_ASGN3.lsmw.read                                                                               
    5  Converted Data       File for converted data (application server)                                                                               
    5  ConvertedData                 /int/T82/conv/VNH_ASGN3.lsmw.conv                                                                               
    A82      /int/A82/conv/VNH_ASGN3.lsmw.conv                                      
                 P82      /int/P82/conv/VNH_ASGN3.lsmw.conv                                      
                 T82      /int/T82/conv/VNH_ASGN3.lsmw.conv                                                                               
    Values for wildcard  Values for wildcard '*' in file names                                    
    Refer teh above u ahve to specifythe path till PROD system.
    I too  faced the saem problem.

  • How do I copy and paste from one page or file to another page or file - on the same screen?

    How do I copy and paste from one page or file to another - on the same screen?

      Open both of your images in the Editor. Click on the image you want to copy and press Ctrtl+A (select all) followed by Ctrl+C (copy) then click the tab for your other image and press Ctrl+V (paste)
    Alternatively click on your background image then simply drag the second image from the photo/project bin and drop it into the main editor workspace on top of the background image. Use the move tool to position and the corner handles of the bounding box to scale.

  • Apex Listener 2.0.3.221.10.13 File path syntax error: ILLEGAL_CHARACTER

    Hi all,
    I tryed to install Apex Listener 2.0.3.221.10.13 into Tomcat 7.0.42 and I got the error :
    INFO: Deploying web application archive C:\Program Files\Apache Software Foundation\Tomcat 7.0\webapps\apex.war
    ago 16, 2013 9:15:19 AM oracle.dbtools.common.util.Files checkLegal
    WARNING: File path syntax error: ILLEGAL_CHARACTER, path: C:/
    ago 16, 2013 9:15:19 AM org.apache.catalina.core.StandardContext startInternal
    SEVERE: Error listenerStart
    ago 16, 2013 9:15:19 AM org.apache.catalina.core.StandardContext startInternal
    SEVERE: Context [/apex] startup failed due to previous errors
    and also
    ago 16, 2013 9:15:19 AM org.apache.catalina.core.StandardContext listenerStart
    SEVERE: Exception sending context initialized event to listener instance of class oracle.dbtools.rt.web.SCListener
    java.lang.IllegalArgumentException: oracle.dbtools.common.util.FilePathSyntaxException: ILLEGAL_CHARACTER
      at oracle.dbtools.common.util.Files.checkLegal(Files.java:262)
      at oracle.dbtools.common.util.Files.file(Files.java:127)
      at oracle.dbtools.common.config.file.ConfigurationFolder.chooseExistingFile(ConfigurationFolder.java:172)
      at oracle.dbtools.common.config.file.ConfigurationFolder.choose(ConfigurationFolder.java:151)
      at oracle.dbtools.common.config.file.ConfigurationFolder.setup(ConfigurationFolder.java:64)
      at oracle.dbtools.rt.web.SCListener.contextInitialized(SCListener.java:72)
      at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4939)
      at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5434)
      at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
      at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
      at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
      at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
      at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:976)
      at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1653)
      at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
      at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
      at java.util.concurrent.FutureTask.run(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      at java.lang.Thread.run(Unknown Source)
    Caused by: oracle.dbtools.common.util.FilePathSyntaxException: ILLEGAL_CHARACTER
      at oracle.dbtools.common.util.FilePathSyntax.check(FilePathSyntax.java:45)
      at oracle.dbtools.common.util.Files.checkLegal(Files.java:255)
      ... 19 more
    My platform is :
    OS : Windows 7 64 bit
    JRE : 1.7.0_25-b17 -
    %USERPROFILE% : C:\Users\SERGIO
    %TEMP% : C:\Users\SERGIO\AppData\Local\Temp
    Apex Listener Configuration Folder : C:\Users\SERGIO\AppData\Local\Temp\apex
    Can anyone help me, please?
    Sergio

    You need to configure your config directory before you deploy. If you never configured v2 listener before then create a new folder like "c:\apex\config". Then use
    java -jar apex.war configdir  c:\apex\config
    Then do your configuration as required and then deploy again.

Maybe you are looking for

  • Error while creating a folder in business area

    hi all, I am trying to create a folder in a business area using View.It is giving me the following error. View contains no items,folder will not be created. May i know the reason why it is prompting this error? There are items in EUL and i also check

  • Animated GIF's not working 5310

    I've tried to use some animated GIF's for screensavers, but I'm not getting the animation !! They work OK in windows. Can someone confirm what size and format they need to be for my 5310 XpressMusic Thanks Solved! Go to Solution.

  • Sales order doc and item fields in customer line item report(FBL5N)

    Hi All, We have some billing documents and the accounting docs are created as well. However, in the FBL5N report, we are not able to display the sales order doc and item info even though the columns are avaliable in the layout. Anyone can help? Thank

  • Doubt in file to file scenario

    can i transfer a flat file  (notepad) from sender to receiver using following configuration Adapter Type: File Adapter Transport Protocol: File System (NFS) Message Protocol: file Adapter engine: Integration server

  • Owb 9.0.4 with SQL Server source

    Hello, I'm trying to use a SQL Server table as my source (approx. 2M rows) but I only need to pull the current period (approx. 5K rows). My performance is HORRIBLE across the transparent gateway/dblink but I'm not sure if this is the gateway itself o