Problem during remove file .nfs into directory

Hi,
I've an java application that remove all file present into directory.
The code are follow:
          String messaggioErrore="";
          if (!"".equals(archivio.getPathHD1())){
          File dirArchivio = archivio.percorso(Documento.SORGENTE_HD1);
          boolean esiste = dirArchivio.exists();
     if (esiste){
          boolean cancellabile = dirArchivio.canWrite();
          if (cancellabile){
          FileUtils.deleteDirectory(dirArchivio);
          boolean esisteAncora = dirArchivio.exists();
          if (esisteAncora){
          //errore --> problemi durante la cancellazione della directory dell'archivio
          messaggioErrore += "Cancellazione incompleta della directory " + archivio.getPathHD1();
          if (log.isDebugEnabled()) {
               log.debug("Cancellazione incompleta della directory " + archivio.getPathHD1());
          else {
               if (log.isDebugEnabled()) {
                    log.debug("L'archivio " + archivio.getIdarchivio() + " � stato eliminato dal file system.");
          else{
          //errore --> problemi durante la cancellazione della directory dell'archivio
                         messaggioErrore += "Impossibile cancellare la directory " + archivio.getPathHD1() + ", non si dispone del permesso per farlo";
                         if (log.isDebugEnabled()) {
                              log.debug("Errore durante la cancellazione dell'archivio " + archivio.getIdarchivio() + " dal file system: non si hanno i permessi per cancellare la cartella contenente l'archivio. ");
     else{
               //se non esiste significa che l'ho gi� eliminata
               messaggioErrore += "L'archivio che si sta cercando di eliminare, non esite nel percorso: " + dirArchivio.getPath();
               if (log.isDebugEnabled()){
                    log.debug("L'archivio che si sta cercando di eliminare, non esite nel percorso: " + dirArchivio.getPath());
If into directory is present a file with extension .nfsXXXXX, FileUtils.deleteDirectory(dirArchivio) method not delete it but delete all other.
Why?
The code of method FileUtils.deleteDirectory(dirArchivio) is:
     public static void deleteDirectory(File file) {
          File[] files = file.listFiles();
          if(files != null){
               //cancellazione del suo contenuto (ricorsivo)
               for (int i = 0; i < files.length; i++) {
                    if (files.isDirectory())
                         deleteDirectory(files[i]);
                    else
                         files[i].delete();
          //cancellazione della directory stessa
          file.delete();
My application run in a server with Redhat Enterprise Edition (not the last) and NFS protocol into NAS.
The application run like user root in a server.

I don't test the return value of delete method but I test the existences of the directory after delete directory operation.
I want to know where is the problem before to change the code.
x cottom: I'm not the server administrator and he want to run my application like user root, sigh.
String messaggioErrore="";
if (!"".equals(archivio.getPathHD1())){
File dirArchivio = archivio.percorso(Documento.SORGENTE_HD1);
boolean esiste = dirArchivio.exists();
if (esiste){
boolean cancellabile = dirArchivio.canWrite();
if (cancellabile){
FileUtils.deleteDirectory(dirArchivio);
boolean esisteAncora = dirArchivio.exists();
if (esisteAncora){
//errore --> problemi durante la cancellazione della directory dell'archivio
messaggioErrore += "Cancellazione incompleta della directory " + archivio.getPathHD1();
if (log.isDebugEnabled()) {
log.debug("Cancellazione incompleta della directory " + archivio.getPathHD1());
else {
if (log.isDebugEnabled()) {
log.debug("L'archivio " + archivio.getIdarchivio() + " � stato eliminato dal file system.");
else{
//errore --> problemi durante la cancellazione della directory dell'archivio
messaggioErrore += "Impossibile cancellare la directory " + archivio.getPathHD1() + ", non si dispone del permesso per farlo";
if (log.isDebugEnabled()) {
log.debug("Errore durante la cancellazione dell'archivio " + archivio.getIdarchivio() + " dal file system: non si hanno i permessi per cancellare la cartella contenente l'archivio. ");
else{
//se non esiste significa che l'ho gi� eliminata
messaggioErrore += "L'archivio che si sta cercando di eliminare, non esite nel percorso: " + dirArchivio.getPath();
if (log.isDebugEnabled()){
log.debug("L'archivio che si sta cercando di eliminare, non esite nel percorso: " + dirArchivio.getPath());
public static void deleteDirectory(File file) {
File[] files = file.listFiles();
if(files != null){
//cancellazione del suo contenuto (ricorsivo)
for (int i = 0; i < files.length; i++) {
if (files.isDirectory())
deleteDirectory(files);
else
files.delete();
//cancellazione della directory stessa
file.delete();
}

Similar Messages

  • I am having problems using mov files imported into a project. I get the message "Not rendered" in the Canvas and clip won't play. Can anyone help?

    I am having problems using mov files imported into a project. I get the message "Not rendered" in the Canvas and clip won't play. Can anyone help?

    When clips won't play without rendering in the Timeline, it usually means that the clip's specs don't match the Sequence settings.
    A .mov file could be made from any number of codecs; the QuickTime Movie designation is merely a container for video files of all kinds.  Since FCE only works with the QuickTime DV codec and the Apple Intermediate Codec (AIC) natively, if your mov files aren't one of those two, you need to convert them PRIOR to importing into your FCE project.
    -DH

  • Help.....problem with obtaining files from a directory

    Anaybody knows how to obtain list of files from a directory from j2me
    as in j2se ?

    I don't think it's possible because a MIDlet lives isolated from the rest of the device's filesystem. It can only store persistent data on the Record Media Store, which is unique for each MIDlet.

  • Problems with moving files to ora directory UTL_FILE.PUT_RAW - ORA-29285

    hi,
    i'm using apex 4.1
    i have a procedure which moves my file from apex_application_files to ORA directory.
    if i choose a text file or small word document which is 1kb, it works. but if i have pdf file (85kb) or word document (16kb) it gives me ORA-29285: file write error
    what's my problem?
    PROCEDURE put_file_to_server (p_filename IN VARCHAR2,p_cert_type IN VARCHAR2,p_cert_pk IN NUMBER)
    AS
    l_file UTL_FILE.file_type;
    l_blob_len INTEGER;
    l_pos INTEGER := 1;
    l_amount BINARY_INTEGER := 32767;
    l_buffer RAW (32767);
    v_new_filename VARCHAR2(100);
    v_bfile BFILE ;
    BEGIN
    -- delete from apex_application_files;
    --Neuen Dateinamen generieren
    v_new_filename := p_cert_type||'_'||p_cert_pk;
    v_bfile := BFILENAME (v_directory, v_new_filename);
    --Datei erstellen
    l_file := UTL_FILE.fopen(v_directory,v_new_filename,'w');
    IF DBMS_LOB.FILEEXISTS (v_bfile) = 1 THEN
    cert_log_pkg.m(p_module => 'CERT_FILE_PKG.PUT_FILE_TO_SERVER',p_msg => 'File exists');
    FOR rec IN (select blob_content lblob from apex_application_files where rownum = 1)
    LOOP
    l_blob_len := DBMS_LOB.getlength(rec.lblob);
    cert_log_pkg.m(p_module => 'CERT_FILE_PKG.PUT_FILE_TO_SERVER',p_msg => 'Filesize is '||l_blob_len);
    WHILE l_pos < l_blob_len LOOP
    DBMS_LOB.read (rec.lblob, l_amount, l_pos, l_buffer);
    UTL_FILE.put_raw (l_file, l_buffer, FALSE);
    l_pos := l_pos + l_amount;
    END LOOP;
    COMMIT;
    END LOOP;
    --Datei schließen
    UTL_FILE.fclose(l_file);
    else
    cert_log_pkg.m(p_module => 'CERT_FILE_PKG.PUT_FILE_TO_SERVER',p_msg => 'Datei doesn't exist');
    end if;
    EXCEPTION
    WHEN OTHERS
    THEN
    -- Close the file if something goes wrong.
    IF UTL_FILE.is_open (l_file) THEN
    UTL_FILE.fclose (l_file);
    END IF;
    delete from apex_application_files;
    RAISE;
    delete from apex_application_files;
    END put_file_to_server;

    Sorry but din't test this...Can you give it a try and see if this works?
    PROCEDURE put_file_to_server(
        p_filename  IN VARCHAR2,
        p_cert_type IN VARCHAR2,
        p_cert_pk   IN NUMBER)
    AS
      l_file UTL_FILE.file_type;
      l_blob_len INTEGER;
      l_pos      INTEGER      := 1;
      l_amount BINARY_INTEGER := 32767;
      l_buffer RAW (32767);
      v_new_filename VARCHAR2(100);
      v_bfile BFILE ;
      vblob BLOB;
      vstart NUMBER := 1;
      my_vr RAW(32000);
      bytelen NUMBER := 32000;
      LEN     NUMBER;
    BEGIN
      -- delete from apex_application_files;
      --Neuen Dateinamen generieren
      v_new_filename := p_cert_type||'_'||p_cert_pk;
      v_bfile        := BFILENAME (v_directory, v_new_filename);
      --Datei erstellen
      --l_file                          := UTL_FILE.fopen(v_directory,v_new_filename,'w');
      l_file                          := UTL_FILE.fopen(v_directory,v_new_filename, 'WB', 32760);
      IF DBMS_LOB.FILEEXISTS (v_bfile) = 1 THEN
        cert_log_pkg.m(p_module => 'CERT_FILE_PKG.PUT_FILE_TO_SERVER',p_msg => 'File exists');
        FOR rec IN
        (SELECT blob_content lblob,
          LENGTH(blob_content) LEN
        FROM apex_application_files
        WHERE rownum = 1
        LOOP
          cert_log_pkg.m(p_module => 'CERT_FILE_PKG.PUT_FILE_TO_SERVER',p_msg => 'Filesize is '|| LEN);
          IF LEN < 32760 THEN
            utl_file.put_raw(l_file,lblob);
            utl_file.fflush(l_file);
          ELSE -- write in pieces
            vstart      := 1;
            WHILE vstart < LEN
            LOOP
              dbms_lob.read(vblob,bytelen,vstart,my_vr);
              utl_file.put_raw(l_file,my_vr);
              utl_file.fflush(l_file);
              -- set the start position for the next cut
              vstart := vstart + bytelen;
              -- set the end position if less than 32000 bytes
              x         := x - bytelen;
              IF x       < 32000 THEN
                bytelen := x;
              END IF;
            END LOOP;
          END IF;
         END LOOP;
        ELSE
          cert_log_pkg.m(p_module => 'CERT_FILE_PKG.PUT_FILE_TO_SERVER',p_msg => 'Datei doesnt exist');
        END IF;
        utl_file.fclose(l_file);
      EXCEPTION
      WHEN OTHERS THEN
        -- Close the file if something goes wrong.
        IF UTL_FILE.is_open (l_file) THEN
          UTL_FILE.fclose (l_file);
        END IF;
        DELETE FROM apex_application_files;
        RAISE;
        DELETE FROM apex_application_files;
      END put_file_to_server;Edited by: Vitor Rodrigues on 17/Fev/2012 12:03

  • Problem during retriving file from application Server

    Hi all,
    i am trying to upload a world file (from desktop ) on application server and
    retrieve it back on local desktop.
    during retrieval of file from application server i am getting all the data in encoded format .
    i am using -
    open DATASET p_fpath for output in text mode encoding UTF-8 WITH SMART LINEFEED.
    plz help.

    Hi,
    use the tcodes CG3Y and
    CG3Z
    Or
    try with this command
    open DATASET p_fpath for output in text mode encoding default.
    Regards,
    nagaraj

  • Problem during importing file

    Hi all,
    I wrote the following command in the cmd: (imp user/pass file=d:\hr.dmp full=y)
    During the import process I recieve this message: (About to enable constraints)
    and I wait alot and it didn't finish.

    Is it still running? Do you see the process continuing to consume CPU, for example? Enabling constraints involves building indexes which may well take quite a while.
    Justin

  • Problem removing files and other issues

    Hello, i have been using Solaris 10 now for almost a week. I am starting to see a lot of flaws in it. I hate to go back to Linux when I have wanted Unix for so long. well here are my problems.
    Removing files from the DIR /export/home/ gives me this error:
    Error "Not on the same file system" while deleting "/export/hom...-1.src.rpm".
    would you like to continue?
    [Skip] [X_Cancel] [Retry]
    I seem to get that error everytime I try to delete a downloaded file, also I am logged in as root. (because I created a user account, assigined the user a group and password and I still can't log in with it)
    I also configure my panel, and add applications like the cd player, and when i reboot my computer, the applications are question marks wich are also dead links.
    I can't set my clock. the timezone seems to be messed up.
    When I reboot my computer or shut it down, it takes longer everytime to boot back up. I have timed it. The computer has passed infant mortality, but it is still young, and runs good. So i am assuming all my hardware is fine. since i have installed the os, I have installed firefox. and I have used firefox. that is about it. I am loggin in as root, so i am extremely carefull with what i do, I just seem to have a new problem with each log in. I am starting to feel like Unix is losing it's special value, but i want to try and fix the problems before giving up, after all, it has been less than a week.
    If you have any information on anything that i babbled on about thank in advance.

    Had the same problem. This post (external) seems to suggest this is Nautilus problem: http://unix.derkeiler.com/Newsgroups/comp.unix.solaris/2005-04/1109.html
    Deleting stuff form the shell instead works as a workaround, but then you don't have the benefits of trash can.
    / Rich

  • Reading file content into internal table

    Hi All,
    I'm facing problem reading pdf file content into an internal table. I need to read this file from communication server (neither presentation nor application server). I have tried gui_upload , it is working fine but it does not work in batch jobs. Open dataset in binary mode is also not helping much. Could anyone help ?
    Thanks a lot

    "open dataset <filepath> for input in binary mode" should work.... what does it say when you try this?
    Thanks
    Muktar

  • "Program files" directory problem during Microsoft Office Customization Installer in non-English versions of Windows

    We have a document-level customization solution for Word and are experiencing problems during deployment in an environment running on terminal services. The OS (Windows 2012) is English and Word (2013) is non-English (German). 
    Installation is done into the "Program Files" folder correctly. But when trying to start a word document linked to the specific template. The "Microsoft Office Customization Installer" pops up with the error.
    "There was an error during installation"
    From: file:///C:/Programme/[CompanyName]/[Productname]/[Productname].vsto
    Downloading file:///c:/Programme/[CompanyName]/[Productname]/[Productname].vsto did not succeed.
    Exception: ....
    System.Deployment.Application.DeploymentDonwloadException: Download file:///C:/Programme/[Companyname]/Productname]/[Productname].vsto did not suceed. ---> System.Net.WebException: Could not find a part of the path 'C:\Programme\[Companyname]\[Productname]\[Productname].vsto'.
    ---> System.Net.WebException: ...... ---> System.IO.DirectoyNotFoundException......
    The problem seems to be that the installer is looking for C:\PROGRAMME instead of C:\PROGRAM FILES. C:\PROGAMME is the German localized name of PROGRAM FILES (http://en.wikipedia.org/wiki/Program_Files).
    The installer installs the solution correctly deployed into c:\program files, but when the later a user tries to start it and the Microsoft Office Customization Installer is called, it tries to access the non-existing "c:\programme" folder. This
    doesn't exist, because Windows is English.
    Is there any thing related to deploying solutions on a platform which has different languages (mixing/matching of OS language and Office language?)
    Thank you for your help

    Hello,
    1. First, I would confirm with you whether you dealt with the localization for your document-level add-in?
    2. Did you use this way to define the Create a class that defines the post-deployment action part of Put the document of a solution
    onto the end user's computer (document-level customizations only) and did you get the path with Environment.SpecialFolder enum?
    To handle this, I would recommend you consider using Environment.SpecialFolder to set that property.
    Regards,
    Carl
    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.

  • Cant remove a file from a directory

    hi gems...god morning...
    I am facing an issue but i cant figure it out..
    I have two users which belong to same group i.e. user1 and user2
    Now user1 owns a directory(dir1) and the permission is 775.
    Now user2 makes a FTP and places a file(fil1) into that directory(dir1) owned by user1.
    The umask setting is 027 and thats why in that directory(dir1) the file permission becomes 640.
    But when i am trying to delete that file(fil1) using user1, then it is not allowing me..
    what can i do..please suggest...thanks in advance...

    thanks for replying...
    It really looks strange and all i thought it is a code problem..
    Means the scenario i have told here is not from the direct access to the solaris box...
    It is happenning when a batch job is being called from there. The operations the batch job does is to take the file, do some processing and then remove that file. Everything is getting successful except the last step.
    But when I tried from the backend(direct access through putty) then it behaves normally.
    So i am confirm that it is a code issue. I have told the developers to check the code.

  • Grab new files and remove once processed from directory

    Currently I have a JAVA agent that is Hardcoded to grab a certain file from a directory and Import it into a Lotus Domino Rich Text Field on a Document.
    I would like for this agent to look for all files in the directory, grab them, then remove them. Can this be done. My code follows:
    (Sorry I do Not have a Color Coder)
    import lotus.dxl.*;
    import java.io.*;
    public class sample2
    static DXLDatabase db1;
    static DXLSession sess;
    static DXLImporter imp1;
    static DXLImportOptions impopt1;
    public static void main( String[] args )
    try {
         db1 = new DXLDatabase("XMLsend.nsf", "");
         // Create a session and initialize it
         sess = new DXLSession();
         sess.init();
         imp1 = new DXLImporter(sess);
         impopt1 = new DXLImportOptions();
         // Make a change to the DXLImportOptions object.
         impopt1.setCreateDbOption(impopt1.CREATEDB_ALWAYS);
         // The following line must be called before any
         // DXLImportOptions changes will take effect.
         imp1.setImportOptions(impopt1);
         FileInputStream fis1 = new FileInputStream("file:///C:/Data/XML/Xmltest.xml");
         imp1.importDXL(fis1, db1);
         catch (IOException ex) {
         System.out.println("Caught a Java IO Exception");
         System.out.println("error message = " + ex.getMessage());
         catch (DXLImportException ex) {
         System.out.println("\nCaught a DXLImportException\n");
         System.out.println("error message = " + ex.getMessage());
         ex.destroy();
         catch (DXLException ex) {
         System.out.println("\nCaught a DXLException\n");
         System.out.println("error message = " + ex.getMessage());
         if (ex.isImportException())
              System.out.println("Import Error");
         else if (ex.isNotesException()) {
              System.out.println("Notes Error");
              System.out.println("Notes error code = " + ex.getNotesErrorCode());
         else
              System.out.println("Unknown Error");
         ex.destroy();
         finally {
         try {
              if(db1 != null) {
              db1.destroy();
              if(imp1 != null) {
              imp1.destroy();
              if(impopt1 != null) {
              impopt1.destroy();
              if(sess != null) {
              sess.destroy();
         catch(DXLException e) {
              System.err.println("A DXLException occurred during destroy()s");
              e.destroy();
         catch(Exception e) {
              System.err.println("An Exception occurred during destroy()s");
    }

    import lotus.dxl.*;
    import java.io.*;
    public class sample2
    static DXLDatabase db1;
    static DXLSession sess;
    static DXLImporter imp1;
    static DXLImportOptions impopt1;
    public static void main( String[] args )
    try {
    db1 = new DXLDatabase("XMLsend.nsf", "");
    // Create a session and initialize it
    sess = new DXLSession();
    sess.init();
    imp1 = new DXLImporter(sess);
    impopt1 = new DXLImportOptions();
    // Make a change to the DXLImportOptions object.
    impopt1.setCreateDbOption(impopt1.CREATEDB_ALWAYS);
    // The following line must be called before any
    // DXLImportOptions changes will take effect.
    imp1.setImportOptions(impopt1);
    FileInputStream fis1 = new FileInputStream("file:///C:/Data/XML/Xmltest.xml");
    imp1.importDXL(fis1, db1);
    catch (IOException ex) {
    System.out.println("Caught a Java IO Exception");
    System.out.println("error message = " + ex.getMessage());
    catch (DXLImportException ex) {
    System.out.println("\nCaught a DXLImportException\n");
    System.out.println("error message = " + ex.getMessage());
    ex.destroy();
    catch (DXLException ex) {
    System.out.println("\nCaught a DXLException\n");
    System.out.println("error message = " + ex.getMessage());
    if (ex.isImportException())
    System.out.println("Import Error");
    else if (ex.isNotesException()) {
    System.out.println("Notes Error");
    System.out.println("Notes error code = " + ex.getNotesErrorCode());
    else
    System.out.println("Unknown Error");
    ex.destroy();
    finally {
    try {
    if(db1 != null) {
    db1.destroy();
    if(imp1 != null) {
    imp1.destroy();
    if(impopt1 != null) {
    impopt1.destroy();
    if(sess != null) {
    sess.destroy();
    catch(DXLException e) {
    System.err.println("A DXLException occurred during destroy()s");
    e.destroy();
    catch(Exception e) {
    System.err.println("An Exception occurred during destroy()s");
    }

  • Hi, the problem of deleting files / videos seeds desktop to go into Terminal and then sudo rm-rf ~ /. Trash Pohangina the answers I've had e of someone in her forum but when I write procedures line in Terminal as the Krever my password and it can not writ

    Hi, the problem of deleting files / videos seeds desktop to go into Terminal and then sudo rm-rf ~ /. Trash Pohangina the answers I've had e of someone in her forum but when I write procedures line in Terminal as the Krever my password and it can not write anything there, I write but nothing comes and my problem is not löst.När I want to delete the movie / video image Frin desktop still arrive Finder wants to make changes.Type your password to allow this. But even that I type my password file / video is left I need help in an easier way or another set-even those on the terminal that I can not type my password to solve the problem Regards Toni

    If you want to preserve the data on the boot drive, you must try to back up now, before you do anything else.
    There are several ways to back up a Mac that isn't fully working. You need an external hard drive to hold the backup data.
    1. Boot from the Recovery partition or from a local Time Machine backup volume (option key at startup.) Launch Disk Utility and follow the instructions in this support article, under “Instructions for backing up to an external hard disk via Disk Utility.”
    2. If you have access to a working Mac, and both it and the non-working Mac have FireWire or Thunderbolt ports, boot the non-working Mac in target disk mode. Use the working Mac to copy the data to another drive. This technique won't work with USB, Ethernet, Wi-Fi, or Bluetooth.
    3. If the internal drive of the non-working Mac is user-replaceable, remove it and mount it in an external enclosure or drive dock. Use another Mac to copy the data.

  • Bdc upload file data into internal table problem with gui_upload fm

    Hello experts,
    my coding is like this ..
    data : begin of itab occurs 0 .
    field1 like mara-matnr,
    field2......
    etc,
    end of itab.
    data: file1 type string.
    parameter :file like rlgrap-filename.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR file.
    CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
    EXPORTING
    static = 'X'
    mask = space
    field_name = 'FILE'
    CHANGING
    file_name = file.
    START-OF-SELECTION.
    FILE1 = FILE . "HERE I AM PASSING INTO STRING
    CALL FUNCTION 'GUI_UPLOAD'
    EXPORTING
    filename = FILE1
    FILETYPE = 'ASC'
    has_field_separator = 'X'
    TABLES
    data_tab = itab. " here the data is not populating from the file , it is giving the error like speified table not found.
    HERE i am getting the message like "specified table name not recgonised" . the data is not populating into the itab from the file.
    file structure is same as the internal table.
    I stored the file as .txt( ie in notepad).
    my file is like this..
    10000 200 323 sunndarrr.......
    i had a problem with this bdc , i am getting like "specified table name not recgonised" in the fm gui_upload while debugging.
    when i am using the ws_upload it is working fine.
    please guide me where i have done the mistake.
    thank you so much for all the replies.

    Hi,
    Have a look on the following code.
    TABLES: kna1.
    DATA: BEGIN OF itab1 OCCURS 0,
          str(255),
          END OF itab1.
    DATA: itab2 TYPE kna1 OCCURS 0 WITH HEADER LINE.
    CALL FUNCTION 'WS_UPLOAD'
      EXPORTING
        filename                = 'D:\ABAP EVE\ffile1.txt'
        filetype                = 'ASC'
      TABLES
        data_tab                = itab1
      EXCEPTIONS
        conversion_error        = 1
        file_open_error         = 2
        file_read_error         = 3
        invalid_type            = 4
        no_batch                = 5
        unknown_error           = 6
        invalid_table_width     = 7
        gui_refuse_filetransfer = 8
        customer_error          = 9
        no_authority            = 10
        OTHERS                  = 11.
    IF sy-subrc <> 0.
      WRITE:/ 'sorry'.
    ELSE.
      LOOP AT itab1.
        SPLIT itab1-str AT ',' INTO itab2-kunnr itab2-name1.
        APPEND itab2.
      ENDLOOP.
      IF sy-subrc = 0.
        LOOP AT itab2.
          WRITE:/ itab2-kunnr,itab2-name1.
          INSERT INTO kna1 VALUES itab2.
        ENDLOOP.
        IF sy-subrc = 0.
          WRITE:/ 'inserted'.
        ELSE.
          WRITE:/ 'not inserted'.
        ENDIF.
      ELSE.
        WRITE:/ 'fail'.
      ENDIF.
    ENDIF.
    Flat file:
    10001,Sadney
    10003,Yogesh
    20005,Madan
    1.U need to define internal table with one field of max size
    2.upload the flat file data into that internal table
    3.split that internal table data into another internal table(having fields)
    <REMOVED BY MODERATOR>
    thanks,
    Chandu
    Edited by: Alvaro Tejada Galindo on Apr 30, 2008 12:17 PM

  • In ABAP How to locate an Input file  from a Directory during run time

    I'm loading data from a flat file(text file) into SAP thru BDC programs. All my input files are present in Application server.How to locate an Input file in a directory during run time to process BDC programs programmatically. Are there any in-built functions?Provided me some sample code or any method of doing the same.

    Hello Murali,
    you should ask this question in the ABAP forum.
    Regards
    Gregor

  • Problem removing files with CVS (JDeveloper 10.1.3 Preview)

    Hello,
    I've got a problem removing files from CVS :
    - I right-click on the file I want to remove -> Versioning -> Remove
    - The file is removed from local directory, and it appears in "Pending changes" view, on "Outgoing" tab. Its status is "scheduled for removal".
    - When I commit the file in the "Pending Changes" view, and click OK, then nothing happens. The file stay with "scheduled for removal" status, and it is not deleted on CVS server.
    I tried to commit the package or the project, but it's the same thing.
    Files additions and modifications work correctly.
    I'm using JDeveloper 10.1.3 Preview version.
    Is this a bug ? Or do I do something wrong ? Is there an other way to solve my problem ?
    Thanks.

    Here is the message displayed in the log window when I remove file (in Versioning menu) :
    C:\J2EE\Projets\budgetapptest\src\test\swm>
    $ <internal cvs client> remove -l Test_suppr_1.java
    cvs remove: scheduling `Test_suppr_1.java' for removal
    cvs remove: use 'cvs commit' to remove this file permanently
    Here is the message displayed in the log window when I COMMIT the "scheduled for removal" file :
    C:\J2EE\Projets\budgetapptest\src\test\swm>
    $ <internal cvs client> commit -F C:\DOCUME~1\19363~1.WIN\LOCALS~1\Temp\.jdevcvs_cmt22356.tmp Test_suppr_1.java
    cvs commit: Examining .
    Thanks.
    Message was edited by:
    user444728

Maybe you are looking for

  • How to use a ASUS CD to burn pic

    Hello I hace an ASUS 08D2S-U  not great so far !  i just cannot find how to burn a pic to the CD from my pictures, hope someone knows I have come close but a windows says : do you really want to burn a blanck CD to an other CD ?? lol  I have OSX mave

  • Guest Cluster error in Hyper-V Cluster

    Hello everybody, in my environment I do have an issue with failover clusters (Exchange, Fileserver) while performing a live migration of one virtual clusternode. The clustergroup is going offline. The environment is the following: 2x Hyper-V Clusters

  • Is there a problem with the 32bit installer for Premiere Elements 10.0?

    When i download and unzip the program there is not setup.exe in the folder.  There was no problem with the 64bit version.

  • The SAP Ecosystem

    Hello, I've found some interesting ideas about the SAP Ecosystem and I would like to know more about it, since I'm doing a Phd focused on open innovation processes and the way they impact the organization. From the SAP global website I wasn't able to

  • A datatable doesn't show the value of the associated backing bean.

    Hi everybody. I have a JSF page with this data table. <h:dataTable id="tabella" border="1" var="#{dettaglioProfessoreBean.corrente.corsi_tenuti}" var="corsi">      <h:column id="colonna">           <f:facet name="header">                <h:outputText