How to set a trail file as completed?

I am using GoldenGate to do an initial load, using parameters like:
EXTFILE /tmp/aa, MAXFILES 1000, MEGABYTES 2000
I don't understand why all the files except the last one are marked as completed.
In my use case, I need all the generated files to be completed.
What is the reason for the initial load extract not to do that?
That seems like a bug to me?!
What options / tools do I have to either:
- configure the initial load extract to complete the last file;
- complete the last file by hand after the initial load extract process exits.
According to the "Logdump Reference for Oracle GoldenGate," it seems like it's only a matter of setting the FileSize token to the file's size, in the FileHeader record.
I could develop a tool that does that, but I would rather find a better way.
Thanks in advance!

A trail file's "completed" status has a specific meaning, which is independent from the file's size. This status is indicated by setting the FileSize record (type 0x39) in the FileHeader record with flag 0x00 and the file's actual size as its value. I have verified this experimentally.
You are right that a trail file is marked as completed by the trail's writer once the file reaches the configured limit.
In the case of an initial load, the last file is not marked as completed. The last file is typically below the configured size limit, but no additional data is expected to be written into that file. Therefore, I don't see any reason for the last file in an initial load not to be marked as completed?!
I wrote a small script that marks a trail file as completed, by setting the FileSize record to the file's actual size, and by clearing the flag on that record.
When I run this script on the last file of an initial load, this file is considered as completed by any reader, as expected.
I was hoping not to have to write my own script to mark trail files as completed. Is there a standard way to make an initial load extract mark the last file as completed?

