Problem With Open Data sets

Hi frnds,
Problem details: We have to read file from applicaitn server, In the file data its having tab spaces between fields . when i m trying to read the file, Data is comming but , inthe place of Spaces its giving special character "#"..
please help me on that
Thanks,
Rohini

* Lets open the file on App. server to read the records
OPEN DATASET V_FILE FOR INPUT IN TEXT MODE ENCODING DEFAULT."" WITH SMART LINEFEED.
* if the file is
found and we can read the records
IF SY-SUBRC = 0.
DO.                                                " 1 TIMES.
CLEAR :  V_ZTMAT_MASTER_IB,
                        V_MATERIAL ,
                            V_PLNTID ,
               V_LOCATN ,
               V_MAKTX ,
               V_MEINS ,
               V_MATKL1.
READ DATASET V_FILE INTO V_ZTMAT_MASTER_IB.
IF SY-SUBRC <> 0.
EXIT.
      ELSE.
*       As the data is read as a single line into a variable,  split the data into respective fields of the internal table.
SPLIT V_ZTMAT_MASTER_IB AT C_COMMA INTO:
V_MATERIAL
V_PLNTID
                                               V_LOCATN
                                               V_MAKTX
                                               V_MEINS
                                               V_MATKL1.
*  Check it the split is succesful or not. If not send email.
        IF SY-SUBRC <> 0.
CLEAR WA_CONTENTS_TXT.
          CONCATENATE 'The file :  ' V_FG_FILE ' ,  is not TILDE Delimited. Please check the file where material number is  '  V_MATERIAL
                        '  Thanks. ' INTO WA_CONTENTS_TXT .
          APPEND WA_CONTENTS_TXT TO TB_CONTENTS_TXT.
          CLEAR WA_CONTENTS_TXT.
        ELSE.
*        Check if the correct data type is being passed or else send an email...
          CATCH SYSTEM-EXCEPTIONS
           ARITHMETIC_ERRORS = 1
           CONVERSION_ERRORS = 2.
            V_SNO = V_SNO + 1.
            MOVE :   SY-MANDT   TO WA_ZMATERIALMASTER1-MANDT,
                     V_SNO      TO WA_ZMATERIALMASTER1-SNO,
                     V_STATUS   TO WA_ZMATERIALMASTER1-STATUS,
                     V_MATERIAL TO WA_ZMATERIALMASTER1-MATERIAL,
                     V_PLNTID   TO WA_ZMATERIALMASTER1-PLNTID,
                     V_LOCATN   TO WA_ZMATERIALMASTER1-LOCATN,
                     V_MAKTX    TO WA_ZMATERIALMASTER1-MAKTX,
                     V_MEINS    TO WA_ZMATERIALMASTER1-MEINS,
                     V_MATKL1   TO WA_ZMATERIALMASTER1-MATKL.
            APPEND WA_ZMATERIALMASTER1 TO TB_ZMATERIALMASTER1
ENDCATCH.
          IF SY-SUBRC = 2.
            V_SUBJECT1         = 'Subject : Z_ROHINI_ASSIGNMENT_4A'.
            V_ATTACHMENT_DESC1 = 'Z_ROHINI_ASSIGNMENT_4A: Error'.
            V_EMAIL1          = P_RECVR.
            V_SENDER_ADDRESS1 = P_SENDR.
            V_MTITLE1         = 'File error: Data type is diferent than expected in file'.
            V_FG_FILE1 = V_FILE.
            CONCATENATE 'In the file :  ' V_FG_FILE1 ' ,    data type is diferent than expected. Unable to move record(s). Please check the file  where material number is  '  V_MATERIAL  '.   Thanks.' INTO WA_CONTENTS_TXT1.
            APPEND WA_CONTENTS_TXT1 TO TB_CONTENTS_TXT1.
          ENDIF.
*          ENDLOOP.
        ENDIF.
      ENDIF.
    ENDDO.  " END OF OPEN DATASET  DO
