Formatting / Post Processing of Exported Excel Sheet

Hi ,
Issue:
The Columns in the Excel Sheet are not fully visible when we export Report from CR viewer  to Excel Sheet. So we had planned for Post processing of the Excel Sheet using VBA or .NET etc to format the Excel Sheet, which would be on the server side, meaning the End user will never see the formatting process, but only the End Report. Is it possible to achieve this ??
NOTE:
1) VBA or .NET could not be run on the Linux Server but we could take advantage of the windows server in the presentation layer.
Architecture:  
Presentation Layer                    
Linux Server <--> Windows .Net Server <--
> End User
{Crystal RAS Server} <-->{GUI CR Viewer Application}<--
>
Our Proposed Solution:
1) Create an GUI Application that has CR viewer in it .
2) Create a Separate Excel Export button on the webpage.
3) when the user wants to export the report , he clicks the button.
4) The GUI/ application saves the Exported Excel Sheet from the Ras server to the windows server.
5) Then the .Net or the Vba code is applied to process/Format the Excel Sheet.
6) When complete the End user is prompted for saving the report to a local disk.
My questions:
1) Can this be achieved ?
2) what would be the best way to handle this ?
3) what should be the process flow ?
4) what are the things to be considered while planning for such a design ?
Regards,
Ramkumar Govindasamy

So you're looking at using RAS .NET SDK on the Application Layer to export a Crystal Report to Excel, save to temp file on the Application Layer machine, process that temp file, and stream that back out to the client web browser.
Considerations:
1. You need to create your own custom UI button to trigger the process, since the .NET Web Forms Crystal Reports viewer won't have the hooks to customize the Excel export.
2. Running Excel VBA from your Web App may be problematic - you'd have to be particularly careful if the system is under load, since the Excel VBA - COM-Interop isn't necessarily designed for high throughput.  Under high load, you may get file locking or COM-Interop layer just refuse to process.  It's pretty common to try and catch exceptions and retry if you encounter this.
You'd likely not find anyone here familiar with 2 above, but 1 is fairly common.
Sincerely,
Ted Ueda

