Excel  column problem in ECC 6.0

Hi Experts,
In the excel, data of one column is spliting into four columns.
My code is like this,
CALL METHOD CL_GUI_FRONTEND_SERVICES=>GUI_DOWNLOAD
  EXPORTING
    FILENAME                  = lv_wsfile
    FILETYPE                  = 'ASC'
  CHANGING
    DATA_TAB                  = ifinal[]
EXCEPTIONS
      OTHERS                = 1.
CALL METHOD CL_GUI_FRONTEND_SERVICES=>EXECUTE
        EXPORTING
          DOCUMENT               = lv_wsfile
          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.
Any help,
Thanks In Advance,
Harsha.

Hi Harsha,
Use the function module SAP_CONVERT_TO_XLS_FORMAT to download the internal table to an excel file.
  DATA: t100_lines TYPE STANDARD TABLE OF t001 WITH DEFAULT KEY.
PARAMETERS: p_file LIKE rlgrap-filename DEFAULT 'c:\tmp\test.xls'.
SELECT * FROM t001
  INTO TABLE t100_lines.
CALL FUNCTION 'SAP_CONVERT_TO_XLS_FORMAT'
  EXPORTING
    i_filename     = p_file
  TABLES
    i_tab_sap_data = t100_lines.
Regards,
Venkat.O