Similar Messages

  • How conform that a receiving file is completly received.

    i am sending a file.
    how conform that a receiving file is completly received?

    server code
    package server;
    import java.beans.XMLEncoder;
    import java.io.*;
    import java.net.*;
    import java.nio.channels.FileLock;
    import java.sql.ResultSet;
    import java.util.ArrayList;
    public class Server2 {
        public static void main(String args[]) {
            int port = 6789;
            Server2 server = new Server2(port);
            server.startServer();
        // declare a server socket and a client socket for the server;
        // declare the number of connections
        ServerSocket echoServer = null;
        Socket clientSocket = null;
        int numConnections = 0;
        int port;
        public Server2(int port) {
            this.port = port;
        public void stopServer() {
            System.out.println("Server cleaning up.");
            System.exit(0);
        public void startServer() {
            // Try to open a server socket on the given port
            // Note that we can't choose a port less than 1024 if we are not
            // privileged users (root)
            try {
                echoServer = new ServerSocket(port);
            } catch (IOException e) {
                System.out.println(e);
            System.out.println("Server is started and is waiting for connections.");
            System.out.println("With multi-threading, multiple connections are allowed.");
            System.out.println("Any client can send -1 to stop the server.");
            // Whenever a connection is received, start a new thread to process the connection
            // and wait for the next connection.
            while (true) {
                try {
                    clientSocket = echoServer.accept();
                    numConnections++;
                    Server2Connection oneconnection = new Server2Connection(clientSocket, numConnections, this);
                    new Thread(oneconnection).start();
                } catch (IOException e) {
                    System.out.println(e);
    class Server2Connection implements Runnable {
        //BufferedReader is;
        ObjectInputStream is;
        ObjectOutputStream os;
        XMLEncoder xml;
        Socket clientSocket;
        String numConn;
        int id;
        Server2 server;
    FileLock fl ;
        public Server2Connection(Socket clientSocket, int id, Server2 server) {
            this.clientSocket = clientSocket;
            this.id = id;
            this.server = server;
            numConn = "Connection " + id + " established with: " + clientSocket;
            System.out.println("Connection " + id + " established with: " + clientSocket);
            try {
                is = new ObjectInputStream(clientSocket.getInputStream());
                os = new ObjectOutputStream(clientSocket.getOutputStream());
                //xml = new XMLEncoder(new BufferedOutputStream( new FileOutputStream("first.xml")));
              //  xml = new XMLEncoder(new BufferedOutputStream( new FileOutputStream("first.xml")));
                FileOutputStream fs = new FileOutputStream("first.xml");
                BufferedOutputStream br = new BufferedOutputStream(fs);
                xml = new XMLEncoder(br);
                //fl =  fs.getChannel().lock();
            } catch (IOException e) {
                System.out.println(e);
        public void run() {
            Object line;
            try {
                boolean serverStop = false;
                int n = 0;
                while (true) {
                    line = is.readObject();
                    if (line instanceof String) {
                        String s = (String) line;
                        System.out.println("In Server :: The input is " + s);
                        UserData ud = new UserData();
                        ud.setAdd("karachi");
                        ud.setId("123");
                        ud.setName("XML testing..");
                        System.out.println("Tring to lock locked..");
                        fl.channel().tryLock();
                        System.out.println("File locked..");
                        xml.writeObject(ud);
                        xml.flush();
                        //os.writeObject(ud);
                        n = Integer.parseInt(s);
                    if (n == -1) {
                        serverStop = true;
                        break;
                    if (n == 0) {
                        break;
                //  System.out.println("Connection " + id + " closed.");
                fl.release();
                is.close();
                os.close();
                xml.close();
                clientSocket.close();
                if (serverStop) {
                    server.stopServer();
            } catch (Exception e) {
                System.out.println("Exception..." + e);
    client code
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    package scoket1;
    import java.beans.XMLDecoder;
    import server.UserData;
    //import server.MyRS;
    import java.io.*;
    import java.net.*;
    import java.sql.ResultSet;
    import java.util.ArrayList;
    import javax.swing.JOptionPane;
    public class Client {
        public static void main(String[] args) {
            String hostname = "localhost";
            int port = 6789;
            // declaration section:
            // clientSocket: our client socket
            // os: output stream
            // is: input stream
            Socket clientSocket = null;
            ObjectOutputStream os = null;
            ObjectInputStream is = null;
            XMLDecoder de = null;
            // Initialization section:
            // Try to open a socket on the given port
            // Try to open input and output streams
            try {
                clientSocket = new Socket(hostname, port);
                os = new ObjectOutputStream(clientSocket.getOutputStream());
                is = new ObjectInputStream(clientSocket.getInputStream());
                de = new XMLDecoder(new BufferedInputStream(new FileInputStream("first.xml")));
            } catch (UnknownHostException e) {
                System.err.println("Don't know about host: " + hostname);
            } catch (IOException e) {
                System.err.println("Couldn't get I/O for the connection to: " + hostname);
            // If everything has been initialized then we want to write some data
            // to the socket we have opened a connection to on the given port
            if (clientSocket == null || os == null || is == null) {
                System.err.println("Something is wrong. One variable is null.");
                return;
            try {
                while (true) {
                    System.out.print("Enter an integer (0 to stop connection, -1 to stop server): ");
                    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
                    String keyboardInput = br.readLine();
                    os.writeObject(keyboardInput);
                    int n = Integer.parseInt(keyboardInput);
                    if (n == 0 || n == -1) {
                        break;
    //                Object responseObj = null;
    //                responseObj = is.readObject();
                    Object test = null;
                    test = (Object) de.readObject();
                    if (test instanceof String) {
                        String msg = (String) test;
                        System.out.println(msg);
                    } else if (test instanceof UserData) {
                        System.out.println("XML File Test succesful .. be happy ..");
                        System.out.println("Array of User Data ..");
                        UserData ud = (UserData) test;
                        System.out.println("Name:-    " + ud.getName());
                        System.out.println("ID :-     " + ud.getId());
                        System.out.println("Address:- " + ud.getAdd());
                // clean up:
                // close the output stream
                // close the input stream
                // close the socket
                os.close();
                is.close();
                clientSocket.close();
            } catch (UnknownHostException e) {
                System.err.println("Trying to connect to unknown host: " + e);
            } catch (Exception e) {
                System.err.println("Exception:  " + e);
    }

  • File adapter - how to make shure a file is complete for sender/receiver?

    Hi everybody,
    I want to use the file adapter and a question arises for both sender and
    receiver:
    On the sender: How does the PI know when a file is complete for reading?
    Can this be a problem (PI starts reading the file when it is not complete?)
    On the receiver: How does the receiver know when a file written by
    PI is complete? Does PI support some kind of write to tmpfile then rename
    schema?
    Thanks for any suggestions
    Best regards
    Stefan

    Hi Stefan,
    On the sender: How does the PI know when a file is complete for reading?
    Can this be a problem (PI starts reading the file when it is not complete?)
    Yes, it could be a problem: Have a look at below from help.sap
    Advanced Mode
    To specify additional parameters in the adapter configuration, set the Advanced Modeindicator.
    ●      Msecs to Wait Before Modification Check
    Enter the number of milliseconds that the adapter must wait before it checks whether the files have been changed.
    This parameter is not available if you have selected File Content Conversion as the Message Protocoland then made an entry under Recordsets per Message that splits an input file into several messages.
    This parameter is applicable only for the File adapter. If you enter a value in this field when configuring the sender FTP adapter, it will have no effect.
    Regards,
    Carlos

  • How to set "lastFieldsOptional" in File Adapter

    Hy,
    somebody could tell me how can set the parameter "lastFieldsOptional" in FilesAdapter.  have the problem that my last two fileds in incoming files sometimes are not insert and the "endlines" character also  insert.
    Thank's
    Mati

    Hi Mattia,
    Please go thru these links for the step by step procedure to do content conversion:
    /people/venkat.donela/blog/2005/06/08/how-to-send-a-flat-file-with-various-field-lengths-and-variable-substructures-to-xi-30
    /people/sap.user72/blog/2005/01/06/how-to-process-csv-data-with-xi-file-adapter
    /people/michal.krawczyk2/blog/2004/12/15/how-to-send-a-flat-file-with-fixed-lengths-to-xi-30-using-a-central-file-adapter
    /people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file
    http://help.sap.com/saphelp_erp2005/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/content.htm
    While doing content conversion you have to mention the field names in header of data type: fieldNames. Hence if the key field is not present it will throw an error in adapter monitoring, FIELD NOT FOUND.
    To make note mapping cannot be performed with a flat file as XI understands only XML. Hence content conversion required.
    I hope the links provided will help you set the parameter "lastFieldsOptional" in the File Adapter.
    Regards,
    Abhy
    PS: AWARD POINTS FOR HELPFUL ANSWERS.

  • How to set server log file severity

    Will some one suggest how to set the severity for messages logged by server to server log file. The admin console consists of setting "Stdout Severity Threshold" which is applicable only to standard out. I need to restrict info messages to be logged in server log file.

    Which release of WebLogic Server are you using? In WebLogic 9.0 there is an attribute on the LogMBean called LogFileSeverity which could be configured to "Warning" so it will not allow Debug and Info level messages to be written to the server log file. In the 8.1 release you would need to do this programatically using a startup class, by getting a reference to the server Logger by invoking weblogic/logging/LoggingHelper.getServerLogger() and setting the appropriate weblogic/logging/WLLevel on the weblogic/logging/FilestreamHandler that writes to the server log file.
    Hope this helps
    Sandeep

  • How to set "Title" as "File Name" in iPhoto 5?

    iPhoto lets you batch rename the title for your photo library of a given roll. So if you have say "Vacation" you can set title to all the photos in there as Vacation -1 , Vacation -2 etc. etc. But, this is just the title for iphoto database. The actual filename will still be as IMG_xxx.jpg (or whatever is default in your digital camera).
    Is there a way to set the Title as File name ?? I already have 1000+ photos iphoto and title is all set as my Roll Name - xx . But it will be great to have file names set as the title too.
    I think I can batch rename in Image Capture before downloading the files, but then I have to again import those in iPhoto , so its two step process and inconvenient.
    So, does anyone know how to set File name as Title ( you can only do other way around in iPhoto, I think) ? Any script available which can read iPhoto title and set the file name as Title? Thanks.
    20 iMac G5 2GHz   Mac OS X (10.4.1)   Canon S2 IS

    Hi kothrush,
    You must rename in the Finder first, before importing into iPhoto.
    You cannot do it after importing into iPhoto. Well, you can. You can share export the renamed images to the desktop. Delete the ones in iPhoto, then import the renamed ones back into iPhoto. That's a lot more steps.
    Whatever you do, you cannot rename any images in the Finder that are already in the iPhoto Library or iPhoto will lose the link to the images.
    Two Apple kbs for you to read
    Don't tamper with files in the iPhoto library folder
    About the iPhoto Library folder
    Lori

  • How to set name of file to be sent through mail

    hi ,
    i am using FM  'SO_DOCUMENT_SEND_API1'  for sending some file.
    now my question is how to set  the name of file to be sent?
    thanks

    Hi Rahul
    Check this link
    Sending E-Mail from ABAP - Version 610 and Higher - BCS Interface
    Re: How to send mail to with in SAP !!
    Regards,
    Syf
    Edited by: syfulla shaik on Dec 22, 2008 10:44 AM

  • How to set default .PDF file extension for Form Downloads

    I am trying to find a way of setting the PDF file extension when I download forms.
    I author the forms under a Plus subscription and am then downloading the forms under a basic subscription Collaborator account (diffrent person)
    If I don't include .pdf as the file type when downloading a form with a unique name as the Collaborator, it downloads without a file extension.
    Remembering to continually add the pdf file extension is a pain so I'm hoping there is away of setting this as a defaulet for my 'collaborator' account ?

    Firstly, apologies for multiple posts, I received messages saying my comment hadn't posted and also checked my history before re-submitting.
    Okay, the process is
    1. Log in as the Author account and I can rename the file without having to set the extension
    2. Log in as the Collaboartor account - same PC, browser etc and it doesn't save with a default file extension; HOWEVER, I have done this whilst also being logged in on a diffrent browser as the Author
    3 I have just tried logging out as Author and only being in as the collaborator and the form downloaded with a default PDF.
    4. I had someone else log in as the collaborator from thei PC and browser whilst I was still signed inunder my author account and again they were unable to save as PDF by default
    This has me wondering if there is anything at play when you've got multiple Users?

  • How to set mp3 music file as a ringtone

    I am very surprised I cannot find any option how to set ringtone of my choice in the phone? is there really any way ?

    If you had given the model of your phone I could have given a link to your user guide.
    Here is the Windows Phone How-To
    http://www.windowsphone.com/en-us/how-to/wp8   Hours of reading pleasure.

  • How to set an mp3 file as ringtone on iphone4s?

    just got a new iphone 4s and wondering how to make an mp3 file as a ringtone..i have followed some steps shown on some other forums but im still stocked on default ringtones...i have successfully converted an mp3 file to m4r file and synced to my iphone but it didnt show up on my sound settings..can anybody help me find out what to do.please thanks...

    Have you had a look here
    iphone ringtone - CNET

  • How to check if a file is completely written?

    Hi
    My question relates to polling for a file in a particular directory written by an external process (maybe FTP ...). What I need to know is whether there is a way of determining whether the file has been completely written to the disk by the external process.
    I need to find a way so that I do not end up processing partial files in the polling process.
    Thanks
    Raghu Warrier

    My question relates to polling for a file in a
    particular directory written by an external processNot particularly, one can implement some type of lock file or even maybe some OS-specific locking mechanisms, but none of which which one would enable/control from within Java. One simple method to dramatically reduce contention time in this manner for most OSs (and to emprically introduce some level of atomicity) is to write to a separate directory on the same filesystem, then once the other process knows the file is complete, then move it to the new directory which generally involved just index pointer addition/moving into the directory entry which is of course much more `atomic' than polling on directory entries themselves.
    is a way of determining whether the file has been
    completely written to the disk by the external
    process. Some OSs don't write the file size until the writing process is done, but this is not guaranteed across OSs. Anyway to introduce a socket semaphore?
    I need to find a way so that I do not end up
    processing partial files in the polling process.You can also poll the filename->size mappings and with a sufficient poll delta determine if the file is no longer being written. This is not perfect, but a fail-foul solution at that.

  • How to check if a file is complete?

    Hi all,
    My problem is simple. I want to make sure that the file I am about to FTP from remote server to a local server (thru java) is complete. The file (lets call it TESTFILE.001) is sent by the client ( not at fixed time) few times a day. My process runs every hour and grabs this file if it exists. If no file is found then process just terminates. But I dont want to grab it if its still being populated. How do I do this?
    I cannot setup a file object for this file as I only have FTP login for the remote server.
    Thanks in advance.
    -Chirag

    Hi all,
    Since I was trying to access the file on remote server, there is no way in java to set up a direct File object. (It works on windows machine to windows but not with Unix)
    The way I finally did it was by using ftp. As a rule, when a file is being written to, it is locked and reports size 0.
    So I check if file size is zero. If it is then I know that either there is no file or the file is currently being written to (hence not complete)

  • How to set up for file transfers via Bluetooth

    Hi all,
    I have a blackberry bold 9000 which I need to set up to transfer some pics, etc to another phone (not a Blackberry) When I try to connect from the other phone it says
    "You can't connect with target device because it lacks of the File Transfer Profile (OBEX FTP) and/or the Object Push Profile (OBEX OPP) Bluetooth services"
    Can anyone tell me how to get these??
    The other phone is a HTC Magic.
    Thanks in advance.

    Which device is the "target" device?  From what you describe it sounds like the HTC is the target device and that would be an issue with that device, not the BB.
    1. Please thank those who help you by clicking the "Like" button at the bottom of the post that helped you.
    2. If your issue has been solved, please resolve it by marking the post "Solution?" which solved it for you!

  • How to set my parameter file to run impdp properly?

    Hello all,
    I want to import a table HR.COUNTRIES to KATE:COUNTRIES with impdp
    This is my parameter file :
    DIRECTORY=C_ROOT
    DUMPFILE=EXAMPLE.DMP
    TABLES=COUNTRIES
    REMAP_SCHEMA=SH:KATE
    I get an error in my log file :
    Import: Release 10.2.0.1.0 - Production on Thursday, 16 October, 2008 8:36:12
    Copyright (c) 2003, 2005, Oracle. All rights reserved.
    Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    Master table "SYSMAN"."SYS_IMPORT_TABLE_01" successfully loaded/unloaded
    Starting "SYSMAN"."SYS_IMPORT_TABLE_01": sysman/******** parfile=impdb.par
    Processing object type TABLE_EXPORT/TABLE/TABLE
    Processing object type TABLE_EXPORT/TABLE/TABLE_DATA
    . . imported "HR"."COUNTRIES" 6.093 KB 25 rows
    . . imported "KATE"."COUNTRIES" 9.273 KB 23 rows
    Processing object type TABLE_EXPORT/TABLE/GRANT/OWNER_GRANT/OBJECT_GRANT
    Processing object type TABLE_EXPORT/TABLE/INDEX/INDEX
    Processing object type TABLE_EXPORT/TABLE/CONSTRAINT/CONSTRAINT
    Processing object type TABLE_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS
    Processing object type TABLE_EXPORT/TABLE/COMMENT
    Processing object type TABLE_EXPORT/TABLE/CONSTRAINT/REF_CONSTRAINT
    ORA-39083: Object type REF_CONSTRAINT failed to create with error:
    ORA-00942: table or view does not exist
    Failing sql is:
    ALTER TABLE "HR"."COUNTRIES" ADD CONSTRAINT "COUNTR_REG_FK" FOREIGN KEY ("REGION_ID") REFERENCES "HR"."REGIONS" ("REGION_ID") ENABLE
    Processing object type TABLE_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
    Job "SYSMAN"."SYS_IMPORT_TABLE_01" completed with 1 error(s) at 08:38:40
    Finally, i got two importation of countries : in both schema HR and KATE.
    Someone can help me please?
    I only want to import HR.Countries to KATE.Countries.
    Thanks in advance.
    :o)

    Thanks for links,
    Ok, the problem is that I have two tables COUNTRIES in two schemas. I only want to import SH.COUNTRIES, not HR.COUNTRIES. If I exclude the HR schema. It's ok, my import work properly. HR.COUNTRIES is not imported.
    The problem I see is if I don't know all the tables names in the dmp file, I could only want 1 objet and exclude everyelse.
    If I uses that parfile, it's ok.
    Good :
    DIRECTORY=C_ROOT
    DUMPFILE=EXAMPLE.DMP
    REMAP_SCHEMA=SH:KATE
    TABLES=COUNTRIES
    EXCLUDE=SCHEMA:"='HR'"
    I would like only import with INCLUDE because I don't know all the schema names in the import file.
    I want :
    DIRECTORY=C_ROOT
    DUMPFILE=EXAMPLE.DMP
    REMAP_SCHEMA=SH:KATE
    TABLES=COUNTRIES
    INCLUDE=SCHEMA:"='SH'"
    it doesnt work. Do you have an idea how to proceed.
    Edited by: Jimmy/Newbie on 16 oct. 2008 10:27

  • How to set the default file name for upload

    Hi All,
    I have the following BSP app for a file upload of a csv file. I want the page when displayed show the default file name to be loaded as c:\db1\currentPM.csv
    What changes do I need to make to get the default file name in the BSP app.
    Thanks
    Karen
    <%@page language="abap" %>
    <%@extension name="htmlb" prefix="htmlb" %>
    <htmlb:content id               = "content"
                   design           = "classicdesign2002design2003"
                   controlRendering = "sap"
                   rtlAutoSwitch    = "true" >
      <htmlb:page title="File Upload " >
        <htmlb:form method       = "post"
                    encodingType = "multipart/form-data">
              <htmlb:textView text   = "File:"
                              design = "STANDARD" />
              <htmlb:fileUpload id          = "uploadID"
                                onUpload    = "UploadFile"
                                upload_text ="Upload"/>
        </htmlb:form>
      </htmlb:page>
    </htmlb:content>
    On Input Processing
    event handler for checking and processing user input and
    for defining navigation
    DATA: EVENT TYPE REF TO IF_HTMLB_DATA,
          DATA TYPE REF TO CL_HTMLB_FILEUPLOAD,
          LV_OUTPUT_LENGTH TYPE I,
          LV_TEXT_BUFFER TYPE STRING,
          FILE_NAME TYPE STRING,
          FILE_PATH TYPE STRING ,
          INTERN TYPE TABLE OF  ZALSMEX_TABLINE.
    DATA: LT_BINARY_TAB TYPE TABLE OF SDOKCNTBIN .
    TYPES: BEGIN OF TY_TAB,
           FIELD1(2) TYPE C,
           FIELD2(2) TYPE C,
           FIELD3(2) TYPE C,
           FIELD4(2) TYPE C,
           FIELD5(2) TYPE C,
           END OF TY_TAB.
    DATA:  WA_TAB TYPE TY_TAB,
           IT_TAB TYPE TABLE OF TY_TAB.
    TYPES: BEGIN OF TY_LINE,
              LINE(255) TYPE C,
           END OF TY_LINE.
    DATA:  WA_LINE TYPE TY_LINE,
           IT_LINE TYPE TABLE OF TY_LINE.
    EVENT = CL_HTMLB_MANAGER=>GET_EVENT_EX( REQUEST ).
    IF EVENT IS NOT INITIAL AND EVENT->EVENT_NAME = HTMLB_EVENTS=>FILEUPLOAD.
      DATA ?= CL_HTMLB_MANAGER=>GET_DATA( REQUEST = RUNTIME->SERVER->REQUEST NAME = 'fileUpload' ID = 'uploadID' ).
      FILE_NAME = DATA->FILE_NAME.
      FILE_PATH = FILE_NAME.
      IF DATA IS NOT INITIAL.
        CALL FUNCTION'SCMS_XSTRING_TO_BINARY'
         EXPORTING BUFFER = DATA->FILE_CONTENT
         IMPORTING OUTPUT_LENGTH = LV_OUTPUT_LENGTH
         TABLES BINARY_TAB = LT_BINARY_TAB .
        CALL FUNCTION'SCMS_BINARY_TO_STRING'
        EXPORTING INPUT_LENGTH = LV_OUTPUT_LENGTH
         IMPORTING TEXT_BUFFER = LV_TEXT_BUFFER
         TABLES
         BINARY_TAB = LT_BINARY_TAB.
        IF SY-SUBRC = 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
        SPLIT LV_TEXT_BUFFER AT CL_ABAP_CHAR_UTILITIES=>CR_LF INTO TABLE IT_LINE.
        IF SY-SUBRC = 0.
          LOOP AT IT_LINE INTO WA_LINE.
           SPLIT WA_LINE AT CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB
            split wa_line at ','
            INTO WA_TAB-FIELD1 WA_TAB-FIELD2 WA_TAB-FIELD3 WA_TAB-FIELD4 WA_TAB-FIELD5.
            append wa_tab to it_tab.
          ENDLOOP.
        ENDIF.
      ENDIF.
    ENDIF.

    Also, I missed another point.
    In the folder c:\dbdata I have a number of CSV files on the user frontend. I would like the BSP application to get the list of files in the folder and process them one after the other. How can I get the list of files on the folder in the user PC and how to process them one after the other.
    I want the form to display only the default folder and once I press on upload it must process all files and display the status of processing on the same page.
    Please kindly share ideas how I can implement this app.
    Thanks
    Karen

Maybe you are looking for