Whether the file is present or not??

Hi,
I am trying to upload data from a file on application server.
How can i validate if the file is exiting or not.
It would be helpful if I can find whether the file exists or not before the statement "OPEN DATASET".
<b>NOTE: This is a SAP 3.1i version requirement.</b>

Hai vinod,
Just go for F4 help and it displays all the files which you need.I have a code which does this.........
AT SELECTION-SCREEN ON VALUE-REQUEST FOR DATASET.
  CALL FUNCTION 'TMP_GUI_FILE_OPEN_DIALOG'
EXPORTING
    WINDOW_TITLE            = 'select a file '
    DEFAULT_EXTENSION       = 'TXT'
    DEFAULT_FILENAME        = 'ASSIGN5.TXT'
  FILE_FILTER             =
  INIT_DIRECTORY          =
  MULTISELECTION          =
IMPORTING
  RC                      =
    TABLES
      FILE_TABLE              = ITAB
EXCEPTIONS
   CNTL_ERROR              = 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.
  READ TABLE ITAB INDEX 1.
  DATASET = ITAB-FILENAME.
  WRITE DATASET.
START-OF-SELECTION.
*perform open_dataset using dataset.
*perform open_group.
  DATA T TYPE STRING.
  T = DATASET.
  IF T EQ ' '.
    MESSAGE E110(ZX).
  ENDIF.
  CALL FUNCTION 'GUI_UPLOAD'
    EXPORTING
      FILENAME                      = T
  FILETYPE                      = 'ASC'
      HAS_FIELD_SEPARATOR           = 'X'
  HEADER_LENGTH                 = 0
  READ_BY_LINE                  = 'X'
  DAT_MODE                      = ' '
  CODEPAGE                      = ' '
  IGNORE_CERR                   = ABAP_TRUE
  REPLACEMENT                   = '#'
  CHECK_BOM                     = ' '
IMPORTING
  FILELENGTH                    =
  HEADER                        =
    TABLES
      DATA_TAB                      = RECORD
EXCEPTIONS
  FILE_OPEN_ERROR               = 1
  FILE_READ_ERROR               = 2
  NO_BATCH                      = 3
  GUI_REFUSE_FILETRANSFER       = 4
  INVALID_TYPE                  = 5
  NO_AUTHORITY                  = 6
  UNKNOWN_ERROR                 = 7
  BAD_DATA_FORMAT               = 8
  HEADER_NOT_ALLOWED            = 9
  SEPARATOR_NOT_ALLOWED         = 10
  HEADER_TOO_LONG               = 11
  UNKNOWN_DP_ERROR              = 12
  ACCESS_DENIED                 = 13
  DP_OUT_OF_MEMORY              = 14
  DISK_FULL                     = 15
  DP_TIMEOUT                    = 16
  OTHERS                        = 17
  IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
           WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.
When this code is executed it opens a window which allows you to select a file.......Hope this may work for you.
Regards,
Srikanth.
Please reward points if this is useful to you.thanks in advance