Similar Messages

  • Again: Using Crystal Report to export excel sheet.

    Morning every one, first Iu2019d like to apologize for my last question see Using Crystal Report to export excel sheet. Itu2019s pretty hard to understand and wastes your precious time. Now here is a new one hopefully it will do myself a lot of help:)
    First, we have a table called HOURLY_PORTUTIL in the Database:
    Column Name...........Data Type  
    STARTTIME ................DATE
    CIRCLE.......................VARCHAR2
    SERVICENAME...........VARCHAR2
    PORTUTIL....................NUMBER
    The data in this table looks like:
    9/25/2008 00:00:00 AM...AP...(456)...0.01
    9/25/2008 01:00:00 AM...AP...(456)...0.04
    9/25/2008 02:00:00 AM...AP...(456)...5.04
    9/25/2008 12:00:00 PM...AP...(456)...0.02
    9/25/2008 00:00:00 AM...AP...AL-MOD...0.01
    9/25/2008 01:00:00 AM...AP...AL-MOD...0.04
    9/25/2008 02:00:00 AM...AP...AL-MOD...0.04
    9/25/2008 12:00:00 PM...AP...AL-MOD...0.02
    9/26/2008 00:00:00 AM...AP...(456)...1.01
    9/26/2008 01:00:00 AM...AP...(456)...0.34
    9/26/2008 02:00:00 AM...AP...(456)...5.24
    9/26/2008 12:00:00 PM...AP...(456)...7.72
    9/26/2008 00:00:00 AM...AP...AL-MOD...12.0
    9/26/2008 01:00:00 AM...AP...AL-MOD...0.23
    9/26/2008 02:00:00 AM...AP...AL-MOD...0.44
    9/26/2008 12:00:00 PM...AP...AL-MOD...8.11
    9/25/2008 00:00:00 AM...Delhi...(456)...1.01
    9/25/2008 01:00:00 AM...Delhi...(456)...2.04
    9/25/2008 02:00:00 AM...Delhi...(456)...6.04
    9/25/2008 12:00:00 PM...Delhi...(456)...7.02
    Then we have a Cross-Table:
    Columns:
    .............HOURLY_PORTUTIL.SERVICENAME
    Rows:
    ............HOURLY_PORTUTIL.CIRCLE
    ............HOURLY_PORTUTIL.STARTTIME
    ............@hourly
    Summarized Fields:
    ..............................Sum HOURLY_PORTUTIL.PORTUTIL
    The Formula @hourly converts, say, '9/25/2008 01:00:00 AM' to '01:00-02:00'.
    The above all is the information of our Cross-Table configuration, but the outcome is not what we want. I find that this forum doesn't want the user to post image, so I post the actually outcome and the outcome we want in my Picasa.
    Actually outcome:
    [http://picasaweb.google.com/enel.guo/ForWork#5288743968250408770]
    What we want:
    [http://picasaweb.google.com/enel.guo/ForWork#5288743974292750610]
    I know that the outcome looks good enough, but our customers don't think so. They want export the report to Excel sheet and have every row with exact CIRCLE and STARTTIME.
    Thanks again guys:)

    Hi  Ashwini Yadav,
    Thanks for your reply:)
    I'm afraid that your answer is not perfectly right. Again I'm sorry for my vague description. The suggestion you gave us is already adopted. The total and grand total part disappeared but we still can't get what we want.
    Please have a look at the new image link below, Hopefully it will give you a clear picture of what's going on:)
    Cross-table:
    [http://picasaweb.google.com/enel.guo/ForWork#5289122850514299506]
    Cross-Table configuration:
    [http://picasaweb.google.com/enel.guo/ForWork#5289123604007267826]
    Cross-Table configuration::
    [http://picasaweb.google.com/enel.guo/ForWork#5289122854967734466]
    The original output:
    [http://picasaweb.google.com/enel.guo/ForWork#5289120017105336914]
    The output we want:
    [http://picasaweb.google.com/enel.guo/ForWork#5289120018508824882]
    Edited by: Yu-Lin Liang on Jan 9, 2009 3:51 AM

  • Missing X-Axis labels in exported excel sheet

    Created chart in Desktop Intelligence.
    Missing X-Axis labels in exported excel sheet.
    Please help me on thsi

    Use the Metrics Inspector.
    Click on the chart to select it, then click on one labels of the labels to select only the text box containing the x axis labels.
    In the Metrics Inspector, use the control or type in a value (in degrees CCW from horizontal) to Rotate the labels.
    You may also need to move, or remove the Legend showing the colour(s) used for each series. This is also in a Text box.
    Regards,
    Barry

  • Post-processing in Export

    Our little group of 4 LR users (all on LR 2.4 and XP or Vista 32) has a puzzle. On selecting Export we all have the expected item, but for two of us it stops at "Metadata" - there is no sign of the bottom item, "Post-Processing", which the other two have. Any suggestions before I suggest a re-install?

    THe two computers with an incomplete list are configured to export to CD/DVD. If you switch them back to Disk using the drop down menu Post Processing will return.

  • Embedding Macros in the BEx web exported excel sheet

    Hi all Advanced reporting gurus,
    I have to embed a macro in the excel sheet, when the user clicks the button Export to excel sheet in the BEx web. This needs to be generic, it means every BEx web user should be able to avail this macro. Can any one suggest me the methods to do so ?? Its really urgent and ur quick response is awaited....
    Thanking you in advance,
    Bret

    Hi Heike,
    Thanks for your help. I searched the office XML documents and one the help file specifys this tag
    IntlMacro Element (Microsoft Excel)
    Specifies whether a worksheet is an international macro sheet.
    Contained In
    WorksheetOptions
    Remarks
    If <x:IntlMacro/> is specified, the worksheet is an international macro sheet.
    so I guess, if Office XML standards are used in BW then this tag also shld work. I read few topics on SAP ABAP class files such as ZCL_RSR_XLS_HELP_WINDOW_PRINT and it has one the method to trigger rendering of data. Can I use this class and method to send the tag values so that macro is also embedded while sending data ????
    your thought are highly awaited,
    thanks
    D Bret

  • WebEngine post processing after Export

    Is it possible to have a webengine post export processing (like a trigger to a function in webengine script galleryInfo.lrweb) after the successful Export step?
    I would like to do some script file copy to the album exported folder based on user selection.

    If the images are smaller then you must have set something in the resize options in the export module. What are your export settings?

  • Exporting ALV Grid output to Excel sheet

    Hi All,
           How can i export the output displayed using Grid to an Excel sheet. I tried with default option from list->export->excel sheet/local file but i am not getting complete data and the data which i am getting also notin proper format. Please help me in this regard.
    Best Regards,
    Sunil

    Check out the ALV grid toolbar for export options.
    Regards
    Raja

  • EXCEL sheets Merge statment

    Hi There
    I would like to compare two excel sheets
    Sheet1 - Current day records
    Sheet2 - Last day records
    My requirement is this : Comparing sheet1 and sheet2
    1. updating the changes and inserting new records into current day with respect to last day.
    2. I have idea of using Merge. But, use it with PL/sql for comparing two excel sheets how?
    Please help
    Thanks
    Raj

    Rangarajan wrote:
    If you want SQL or PL/SQL to process the data then it really needs to be on the database.
    __What ever it may be i need solution.*I am ok for creating two addtional tables to run the show.*Well you write the solution, we just give you the information you will need to do it. Unless of course you want to pay for our services? (hint: a little less of the bold agressive posturing would go down better; asking nicely works for most people)
    So, although you say it's excel sheets, are you really talking about CSV files (which are not Excel sheets, but Character Seperated Values)?
    its not csv its xls only_
    If you are dealing with CSV's then you could create external tables that read the data from the files and then do the comparisons mentioned above, especially if you are looking to MERGE the data, because SQL commands such as insert, merge etc. don't work on flat files.
    its ok* Ok, Excel (.xls) files are a proprietary Microsoft binary format file. These can't just be read into the database as they are. If your database was on a windows platform you could set up an Excel ODBC connection to the .xls files and then treat them as external databases. As you're on solaris you won't really be able to do that. You only option therefore is to export your data to CSV or other flat file format so that the database can read the data from those. CSV is preferable as you will be able to use Oracles External tables to load the data.
    You don't have to share your actual data with us, just give us some idea of the infrastructure you are dealing with. You haven't even told us if you've got the data loaded into database tables yet...
    its ora 9i / solaris*
    Let me put some more clarity on the objective.
    Currently, I am comparing two excel sheet manually(using vlookup, match etc,) Utimately, I am doing set minus, presence of previous run and not in current run. then,I will make the changes to current run and send excel sheet to email integration system. I would like to automate entire stuff.So here's the steps you need...
    Export excel sheets to CSV files.
    Have Oracle external tables defined to point at those flat files.
    Use the aforementioned comparison methods to compare the two flat files by reading with SQL from the external tables.
    Generate the output into another CSV file. (you can use writeable external tables in 10g onwards, but as you're on 9i you'll need to use UTL_FILE to write it out instead).
    Take your written CSV file and load that back into Excel. (Excel likes reading CSV's)
    The problems you've got in automating it are getting the data exported from Excel to CSV files and also reading the output CSV back into Excel. You may be able to do this using some OLE/DDE type stuff, but as you're on a solaris platform rather than Windows, that could prove a little tricky.
    Could you arrange to have the data delivered to you already in CSV format rather than as Excel sheets? Could you provide CSV results rather than an Excel sheet in return?

  • Upload Excel sheet using Data Integrator 6.1?

    hi all ,
    Upload Excel sheet using Data Integrator? and how to create ODBC for the PC and jobserver i am using version 6.1? i am using excel as my one of the data source and tell me how to use different types of data sources in DI . after uploading the xl file if i apply any transform on the excel data i will give error like
    Posted: 25 Sep 2008 04:30
    Post subject: Re: Upload Excel sheet using Data Integrator? 
    I am getting the error like
    3128 292 CON-120302 09-25-08 09:59:40 ODBC call <SQLDriverConnect> for data source <sas> failed: <[Microsoft][ODBC Driver Manager] Data source name not found and no
    3128 292 CON-120302 09-25-08 09:59:40 default driver specified>. Notify Customer Support.
    1512 2992 CON-120302 09-25-08 09:59:41 ODBC call <SQLDriverConnect> for data source <sas> failed: <[Microsoft][ODBC Driver Manager] Data source name not found and no
    1512 2992 CON-120302 09-25-08 09:59:41 default driver specified>. Notify Customer Support.
    Please help me out
    Thank u

    Hi Shonti,
    The DI 11.7 installer can be used to upgrade a DI 6.1 local repository (e.g. the upgrade is supported).  This will migrate all jobs and flows.  They will remain intact, however, this is always a major migration effort and should not be taken lightly.  If you do upgrade, please make sure this is a planned effort with rigorous testing and validation.  You should also ensure that you consult the release notes and [supported platforms documentation|https://websmp110.sap-ag.de/~form/sapnet?_SHORTKEY=01100035870000712240&_SCENARIO=01100035870000000202] for the 11.7 package you intend to install.  The DI 11.7 documentation also contains info about how to install and configure the Excel Adapter, and what functionality it provides.
    Thanks,
    ~Scott

  • Post-Processing limit on number of files?

    Hello,
    When I export a set of pictures, I apply a post-processing Photoshop droplet to that applies the Imagenomic Portraiture filter. It works fine up to a certain point. I noticed that if the number of files is less than 21, it works fine. If the number is greater, it fails to perform the post-processing and won't even launch Photoshop to apply the droplet action.
    Has anyone encountered a file limit problem with post-processing in export?
    Del

    I'll assume you are talking about Windows and not Mac since I cannot speak about Mac's. In Windows, the export action is invoked by passing the filenames on a command line to the program/script that you specify. There are limits to how many characters can be passed on a command line, depending on which method the programmers used. I expect the limit is 2048 characters. When that limit is reached, then the action does nothing.
    The only way to increase the number of photos you can process, is to change the export folder name to something very short, like C:\Temp, or even shorter. By default, it exports to a very long path name an putting that in front of each photo name eats up valuable characters.
    There will still be a limit, but at least you can process more before failure.
    Steve

  • Displaying an excel sheet in iframe

    hai all,
         I need the step by step process to display excel sheet in iframe UI element.
    I have the excel sheet stored in database as text object.All i need to do is get the excel sheet displayed in iframe on click of a button.
    Plz help me with codings and steps involved for this.
    Thanks n Regards
    Sharanya.R

    Hi sharnya,
    Refer
    Re: Read excel in webdynpro without using odbc (points awarded!)
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/edc2f3c2-0401-0010-8898-acd5b6a94353
    Regards,
    P.Manivannan

  • Has anyone tried to export an ALV Tree to an excel sheet?

    Hi "gurus",
    I've been looking for a way of exporting a printed report in an ALV tree to an Excel sheet.
    Has someone done this before?
    NOTE: I am studying the Office Integration, which I believe it can be a way of making SAP generates it via ABAP objects.
    Thanks and Regards,
    Daniel Carvalho
    Edited by: Daniel Carvalho on Feb 28, 2008 11:40 PM

    (Add a Button function in the ON Toolbar such as EXCEL and set event handlers).
    METHOD on_user_command.
       break-point 2.
      CASE e_ucomm.
         WHEN 'EXIT'.
            LEAVE PROGRAM.
         WHEN 'EXCEL'.
          CALL METHOD me->download_to_excel.
         WHEN 'SAVE'.
         WHEN 'PROC'.
          CALL METHOD me->process.
         WHEN 'REFR'.
          CALL METHOD me->refresh.
      ENDCASE.
    endmethod.
    METHOD on_toolbar.
    CLEAR ls_toolbar.
        MOVE  0 TO ls_toolbar-butn_TYPE.
      MOVE 'EXCEL' TO ls_toolbar-function.
      MOVE  SPACE TO ls_toolbar-disabled.
      MOVE  icon_xxl TO ls_toolbar-icon.
      MOVE 'Excel' TO ls_toolbar-quickinfo.
      MOVE  'EXCEL' TO ls_toolbar-text.
      APPEND ls_toolbar TO e_object->mt_toolbar.
    endmethod.
      METHOD  download_to_excel.
    field-symbols:
        <fs0> TYPE standard table,
        <fs1> TYPE standard table.
      assign g_outtab1->* to <fs0>.
      assign g_fldcat1->* to <fs1>.
    break-point 5.
      CALL FUNCTION  'LVC_TRANSFER_TO_KKBLO'
        EXPORTING
          it_fieldcat_lvc   = <fs1>
    *     is_layout_lvc     = m_cl_variant->ms_layout
           is_tech_complete  = ' '
        IMPORTING
          es_layout_kkblo   = ls_layout
          et_fieldcat_kkblo = lt_fieldcat.
       LOOP AT lt_fieldcat INTO lt_fieldcat_wa.
        CLEAR lt_fieldcat_wa-tech_complete.
        IF lt_fieldcat_wa-tabname IS initial.
           lt_fieldcat_wa-tabname = '1'.
           MODIFY lt_fieldcat FROM lt_fieldcat_wa.
        ENDIF.
        l_tabname = lt_fieldcat_wa-tabname.
       ENDLOOP.
    CALL FUNCTION 'ALV_XXL_CALL'
        EXPORTING
          i_tabname           = l_tabname
          is_layout           = ls_layout
          it_fieldcat         = lt_fieldcat
          i_title             = sy-title
        TABLES
          it_outtab           = <fs0>
        EXCEPTIONS
          fatal_error         = 1
          no_display_possible = 2
          others              = 3.
      IF  sy-subrc <> 0.
         message id sy-msgid TYPE 'S' number sy-msgno
                with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
    ENDMETHOD.
    Your original table that goes to the grid is parameter g_outtab1
    the field catalog is g_fldcat1.
    These need to be converted to kkblo format to use the XXL function module.
    The advantage of this method is that you get an EXCEL spreadsheet interactively.
    (Of course the standard export function will still work).
    Cheers
    Jimbo

  • Export Excel - with formatting

    Dear Friends,
    I am exporting the tableview data to the excel using the response->append_cdata function.
    I want to export the data byusing formatting options.
    For example, I want to export all mycolumn names in Bold letters, with background colors in the excel sheet....
    If anybody have a clue on this please help...

    Hi,
    Excel has a binary format that is very difficult to produce in a "non-Microsoft" environment such as BSP.
    There are several post about this kind of issues in the forum.
    I think your best shot is to produce XML format for Excel but for this, you need :
    Excel 2007
    Excel 2003 + Compatibility Pack
    on the client side.
    Have a look at this page if you want to know about Office 2007 format
    http://www.developerfusion.co.uk/show/6170/
    Best regards,
    Guillaume

  • Excel Sheet processing

    Dear Friends,
         I am looking for a Function module that can process multiple worksheets in a Excel Sheet. Can any one help me in this.
    Eg: I have a excel order form with several work sheets. first two work sheets describes the description of the order form. And the remaining worksheets contains the order details. I want to get each order details in to internal table.

    Uploading multiple multitab Excel sheets or Ranges from Front end to SAP
    Please refer to
    http://www.sap-img.com/abap/abap-object-oriented-spreadsheet-with-unlimited-power.htm
    Visit
    http://help.sap.com/saphelp_47x200/helpdata/en/e9/0be775408e11d1893b0000e8323c4f/frameset.htm
    and
    http://help.sap.com/saphelp_47x200/helpdata/en/e9/0be775408e11d1893b0000e8323c4f/frameset.htm
    You need some basic idea of range object in excel.
    You need to create XLS with named ranges or create ranges dynamically.
    This could be a neat way to upload XLS the OO way!
    The function Module zjnc_get_range reads 1 range into any Internal
    table.
    DATA: BEGIN OF it_test OCCURS 0,
            vpd  LIKE mseg-menge,
            vas  LIKE mkpf-budat,
            vkm  LIKE mseg-matnr,
          END OF it_test.
      CALL FUNCTION 'ZJNC_GET_RANGE'
        EXPORTING
          rangename       = 'test'
          itabname        = 'IT_TEST[]'
          irecname        = 'it_test'
          spreadsheetintf = spreadsheetintf.
    =Work!$A$14:$C$16 is range "test"
    Numbers & Character data are no problem BUT dates are.
    In Excel default date is mm/dd/yyyy but is dependent on PC's
    international setting which is normally default
    To Avoid any 5-March 3-May type mix-up, I have designed the FM so that you need to
    enter dates as 'dd.Mon.yyyy i.e. in Characters in "Internet Date Format"
    FUNCTION zjnc_get_range.
    ""Local interface:
    *"  IMPORTING
    *"     REFERENCE(RANGENAME) TYPE  C
    *"     REFERENCE(ITABNAME) TYPE  C
    *"     REFERENCE(IRECNAME) TYPE  C
    *"     REFERENCE(SPREADSHEETINTF) TYPE REF TO  I_OI_SPREADSHEET
    *"     REFERENCE(SPREADSHEETINTF) TYPE REF TO  I_OI_SPREADSHEET
      DATA:
        stru_ref    TYPE REF TO cl_abap_structdescr,
        comp_tab    TYPE abap_compdescr_tab,
        one_comp    TYPE abap_compdescr,
        one_name    TYPE string,
        type_ref    TYPE REF TO cl_abap_typedescr,
        is_ddic     TYPE abap_bool,
        lt_ddic     TYPE dd_x031l_table,
        wa_ddic     TYPE x031l.
      DATA: zjncranges    TYPE soi_range_list,
            zjnccontents  TYPE soi_generic_table,
            zjnconerange  TYPE soi_range_item,
            zjnconeitem   TYPE soi_generic_item,
            prevrow(4)    TYPE n,
            nrow(4)       TYPE n,
            ncolumn(4)    TYPE n,
            mystring      TYPE string,
            mydate        LIKE sy-datum.
      FIELD-SYMBOLS: <fs_type>  TYPE ANY,
                     <fs_table> TYPE STANDARD TABLE,
                     <fs_line>  TYPE ANY.
      CONCATENATE '(' sy-cprog ')' itabname INTO mystring.
      ASSIGN (mystring) TO <fs_table>.
      CONCATENATE '(' sy-cprog ')' irecname INTO mystring.
      ASSIGN (mystring) TO <fs_line>.
      stru_ref ?= cl_abap_structdescr=>describe_by_data( <fs_line> ).
      comp_tab = stru_ref->components.
      REFRESH zjncranges.
      MOVE rangename TO zjnconerange-name.
      APPEND zjnconerange TO zjncranges.
      CALL METHOD spreadsheetintf->get_ranges_data
        IMPORTING
          contents = zjnccontents
          error    = zjncerror
          retcode  = zjncretcode
        CHANGING
          ranges   = zjncranges.
      MOVE 0 TO prevrow.
      LOOP AT zjnccontents INTO zjnconeitem.
        MOVE zjnconeitem-row TO nrow.
        IF nrow <> prevrow.
          IF prevrow <> 0.
            APPEND <fs_line> TO <fs_table>.
          ENDIF.
          CLEAR <fs_line>.
          MOVE nrow TO prevrow.
        ENDIF.
        MOVE zjnconeitem-column TO ncolumn.
        READ TABLE comp_tab INDEX ncolumn INTO one_comp.
        CONCATENATE '(' sy-cprog ')' irecname '-' one_comp-name INTO one_name.
        ASSIGN (one_name) TO <fs_type>.
        IF one_comp-type_kind <> 'D'.
          MOVE zjnconeitem-value TO <fs_type>.
        ELSE.
          TRANSLATE zjnconeitem-value TO UPPER CASE.
          CALL FUNCTION 'CONVERSION_EXIT_SDATE_INPUT'
            EXPORTING
              input  = zjnconeitem-value
            IMPORTING
              output = mydate.
          MOVE mydate TO <fs_type>.
        ENDIF.
      ENDLOOP.
      IF prevrow <> 0.
        APPEND <fs_line> TO <fs_table>.
      ENDIF.
    ENDFUNCTION.
    Regards,
    Jagadish

  • Uploading the excel  sheet in XLSX format

    Hi ,
    While   uploading  excel sheet  into sap , I am using the FM  'TEXT_CONVERT_XLS_TO_SAP' .This FM works fine when the excel  sheet is in 'XLS' format .But when the excel  sheet is in 'XLSX'  format this FM  is giving  error .Please advice how to correct  the error.
    Any pointers will be highly  appreciated.
    Thanks ,
    Nikhil

    Copied from the link given above
    hi,
    try like this once
    After calling FM 'ALSM_EXCEL_TO_INTERNAL_TABLE', need to fill the final table at each row and column level,
    Please check this sample of code below.
    Call FM to upload file from Presentation server.
    CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
    EXPORTING
    filename = rp_file
    i_begin_col = 1
    i_begin_row = 2
    i_end_col = 3
    i_end_row = 6000
    TABLES
    intern = rt_excel[]
    EXCEPTIONS
    inconsistent_parameters = 1
    upload_ole = 2
    OTHERS = 3.
    IF sy-subrc 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    Process Records and get only records into table T_FINAL.
    IF rt_excel[] IS NOT INITIAL.
    LOOP AT rt_excel INTO lw_file.
    Move the records into final table.
    IF lw_file-col = c_1.
    lw_final-bukrs = lw_file-value .
    ELSEIF lw_file-col = c_2.
    lw_final-csl_type = lw_file-value.
    ELSEIF lw_file-col = c_3.
    lw_final-fpl = lw_file-value.
    ENDIF.
    AT END OF row.
    APPEND lw_final TO rt_final.
    CLEAR lw_final.
    ENDAT.
    CLEAR : lw_file.
    ENDLOOP.
    endif.
    regards,
    bab
    Edited by: Matt on Jan 14, 2010 9:20 AM

Maybe you are looking for