Reg sequential file

hi
i want to know about sequential file in data transfer.wat is the concept behind this.
thanks in advance

I assume you are clear about the concepts of Application Server and the Presentation server.
some times the data that has to be transfered in SAP comes in the form of Files. So these files have to be read, processed (if required) and then have to be passed either to transactions or some Function Modules.
These files can be on App Server or on Presentation server.
To read file from App server you do Open dataset, close dataset and read data set.
To read files form Pres Server... there are FMs available GUI_UPLOAD and GUI_DOWNLOAD.
This is the general.. If u want some thing in specific.. Please feel free to ask...

Similar Messages

  • Open all pages in a PDF and save them as sequential files

    I'm trying to make a script that will open all pages in a multi-page PDF and save them as sequential files, but I have had no luck with the simple script in the "Adobe Ilustrator CS5 Reference: JavaScript".
    there example to open a PDF to a designated page does not work for me in Illustrator CS 5.
    // Opens a PDF file with specified options
    var pdfOptions = app.preferences.PDFFileOptions;
    pdfOptions.pDFCropToBox = PDFBoxType.PDFBOUNDINGBOX;
    pdfOptions.pageToOpen = 2;
    // Open a file using these preferences
    var fileRef = filePath;
    if (fileRef != null) {
    var docRef = open(fileRef, DocumentColorSpace.RGB);
    if anyone can get me on the right path it would be appreciated.

    Hi DuanesSFK,
    you can open a PDF page on this way (tested with CS3 and 5):
    //OpenPDFpage2.jsx
    var uILevel = userInteractionLevel; 
    app.userInteractionLevel = UserInteractionLevel.DONTDISPLAYALERTS;
    // Opens a PDF file with specified options
    var pdfOptions = app.preferences.PDFFileOptions;
    pdfOptions.pDFCropToBox = PDFBoxType.PDFBOUNDINGBOX;
    pdfOptions.pageToOpen = 2;
    // Open a file using these preferences
    //var fileRef = filePath;
    var fileRef = File("~/Desktop/YourOwn.pdf");
    if (fileRef != null) {
    var docRef = open(fileRef, DocumentColorSpace.RGB);
    app.userInteractionLevel = uILevel;
    To open all pages you have to loop through all pages etc.
    Easier for you:
    Search here in forum for the "open pdf" script  (I don't know the exactly name, it was written by CarlosCanto, ) This should always work for you.
    Have fun

  • Read data from a sequential file to fill an arrray

    I am trying to read data from a sequential file to fill an array and then use the array for calculations. I believe my program is reading the file; however when I try to use the data for calculations the results show up as boxes rather than numbers. Can someone please take a look and give me some insight into where I am going wrong. The sequential file has the following data:
    5.0
    5.35
    5.5
    5.75
    Here is my code from that portion of the program. I can send the entire program if necessary.
    private void calcResults(TextArea loanResults, double amount, double interest, int term ) throws IOException {
         DecimalFormat df = new DecimalFormat("$###,###.00");
         NumberFormat formats = new DecimalFormat("#0.00");
         StringBuffer buffer=new StringBuffer();
         loanResults.append("Month No.\tMonthly Payment\t\tInterest\t\tBalance\n");
         double monthlyPay = amount*Math.pow(1+interest,term)*interest/(Math.pow(1+interest,term)-1);
         monthlyPayment.setText("" + (formats.format(monthlyPay)));
         double principal= amount;
          * Loop through each month of a given loan
        int month;
         for (int i=0; i<term; i++)
    try {
         int j = 0;
         BufferedReader in = new BufferedReader(new FileReader("rates.txt"));
         String temp = "";
         while((temp = in.readLine()) != null) {     
            j++;
            strRate[j] = temp;
            RateValue1 = Double.parseDouble(loanAmountTxFld.getText());
            in.close();
             catch (FileNotFoundException e) {
                 System.out.println("Can't find file rate.txt!");
                 return;
          month= i+1;
          double rate =principal*interest;
          double balance=principal+rate-monthlyPay;
          loanResults.append((month) + "\t\t" + (formats.format(principal) + "\t\t"  + (formats.format(rate) + "\t\t"
                            + (formats.format(balance)     + "\n"))));
          principal=balance;
          GraphArea.append(formats.format(balance)     + "\n");
    *Method for determining which loan option was chosen
    private void calc() throws IOException{
      String interestTerms = (String) cOption.getSelectedItem();
      if (interestTerms.equalsIgnoreCase("5 yrs at 5.00"))
         calcResults(loanResults, Double.parseDouble(loanAmountTxFld.getText()), 0.05/12, 60);
      else if (interestTerms.equalsIgnoreCase("7 yrs at 5.35"))
        calcResults(loanResults, Double.parseDouble(loanAmountTxFld.getText()), RateValue1/12, 84);
      else if (interestTerms.equalsIgnoreCase("15 yrs at 5.50"))
         calcResults(loanResults, Double.parseDouble(loanAmountTxFld.getText()), 0.0550/12, 180);
      else if (interestTerms.equalsIgnoreCase("30 yrs at 5.75"))
         calcResults(loanResults, Double.parseDouble(loanAmountTxFld.getText()), 0.0575/12, 360);
      else if (interestTerms.equalsIgnoreCase("       "))
        calcResults(loanResults, Double.parseDouble(loanAmountTxFld.getText()), Double.parseDouble(loanInterestTxFld.getText())/100/12,Integer.parseInt(loanTermTxFld.getText())*12);
    }

    ok, I fixed my program per your suggestion and I still cannot get it to work. I get the same result where the ouput is just a bunch of boxes. I also tried to print to see what I am getting and all I see is the values of the array [5.0,5.35,5.5,5.75] but I cannot seem to pass that to the calculations. I wish I could figure this out. Does anybody have any suggestions as to what I am doing wrong. This is the portion of my code that I am having issues with:
    private void calcResults(TextArea loanResults, double amount,double interest, int term ) throws IOException {
         DecimalFormat df = new DecimalFormat("$###,###.00");
         NumberFormat formats = new DecimalFormat("#0.00");
         StringBuffer buffer=new StringBuffer();
         loanResults.append("Month No.\tMonthly Payment\t\tInterest\t\tBalance\n");
         double monthlyPay = amount*Math.pow(1+interest,term)*interest/(Math.pow(1+interest,term)-1);
         monthlyPayment.setText("" + (formats.format(monthlyPay)));
         double principal= amount;
          * Loop through each month of a given loan
        int month;
         for (int i=0; i<term; i++)
          month= i+1;
          double rate =principal*interest;
          double balance=principal+rate-monthlyPay;
          loanResults.append((month) + "\t\t" + (formats.format(principal) + "\t\t"  + (formats.format(rate) + "\t\t"
                            + (formats.format(balance)     + "\n"))));
          principal=balance;
          GraphArea.append(formats.format(balance)     + "\n");
    private void readFile() throws IOException
    try {
         int j = 0;
         BufferedReader in = new BufferedReader(new FileReader("rates.txt"));
         String temp = "";
         while((temp = in.readLine()) != null) {     
            strRate[j] = temp;
            j++;
    RateValue1 = Double.valueOf(((String)(strRate[1]))
    ).doubleValue();
    //        RateValue1 = Double.parseDouble(loanAmountTxFld.getText());
            in.close();
             catch (FileNotFoundException e) {
                 System.out.println("Can't find file rates.txt!");
                 return;
    *Method for determining which loan option was chosen
    private void calc() throws IOException{
      String interestTerms = (String) cOption.getSelectedItem();
      if (interestTerms.equalsIgnoreCase("5 yrs at 5.00"))
         calcResults(loanResults, Double.parseDouble(loanAmountTxFld.getText()), 0.05/12, 60);
      else if (interestTerms.equalsIgnoreCase("7 yrs at 5.35"))
        calcResults(loanResults, Double.parseDouble(loanAmountTxFld.getText()), RateValue1/12, 84);
      else if (interestTerms.equalsIgnoreCase("15 yrs at 5.50"))
         calcResults(loanResults, Double.parseDouble(loanAmountTxFld.getText()), 0.0550/12, 180);
      else if (interestTerms.equalsIgnoreCase("30 yrs at 5.75"))
         calcResults(loanResults, Double.parseDouble(loanAmountTxFld.getText()), 0.0575/12, 360);
      else if (interestTerms.equalsIgnoreCase("       "))
        calcResults(loanResults, Double.parseDouble(loanAmountTxFld.getText()), Double.parseDouble(loanInterestTxFld.getText())/100/12,Integer.parseInt(loanTermTxFld.getText())*12);
      }

  • Getting dump when passing to sequential file

    hi to all,
    pla help me in this issue
    in final internal table iam having to currency field
    i want to pass to sequential file but it is going to dump
    it is giving this error
    Only character-type data objects are supported at the argument
    position "f" for the statement
      "TRANSFER f TO ...".
    In this case, the operand "f" has the non-character-type "ZPAYREF". The
    current program is flagged as a Unicode program. In the Unicode context
    type X fields are seen as non-character-type, as are structures that
    contain non-character-type components.
    plz help how to passs amount final currency field like character so that i can move to sequentail file.
    Thanks and Regards
    Kranthi

    Hi,
    Data : l_qty(16) type c,
           l_value(13) type c,
           l_dec(3)   type c.
    loop at itab.
    split itab-qty at `.` into l_value l_dec.
    concatenate l_value `.` l_dec into l_qty.
    Move l_qty to l_file.
    Transfer l_file.
    endloop.
    close dataset.
    Best regards,
    Prashant

  • Rman tivoli failure:  create sequential file, Authentication Failure

    New db instance, not writing to tape.
    DB is 10.2.0.4
    run {
    allocate channel sbt_backup1 type 'SBT_TAPE' format '%U' parms 'ENV=(TDPO_OPTFILE=/usr/tivoli/tsm/client/ora
    cle/bin64/tdpo_mydb.opt)';
    backup tablespace users;
    release channel sbt_backup1;
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03009: failure of backup command on sbt_backup1 channel at 10/02/2009 11:17:42
    ORA-19506: failed to create sequential file, name="0tkqpi6l_1_1", parms=""
    ORA-27028: skgfqcre: sbtbackup returned error
    ORA-19511: Error received from media manager layer, error text:
    ANS1025E (RC137) Session rejected: Authentication failure
    Settings
    /usr/tivoli/tsm/client/oracle/bin64
    dsm_mydb.opt
    SErver_name MYDBPRD
    tdpo_mydb.opt
    DSMI_ORC_CONFIG /usr/tivoli/tsm/client/oracle/bin64/dsm_mydb.opt
    TDPO_NODE MYDBPRD
    /usr/tivoli/tsm/client/api/bin64
    dsm.sys
    NODENAME MYDBPRD
    ERRORLOGNAME /usr/local/tsm/logs/IFSDBS_MYDBPRD_error.log
    SCHEDLOGNAME /usr/local/tsm/logs/IFSDBS_MYDBPRD_sched.log
    Note: Several db/clients are working on this server. This is a new setup and not working.

    This is not an Oracle/RMAN problem,contact your TSM administrator:
    http://www-01.ibm.com/support/docview.wss?uid=swg21216057
    Werner

  • RMS update to sequential file

    RMS supports read/write using VBN number to a sequential file, which
    means that it is possible to randomly update a sequential file in RMS.
    There are some tricky issues around extending the file and setting the
    EOF mark correctly if you are using a sequential file logically as a
    block-addressable random access file, but for your case you
    can probably ignore such things-- you will not be adding records, just
    updating the one record, right? In order to do this, you would have
    to dig into the RMS services manuals a little bit, but from a Forte
    standpoint, it is the same: C Project code.
    If you have some control over the legacy system: RMS supports "relative
    files", which are record-addressable, random access files without
    keys-- ie, the CORRECT file type to use in this case. Depending on
    the app, there is a good chance that the very same application logic
    which handles the "one-record" sequential file (3-gl level open, read,
    write) will work the same for a "one record" relative file. With this
    "change" to the legacy system, your job in the C-project interface code is a
    little easier.
    Dave

    Hi,
    Data : l_qty(16) type c,
           l_value(13) type c,
           l_dec(3)   type c.
    loop at itab.
    split itab-qty at `.` into l_value l_dec.
    concatenate l_value `.` l_dec into l_qty.
    Move l_qty to l_file.
    Transfer l_file.
    endloop.
    close dataset.
    Best regards,
    Prashant

  • Modes in Sequential files?

    hi,
         what are the modes in sequential files and give brief description.

    Hi,
    There are 2 modes:
    1. Text mode
    2. Binary mode
    Using Text Mode
    To open a file in text mode, use the IN TEXT MODE addition to the OPEN DATASET statement.
    Syntax
    OPEN DATASET <dsn> FOR .... IN TEXT MODE.
    If you read from or write to a file that is open in text mode, the data is transferred line by line. The system assumes that the file has a line structure.
    In each TRANSFER statement, the system transfers all bytes (apart from spaces at the end) into the file, and places an end of line marker at the end. For information about the TRANSFER statement, refer to Writing Data to Files.
    In each READ DATASET statement, the system reads all of the data up to the next end of line marker. For information about the READ DATASET statement, refer to Reading Data from Files. If the target field is too small, the line is truncated. If it is longer than the line in the file, it is filled with trailing spaces.
    You should always use text mode if you want to write strings to files or where you know that an existing file has a line construction. You can, for example, use text mode to read files that you have created using any editor on your application server.
    The following example works in R/3 Systems that are running on UNIX systems using ASCII.
    DATA FNAME(60) VALUE 'myfile'.
    DATA: TEXT(4),
          HEX TYPE X.
    OPEN DATASET FNAME FOR OUTPUT IN TEXT MODE.
    TRANSFER '12        ' TO FNAME.
    TRANSFER '123456  9 ' TO FNAME.
    TRANSFER '1234      ' TO FNAME.
    OPEN DATASET FNAME FOR INPUT IN TEXT MODE.
    READ DATASET FNAME INTO TEXT.
    WRITE / TEXT.
    READ DATASET FNAME INTO TEXT.
    WRITE  TEXT.
    READ DATASET FNAME INTO TEXT.
    WRITE  TEXT.
    OPEN DATASET FNAME FOR INPUT IN BINARY MODE.
    SKIP.
    DO.
      READ DATASET FNAME INTO HEX.
      If SY-SUBRC <> 0.
        EXIT.
      ENDIF.
      WRITE HEX.
    ENDDO.
    The output appears as follows:
    12 1234 1234
    31 32 0A 31 32 33 34 35 36 20 20 39 0A 31 32 33 34 0A
    This example opens a file "myfile" for writing in text mode. Three literals with length 10 characters are written to it. After the file has been opened for reading in text mode, the lines are read into the field TEXT (length 4). The first line is filled with two trailing spaces. The last five characters of the second line are truncated. The structure of the file is displayed by opening it in binary mode and reading its contents into the hexadecimal field HEX. The numbers 31 - 36 are the ASCII codes for the digits 1 - 6. 20 is the code for the space character. The end of each line is marked by 0A. Note that any spaces at the end of strings are not written to the file.
    Using Binary Mode
    To open a file in binary mode, use the IN BINARY MODE addition to the OPEN DATASET statement.
    Syntax
    OPEN DATASET <dsn> IN BINARY MODE [FOR ....].
    If you read from or write to a file that is open in binary mode, the data is transferred byte by byte. The system does not interpret the contents of the file while it is being transferred. If you write the contents of a field to a file, the system transfers all of the bytes in the source field. When you transfer data from a file to a field, the number of bytes transferred depends on the length of the target field. If you then use another ABAP statement to address the target field, the system interprets the field contents according to the data type of the field.
    DATA FNAME(60) VALUE 'myfile'.
    DATA: NUM1     TYPE I,
          NUM2     TYPE I,
          TEXT1(4) TYPE C,
          TEXT2(8) TYPE C,
          HEX      TYPE X.
    OPEN DATASET FNAME FOR OUTPUT IN BINARY MODE.
    NUM1  = 111.
    TEXT1 = 'TEXT'.
    TRANSFER NUM1  TO FNAME.
    TRANSFER TEXT1 TO FNAME.
    OPEN DATASET FNAME FOR INPUT IN BINARY MODE.
    READ DATASET FNAME INTO TEXT2.
    WRITE / TEXT2.
    OPEN DATASET FNAME FOR INPUT IN BINARY MODE.
    READ DATASET FNAME INTO NUM2.
    WRITE / NUM2.
    OPEN DATASET FNAME FOR INPUT IN BINARY MODE.
    SKIP.
    DO.
      READ DATASET FNAME INTO HEX.
      If SY-SUBRC <> 0.
        EXIT.
      ENDIF.
      WRITE  HEX.
    ENDDO.
    The output appears as follows:
    ###oTEXT
    111
    00 00 00 6F 54 45 58 54
    The program opens the file "myfile" in binary mode and writes the contents of the fields NUM1 and TEXT1 into the file. For information about the TRANSFER statement, refer to Writing Data to Files. The file is then opened for reading, and its entire contents are read into the field TEXT2. For information about the READ DATASET statement, refer to Reading Data from Files. The first four characters of the string TEXT2 are nonsense, since the corresponding bytes are the platform-specific representation of the number 111. The system tries to interpret all of the bytes as characters. However, this only works for the last four bytes. After the OPEN statement, the position is reset to the start of the file, and the first four bytes of the file are transferred into NUM2. The value of NUM2 is correct, since it has the same data type as NUM1. Finally, the eight bytes of the file are read into the field HEX. On the screen, you can see the hexadecimal representation of the file contents. The last four bytes are the ASCII representation of the characters in the word "TEXT".
    Regards,
    Bhaskar

  • How to see sequential file if you d't find that in al11 !

    hi
    I am using a std report and while executing it, it gives a sequential file but i d't see that in al11.I want to know the structure of that seq file..Can anyone tell me what are the other ways I can get the structure of that sequential file .
    Thanks
    Ranjita

    Here it is, i got it...
    Check the documentation of the program:
    The data is expected in the sequential file in the following order:
    For each PO header, a record of the structure <b>MBEPOH</b>,
    For each PO item, a record of the structure <b>MBEPOI</b>.
    Hope this is what you actually need...
    Kind Regards
    Eswar

  • SXDA split files for RMDATIND - First record in sequential file & not a session record (type 0)

    Hi gurus,
    I'm trying to perform a mass upload of material master records and for this I've have setup a Data Transfer Project in SXDA with the purpose of splitting an LSMW input file into multiple. The file split task is using Data Load Program:
    Object Type: BUS1001006
    Obj. description: AD Standard Material
    Program type: DINP
    Program: RMDATIND
    The problem I'm facing is that once the .conv (Converted Data) is split in multiple files these files are being transferred without a session record. This is causing to get the following error when running program: RMDATIND "First record in sequential file & not a session record (type 0)"
    So the questions is: How can I specify in SXDA that I want to keep that session record in all my split files?
    Thanks in advance for your help!

      Hi Chris ,
    try to re create logical file path/files for converted data.
    regards
    Prabhu

  • ORA-19506:failed to create sequential file.

    RMAN offline full backup failed.
    We had setup of Oracle RMAN backup with TSM and it was working perfect but few days backup, our team did testing with RMAN-NetBackup on database server and after that our existing backup process started giving error.
    Our RMAN backup script is point to TSM but while executing, it shows to point NetBackup and not sure what dependencies are forcing them to point NetBackup.
    Oracle- 9i
    OS- AIX
    Error Message:-
    Starting backup at 04-SEP-12 09:21:51
    channel t1: starting full datafile backupset
    channel t1: specifying datafile(s) in backupset
    input datafile fno=00004 name=/u03/oradata/Test/datap_index01.dbf
    input datafile fno=00003 name=/u03/oradata/Test/datap_data01.dbf
    channel t1: starting piece 1 at 04-SEP-12 09:21:52
    released channel: t1
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03009: failure of backup command on t1 channel at 09/04/2012 09:37:07
    ORA-19506: failed to create sequential file, name="Test_T_FULL_OFFLINE_set2057_piece1_20120904_09nkbf1g_1_1", parms=""
    ORA-27028: skgfqcre: sbtbackup returned error
    ORA-19511: Error received from media manager layer, error text:
    VxBSAValidateFeatureId: Failed with error:
    Server Status: cannot connect on socket

    Thanks for respond but issue is slightly different, we have RMAN backup setup with TSM and it was working fine earlier but last week one of our team installed and configured NetBackup with RMAN for testing oracle backup with RMAN-NetBackup and after testing they revert back the changes.
    After this testing mine RMAN-TSM backup started giving error and in error it seems to point to NetBackup instead of TSM, however I did check the RMAN script but there is no any changes that point to NetBackup.
    I am not sure what changes are causing to point backup to NetBackup instead of TSM.
    Please see the complete error message below-
    allocated channel: t1
    channel t1: sid=11 devtype=SBT_TAPE
    channel t1: Veritas NetBackup for Oracle - Release 7.5 (2012050906)*
    old RMAN configuration parameters:
    CONFIGURE CONTROLFILE AUTOBACKUP ON;
    new RMAN configuration parameters:
    CONFIGURE CONTROLFILE AUTOBACKUP ON;
    new RMAN configuration parameters are successfully stored
    starting full resync of recovery catalog
    full resync complete
    old RMAN configuration parameters:
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE 'SBT_TAPE' TO 'bk_ctl_%d_%F';
    new RMAN configuration parameters:
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE 'SBT_TAPE' TO 'bk_ctl_%d_%F';
    new RMAN configuration parameters are successfully stored
    starting full resync of recovery catalog
    full resync complete
    Starting backup at 04-SEP-12 09:21:51
    channel t1: starting full datafile backupset
    channel t1: specifying datafile(s) in backupset
    input datafile fno=00004 name=/u03/oradata/TEST_T/datap_index01.dbf
    input datafile fno=00003 name=/u03/oradata/TEST_T/datap_data01.dbf
    channel t1: starting piece 1 at 04-SEP-12 09:21:52
    released channel: t1
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03009: failure of backup command on t1 channel at 09/04/2012 09:37:07
    ORA-19506: failed to create sequential file, name="TEST_T_FULL_OFFLINE_set2057_piece1_20120904_09nkbf1g_1_1", parms=""
    ORA-27028: skgfqcre: sbtbackup returned error
    ORA-19511: Error received from media manager layer, error text:
    VxBSAValidateFeatureId: Failed with error:
    Server Status:  cannot connect on socket
    RMAN>

  • Scanning a document with sequential file names

    I have multiple documents every day that I need to scan into PDF format. Is there a way for me to scan the doucment and have Acrobat assign the next sequential file name and save it to a designated directory? I'd like to do it by using a self feeding scanner and not have to go to the computer each time we have to scan something.
    We are using Acrobat Professional 7.0 with Windows XP.

    I have two different scanners and epson and a cannon, each has software
    that will scan to pdf and seguentially number scans.
    Mike

  • Sequential files

    what are sequential files,briefly explain about them please?

    In ABAP, there is a range of statements for processing data that is stored in sequential files on the application server instead of the database.
    ·        OPEN DATASET opens a file for a particular type of access and storage.
    ·        TRANSFER transfers the contents of a data object to a file.
    ·        READ DATASET transfers data from a file to a data object.
    ·        GET DATASET using the addition POSITION the current position of the file pointer in a file is ascertained. Using the addition ATTRIBUTES further characteristics of the file are obtained.
    ·        SET DATASET using the addition POSITION the position of the file pointer is specified. Using the addition ATTRIBUTES further characteristics of the file can be specified.
    ·        TRUNCATE DATASET sets the end of a file to a specified value, thereby changing the size of the file.
    ·        CLOSE DATASET closes a file.
    ·        DELETE DATASET deletes a file.
    For further details about these statements and their additions, see the keyword documentation.
    During sequential file operations, the system performs a range of automatic checks, some of which may lead to runtime errors.
    reward points  if it is usefull ...
    Girish

  • Regarding coding with the sequential files

    hi experts,
                in my company i hvnt worked on the sequential files dats y i request u to all experts,to send me the small sample program for uploading from the apllication server,,,,,,plz send me the file format also.........and how to save on the application server.....i know it will take some time but plz help me.....

    hi Ravi,
    Use this sample code as an example for ur problem.
    table declaration
    tables: mara.
    *data declaration
    data: begin of it_lfa1 occurs 0,
    vendor like lfa1-lifnr,
    land1 like lfa1-land1,
    name1 like lfa1-name1,
    ort01 like lfa1-ort01,
    end of it_lfa1.
    selection screen
    selection-screen: begin of block b1 with frame.
    parameters: p_file type rlgrap-filename obligatory.
    selection-screen: end of block b1.
    at selection screen
    at selection-screen on value-request for p_file.
    *& start-of-selection
    start-of-selection.
    perform transfer_file using p_file.
    perform write.
    *& Form transfer_file
    text
    -->P_P_FILE text
    form transfer_file using p_p_file.
    data: l_message(30) type c.
    ***opening dataset for reading
    open dataset p_p_file for input in text mode encoding default message
    l_message.
    if sy-subrc ne 0.
    message i001(zerr2) with p_p_file.
    endif.
    *******transferring data from file to app server.
    do.
    read dataset p_p_file into it_lfa1.
    if sy-subrc = 0.
    append it_lfa1.
    clear it_lfa1.
    else.
    exit.
    endif.
    enddo.
    *******closing dataset
    close dataset p_p_file.
    endform. " transfer_file
    *& Form write
    text
    --> p1 text
    <-- p2 text
    form write .
    loop at it_lfa1.
    write:/ it_lfa1-vendor,
    it_lfa1-land1,
    it_lfa1-name1,
    it_lfa1-ort01.
    endloop.
    endform. " write
    Please check this link also for sample code.
    http://www.sapdevelopment.co.uk/file/file_uptabsap.htm
    Plz reward points if useful....
    Regards,
    Mandeep.

  • Differancec between local and sequential files

    hi,
    what is the differancec between local and sequential files

    Sequential files are files with specific format. You upload data into SAP using sequential files.
    ABAP allows you to use sequential files located on the application server or presentation server. You can use these files to buffer data, or as an interface between local programs and the R/3 System
    Sequential files are the files which are stored at application server
    To read them or to put the data into them we use the DATASET concepts for transfering data
    OPEN data set is used to open the file
    READ dataset for reading the file
    TRANSFER dataset for transfering/writing the data
    CLOSE dataset to close the dataset.
    Local file is nothing but ur local system file ..Like C:\, D:\

  • Serialize and Sequential files.

    Hi all :)
    This may be a little abstract question:
    Is there any difference between any sequential file and a class file which implements the Serializable interface?Or can it be called a sequential file if a .class implements the Serializable interface?
    Thanx!

    sequential file There were operating systems which had the notion of the "sequential file".
    It consisted of records, and they could be acessed one after the other.
    There were also index-sequential files too, which could be accessed either sequentially or by keys ("indices").
    The OS was aware of these file types.
    Modern OS'es (including Unix and Windows) handle the files as byte sequences, leaving the interpretation to the applications.

Maybe you are looking for

  • HP C1680 fails to install Software

    Can you please help  I have just reinstalled my operating system Windows 7 6- bit OS and needed to reinstall my printer HP Photosmart C6180 All in One. When I first got my new PC( Dell XPS 501L windows 7 Intel core i5. 243M  2.40GHz)  I originally in

  • Merge PDF Resources

    I am looking for a tool that will combine a PDF with it's resources ( images and Fonts). The input is 1) PDF with only links (/F) to the images. Fonts are not embedded.  2) Resources saved in a folder (JPG images, True Type fonts) The output is a sel

  • Fuzzy Lookup cannot use existing index

    Hi all, we have upgraded to SQL Server 2008 R2 from SQL Server 2008 and since then our fuzzy matching process has failed when trying to re-use existing index with the error: [Fuzzy Lookup] Progress: Warming caches - 0 percent complete [Fuzzy Lookup [

  • Rolling In-Place Hold & Archive Mailbox Interaction

    Hello, I've been looking at replacing existing Journaling with a combination of Exchange 2013 In-Place Hold and Archive Mailboxes, however I have a theoretical situation I've been having trouble mapping the behaviour for from the documentation availa

  • Dump due to field symbols

    Hi ABAPper, I am getting dump in this statement ASSIGN <fs1> TO <fs3> CASTING. field symbols are defined as data: <fs1>,          <fs3> type c. How to correct this dump. Please reply soon. Regards, Rahul