*   Archiving Flat File
    PERFORM MOVE_FLATFILE.
  ENDIF.  " END OF OPEN DATASET SY-SUBRC IF...
  CLOSE DATASET V_FILE.

Similar Messages

  • Problem with a data set: DIAdem crashes

    Hi,
    I've got a problem with a data set. When I want to zoom in DIAdem-View, DIAdem crashes with the following message (translated from German ;-):
    error type: FLOAT INEXACT RESULT or FLOAT INVALID OPERATION or FLOAT STACK CHECK
    error address: 00016CB8
    module name: gfsview.DLL
    I've got some similar data set not showing such problems. Further on I scanned the data a bit, but in the 59000 points I didn't see anything special. I did try to delete "NOVALUE"s as well, but after that there still exist "NOVALUE"s.
    Does anyone have an idea what to look for?
    Thanks,
    Carsten

    Carsten,
    Could you please upload you Citadel database to the following FTP site:
    ftp.ni.com/incoming
    If you want to compress (ZIP) and/or put a password on the data, that's fine. Please send me a private email at [email protected] (with the file name and password if you put one on the file) once you have uploaded the file and I will check it out.
    Otmar
    Otmar D. Foehner
    Business Development Manager
    DIAdem and Test Data Management
    National Instruments
    Austin, TX - USA
    "For an optimist the glass is half full, for a pessimist it's half empty, and for an engineer is twice bigger than necessary."

  • Need to check all custom programs with open data set

    Hi all ,
    i have  to list all custom programs and f.m.  which are using ftp server (file share).
    Is there any way to list that programs

    Hi,
    You can use program RPR_ABAP_SOURCE_SCAN to find custom programs with providing find string criteria (i.e open data set).
    Regards,
    Ferry Lianto

  • 64-bit LabVIEW - still major problems with large data sets

    Hi Folks -
    I have LabVIEW 2009 64-bit version running on a Win7 64-bit OS with Intel Xeon dual quad core processor, 16 gbyte RAM.  With the release of this 64-bit version of LabVIEW, I expected to easily be able to handle x-ray computed tomography data sets in the 2 and 3-gbyte range in RAM since we now have access to all of the available RAM.  But I am having major problems - sluggish (and stoppage) operation of the program, inability to perform certain operations, etc.
    Here is how I store the 3-D data that consists of a series of images. I store each of my 2d images in a cluster, and then have the entire image series as an array of these clusters.  I then store this entire array of clusters in a queue which I regularly access using 'Preview Queue' and then operate on the image set, subsets of the images, or single images.
    Then enqueue:
    I remember talking to LabVIEW R&D years ago that this was a good way to do things because it allowed non-contiguous access to memory (versus contigous access that would be required if I stored my image series as 3-D array without the clusters) (R&D - this is what I remember, please correct if wrong).
    Because I am experiencing tremendous slowness in the program after these large data sets are loaded, and I think disk access as well to obtain memory beyond 16 gbytes, I am wondering if I need to use a different storage strategy that will allow seamless program operation while still using RAM storage (do not want to have to recall images from disk).
    I have other CT imaging programs that are running very well with these large data sets.
    This is a critical issue for me as I move forward with LabVIEW in this application.   I would like to work with LabVIEW R&D to solve this issue.  I am wondering if I should be thinking about establishing say, 10 queues, instead of 1, to address this.  It would mean a major program rewrite.
    Sincerely,
    Don

    First, I want to add that this strategy works reasonably well for data sets in the 600 - 700 mbyte range with the 64-bit LabVIEW. 
    With LabVIEW 32-bit, I00 - 200 mbyte sets were about the limit before I experienced problems.
    So I definitely noticed an improvement.
    I use the queuing strategy to move this large amount of data in RAM.   We could have used other means such a LV2 globals.  But the idea of clustering the 2-d array (image) and then having a series of those clustered arrays in an array (to see the final structure I showed in my diagram) versus using a 3-D array I believe even allowed me to get this far using RAM instead of recalling the images from disk.
    I am sure data copies are being made - yes, the memory is ballooning to 15 gbyte.  I probably need to have someone examine this code while I am explaining things to them live.  This is a very large application, and a significant amount of time would be required to simplify it, and that might not allow us to duplicate the problem.  In some of my applications, I use the in-place structure for indexing
    data out of arrays to minimize data copies.  I expect I might have to
    consider this strategy now here as well.  Just a thought.
    What I can do is send someone (in US) via large file transfer a 1.3 - 2.7 gbyte set of image data - and see how they would best advise on storing and extracting the images using RAM, how best to optimize the RAM usage, and not make data copies.  The operations that I apply on the images are irrelevant.  It is the storage, movement, and extractions that are causing the problems.  I can also show a screen shot(s) of how I extract the images (but I have major problems even before I get to that point),
    Can someone else comment on how data value references may help here, or how they have helped in one of their applications?  Would the use of this eliminate copies?   I currently have to wait for 64-bit version of the Advanced Signal Processing Toolkit for LabVIEW 2010 before I can move to LabVIEW 2010.
    Don

  • Open data set problem with binary mode

    Hi everyone,
    I am trying to read into a buffer the content of a binary file (like Excel) and to write that content file using open data set into a folder destination.
    The file destination has a size diferent than from the original one and cannot be open.
    Here is the code.
      DATA:  lv_file_name(100),
             lt_content LIKE sdokcntbin OCCURS 0 WITH HEADER LINE.
      MOVE '\computerTestA1.xls' TO lv_file_name.
      OPEN DATASET lv_file_name FOR INPUT IN BINARY MODE.
      IF sy-subrc NE 0.
        EXIT.
      ENDIF.
      DO.
        READ DATASET lv_file_name INTO lt_content-line.
        IF sy-subrc NE 0.
          EXIT.
        ENDIF.
        APPEND lt_content.
      ENDDO.
      CLOSE DATASET lv_file_name.
    *  DELETE DATASET lv_file_name.
      CLEAR: lv_file_name.
      MOVE '\computerTestB2.xls' TO lv_file_name.
      OPEN DATASET lv_file_name FOR OUTPUT IN BINARY MODE.
      IF sy-subrc NE 0.
        EXIT.
      ENDIF.
      LOOP AT lt_content.
        TRANSFER lt_content-line TO lv_file_name.
      ENDLOOP.
      CLOSE DATASET lv_file_name.
    THanks in advance.
    Regards.
    Message was edited by:
            David Fryda

    Hi,
    I solve the problem.
    In fact, when I try to write the last line of lt_content, it does write all the line even if this line is not full of data.
    Solution :
      DATA:  lv_file_name(100),
             lt_content LIKE sdokcntbin OCCURS 0 WITH HEADER LINE,
             alen TYPE i,
             pos TYPE i.
      MOVE '\mr0221TestA1.xls' TO lv_file_name.
      OPEN DATASET lv_file_name FOR INPUT IN BINARY MODE.
      IF sy-subrc NE 0.
        EXIT.
      ENDIF.
      SET DATASET lv_file_name POSITION END OF FILE.
      GET DATASET lv_file_name POSITION pos.
      SET DATASET lv_file_name POSITION 0.
      DO.
        CLEAR lt_content.
        READ DATASET lv_file_name INTO lt_content-line ACTUAL LENGTH alen .
        IF sy-subrc NE 0.
          APPEND lt_content.
          EXIT.
        ENDIF.
        APPEND lt_content.
      ENDDO.
      CLOSE DATASET lv_file_name.
    *  DELETE DATASET lv_file_name.
      CLEAR: lv_file_name.
      MOVE '\mr0221TestB2.xls' TO lv_file_name.
      OPEN DATASET lv_file_name FOR OUTPUT IN BINARY MODE.
      IF sy-subrc NE 0.
        EXIT.
      ENDIF.
      LOOP AT lt_content.
        AT LAST.
          TRANSFER lt_content-line TO lv_file_name LENGTH alen.
          EXIT.
        ENDAT.
        TRANSFER lt_content-line TO lv_file_name.
      ENDLOOP.
      CLOSE DATASET lv_file_name.
    Thanks.

  • OPEN DATA SET PROBLEM

    Hello ,
    I use the command OPEN DATA SET in order to upload file content from server ,
    the problem is that i getting error :_No such file or directory ._
    the file is exist in server I can see it when i put the path on windows  start->run
    and i give the permission for the folder to everyone .
    1. My question is what i miss here
    2. when i do little test and try to use GUI_UPLOAD i see the file content so i don't understand what is wrong here the file is not on my local PC
    Regards
    James

    hi James,
    the parameter file_name receives the name of the file (ja, ja, ja.......)
    here comes the explanation:
    in the transaction FILE you must define phisical and logical path for a file:
    for example:
    MY_FILE => pointing to the folder /host/temp/
    and here comes the call to the function in your program:
    CALL FUNCTION 'FILE_GET_NAME_USING_PATH'
        EXPORTING
          client                     = sy-mandt
          logical_path               = l_path    " the name of your logical path defined in trx FILE (MY_FILE)
          file_name                  = p_filename " the name of the file you want to read (for example: file.txt     )
        IMPORTING
          file_name_with_path        = file_trg
        EXCEPTIONS
          path_not_found             = 1
          missing_parameter          = 2
          operating_system_not_found = 3
          file_system_not_found      = 4
          OTHERS                     = 5.
    in the variable file_trg you should  get the value /host/temp/file.txt  (from the example)  to do the open dataset.
    sorry about my english
    regards, Sebastiá

  • I have problem with Cellular data network it is not apearing in iphone setting so help me how to bring this option in iphone

    i have problem with Cellular data network it is not apearing in iphone setting so help me how to bring this option in iphone

    What brand/model USB drive? Is it bus or AC powered?
    On Mail...
    First Quit Mail, then I'd backup these two Mail folders, by right clicking on them in the Finder, then choose Archive/Compress.
    Users/YourUserName/Library/Mail
    Users/YourUserName/Library/Mail Downloads
    (Could be a different folder here if you chose such in Mail Prefs)
    Right click on that Mail folder, choose archive, you'll get everything in the folder, and the folder itself in a file called Mail.zip, move it to a safe place, same for the Mail Downloads folder... only the plist is separate.
    /Users/YourUserName/Library/Preferences/com.apple.mail.plist

  • Problem with Java Dates and UPDATE for SQL2000

    I am having problems with the date formats for Java. I am trying to put the current date time into a SQL table, here it the code I am using:
    var Today = new Date()
    var conn = Server.CreateObject( "ADODB.Connection" )
    conn.Open( "Provider=SQLOLEDB;Server=(local);Database=BillTracking;UID=sa;PWD=;")
    var sql = "UPDATE BillAssignments SET DatePosted = " + Today + " WHERE AssignmentID = '" + Request.QueryString("AssignmentID") + "'"
    var rs = conn.execute(sql)
    I keep getting different errors and I have been unable to find a solution yet. I know that I need to change the date format from the Java standard to the one that SQL likes.
    Help....
    Norm...

    Please tell us where the Java part of this comes in. I see that you are using JavaScript to load up data via an ADO connection (presumably on an IIS platform) - but I do not see where you are using Java
    Lee

  • Open data Set Error?

    Hi Guys,
                  I am using Open dataset for downloading the data into Application server   .I am getting the  error file path is not opened  but in al11 i was able to see the path what i mentioned here except bseg.txt file.I am getting error at Open data set statement.I have to write the bseg table data into the file bseg.txt in application server.can any body suggest the solution for this problem.
              Very urgent.
    wa_BSEG_file = '/interfaces/DR1/MM/outbounb/ZMMOF3007/BSEG.txt'.
      OPEN DATASET wa_BSEG_file FOR OUTPUT         "Write to appl. server
                                          IN TEXT MODE
                                          Encoding default.  "Open dataset Return code
    IF sy-subrc = 0.
    TRANSFER it_cosp1 to wa_BSEG_file.
    Write : 'File Transferred BSIK'.
      ELSE .
    Write : 'File Not Found / Transferred BSIK'.
    ENDIF.
       CLOSE DATASET wa_BSEG_file.
               Very urgent.Full marks will be alloted if u give me the correct answer.
    Thanks,
    Gopi.

    Hi,
    Due to serveral reasons
    1. Check whether you have proper authority in the directory?
    2. check the whether any files with same name?
    3. use addition message in the open dataset statement so that you can know the system message it getting.
    DATA: msg(100).
    OPEN DATASET wa_BSEG_file FOR OUTPUT MESSAGE msg
    IN TEXT MODE Encoding default.
    aRs

  • Open data set / code page

    Hello ,
    I am sending file to print server  and i am accounting problems with  special characters
    In first version of  program  ( please see the code below )
    "OPEN DATASET g_filename  FOR OUTPUT IN TEXT MODE ENCODING DEFAULT."
    The special characters l from German and French   alphabet were NOT printed properly  , and we had  some nonsense results . Other '"Normal "characters  like A , B... are printed without errors .
    To prevent this error i wrote new line of code for open data set ( below ).
    "OPEN DATASET g_filename FOR OUTPUT IN   LEGACY TEXT MODE CODE PAGE '4110'  IGNORING CONVERSION ERRORS."
    This was working only when FTP was NOT used  , when FTP was used i had  following short  dump.
    I am working in SAP release 6.0
    Please Advice
    SHORT DUMP Message :
    What happened?
        The conversion of texts in code page '4102' to code page '4110' is not
        supported here.
        The current ABAP program 'SAPLZPRN_AUTO_LBL' had to be interrupted because
         incorrect
        data would have been created by the conversion.
    Error analysis
        An exception occurred that is explained in detail below.
        The exception, which is assigned to class 'CX_SY_CODEPAGE_CONVERTER_INIT', was
         not caught in
        procedure "Z_TRANSFER_FILE" "(FUNCTION)", nor was it propagated by a RAISING
         clause.
        Since the caller of the procedure could not have anticipated that the
        exception would occur, the current program is terminated.
        The reason for the exception is:
        Possibly, one of the codepages '4102' or '4110' - needed for the
        conversion - is unknown to the system. Another option is, that a Unicode
         codepage was specified for a file in LEGACY MODE, which is not allowed.
        Additional parameters for the codepage conversion (as , for example, the
         replacement character) might have invalid values. You can find further
        information under 'Inernal notes'.
        If the problem occurred at opening, reading, or writing of a file, then
        the file name was '/te/mm/labels/0488_20091208_051317_EC008119_01_001.dd'.
         (Further information about this file: " X ")

    Hi,
    Also check the character set supported by the Printer. Printer configuration should also be checked on SAP side to determine character set and code page using SPAD.
    Regards,
    Nishad

  • Open Data Set Encoding

    Hello all,
    Can we specify Encoding in the OPEN DATA SET statement,i found out that we can encode it with UTF-8.
    but i want to encode my data in Latin1 ISO-8859-1.
    is it possible?
    if yes how to do it?
    plz help its urgent:(

    Hello Surmeet
    For me this sounds like that your string contains characters from two different encodings, e.g. ISO-8859-1 and ISO-8859-2.
    You could try to use option
    OPEN DATASET ... IGNORING CONVERSION ERRORS.
    Alternatively, you could surround the OPEN DATASET statement with a
    TRY.
      OPEN DATASET ...
    CATCH CX_SY_CONVERSION_CODEPAGE INTO lo_error.
      ld_msg = lo_error->get_text( ).  " get the message text
    ENDTRY.
    block and analyse the error message text. Hopefully you will find some hints to solve the problem.
    <i>Note</i>: For details refer to the ABAP keyword documentation of OPEN DATASET.
    Regards
      Uwe

  • Problem with billing date at closed period

    Hi
    We have a problem with billing date in transaction . Previously we could set up different (earlier) billing date than the actual posting period and now it is not working. We receive an error message that the posting period is closed ) .
    I attached an example invoice which we managed to post and where you can see what Iu2019m thinking about, parking number: 1024337, BILLING DOCUMENT: 841835. In this case the billing date was at 30.11.2007, but the posting in 15.07.2008 and we managed to post.
    Pls help that issue
    yps

    hi,
    it is due to posting period closed for the month of 07/2008.
    u need to open posting during that period.
    Regards,
    Greeshma

  • F-32 : Problem with Open Item selection

    Hi,
    We have a strange problem with open Item selection for customer clearing in t-code F-32
    In My QA system
    if I input spl GL indicator ="*" and uncheck Normal OI tick,
    the system selects all open items,
    (those with spl GL indicator and those without spl GL indicator)
    In My Dev system
    If I input spl GL indicator ="*" and uncheck Normal OI tick
    the system does not select any open items,
    Please let me know which setting controls this behaviour ?
    Regards
    Sachin

    Hello,
    Check your data in FBL5N for the option "Special GL Transactions". There could be that there is no data in the system with SPECIAL GL TRANSACTIONS.
    In F-32, there is no value like *
    You need to input right Special GL Indicator. "*" will not work here.
    I am sure in both the systems if you put "*" and UNTICK your normal transaction, you will NOT get any items to clear.
    Please DOUBLE CHECK whether you have unticked normal transaction.
    Regards,
    Ravi

  • What is open data set and close data set

    what is open data set and close data set,
    how to use the files in sap directories ?

    hi,
    Open Dataset is used to read or write on to application server ... other than that i am not sure that there exists any way to do the same ... here is a short description for that
    FILE HANDLING IN SAP
    Introduction
    • Files on application server are sequential files.
    • Files on presentation server / workstation are local files.
    • A sequential file is also called a dataset.
    Handling of Sequential file
    Three steps are involved in sequential file handling
    • OPEN
    • PROCESS
    • CLOSE
    Here processing of file can be READING a file or WRITING on to a file.
    OPEN FILE
    Before data can be processed, a file needs to be opened.
    After processing file is closed.
    Syntax:
    OPEN DATASET <file name> FOR {OUTPUT/INPUT/APPENDING}
    IN {TEXT/BINARY} MODE
    This statement returns SY_SUBRC as 0 for successful opening of file or 8, if unsuccessful.
    OUTPUT: Opens the file for writing. If the dataset already exists, this will place the cursor at the start of the dataset, the old contents get deleted at the end of the program or when the CLOSE DATASET is encountered.
    INPUT: Opens a file for READ and places the cursor at the beginning of the file.
    FOR APPENDING: Opens the file for writing and places the cursor at the end of file. If the file does not exist, it is generated.
    BINARY MODE: The READ or TRANSFER will be character wise. Each time ‘n’’ characters are READ or transferred. The next READ or TRANSFER will start from the next character position and not on the next line.
    IN TEXT MODE: The READ or TRANSFER will start at the beginning of a new line each time. If for READ, the destination is shorter than the source, it gets truncated. If destination is longer, then it is padded with spaces.
    Defaults: If nothing is mentioned, then defaults are FOR INPUT and in BINARY MODE.
    PROCESS FILE:
    Processing a file involves READing the file or Writing on to file TRANSFER.
    TRANSFER Statement
    Syntax:
    TRANSFER <field> TO <file name>.
    <Field> can also be a field string / work area / DDIC structure.
    Each transfer statement writes a statement to the dataset. In binary mode, it writes the length of the field to the dataset. In text mode, it writes one line to the dataset.
    If the file is not already open, TRANSFER tries to OPEN file FOR OUTPUT (IN BINARY MODE) or using the last OPEN DATASET statement for this file.
    IF FILE HANDLING, TRANSFER IS THE ONLY STATEMENT WHICH DOES NOT RETURN SY-SUBRC
    READ Statement
    Syntax:
    READ DATASET <file name> INTO <field>.
    <Field> can also be a field string / work area / DDIC structure.
    Each READ will get one record from the dataset. In binary mode it reads the length of the field and in text mode it reads each line.
    CLOSE FILE:
    The program will close all sequential files, which are open at the end of the program. However, it is a good programming practice to explicitly close all the datasets that were opened.
    Syntax:
    CLOSE DATASET <file name>.
    SY-SUBRC will be set to 0 or 8 depending on whether the CLOSE is successful or not.
    DELETE FILE:
    A dataset can be deleted.
    Syntax:
    DELETE DATASET <file name>.
    SY-SUBRC will be set to 0 or 8 depending on whether the DELETE is successful or not.
    Pseudo logic for processing the sequential files:
    For reading:
    Open dataset for input in a particular mode.
    Start DO loop.
    Read dataset into a field.
    If READ is not successful.
    Exit the loop.
    Endif.
    Do relevant processing for that record.
    End the do loop.
    Close the dataset.
    For writing:
    Open dataset for output / Appending in a particular mode.
    Populate the field that is to be transferred.
    TRANSFER the filed to a dataset.
    Close the dataset.
    Regards
    Anver
    if hlped pls mark points

  • How to use open data set in SAP

    Hi SAP Gurus,
            Could anyone help, how to use open data set in SAP.
          I need to upload a file from Application server (ZSAPUSAGEDATA) to internal table (IT_FINAL).
    Thanks & Regards,
    Krishnau2026

    Hi Krishna.
    These are the steps you need to follow.
    tables: specify the table.
    data: begin of fs_...
            end of fs_    " Structure Field string.
    data: t_table like
            standard table
                      of fs_...
    data:
    w_file TYPE string.
    data:
      fname(10) VALUE '.\xyz.TXT'.
    select-options: if any.
    PARAMETERS:
      p_file LIKE rlgrap-filename.
    w_file = p_file.
    select .... statement
    OPEN DATASET fname FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
    *OPEN DATASET fname FOR OUTPUT IN BINARY MODE.
    LOOP AT t_... INTO fs_....
    write:/ .....
    TRANSFER fs_... TO fname.
    or
    TRANSFER t_... TO fname
    ENDLOOP.
    CLOSE DATASET fname.
    Reward points wisely and if you are benefitted or ask for more detailed explanation if problem not solved.
    Regards Harsh.

