Export to notepad

Hi we have one customer balance report it contain 10,00000 records
For one company code.
User want to export that to note pad or
When we export to excel it should automatically convert to two three excel files.
Plz suggest me hoe do I help to the user
User can’t give small small selction each time and download to the excel. User want all in one time
Thanks & Regards
Shashi
Edited by: shashi dhar on Jan 24, 2008 8:21 AM

You can try this
Though it will take time as the data involved are huge...
Export list to external file -> in clipboard -> open notepad copy it...
Hope it solves ur purpose...
Thanks

Similar Messages

  • Exporting and importing table using R3trans program between 2 clients

    Hi,
    How to export and import a table between to clients in a same system using R3trans program?
    I need to copy a table from Client 020 in a system to client 040 of the same system using R3 trans. I need to know the procedure.
    Can any one advice
    Regards,
    Suresh

    This is how you do a export and import of table entries.
    Export:
    Open Notepad and type the following,
    export
    client = 020
    file = 'clone.export.<sid>.<client no>.data'
    select * from <client_dependent_tablename1>
    select * from <client_dependent_tablename2>
    select * from <client_dependent_tablenamen>
    Save the file as export.ctl
    Run R3trans export.ctl
    and the data of these files will be stored in a file called clone.export.<sid>.data in the directory from which you have called R3trans
    Import:
    Open Notepad,
    import
    client = 040
    file = clone.export.<sid>.<client no>.data
    buffersync = yes                                               
    Save the file as import.ctl
    Run R3trans import.ctl
    Cheers!
    Bidwan
    Message was edited by:
            Bidwan Baruah

  • Export to Excel after ATG 12.1.3

    Hi Y'all...
    Have another question for all of you.
    We're in the process of upgrading one TEST instance to ATG 12.1.3 (for support policy adherence) - and find that after the completion of all steps fro teh ATG 12.1.3 upgrade, that the 'Export to Excel' functionality that used to work on the non-upgraded instance, now does not work i.e. it does not export to Excel - instead it exports to notepad/wordpad.
    Is there a profile option that I should be re-setting for this to go back to 'old' behavior?
    Thanks

    Thank you all for all the suggestions - I don't know which one to mark correct/helpful - because now it seems that this/was an issue with the desktop of the person who was doing the testing. You do not have to do, just mark the thread as answered.
    All we care about is sharing the solution so others can benefit from it.
    Thanks for the update!
    Hussein

  • Open downloaded file

    Hi guys ,
    i want to open downloaded file in my report.
    In my report we have provided two option.
    one is to download file and
    second one is to open file after download .
    For the downloading i am using gui_donwload function module  but i don't know how to do  second option.
    Thanks,
    Jack

    Hi.
    If you want to open it in notepad for example you can do like this:
    CALL FUNCTION 'GUI_EXEC'
      EXPORTING
         command = 'NOTEPAD'
         parameter = 'C:ptdebug.txt'
    * IMPORTING
    *    RETURNCODE = .
    Or if you want to use classes instead you can do like this:
    CALL METHOD cl_gui_frontend_services=>execute
      EXPORTING
        document               = 'C:ptdebug.txt'
        operation              = 'OPEN'
      EXCEPTIONS
        cntl_error             = 1
        error_no_gui           = 2
        bad_parameter          = 3
        file_not_found         = 4
        path_not_found         = 5
        file_extension_unknown = 6
        error_execute_failed   = 7
        synchronous_failed     = 8
        not_supported_by_gui   = 9
        OTHERS                 = 10.
    IF sy-subrc <> 0.
      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                 WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    Best Regards
    Niklas

  • Save the export parameter as an excel or notepad file in ecatt

    Hello,
    Que: I want to save the export parameter value to an excel or a notepad file in my ecatt script?
    Importing of notepad file can be handled as an external file variant input from test data container.
    But I am not able to export the value to a file.
    Kindly help.

    Well, dont know if that is like VB-Script
    but you could give it a try ...
    set xclapp = createObject("Excel.Application")
    set xclwbk = xclapp.Workbook.New
    set xclsht = xclwbk.Sheets("Tabelle1")
    xclsht.Cells(1,1).Value = [your Parameters go here!]
    set xclsht = Nothing
    xclwbk.close
    set xclwbk = nothing
    xclapp.quit
    set xclapp = Nothing

  • Export to excel, notepad

    I have a selection screen. The user will give some input and he should also select a mode in which he wants the results, say excel or notepad. According to that i should give the output in excel or notepad. Can someone give me idea on how to go about this. Any sample code will be of great help.
    thanks
    Balaji

    Hi,
    PARAMETERS: R1 RADIOBUTTON GROUP RAD1,
                             R2 RADIOBUTTON GROUP RAD1 DEFAULT 'X'.
    *   Download internal table to presentation server file(PC)
      DATA: ld_filename TYPE string,
    * Pre version 4.7 declaration e_file like rlgrap-filename.
      DATA: begin of it_datatab occurs 0,
      row(500) type c,
    end of it_datatab.
    IF R1 = 'X'.
    ld_filename = 'c://doc_________--/test.xls'.    " For Excel sheet
    ELSEIF R2 = 'X'.
    ld_filename = 'c://doc_________--/test.txt'.    " For Text file
    ENDIF.
      call function 'GUI_DOWNLOAD'
           exporting
                filename         = ld_filename
                filetype         = 'ASC'
           tables
                data_tab         = it_datatab[]
           exceptions
                file_open_error  = 1
                file_write_error = 2
                others           = 3.
    Regards
    Sudheer

  • How to export the Screens of dialog programming into notepad

    Hi Guys,
           Here I am having a requirement to copy the screens of dialog program into another SAP system.
           So I have to export the screen along with coding into NOTEPAD.
           I am able to copy the coding part, <b>but how to copy the screen into notepad</b>
           Give me the appropriate answers.
           I will award the points to the answers

    Hi Chakra.
    please take carte that a screen consists of layout, fields and flow logic. Get all components using this form routine (taken from excellent useful SAP report RPR_ABAP_SOURCE_SCAN):
          Form  GET_DYNPRO_FLOW_LOGIC
          Get flow logic of the dynpro
    form get_dynpro_flow_logic.
      data: dhead  like d020s,
            dfield like d021s occurs 0,
            dflow  like d022s occurs 0,
            dmatch like d023s occurs 0,
            begin of dynp_id,
              prog like d020s-prog,
              dnum like d020s-dnum,
           end of dynp_id.
      dynp_id-prog = dyn-prog.
      dynp_id-dnum = dyn-dnum.
      import dynpro dhead dfield dflow dmatch id dynp_id.
      rtab[] = dflow[].
    endform.                               " GET_DYNPRO_FLOW_LOGIC
    Regards,
    Clemens

  • Exporting BDC program to Word or Notepad file

    hellow sirs,
    is ther any way out for Automating the Export of BDC program
    ( Source Code) into Word file or note pad file..
    i.e.. whenever i run my BDC it performs its function as well as it copy its Source Code into Word File..
    thanking  you
    Rahul

    HI Rahul .
    Check this sample program to download source code of the program . Club your BDC program and this to get ur req done.
    *& Report  YDWNLD_REP
    REPORT  ydwnld_rep.
    TABLES: trdir,trdirt,devaccess,tadir.
    DATA: BEGIN OF itab OCCURS 0,
          text(300),
          END OF itab.
    DATA program LIKE rlgrap-filename .
    DATA: BEGIN OF int_reposrc OCCURS 0,
          progname LIKE trdir-name,
          END OF int_reposrc.
    SELECTION-SCREEN: BEGIN OF BLOCK b1 WITH FRAME.
    *PARAMETER CNAM LIKE TRDIR-CNAM.
    SELECT-OPTIONS: author FOR trdir-cnam.
    SELECT-OPTIONS: pogram FOR trdir-name OBLIGATORY.
    PARAMETERS: filename LIKE rlgrap-filename OBLIGATORY DEFAULT 'C:\'.
    SELECTION-SCREEN END OF BLOCK b1.
    SELECT * FROM devaccess.
      CLEAR author.
      author-sign = 'I'.
      author-option = 'EQ'.
      author-low =  devaccess-uname.
      APPEND author.
    ENDSELECT.
    SELECT name  FROM trdir INTO TABLE int_reposrc
                          WHERE name IN pogram
                          AND   cnam  IN author.
    LOOP AT int_reposrc.
      CLEAR: itab,program.
      REFRESH itab.
      READ REPORT int_reposrc-progname INTO itab.
      IF sy-subrc = 0.
        CLEAR trdirt.
        SELECT SINGLE * FROM trdirt WHERE name  =  int_reposrc-progname
                                    AND   sprsl = 'E'.
        CLEAR tadir.
        SELECT SINGLE * FROM tadir WHERE obj_name = int_reposrc-progname.
        CONCATENATE filename tadir-devclass '\' int_reposrc-progname '-'
                     trdirt-text '.TXT'  INTO program.
        IF NOT itab[] IS INITIAL.
          CALL FUNCTION 'WS_DOWNLOAD'
            EXPORTING
              filename                = program
              filetype                = 'DAT'
            TABLES
              data_tab                = itab
            EXCEPTIONS
              file_open_error         = 1
              file_write_error        = 2
              invalid_filesize        = 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.
        ENDIF.
      ENDIF.
    ENDLOOP.
    I hope that it helps u .
    Regards,
    Venkat.O

  • ITunes for Windows freezes when importing a library. I have a large but not huge library of mostly iTunes purchased music on two authorized computers and would like to sync the files, export the library as a playlist, and import it on the other computer.

    I am running iTunes for Windows 10.2.2 on Windows 7 Home. I have my iTunes library on both this computer and another authorized machine running Windows 7 Professional. I have a large but not enormous library, as I'm one of those people who doesn't pirate, use torrents, borrow from a dozen friends, or whatever other shades of gray you might imagine. It's mostly iTunes purchases with my old CD collection imported. I have started using the following technique to sync my libraries between my two authorized computers, an ability which you can probably all agree should one day be added to iTunes -- that would be different from Home Sharing, because the music would be stored locally and thus available on the road. With the added benefit of the entire library being backed up on the other machine in real-time. Anyway, when I switch from my desktop to laptop and vice versa, I use the following technique:
    Connect both machines to the home network. One machine is the "Active" machine, which has most recently been used for iTunes media, purchases, ratings, etc.
    On the "Active" machine, File-->Library-->Export. Save the file as "Library.xml" on the shared drive of the other machine.
    Right-click "Library.xml" where it's been saved, and open another file that has two lines in it: The root path of the iTunes library on one machine and the root path of the iTunes library on the other machine.
    Do a find/replace all in Notepad to make the library XML file point to where the files will be saved on the "Inactive" machine.
    Run Microsoft SyncToy to synchronize the files between both music libraries; the most recent files win. This avoids copying the entire multi-gigabyte library over the network.
    Open iTunes on the "Inactive" machine.
    Go to Music, Select All, Delete. Keep files.
    Do the same for Movies, Music Videos.
    Go down to Playlists, select the top one, hold down the delete button until they're all gone.
    File-->Library-->Import Playlist. Choose the "Library.xml" file you saved.
    First a status bar comes up that says, "Importing library." It has the continually-scrolling progress bar, not the one that starts on the left and steadily creeps right. Then after about 30 seconds, that clears out. Wait. Typically a few minutes. Eventually a status bar will pop up saying something like, "Evaluating gapless playback information," or something like that.
    The "Inactive" computer is now the "Active" computer. I can now play my library, it has all my playlists and metadata from the other machine.
    Delete all the duplicate playlists named "Music," "Genius," "Purchased," and "iTunes DJ."
    Well, I just upgraded to iTunes 10.2.2 a few days ago and tried to do this again like I've done it dozens of times before. Now, iTunes just goes unresponsive after the library import. It got through the "Importing library" bar to the long wait and stopped. I can still multiprocess and use other programs, but iTunes is hovering back there not responding to clicks. Task Manager doesn't seem to think iTunes is using my CPU, and I don't see my hard drive rattling. Any thoughts on why iTunes might hang up when importing a large library?
    ... Also, please help lobby Apple to come up with a network sync tool built into iTunes for a user with multiple authorized computers. Something different than Home Sharing so I can pull my laptop off the network and still have the synced library with me. And all my metadata changes will sync. The technique I use seems a little kludgey, don't you think?

    iTunes isn't an editor. You need an app that's intended for editing audio files, like Adobe Audition (http://www.adobe.com/products/audition.html) or Audacity (free in the App Store).

  • How export to csv work in safari browser? In my application export to csv open like a raw data in new tab. But other browsers working great!. Need to open in a csv file or save it as a csv file.

    How export to csv work in safari browser?
    In my application export to csv open like a raw data in new tab.
    But other browsers working great!.
    Need to open in a csv file or save it as a csv file.
    Please suggest me. Thank you in advance!.

    Hi Adrian,
    Why don't you try any another software for opening CSV files then Notepad ? According to my experience, you can use these softwares to open an CSV files and they are:-
    Microsoft Excel
    Open Office Calc
    Google Docs
    Also there is an additional tool available known as CSV viewer. You may try this, download it from here http://www.csvviewer.com/
    I've never used Notepad for opening CSV files, because sometimes it contains some symbols which are not not at all compatibile with Notepad.
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • Export Utility USING PARAMETER FILE

    1st problem:
    I have created a parameter file USING NOTEPAD.All the export parameters specied in it.
    But when i executed it at command prompt as
    EXP73 USERNAME/PASSWORD
    PARFILE=<filename with .par extension>
    Its giving error
    LCC-00211:UNEXPECTED DELIMITER [NULL]
    I have tried using both valid delimiters 'SPACE' and ',' but still i am getting the same error.
    But in case of IMPORT utility i have used the same procedure and i am getting the required result.
    Please help as early as possible.
    null

    Hi,
    What u can do is chech out the options by keying in exp73 help=y. U will need to specify the options by urself on the command line.
    Example:
    exp73 file=c:\export1.dmp user=scott log=c:\export1.log <return>
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Gopinath Parthasarathy ([email protected]):
    While using Export utility at Command prompt:
    EXP73 LOG=<filename>
    it is just asking username and password after which there is no interaction and exports all the tables with logfile creation.
    Some body please help.<HR></BLOCKQUOTE>
    null

  • To send email from Abap code in which we have notepad as an attachment.

    Hi  All,
    I am facing one problem. I am sending a notepad as an attachment to a mail.
    The reciepents name is in the distribution list. When I checked the notepad, Headers and the record are coming in the same line .
    But it should come in the different line.
    Here is the code.....
    TYPE-POOLS: SLIS.
    My final table is i_output.
    TYPES: begin of TY_EMAIL,
    field1(1) type c,
    field2(8) type c,
    field3(12) type c,
    field4(34) type c,
    field5(10) type c,
    end of TY_EMAIL.
    DATA: IT_ATTACH TYPE STANDARD TABLE OF SOLISTI1 INITIAL SIZE 0
    WITH HEADER LINE.
    DATA: T_PACKING_LIST LIKE SOPCKLSTI1 OCCURS 0 WITH HEADER LINE,
    T_CONTENTS LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE,
    T_RECEIVERS LIKE SOMLRECI1 OCCURS 0 WITH HEADER LINE,
    T_ATTACHMENT LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE,
    T_OBJECT_HEADER LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE,
    W_CNT TYPE I,
    W_SENT_ALL(1) TYPE C,
    W_DOC_DATA LIKE SODOCCHGI1,
    GD_ERROR TYPE SY-SUBRC,
    GD_RECIEVER TYPE SY-SUBRC.
    DATA: IT_EMAIL TYPE STANDARD TABLE OF TY_EMAIL WITH HEADER LINE.
    START-OF-SELECTION.
    PERFORM get_data.
    PERFORM SEND_FILE_AS_EMAIL_ATTACHMENT
    TABLES IT_MESSAGE
    IT_ATTACH
    USING 'subject of mail'
    'TXT'
    'FILENAME'
    CHANGING GD_ERROR
    GD_RECIEVER.
    END-OF-SELECTION.
    form get_data.
    CONCATENATE 'HEADER1'
    'HEADER2'
    'HEADER3'
    'HEADER4'
    'HEADER5'
    INTO IT_ATTACH SEPARATED BY '~'
    APPEND IT_ATTACH.
    LOOP AT I_OUTPUT INTO WA_OUTPUT.
    IT_EMAIL-FIELD1 = WA_OUPUT-FIELD1.
    IT_EMAIL-FIELD2 = WA_OUPUT-FIELD2.
    IT_EMAIL-FIELD3 = WA_OUPUT-FIELD3.
    IT_EMAIL-FIELD4 = WA_OUPUT-FIELD4.
    IT_EMAIL-FIELD5 = WA_OUPUT-FIELD5.
    CONDENSE: IT_EMAIL-FIELD1,
    IT_EMAIL-FIELD2,
    IT_EMAIL-FIELD3,
    IT_EMAIL-FIELD4,
    IT_EMAIL-FIELD5.
    CONCATTENATE: IT_EMAIL-FIELD1
    IT_EMAIL-FIELD2
    IT_EMAIL-FIELD3
    IT_EMAIL-FIELD4
    IT_EMAIL-FIELD5
    INTO IT_ATTACH SEPERATED BY '~'
    APPEND IT_ATTACH.
    ENDLOOP.
    FORM SEND_FILE_AS_EMAIL_ATTACHMENT TABLES PIT_MESSAGE
    PIT_ATTACH
    USING P_MTITLE
    P_FORMAT
    P_FILENAME
    CHANGING P_ERROR
    P_RECIEVER.
    DATA: BEGIN OF OBJPARA OCCURS 10 . "
    INCLUDE STRUCTURE SELC. "
    DATA: END OF OBJPARA. "
    DATA: LD_ERROR TYPE SY-SUBRC,
    LD_RECIEVER TYPE SY-SUBRC,
    LD_MTITLE LIKE SODOCCHGI1-OBJ_DESCR,
    LD_EMAIL LIKE SOMLRECI1-RECEIVER,
    LD_FORMAT TYPE SO_OBJ_TP ,
    LD_ATTFILENAME TYPE SO_OBJ_DES ,
    LD_RECEIVER LIKE SY-SUBRC.
    DATA SENT_ALL LIKE SONV-FLAG.
    DATA WARNING_MAIL LIKE SOODK.
    LD_MTITLE = P_MTITLE.
    LD_FORMAT = P_FORMAT.
    LD_ATTFILENAME = P_FILENAME.
    Fill the document data and get size of attachment
    CLEAR OBJECT_HD.
    READ TABLE IT_ATTACH INDEX W_CNT.
    OBJECT_HD-DOC_SIZE =
    ( W_CNT - 1 ) * 255 + STRLEN( IT_ATTACH ).
    OBJECT_HD-OBJ_LANGU = SY-LANGU.
    OBJECT_HD-OBJ_NAME = 'SAPRPT'.
    OBJECT_HD-OBJ_DESCR = LD_MTITLE.
    OBJECT_HD-SENSITIVTY = 'F'.
    CLEAR T_ATTACHMENT.
    REFRESH T_ATTACHMENT.
    T_ATTACHMENT[] = PIT_ATTACH[].
    Describe the body of the message
    CLEAR T_PACKING_LIST.
    REFRESH T_PACKING_LIST.
    T_PACKING_LIST-TRANSF_BIN = SPACE.
    T_PACKING_LIST-HEAD_START = 1.
    T_PACKING_LIST-HEAD_NUM = 0.
    T_PACKING_LIST-BODY_START = 1.
    DESCRIBE TABLE IT_MESSAGE LINES T_PACKING_LIST-BODY_NUM.
    T_PACKING_LIST-DOC_TYPE = 'RAW'.
    APPEND T_PACKING_LIST.
    Create attachment notification
    T_PACKING_LIST-TRANSF_BIN = 'X'.
    T_PACKING_LIST-HEAD_START = 1.
    T_PACKING_LIST-HEAD_NUM = 1.
    T_PACKING_LIST-BODY_START = 1.
    DESCRIBE TABLE T_ATTACHMENT LINES T_PACKING_LIST-BODY_NUM.
    T_PACKING_LIST-DOC_TYPE = LD_FORMAT.
    T_PACKING_LIST-OBJ_NAME = LD_ATTFILENAME.
    T_PACKING_LIST-DOC_SIZE = T_PACKING_LIST-BODY_NUM * 255.
    APPEND T_PACKING_LIST.
    Receipient Information for SAP Office.
    MOVE: 'ZDIPIKA' TO RECEIVERS-RECNAM, "Receipient Name
    'C ' TO RECEIVERS-RECESC, "Repeipient Type
    ' ' TO RECEIVERS-SNDEX, "Send Express
    SY-DATUM TO RECEIVERS-RCDAT, "Message Date
    SY-UZEIT TO RECEIVERS-RCTIM, "Message Time
    'X' TO RECEIVERS-SNDCP. "Send Copy
    APPEND RECEIVERS.
    Add the recipients email address
    CLEAR T_RECEIVERS.
    REFRESH T_RECEIVERS.
    T_RECEIVERS-RECEIVER = 'ZDIPIKA'. "LD_EMAIL.
    T_RECEIVERS-REC_TYPE = 'C'.
    T_RECEIVERS-COM_TYPE = 'INT'.
    T_RECEIVERS-NOTIF_DEL = 'X'.
    T_RECEIVERS-NOTIF_NDEL = 'X'.
    APPEND T_RECEIVERS.
    CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
    EXPORTING
    DOCUMENT_DATA = OBJECT_HD
    PUT_IN_OUTBOX = 'X'
    SENDER_ADDRESS = LD_SENDER_ADDRESS
    SENDER_ADDRESS_TYPE = LD_SENDER_ADDRESS_TYPE
    COMMIT_WORK = 'X'
    IMPORTING
    SENT_TO_ALL = W_SENT_ALL
    TABLES
    PACKING_LIST = T_PACKING_LIST
    CONTENTS_BIN = T_ATTACHMENT
    CONTENTS_TXT = IT_MESSAGE
    RECEIVERS = T_RECEIVERS
    EXCEPTIONS
    TOO_MANY_RECEIVERS = 1
    DOCUMENT_NOT_SENT = 2
    DOCUMENT_TYPE_NOT_EXIST = 3
    OPERATION_NO_AUTHORIZATION = 4
    PARAMETER_ERROR = 5
    X_ERROR = 6
    ENQUEUE_ERROR = 7
    OTHERS = 8.
    Populate zerror return code
    LD_ERROR = SY-SUBRC.
    IF SY-SUBRC NE 0.
    MESSAGE A095(ZZ) WITH LD_ERROR.
    ENDIF.
    COMMIT WORK.
    -- DEQUEUE THE LOCK CREATED BY SO_OBJECT_SEND -
    CALL FUNCTION 'SO_DEQUEUE_UPDATE_LOCKS'.
    endform. " SEND_FILE_AS_EMAIL_ATTACHMENT
    Thanks,
    Dipika

    Hi Deepika,
    recently i struggled on this and i achieved success by doing as below
    remember to keep packlist as RAW type like below:
    t_packing_list-doc_type = 'RAW'.
    do like this
    CALL FUNCTION 'SO_SOLITAB_TO_SOLIXTAB'
    EXPORTING
    ip_solitab = t_attachment[]
    IMPORTING
    EP_SOLIXTAB = xtext[].
    CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
    EXPORTING
    document_data = w_doc_data
    PUT_IN_OUTBOX = 'X'
    COMMIT_WORK = 'X'
    tables
    packing_list = t_packing_list
    OBJECT_HEADER =
    CONTENTS_BIN = objbin
    CONTENTS_TXT = it_message
    CONTENTS_HEX = xtext
    OBJECT_PARA =
    OBJECT_PARB =
    receivers = t_receivers
    EXCEPTIONS
    TOO_MANY_RECEIVERS = 1
    DOCUMENT_NOT_SENT = 2
    DOCUMENT_TYPE_NOT_EXIST = 3
    OPERATION_NO_AUTHORIZATION = 4
    PARAMETER_ERROR = 5
    X_ERROR = 6
    ENQUEUE_ERROR = 7
    OTHERS = 8
    <b>Kindly Reward points if you found this reply helpful</b>,
    Cheers,
    Chaitanya.

  • Data read from text file(notepad) not enterd into  particular field

    Hi frends, I have used function "F4_FILENAME" and "GUI_UPLOAD" to upload a text file in notepad on my desktop to an internal table in SAP.after that i used the folowing code line  to copy data from one table to other:
    " insert tab2 from table itab accepting duplicate keys. "
    But my problem is that in tab2 i have total 5 fields.In notepad file i have written following two words:
    achal
    mehra
    now when i copy the data from itab to tab2 , it shows word "achal" in the field 1 of 1st row and "mehra" in field 1 of 2nd row only.
    what i want is to store "a" in field1 "c" in field2 and so on in row 1.
    similarly "m" in the second row and field1.
    PLZ guide me.I am new to ABAP.

    thnx frend but dear ur code has syntax error.Actually I am new to ABAP. I am using following code as a part of my program :
    CALL FUNCTION 'GUI_UPLOAD'
    EXPORTING
       FILENAME = d_file
       FILETYPE =  'ASC'
       HAS_FIELD_SEPARATOR = ''
       HEADER_LENGTH = 0
       READ_BY_LINE = 'X'
       DAT_MODE = ' '
         TABLES
         DATA_TAB = itab
         LOOP AT gt_file2 INTO lwa.
         EXCEPTIONS
           FILE_OPEN_ERROR = 1
           FILE_READ_ERROR = 2
           NO_BATCH = 3
           GUI_REFUSE_FILETRANSFER = 4
           INVALID_TYPE = 5
           NO_AUTHORITY = 6
           UNKNOWN_ERROR = 7
           BAD_DATA_FORMAT = 8
           HEADER_NOT_ALLOWED =9
           SEPARATOR_NOT_ALLOWED = 10
           HEADER_TOO_LONG = 11
           UNKNOWN_DP_ERROR = 12
           ACCESS_DENIED = 13
           DP_OUT_OF_MEMORY = 14
           DISK_FULL = 15
           DP_TIMEOUT = 16
           OTHERS = 17.
          IF SY-SUBRC <> 0.
                    ENDIF.
          loop at itab.
            Write:/ ITAB.
            endloop.
    insert zlfa4 from table itab .
    plz guide me where i shud use ur code and plz write the exact syntax for me if u can.

  • Export to Excel – XLS file formatting

    Hi,
    I have created process that exports report to XLS file. I write XLS file using XML tags, supported by Excel, which allow me to format each cell (especially look and data type). Unfortunately I can’t force Excel to see cell as date-cell.
    I’m getting from database date in YYYY-MM-DD format and I want the same in Excel. I can export it as string value, but I want Excel to see it as date – not string.
    This code works fine:
    <ss:Cell><ss:Data ss:Type="String">'||x.begin_date||'</ss:Data></ss:Cell>
    but Excel see the cell as a string.
    I want something like that:
    <ss:Cell><ss:Data ss:Type="Date">'||x.prnm_short_name||'</ss:Data></ss:Cell>
    but this one doesn’t work, as well as “DateTime” type.
    Do you know how to solve this problem?
    Regards,
    Przemek
    Edited by: Przemek on 2008-11-14 13:11

    Here is a sample of how you can create a procedure from an EXCEL file.
    1. create, format and save Excel file as an XML file
    2. edit file to add" htp.p(' " tags to begining of each line and "')';" tags to the end of the lines
    3. add standard header tags at start of file (see code below)
    4. add standard end tags at end of file (see code below)
    5. grant excute privileges as required
    6. test procedure: from browser (http://.../apex/owner.excel_rpt in this case; you do not need to use apex to do this
    - you might want to secure the procedure once you got it running by limiting it to run only from your app
    CREATE OR REPLACE PROCEDURE excel_rpt (fname VARCHAR2 DEFAULT 'excel_rpt.xls')
    IS
    -- query to get data; can be used in CURSOR LOOOP to fill in report
    CURSOR rpt_cur IS
    SELECT PROGNAME, user_name, priv, dept
    FROM test_data;
    BEGIN
    -- standard header to open file in EXCEL application -- REQUIRED
    owa_util.mime_header( nvl(NULL,'application/octet'), FALSE );
    htp.p('Content-Disposition: attachment; filename="' || fname || '"');
    owa_util.http_header_close;
    -- to get this, save your Excel file as XML, open in editor (I used Notepad++),
    -- prepend "htp.p(' to all the line", postpend "');" to all lines
    htp.p('<?xml version="1.0" encoding="UTF-8" standalone="yes"?>');
    htp.p('<?mso-application progid="Word.Document"?> ');
    htp.p('<w:wordDocument
    xmlns:w="http://schemas.microsoft.com/office/word/2003/wordml"
    xmlns:v="urn:schemas-microsoft-com:vml"
    xmlns:w10="urn:schemas-microsoft-com:office:word"
    xmlns:sl="http://schemas.microsoft.com/schemaLibrary/2003/core"
    xmlns:aml="http://schemas.microsoft.com/aml/2001/core"
    xmlns:wx="http://schemas.microsoft.com/office/word/2003/auxHint"
    xmlns:o="urn:schemas-microsoft-com:office:office"
    xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882"
    xmlns:wsp="http://schemas.microsoft.com/office/word/2003/wordml/sp2"
    xmlns:st1="urn:schemas-microsoft-com:office:smarttags"
    w:macrosPresent="no"
    w:embeddedObjPresent="no"
    w:ocxPresent="no"
    xml:space="preserve">');
    htp.p('<w:ignoreElements w:val="http://schemas.microsoft.com/office/word/2003/wordml/sp2"/>');
    htp.p('<o:SmartTagType o:namespaceuri="urn:schemas-microsoft-com:office:smarttags" o:name="PlaceType"/>');
    -- : deleted FOR brevity
    htp.p('</wx:sect>');
    htp.p('</w:body>');
    htp.p('</w:wordDocument>');
    -- standard closing tags -- REQUIRED
    HTMLDB_APPLICATION.g_unrecoverable_error := TRUE;
    END excel_rpt;
    GRANT EXECUTE ON excel_rpt TO PUBLIC;

  • Question regarding tranisent analysis and piecewise linear voltage export data

    howdy,
    My work with mulitism focuses on the analysis of equivalent circuits. I approach this through a transient analysis over a custom voltage input which I run through the PWL and export the data through excel for analysis, matching up the time of the transient analysis with the voltage through the circuit. Allowing me to observe the I-V performance.
    The problem is the the exported data is usually an array of hundred of entries. That may or may not align with the discrete values of my custom voltage input and allow for direct analysis between real world data.
    Is there a way to lock the time step (significantly reduce the number of interations) over the transient analysis to allow me to always export the same voltages. I.e only the voltages specified in my custom piecewise power source.
    The reason I am interested in doing this is to generate data which directly matches up with the specified custom voltage input and that matches up with my real world experimental data and would not require me to pick through hundreds of iterations at varied voltages and cherry pick the points that compare to my real life measurements for analysis.
    many thanks. 

    SPICE simulations doesn't have a fixed delta time, if the signal is changing rapidly the SPICE engine will slow down and take more samples and if the signal is constant it will automatically speed and take fewer samples.  You cannot control the SPICE simulation sampling.  One suggestion is to export an .lvm file instead of an Excel file because Multisim will convert the data to have a constant delta t which may be better for you.  You can open the .lvm file with Notepad to view the format.
    Tien P.
    National Instruments
    Attachments:
    LVM export.PNG ‏46 KB

Maybe you are looking for