Similar Messages

  • How to know whether the file is opened or not

    Hi All,
    In the file handling,
    Before writing OPEN DATA SET, I want to know the file is already opened or not.
    Please help me out in this regard.
    Thanks and regards,
    Mallareddy

    Hi,
    Please try GET DATASET statement.
    Syntax:
    GET DATASET dsn.
    Extras:
    1. ... POSITION pos
    2. ... ATTRIBUTES attr
    In some cases, the syntax rules that apply to Unicode programs are different than those for non-Unicode programs. For details, see File Interface.
    Effect
    Used to get the properties of a file already open.
    You can use this statement without additions to determine whether the file is open.
    If the file is not open, an exception of the type CX_SY_FILE_OPEN_MODE is triggered.
    Regards,
    Ferry Lianto

  • File.exists()  returs false even the file is present in the specified path

    Hi,
    When i try to run the following program which checks whether the file exists in the given path or not
    public class FileCheck {
    public static void main(String[] a){
    String str = a[0];
    File f = new File(str);
    if(f.exists())
    System.out.println("File Exists ");
              else
         System.out.println("File does not Exists ");
    So on solaris 10(korean) we have file named in korean language under "usr" directory. When i try to run the above program on solaris 10(Korean) using the default jre (1.5)with the parameter "/usr/file name in korean language" .The output of the program is "File Exists"
    And when i run the same class file using the jre (1.6) which is installed in our application which is an english version with the same parameter ""/usr/file name in korean language"
    The output of the program is "File does not exists".
    And this problem is only with the files which contain the name in korean language.
    So do we need to set any properties for the jre in our application to work for files which are named in korean language. Any help will be highly appreciated.
    Thanks,
    GPK
    Edited by: gpk_04 on Nov 11, 2008 1:46 PM
    Edited by: gpk_04 on Nov 11, 2008 1:57 PM

    My guess is that Java 5 and 6 are picking up the file system encoding differently. As a consequence, the JVM is either:
    1. reading and converting your command line argument incorrectly, or
    2. reading and converting the file name from the file system incorrectly.
    Write a quicky, short app that prints out the file encoding of your host. Run this under 5 and then 6. Do you see different outputs?

  • How to check Whether the File is in Progress or used by some other resource

    Hi All,
    I am retrieving a file from the FTP server using Apache commons FTP.
    I need to check whether the file is fully retrieved or in progress.
    for now i can able to use the file which is partially retrieved. it is not throwing any file sharing exception or i am unable to find whether it is in progress.
    How to check whether the file is in progress ? or The file is accessed by some other resource ?
    Pls Help me.
    Thanks,
    J.Kathir

    Hi Vamsi,
    Explicitly such kind of requirement has not been catered and i dont think you would face a problem because any application that is writing to a file will open the file in the read only mode to any other simultaneous applications so i think your concerns although valid are already taken care off .
    In the remote case you still face a problem then as a work around. Tell the FTP administrator to set the property to maximum connections that can be made to ftp as one. I wonder if you have heard of the concept of FTP handle , basically the above workaround is based on that concept itself. This way only one application will be able to write.
    The file adapter will wait for its turn and then write the files.
    Regards
    joel
    Edited by: joel trinidade on Jun 26, 2009 11:06 AM

  • Safari could not download the file because there is not enough disk spacr

    safari could not download the file because there is not enough disk space I have a 1TB hard drive and only use a small amout of space.Mac os x mountain lion (12.8.2), HD 978.59 free out of 999.35GB.Please help Brenton

    Please read this whole message before doing anything.
    This procedure is a test, not a solution. Don’t be disappointed when you find that nothing has changed after you complete it.
    Step 1
    The purpose of this step is to determine whether the problem is localized to your user account.
    Enable guest logins* and log in as Guest. For instructions, launch the System Preferences application, select Help from the menu bar, and enter “Set up guest users” (without the quotes) in the search box. Don't use the Safari-only “Guest User” login created by “Find My Mac.”
    While logged in as Guest, you won’t have access to any of your personal files or settings. Applications will behave as if you were running them for the first time. Don’t be alarmed by this; it’s normal. If you need any passwords or other personal data in order to complete the test, memorize, print, or write them down before you begin.
    Test while logged in as Guest. Same problem?
    After testing, log out of the guest account and, in your own account, disable it if you wish. Any files you created in the guest account will be deleted automatically when you log out of it.
    *Note: If you’ve activated “Find My Mac” or FileVault, then you can’t enable the Guest account. The “Guest User” login created by “Find My Mac” is not the same. Create a new account in which to test, and delete it, including its home folder, after testing.
    Step 2
    The purpose of this step is to determine whether the problem is caused by third-party system modifications that load automatically at startup or login.
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards. Boot in safe mode* and log in to the account with the problem. The instructions provided by Apple are as follows:
    Shut down your computer, wait 30 seconds, and then hold down the shift key while pressing the power button.
    When you see the gray Apple logo, release the shift key.
    If you are prompted to log in, type your password, and then hold down the shift key again as you click Log in.
    Safe mode is much slower to boot and run than normal, and some things won’t work at all, including wireless networking on certain Macs.  The next normal boot may also be somewhat slow.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    *Note: If FileVault is enabled, or if a firmware password is set, or if the boot volume is a software RAID, you can’t boot in safe mode.
    Test while in safe mode. Same problem?
    After testing, reboot as usual (i.e., not in safe mode) and verify that you still have the problem. Post the results of steps 1 and 2.

  • Microsoft.WebApplication.targets 182 5 error MSB3030 Could not copy the file because it was not found

    We use Visual Studio Online and the integrated continuous integration (build server) from Microsoft. We have a solution that contains multiple projects two of which are latest MVC projects. I updated a bunch of our Nuget packages yesterday and now we are
    getting a build error one of our MVC projects. Any help is greatly appreciated as I have exhausted my resources trying to understand why the error is occurring!
    We use nuget for our external libraries, the solution and projects and set to use Nuget Restore (no packages persisted in TFS).
    We updated Angular to the latest version using Nuget updates inside of visual studio. Here an excerpt from packages.config in the project file. The first block is what was found in the packages.config before the update and the second block is after the
    update.
    <package id="Angular.UI.Bootstrap" version="0.11.0" targetFramework="net451" />
    <package id="angularjs" version="1.2.23" targetFramework="net451" />
    <package id="Angular.UI.Bootstrap" version="0.12.0" targetFramework="net451" />
    <package id="angularjs" version="1.3.8" targetFramework="net451" />
    After I noticed the build error I scheduled another build with Diagnostic level logging turned on, here is the excerpt from the build highlighting the errors
    Task "Copy" (TaskId:395)
    16:42:43.027 3>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\WebApplications\Microsoft.WebApplication.targets(182,5): error MSB3030: Could not copy the file "Scripts\angular-animate.js" because it was not found. [C:\a\src\Sparco.Cms.Web\Sparco.Cms.Web.csproj]
    16:42:43.031 3>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\WebApplications\Microsoft.WebApplication.targets(182,5): error MSB3030: Could not copy the file "Scripts\angular-animate.min.js" because it was not found. [C:\a\src\Sparco.Cms.Web\Sparco.Cms.Web.csproj]
    Creating directory "C:\a\bin\_PublishedWebsites\Sparco.Cms.Web\Scripts". (TaskId:395)
    Copying file from "Scripts\angular-aria.js" to "C:\a\bin\_PublishedWebsites\Sparco.Cms.Web\Scripts\angular-aria.js". (TaskId:395)
    Copying file from "Scripts\angular-aria.min.js" to "C:\a\bin\_PublishedWebsites\Sparco.Cms.Web\Scripts\angular-aria.min.js". (TaskId:395)
    16:42:43.033 3>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\WebApplications\Microsoft.WebApplication.targets(182,5): error MSB3030: Could not copy the file "Scripts\angular-cookies.js" because it was not found. [C:\a\src\Sparco.Cms.Web\Sparco.Cms.Web.csproj]
    16:42:43.033 3>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\WebApplications\Microsoft.WebApplication.targets(182,5): error MSB3030: Could not copy the file "Scripts\angular-cookies.min.js" because it was not found. [C:\a\src\Sparco.Cms.Web\Sparco.Cms.Web.csproj]
    16:42:43.034 3>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\WebApplications\Microsoft.WebApplication.targets(182,5): error MSB3030: Could not copy the file "Scripts\angular-csp.css" because it was not found. [C:\a\src\Sparco.Cms.Web\Sparco.Cms.Web.csproj]
    16:42:43.034 3>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\WebApplications\Microsoft.WebApplication.targets(182,5): error MSB3030: Could not copy the file "Scripts\angular-loader.js" because it was not found. [C:\a\src\Sparco.Cms.Web\Sparco.Cms.Web.csproj]
    16:42:43.034 3>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\WebApplications\Microsoft.WebApplication.targets(182,5): error MSB3030: Could not copy the file "Scripts\angular-loader.min.js" because it was not found. [C:\a\src\Sparco.Cms.Web\Sparco.Cms.Web.csproj]
    Copying file from "Scripts\angular-messages.js" to "C:\a\bin\_PublishedWebsites\Sparco.Cms.Web\Scripts\angular-messages.js". (TaskId:395)
    Copying file from "Scripts\angular-messages.min.js" to "C:\a\bin\_PublishedWebsites\Sparco.Cms.Web\Scripts\angular-messages.min.js". (TaskId:395)
    16:42:43.036 3>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\WebApplications\Microsoft.WebApplication.targets(182,5): error MSB3030: Could not copy the file "Scripts\angular-mocks.js" because it was not found. [C:\a\src\Sparco.Cms.Web\Sparco.Cms.Web.csproj]
    16:42:43.036 3>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\WebApplications\Microsoft.WebApplication.targets(182,5): error MSB3030: Could not copy the file "Scripts\angular-resource.js" because it was not found. [C:\a\src\Sparco.Cms.Web\Sparco.Cms.Web.csproj]
    16:42:43.036 3>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\WebApplications\Microsoft.WebApplication.targets(182,5): error MSB3030: Could not copy the file "Scripts\angular-resource.min.js" because it was not found. [C:\a\src\Sparco.Cms.Web\Sparco.Cms.Web.csproj]
    16:42:43.036 3>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\WebApplications\Microsoft.WebApplication.targets(182,5): error MSB3030: Could not copy the file "Scripts\angular-route.js" because it was not found. [C:\a\src\Sparco.Cms.Web\Sparco.Cms.Web.csproj]
    16:42:43.036 3>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\WebApplications\Microsoft.WebApplication.targets(182,5): error MSB3030: Could not copy the file "Scripts\angular-route.min.js" because it was not found. [C:\a\src\Sparco.Cms.Web\Sparco.Cms.Web.csproj]
    16:42:43.036 3>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\WebApplications\Microsoft.WebApplication.targets(182,5): error MSB3030: Could not copy the file "Scripts\angular-sanitize.js" because it was not found. [C:\a\src\Sparco.Cms.Web\Sparco.Cms.Web.csproj]
    16:42:43.036 3>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\WebApplications\Microsoft.WebApplication.targets(182,5): error MSB3030: Could not copy the file "Scripts\angular-sanitize.min.js" because it was not found. [C:\a\src\Sparco.Cms.Web\Sparco.Cms.Web.csproj]
    16:42:43.036 3>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\WebApplications\Microsoft.WebApplication.targets(182,5): error MSB3030: Could not copy the file "Scripts\angular-scenario.js" because it was not found. [C:\a\src\Sparco.Cms.Web\Sparco.Cms.Web.csproj]
    16:42:43.036 3>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\WebApplications\Microsoft.WebApplication.targets(182,5): error MSB3030: Could not copy the file "Scripts\angular-touch.js" because it was not found. [C:\a\src\Sparco.Cms.Web\Sparco.Cms.Web.csproj]
    16:42:43.037 3>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\WebApplications\Microsoft.WebApplication.targets(182,5): error MSB3030: Could not copy the file "Scripts\angular-touch.min.js" because it was not found. [C:\a\src\Sparco.Cms.Web\Sparco.Cms.Web.csproj]
    16:42:43.037 3>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\WebApplications\Microsoft.WebApplication.targets(182,5): error MSB3030: Could not copy the file "Scripts\angular.js" because it was not found. [C:\a\src\Sparco.Cms.Web\Sparco.Cms.Web.csproj]
    16:42:43.037 3>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\WebApplications\Microsoft.WebApplication.targets(182,5): error MSB3030: Could not copy the file "Scripts\angular.min.js" because it was not found. [C:\a\src\Sparco.Cms.Web\Sparco.Cms.Web.csproj]
    Copying file from "Scripts\bootstrap-select.js" to "C:\a\bin\_PublishedWebsites\Sparco.Cms.Web\Scripts\bootstrap-select.js". (TaskId:395)
    Copying file from "Scripts\bootstrap-select.min.js" to "C:\a\bin\_PublishedWebsites\Sparco.Cms.Web\Scripts\bootstrap-select.min.js". (TaskId:395)
    Copying file from "Scripts\bootstrap-select.js.map" to "C:\a\bin\_PublishedWebsites\Sparco.Cms.Web\Scripts\bootstrap-select.js.map". (TaskId:395)
    I looked at the change log of my check-in and noticed that the errors occur for Angular script references that were updated. New angular references (adds in the TFS changeset) are being copied without errors. Example: angular-animate.js was edited
    in the Angular update in TFS but angular-aria.js is a new file in the package so new file in TFS. 
    Using Source Control Explorer I verified the location of the files, the new and the existing files from the Angular nuget package can all be found in the Scripts folder of the MVC project. I can also view the content of each file file without issue.
    The references in the project file (csproj) are all consistent too, I can't see any differences between the files that cause failure and those that do not. The following block is a direct copy/paste from the csproj file
    <Content Include="Scripts\angular-animate.js" />
    <Content Include="Scripts\angular-animate.min.js" />
    <Content Include="Scripts\angular-aria.js" />
    <Content Include="Scripts\angular-aria.min.js" />
    <Content Include="Scripts\angular-cookies.js" />
    <Content Include="Scripts\angular-cookies.min.js" />
    <Content Include="Scripts\angular-csp.css" />
    <Content Include="Scripts\angular-loader.js" />
    <Content Include="Scripts\angular-loader.min.js" />
    <Content Include="Scripts\angular-messages.js" />
    <Content Include="Scripts\angular-messages.min.js" />
    <Content Include="Scripts\angular-mocks.js" />
    <Content Include="Scripts\angular-resource.js" />
    <Content Include="Scripts\angular-resource.min.js" />
    <Content Include="Scripts\angular-route.js" />
    <Content Include="Scripts\angular-route.min.js" />
    <Content Include="Scripts\angular-sanitize.js" />
    <Content Include="Scripts\angular-sanitize.min.js" />
    <Content Include="Scripts\angular-scenario.js" />
    <Content Include="Scripts\angular-touch.js" />
    <Content Include="Scripts\angular-touch.min.js" />
    Is there anything I forgot to mention that would help me figure out what is going on?
    What else can I try with the exception of rolling back the changeset and re-adding the nuget package?
    Thank you very much in advance!
    -Igor
    -Igor

    Hi Igor,
    For your situation, make sure you checked in your source files after updating Angular. You can also check the whether the foders for the Angular reference are under source control in source settings tab of your build definition.
    You can also build locally using MSBuild to see if the building works fine. We have to make sure local build succeed before VSO build since TFS build use MSBuild as its default compiler. Check the links below to see if they are helpful:
    https://social.msdn.microsoft.com/Forums/en-US/f43ceb9e-f253-46e3-a496-05f8cd77f634/msb3030-could-not-copy-the-file-because-it-was-not-found-error?forum=winappswithcsharp
    https://social.msdn.microsoft.com/Forums/en-US/01a29ce7-da2a-40af-9dce-3db1f8998cc2/could-not-copy-the-file-consoleappnameexemanifest-because-it-was-not-found?forum=TFService
    Best regards, 
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • The file '/foo.aspx' has not been pre-compiled, and cannot be requested

    Hi All
    I am using odp .net to access oracle data. I have also added oracle.dataaccess in my asp .net references. Everything works fine in my development and when I run the code through debugger. However, when I deploy the project in IIS, it gave me following error...
    "The file '/foo.aspx' has not been pre-compiled, and cannot be requested
    This is pretty generic error and I found out this is related to .Net assemblies.
    By further investigation, I found that oracle.dataacess.dll is not present in the bin directory of a deployed web site. I am not sure why .net is dropping that dll in the deployment wizard.
    Did anyone encounter this problem before?
    I got a workaround for now that manually copting dll into the bin directory of deplyed web site. However, I am looking for more robust and technical answer..
    The strange thing is I have been deploying the web site the same way for last 8 months and never encountered this problem.
    thanks a lot..
    Message was edited by:
    amazon

    If you add a reference to Oracle.DataAccess at design time it will be added as an assembly definition to web.config. Then you don't need a copy in your bin dir and it will be found in the GAC.
    Eric

  • To check whether a file is open or not.

    Hi,
    I am using proc_listpidspath() to check whether a file is open or not by some application.
    It works in Leopard but not in Tiger.
    Can anyone suggest some function or solution so that i can check whether a file is open or not in Tiger.
    thanks.

    PersianKamran wrote:
    if i create a file
    File f = new File("path");
    f.createNewFile();
    Now i have created this file.. but i havent wrote any thing to it.. how can i determine that whether this file is empty or not..[Read the fine manual|http://java.sun.com/javase/6/docs/api/java/io/File.html#createNewFile()]
    Atomically creates a new, empty file named by this abstract pathname if and only if a file with this name does not yet exist. The check for the existence of the file and the creation of the file if it does not exist are a single operation that is atomic with respect to all other filesystem activities that might affect the file.
    Returns:
    true if the named file does not exist and was successfully created; false if the named file already exists So if it returns true, then the file is created and empty.
    Secondly, once i write some thing to file.. how can erase all the data from file ?deleting it will get erase the file and return you to the state you started from.
    Iif you don't want to create a new file, don't use the createNewFile() method and use the new FileOutputStream/close approach rather than the createNewFile()/delete() pair as already described in this thread.

  • How to find the file is exists or not ?

    Hi,
    I am exporting data from forms to excel file with user intervention. i need to give a message when the user select the existing file.
    How can we find whether the file is exists in the selected path or not in forms?
    Thanks in advance
    gopi

    with webutil you can use the webutil_file.exists function in the webutil pll.

  • We need to check whether the order is locked or not?

    I need to check whether the order is locked or not?
    I tried to use this RFC KAUF_ORDER_READ and passed Order no.
    I manually locked the order( using Tcode -IW32) but still Function module is not returning 'X' in FIELDS flg_locked and FLG_ENQUE of the structure E_KAUF.
    the FM should return 'X' in these fields.
    Please help.
    Coudl anybody suggest me how I can check using RFC/ Table fields etc that whether the order is locked or not?

    Hi Rohit,
    Try this code. Check the flag.
    Note : Order number should have left padding of Zero
    DATA : order_tab TYPE TABLE OF ord_pre,
           wa        TYPE ord_pre,
           flag      TYPE rc27x-flg_sel.
    wa-aufnr = '000004006789'. "Order number should have left padding of Zero
    APPEND wa TO order_tab.
    CALL FUNCTION 'CO_ZF_ORDER_READ'
    EXPORTING
       flg_dialog               = ' '
    *   FLG_ENQUEUE              = 'X'
    *   OBJECTS_IMP              = ' '
    *   EXPLODE_IMP              = ' '
    *   FLG_PROT_IMP             = ' '
    *   FLG_NO_EXTERNAL          = ' '
    *   FLG_NO_BANF              =
    *   FLG_CHECK_SIM            =
    *   IMPORT_MESSAGE_ID        =
    *   CHECK_STATUS_READ        = ' '
    *   FLG_NO_GOS               = ' '
    *   FLG_CALLED_TO_COPY       = ' '
    IMPORTING
       flg_enqueue_ok           = flag
    *   FLG_ESCAPE               =
      TABLES
    *   AUFNR_DEL_EXP            =
        aufnr_tab_imp            = order_tab
    EXCEPTIONS
       ORDER_NOT_FOUND          = 1
       RELEASE_NO_CHANGE        = 2
       OTHERS                   = 3
    IF sy-subrc = 0.
      WRITE flag. "If Flag is X order is not locked
    ENDIF.
    Regards
    Rajvansh
    Edited by: Rajvansh Ravi on Nov 27, 2008 12:33 PM

  • I am trying to import cr2files from the camera into lightroom 5 and keep getting an error message saying Lightroom can not read the files and therefore will not import them.  Has anyone had a similar problem-.thanks

    I am trying to import cr2files from the camera into lightroom 5 and keep getting an error message saying Lightroom can not read the files and therefore will not import them.  Has anyone had a similar problem….thanks

    If you are having the same problem, i.e. a disk permission problem, open your favorite search engine and search on, "change disk permissions", and I think you'll find plenty of information on how to fix the problem. This is a Lightroom forum. Your problem is with your operating system. There is no sense in rewriting instructions that are already available if you do a simple search.

  • How to get the files in presentation server while uploading?

    how to get the files in presentation server while uploading?
    give me the function module name

    Hi,
    PARAMETERS:  P_FILE LIKE RLGRAP-FILENAME DEFAULT C_PRES.  "Prsnt Srvr
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FILE.
      CALL FUNCTION 'WS_FILENAME_GET'
        EXPORTING
          DEF_PATH         = P_FILE
          MASK             = ',..'
          MODE             = '0 '
          TITLE            = 'Choose File'
        IMPORTING
          FILENAME         = P_FILE
        EXCEPTIONS
          INV_WINSYS       = 1
          NO_BATCH         = 2
          SELECTION_CANCEL = 3
          SELECTION_ERROR  = 4
          OTHERS           = 5.

  • The File name property is not valid. The file name is a device or contains invalid characters

    I have an SSIS task that has run successfully for years. They just moved the dtsx to a new server and now it is failing. 
    Issue:
    The task has a data flow that writes a raw file destination. It then has a subsequent data flow that reads the raw file destination. 
    The path and name of the raw file is passed to each of the data flows via the same variable. 
    The raw file resides in a folder on the server in the same path that the dtsx resides in. 
    The task fails with the "The File name property is not valid. The file name is a device or contains invalid characters" error when trying to access the raw file.
    What we have done to troubleshoot:
    1. I ran the task successfully on my local machine so it is definitely a server issue.
    2. The first thing we were seeing was that it failed trying to write to the raw file. The task is set to "Create Always". 
    3. We saw that the dba's copied over the entire directory structure from the old server which included a previously created raw file, so we deleted the raw file.
    4. We reran the task and it successfully wrote a new raw file but then failed on reading the raw file with the same error as above.
    5. We reran the task AGAIN and this time it failed trying to write the raw file throwing the same error as above.
    6. The dba looked at the directory and the account that performs the task has full control.
    7. The dba looked at the raw file that was created and verified that the account that performs the task has full control of the file and that it is the owner of the file.
    Summary:
    The task fails when trying to access the file EXCEPT when the file does not exist. In that situation it can write the file but subsequently fails in accessing it again.

    Hi Whalensdad,
    Based on my research, the issue can be caused by the following reasons:
    There are some invalid characters in the File name at package runtime. In this scenario, just as Russ said, could you please post the value that is in the File name variable? Also use a Script Task with Messagebox.show to show the variable values at runtime.
    May be it changes to others at run time.
    The account runs the package not having access to all the folders in the path. Since you are moving the dtsx file from one server to the current server, do you also move the raw file to the same folder in the current server? Does the user runs the package
    have access to all the folders in the path? To solve this, please ensure that the user has access to all folders and the raw file in the path on the current server.
    Thanks,
    Katherine Xiong
    If you have any feedback on our support, please click
    here.
    Katherine Xiong
    TechNet Community Support
    Please see the response above. I can't use a message box on a server so I logged the values to the database. The resource account has full control to the folder. I haven't been able to get the DBA to check the SQL Agents permissions, but I was always under
    the impression that if you use "Run As" on the task, it will not use the SQL Agent but the account you identify it to "Run As". The "Run As" account has full control on the folder and file.

  • HI. I have itunes 10.6.1.7. When I goto movies i am not able to add and when I click on add file to library and select the file and add its not getting added. When i goto Library it says  that movies I add are in library.Which I cant add

    HI. I have itunes 10.6.1.7. When I goto movies i am not able to add and when I click on add file to library and select the file and add its not getting added. When i goto Library it says "feature films and home movies you add to itunes appear in movies in your iTunes library. To play a movie, just double click it". And below are two options for Downloading movies from store and rent movies. Please help.

    I get the exactly the same problem with win 7, i rang apple support who suggested i try another machine/or create another account on my machine???? why should i, stupid ipad 3rd gen is now sitting here un syncable, apple support ....tut tut very poor support, its a shame im out of the 7 day period otherwise this ipad would be going straight back, older versions of itunes worked fine, some one must know a fix for this??

  • The file "itunes library" could not be read

    I just barely got a brand new mac and transferred my files from my old mac electronically via the prompt when initially starting up the computer through the wireless connection. I just tried to open iTunes for the first time and it won't open because the error message, "The file 'iTunes Library' cannot not be read because it was created by a newer version of iTunes." How do I find this file and remove it so that my iTunes will open?

    Welcome to the forums Nelchie
    In your Home/Music folder you will see a folder 'iTunes'. Inside that is your iTunes Music folder (don't touch that - it's where all your music is.) You should also see there a iTunes Library file, that's the one you want to move out. You MAY have to add the contents of the iTunes Music folder when you relaunch iTunes.
    If you want your old playlists, do this : locate a file called iTunes Music Library.xml on your old machine and copy it to the desktop of your new Mac. Then, in iTunes use the Import command to get that file into iTunes, and hopefully all your playlists will appear.

Maybe you are looking for