Maybe you are looking for

  • Creating Context Menu for JTree Node

    Hi to all, I need to create Context Menu, when i right click on any Tree Node. Context Menu should contain selected node information. if you click on one tree node named as "AAAA" Context Menu Format is as follows AAAA Create New Delete If any one kn

  • Difference between form 16 and 24

    Can anyone let me know in the simplest way, the difference bet form 16, 24 and 24Q? Edited by: tinku ray on Feb 2, 2009 9:28 AM

  • Nvidia package wo/ kernel26-headers - makepkg chokes

    When I modify a single line in nvidia's PKGBUILD, makepkg dies in the following error.  What is really odd is that I can manually execute the build function and I do not get an error.  The error only happens when makepkg tries.  Can someone explain?

  • How to make flowlayout available in its caller??

    Dear friends: Good weekends. I met a problem when I tried to call a Flowlayout Program from another program. I have a Flowlayout Program called FlowLayoutPane.java, it can display 20 buttons in FlowLayout, run successes, I write another program calle

  • Installing over Ubuntu on MacBook Air 6,1

    I have a dual-booted MacBook Air 6,1 (early 2013). Currently it's running Mac OS and Ubuntu. Ubuntu was mostly a test as this is the first Mac I've owned since OS 8, and I wanted to feel out the hardware for compatibility issues. Now I'm looking into