Similar Messages

  • In XI pro, exporting PDF to Excel problem.  Excel columns and data are not properly aligned.  Help?

    I used 30 day trial of Acrobat XI and all the functions work perfectly.  But, when I buy the program (either download or disk) my PDF that export to Excel is not working.  The excel columns and data are not properly aligned as they should be.  The Trial version aligns everything perfectly.  What is happening?  I use a MAC 10.9.5.  But this shouldn't matter because the trial version works perfectly.  Can anyone help?

    just found out that this is posted in the wrong section.

  • ALv to excel download problems

    HI friends,
    Probelm I'm facing while saving an ALV report to Excel Sheet by clicking
    on the 'Save as File Icon' button on the ALV output.=0D
    Here data is going into a new Line after 65 columns.I've used Function
    Module 'RSAQ_ALV'.This function module is ultimately using
    'REUSE_ALV_GRID_DISPLAY' and 'REUSE_ALV_LIST_DISPLAY' function
    modules.ALV output I'm getting correctly but when I save this ALV output
    to Excel,columns are getting wrapped and going into 2nd row after 65
    columns.=0D
    Could anybody tell me what could be the reason ?=0D
    Thanks,
    Sreekanth.G
    Moderator message: duplicate post locked.
    Edited by: Thomas Zloch on Jul 9, 2010 12:36 PM

    ch_alv_layout-info_fieldname = 'COLOR'. "infofield for listoutput
      ch_alv_layout-colwidth_optimize = 'X'.
    try commenting the above values.and also check the Fieldcatlog.
    Check the issue similar issue was resolve by checking catalog and layout:
    [ALV Issue solution|Re: Problem when export ALV.]
    Regards,
    Gurpreet

  • How can I change excel column header using Labile.

    Dear Experts,
                          How can i change excel column header using LabVIEW.
    Thanks for any and all help!
    M.S.Sivaraj.
    Sivaraj M.S
    CLD

    As I said in my previous post, column headers in Excel are merely row 1 cells. May be I missing something here, so please be more explicit with your question.
    I guess you are using the Excel Report tools, and you want to modify an existing sheet. From my limited experience with the Excel Report tools, it is not possible to open an existing woorkbook (except as template...), so the answer to your question should be "Forget it"...
    The work around is to use the example I pointed for you before, and either to write the whole new colum headers as a string array, starting in A1, or to write a single string to a given cell in row 1.
    Hope this helps 
    Chilly Charly    (aka CC)
             E-List Master - Kudos glutton - Press the yellow button on the left...        

  • In download to excel from bsp hw to increase excel column width to wrap txt

    in download to excel from bsp how to increase excel column width to wrap text
    in each column.
    My client does not want to manually click each cell aftet downloading to excel to see full text in each column

    Hi,
    You can achieve this by formatting your output using HTML table tag.
    Try the following code.
      DATA: lv_output  TYPE string.
      concatenate
      '<table border="1">'
      '<tr style="font-weight: bold; text-align:center; "><td>Name</td><td width="150">Description</td></tr>' cl_abap_char_utilities=>cr_lf
      '<tr><td>First Name</td><td>Some Description goes here..... ....... ...... </td></tr>' cl_abap_char_utilities=>cr_lf
      '<tr><td>2nd Name</td><td>XYZ.......</td></tr>' cl_abap_char_utilities=>cr_lf
      '</table>'
      into lv_output.
      response->set_cdata( data = lv_output ).
    Regards
    Geogy
    PS. Reward the useful answers.

  • How to make excel columns width autofit  ?

    Hello  Experts ,
    I download data from an internal table  to create an excel attached file and send it to customers by mail. The excel sheet looks untidy .
    the columns width of excel are not autofit .
    It's default 8.43 character .  Costomers can not use equally excel tools. eg.  format->column->autofit selection in excel.
    I was wondering how to make all excel columns' width autofit by means of ABAP . Is there any way to reach this property of excel via SAP  when I send excel attached files from an internal table .
    suggestions will be rewarded .
    Regards ,

    Hi Rajkumar or all,
    If any one able to display the records more than 65k line in Bex report v7.0..
    Pls reply with detail expalination.. Thanks in advance.. will give the reward points..
    Waiting urgently for your response..

  • Add Cells in an Excel Column Until the Next Blank Row

    Is there an easy way to sum the cells in an Excel column and to stop adding after the last populated cell in that series.
    I have tried several examples found on the www, but they have not worked.
    Doug in York PA
    Douglas R. Eckert

    Wind Zhang:  I have tried entering the formula above in cell A1, but it did not work.  It returned "0" instead if "21".  I tried entering the array formula with ALT+SHIFT+ENTER and with CTRL+SHIFT+ENTER,
    with the same result.
    Doug in York PA
    Douglas R. Eckert

  • Export to Excel - Macro problems

    I have moved this to the Discoverer forum. Exporting to Excel - Macro Problems
    Message was edited by:
    user385142

    Hello Denes.
    Excuse me for send you a message in this way , but I dont find other way to contact with you.
    Im using the export_excel_pkg, and really it work good.
    I have only one problem, I tell you.
    When, in one item, data is very long and numeric, by example a EAN code, without any class of format, by default it give me the value ###, Im studing the package and trying to resolve this, but if you can send me any idea it can help me a lot.
    Thanks in advanced.
    You are doing a great work for us.

  • How to transfer number to Excel column letter

    I want to write a table into Excel file with fomula "=AVERAGE(G18:G64)", how to transfer table column nunber into excel column letter?
    for example, from table column 7, how to know 7 means G in excel?
    thanks!

    Please use report generation toolkit.
    Here is the snippet from RGT.

  • When reading the Rich Text present in Excel column using open XML its taking it as plain text

    Hello All,
    When i am reading excel columns using open Xml in C# everything is working fine except the column that
    contain Rich Text (ex: bold, italic,color,size). Its reading the Rich Text content as plain text. As we know for Rich Text in open XML we get the text as Runs (C#
    object) which contains the text as value and rpr as run properties. I have also written the code to convert Runs to html. But the issue is that for some Rich Text format its reading it as Runs but most of the Rich Text its reading it as plain text.
    The issue i am getting is, for some rich text its creating RUN and for some of the rich text its not creatingRUN.
    Let me give the example for more understanding:
    Suppose i have two cells in excel which contains the below text.
    1. Rich Text
    1
    2. RichText
    2
    Now when i read these cells using the below code
    var stringTable =spreadsheetDocument.WorkbookPart.GetPartsOfType<SharedStringTablePart>().FirstOrDefault();
    if (stringTable.SharedStringTable.ElementAt(index1).ChildElements.GetItem(0).GetType().Name == "Run")
    Custom code to convert Rich text to HTML...
    else
    Read the plain text...
    Though both the cell contains rich text, one is going in RUN block and one is going in Plain text bloc.
    Also, one thing that i have noticed is when i use standard color for text its consider it as RUNS and when i use color apart from the standard color it does not consider it as RUNS. Same behavior occurs for different combination of text viz. bold, italic, underline
    etc

    Hi Ejaz,
    This forum is for software developers who are using the Open Specification documentation to assist them in developing systems, services, and applications that are interoperable with Microsoft products. The Open Specifications can be found at:
    http://msdn.microsoft.com/en-us/library/cc203350(PROT.10).aspx. Since your post does not appear to be related to the Open Specification documentation set, we would appreciate it if
    you could try to post your question in a more relevant forum. Thank you.
    Open XML Format SDK
    https://social.msdn.microsoft.com/Forums/en-US/home?forum=oxmlsdk&filter=alltypes&sort=lastpostdesc
    Josh Curry (jcurry) | Escalation Engineer | Open Specifications Support Team

  • Map excel columns to oracle table column using forms 6i

    Hello,
    I am importing data from excel to oracle table using oracle forms 6i.
    Suppose my table have 3 columns id, name,sal. The excel sheet i am importing having
    3 or more colums, also excel sheet columns are not in order as per table columns.
    i.e my table have id, name, sal
    and excel have name, sal, id
    my question is how can i map excel colums with table colums and insert it into table.
    I am using oracle 6i forms (ole2 package).
    Thanks

    What was wrong with the first answer to the same question?
    Re: map excel columns on oracle forms and insert it into database

  • Excel export problem using craxddrt

    Hi,
    I'm using craxddrt v.11.5 in our intranet application to export rpt.reports to different formats. My code works well with PDF and text exports, but when it comes to Excel after the .Export(false) method executes the browser window just goes into idle then the session finally expires. I never catch any error. I have tried several export options with no prevail.
    I suspect the Excel export is missing some info to complete and it is trying to prompt me, but no visible prompt gets displayed/answered so it just expires.
    Could anyone help me out. I've spent several days researching and fixing the code and ran out of ideas.
    Sincerely
    Steve Komaromi

    Hi Steve, Is there some reason you are posting this question over and over again?
    Try looking at your same post: Excel export problem using craxddrt
    Also, RDC is legacy product. Look for you answer where you posted the exact same question in the legacy forum.

  • Column Problems Between Explorer and Firefox

    First, I apologize if this is something that has been posted.
    The search function doesn't seem to be working, so I've been unable
    to check for previous posts on-point.
    I am having trouble with the columns in a table layout on a
    site I am designing. It's located at
    www.staggsmarketing.com/fleishell.html. The columns render properly
    in firefox, but not at all so in Explorer. If you view the Explorer
    version, the problem is quite obvious, so I won't explain further.
    If anyone can take a look at the site and suggest what I've
    done wrong, I would appreciate it. It was designed in CS3, and I've
    run all the standard dreamweaver tests (from the results tab) to no
    avail.
    Thanks in advance!

    > As to Walt's apparent suggestion that it's a total
    mistake to rely on DW
    > without extensive HTML/CSS knowledge, I hope nobody else
    is scared away
    > from DW
    > after reading it.
    Walt's suggestion was right on target. Using DW with no
    knowledge of HTML
    will always produce sub-optimal results.
    > I've designed maybe 4 to 5 dozen sites with DW and only
    a
    > scintilla of coding knowledge compared to many of the
    folks on these
    > forums,
    > and I really have only had to deal with three or four of
    Walt's blind
    > alleys
    > (including this one).
    You are in blind alleys you do not yet know about. This
    philosophy is
    short-changing you AND your paying customers.
    > Web design is a hobby for me
    And your output will always reflect this.
    > I recommend it to anyone with an
    > "HTML and CSS for Dummies" level of knowledge.
    I don't. It will be a continual frustration for them,
    especially if they
    want to rise above the 'hobby' level.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "testaggs" <[email protected]> wrote in
    message
    news:[email protected]...
    > Alan, thanks -- I took a look at the path you were
    talking about, and it's
    > a
    > leftover from something before I put the site online. I
    am able to remove
    > it
    > without issue. Still doesn't fix the column problem; I
    may take Walt's
    > advice
    > and start over on the columns if I don't get any
    more-helpful posts on the
    > problem, but I'll wait a few days to see what others
    might suggest. The
    > few
    > times I've run into real problems before in DW, it's
    always been a simple
    > fix
    > that was just outside my skillset. I'm hoping someone
    sees that here and
    > says,
    > "You idiot, it's the ???? tag."
    >
    > As to Walt's apparent suggestion that it's a total
    mistake to rely on DW
    > without extensive HTML/CSS knowledge, I hope nobody else
    is scared away
    > from DW
    > after reading it. I've designed maybe 4 to 5 dozen sites
    with DW and only
    > a
    > scintilla of coding knowledge compared to many of the
    folks on these
    > forums,
    > and I really have only had to deal with three or four of
    Walt's blind
    > alleys
    > (including this one). I agree it's a great tool for
    those with good
    > coding
    > knowledge; but even with only an introductory level of
    coding knowledge,
    > I've
    > found it to be a fantastic program. Would I be better if
    I had that
    > knowledge?
    > Yes, loads. Would I be able to design anything with my
    current coding
    > skills
    > but WITHOUT DW? Not even a one-line blank page (that's
    an exaggeration,
    > but
    > you see the point). Web design is a hobby for me, and DW
    has been a
    > great
    > vehicle to help me make it a useful one. I recommend it
    to anyone with an
    > "HTML and CSS for Dummies" level of knowledge.
    >

  • SQLLDR table column- excel column mapping

    CREATE TABLE "DW"."ABC"
    (     "SKILL_NAME" VARCHAR2(60 BYTE) NOT NULL ENABLE,
         "SKILL_TYPE" VARCHAR2(20 BYTE),
         "DAILY_DATE" DATE NOT NULL ENABLE,
         "SCC_NAME" VARCHAR2(60 BYTE),
         "RFS_FORECAST" NUMBER(8,0),
         "FORECASTED_CALLS" NUMBER(8,0),
         "TOTAL_CALLS_ANSWERED" NUMBER(8,0)
    This is a table.
    FOllowing are excel columns
    Date      RFS Forecast     FORECASTED CALLS      TOTAL CALLS ANSWERED
    Control file is the following
    load data
    CHARACTERSET UTF16
    infile 'D:\CSVs\4cols.csv'
    into table
    "ABC"
    fields terminated by "," optionally enclosed by '"'     
    SKILL_NAME CONSTANT 'FM',
    SKILL_TYPE CONSTANT 'CLIENT',
    DAILY_DATE,
    SCC_NAME CONSTANT NULL,
    RFS_FORECAST,
    FORECASTED_CALLS,
    TOTAL_CALLS_ANSWERED)
    how to associate the table columns with excel columns.....
    and if the first row of the excel is the header how to specify that

    ECXEL DATA
    Date      RFS Forecast     FORECASTED CALLS      TOTAL CALLS ANSWERED      TOTAL CALLS ABANDONED      OUTBOUND CALLS     MAX DELAYS >5 mins     FORECASTED ASA
    1-Apr-11     3,215     2,702     2,561     86     3,552     11     :30
    2-Apr-11     1,888     1,374     1,232     27     1,782     6     :30
    3-Apr-11     1,479     1,392     956     33     1,363     5     :30
    4-Apr-11     3,423     3,290     2,970     102     3,519     8     :30
    5-Apr-11     3,385     2,972     2,703     89     4,117     9     :30
    6-Apr-11     3,350     2,856     2,444     101     3,997     8     :30
    7-Apr-11     3,218     2,776     2,525     68     4,150     6     :30
    8-Apr-11     3,217     2,693     2,564     64     3,792     5     :30
    9-Apr-11     1,845     1,320     1,379     39     1,979     3     :30
    10-Apr-11     1,481     1,290     1,079     32     1,784     5     :30
    11-Apr-11     3,421     3,290     3,164     130     3,701     18     :30
    12-Apr-11     3,474     2,978     2,835     107     4,518     15     :30
    13-Apr-11     3,521     2,799     2,606     64     4,614     4     :30
    14-Apr-11     3,255     2,701     2,658     52     4,830     3     :30
    15-Apr-11     3,093     2,699     2,578     68     4,733     3     :30
    16-Apr-11     1,821     1,301     1,406     26     2,959     5     :30
    17-Apr-11     1,460     1,277     1,137     16     2,111     4     :30
    18-Apr-11     3,568     3,191     3,074     84     4,253     17     :30
    19-Apr-11     3,322     2,902     2,805     78     5,078     16     :30
    20-Apr-11     3,476     2,789     2,570     71     4,707     14     :30
    21-Apr-11     3,288     2,599     2,638     75     5,028     7     :30
    22-Apr-11     3,216     2,635     2,333     66     4,495     10     :30
    23-Apr-11     1,785     1,342     1,321     33     2,394     3     :30
    24-Apr-11     1,508     1,275     922     33     1,332     3     :30
    25-Apr-11     3,509     3,199     3,021     107     3,943     14     :30
    26-Apr-11     3,424     2,985     2,817     84     4,580     11     :30
    27-Apr-11     3,532     2,888     2,738     71     4,343     6     :30
    28-Apr-11     3,344     2,776     2,720     68     4,176     8     :30
    29-Apr-11     3,167     2,598     2,597     81     3,639     10     :30
    30-Apr-11     1,805     1,291     1,198     23     2,092     4     :30
    CSV Data
    Date ,RFS Forecast, FORECASTED CALLS , TOTAL CALLS ANSWERED , TOTAL CALLS ABANDONED ,OUTBOUND CALLS,MAX DELAYS >5 mins, FORECASTED ASA ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
    1-Apr-11,"3,215","2,702","2,561",86,"3,552",11,:30,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
    2-Apr-11,"1,888","1,374","1,232",27,"1,782",6,:30,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
    3-Apr-11,"1,479","1,392",956,33,"1,363",5,:30,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
    4-Apr-11,"3,423","3,290","2,970",102,"3,519",8,:30,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
    5-Apr-11,"3,385","2,972","2,703",89,"4,117",9,:30,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
    6-Apr-11,"3,350","2,856","2,444",101,"3,997",8,:30,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
    7-Apr-11,"3,218","2,776","2,525",68,"4,150",6,:30,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
    8-Apr-11,"3,217","2,693","2,564",64,"3,792",5,:30,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
    9-Apr-11,"1,845","1,320","1,379",39,"1,979",3,:30,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
    10-Apr-11,"1,481","1,290","1,079",32,"1,784",5,:30,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
    11-Apr-11,"3,421","3,290","3,164",130,"3,701",18,:30,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
    12-Apr-11,"3,474","2,978","2,835",107,"4,518",15,:30,, ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
    13-Apr-11,"3,521","2,799","2,606",64,"4,614",4,:30,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
    14-Apr-11,"3,255","2,701","2,658",52,"4,830",3,:30,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
    15-Apr-11,"3,093","2,699","2,578",68,"4,733",3,:30,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
    16-Apr-11,"1,821","1,301","1,406",26,"2,959",5,:30
    17-Apr-11,"1,460","1,277","1,137",16,"2,111",4,:30
    18-Apr-11,"3,568","3,191","3,074",84,"4,253",17,:30
    19-Apr-11,"3,322","2,902","2,805",78,"5,078",16,:30
    20-Apr-11,"3,476","2,789","2,570",71,"4,707",14,:30
    21-Apr-11,"3,288","2,599","2,638",75,"5,028",7,:30
    22-Apr-11,"3,216","2,635","2,333",66,"4,495",10,:30
    23-Apr-11,"1,785","1,342","1,321",33,"2,394",3,:30
    24-Apr-11,"1,508","1,275",922,33,"1,332",3,:30
    25-Apr-11,"3,509","3,199","3,021",107,"3,943",14,:30
    26-Apr-11,"3,424","2,985","2,817",84,"4,580",11,:30
    27-Apr-11,"3,532","2,888","2,738",71,"4,343",6,:30
    28-Apr-11,"3,344","2,776","2,720",68,"4,176",8,:30
    29-Apr-11,"3,167","2,598","2,597",81,"3,639",10,:30
    30-Apr-11,"1,805","1,291","1,198",23,"2,092",4,:30
    CREATE TABLE ABC
    SKILL_NAME VARCHAR2(100),
    SKILL_TYPE VARCHAR2(100),
    SCC_NAME VARCHAR2(100),
    DAILY_DATE DATE,
    RFS_FORECAST NUMBER(10),
    FORECASTED_CALLS NUMBER(10),
    TOTAL_CALLS_ANSWERED NUMBER(10),
    TOTAL_CALLS_ABANDONED NUMBER(10),
    OUTBOUND_CALLS NUMBER(10),
    MAX_DELAYS_5_MINS NUMBER(10),
    FORECASTED_ASA DATE)
    Edited by: :) on Jul 15, 2011 8:04 AM

  • ALV Download to Excel Column Colors Problem

    Hi Experts,
    I've encountered a problem in downloading records from ALV display to excel file.
    The file is downloaded SUCESSFULLY however. When I opened the downloaded file, some columns were filled up with color(yellow) and other fields are not.
    Do anyone have an idea why?

    I have 21 Columns columns. The first 16 columns are filled with yellow colors...

Maybe you are looking for

  • Remote Desktop Connection with single Ethernet cable

    Hi, I'd like to be able to use Microsoft's Remote Desktop Connection app to connect to one of my XP machines with my PowerBook. I can do this when everything is running on my home LAN, but I'd like to be able to connect with just a single Ethernet ca

  • Performance issue while updating the  custom  infotype records

    Hi All i have the info type with 80,000 records my requirement is to change the infotype wage type value to the  certain hard coded values . after populating the final internal table , in loop i am passing the records and updating the info type by us

  • Mapping of AMR into SAP????

    Hi all.. could any one tell, how to map automatic meter reading device into SAP????? what are the specifications have to be taken into consideration???

  • Installing BB Desktop for Mac

    I am trying to install BB Desktop for Mac, I know the min req is verson 10.5.5   I have 10.4.11, do I have to buy new Mac software?  Thanks!

  • Panel interface horizontal ruler not showing in code

    Hi I have just reinstalled Dreamweaver cs5 onto a new computer (pc), I have opened up an existing web page I am currently working on, only to find the horizontal ruler at the bottom of the code box is no longer showing as it was on the other computer