SWAP COLUMNS AND ROW IN AN INTERNAL TABLE to display in ALV

Hi ,
I want to swap all the rows in an internal table with the column of the internal table to display it horizontally in ALV grid.
e.g
1     2   3  (field names)
A    P   X
B    Q   Y
C    R    Z
should look like :
D       A   B     C
E      P   Q    R
F       X    Y    Z
Where D , E, F in first column is already apended in new table.
Or else is there a way to rotate the ALV grid so that it can display rows as columns & columns as rows.
regards

hi,
i have an internal table which is like
f1  f2 f3  f4 (column header)
A  1  2   3
B  4  5   6
C  7  8   9
the values in o/p table should be
A B C  ( column header)
1  4 7 
2  5 8
3  6 9
Please help!!

Similar Messages

  • How to freeze column and row headers of a table

    How to freeze column and row headers of a table in jsp and javascript. An example is available in
    http://www.massless.org/_tests/grid1/ pls help to find a solutionj
    Thanks in anticipation
    Sreejesh

    At least I don't stop you from that. I also don't see any benefits in this topic.
    Success.

  • How to enter a data into the specified column and row in a created table

    Hi,
    I want to enter some data to specified column and row in a already created table. Please let me know how to do this.
    Regards
    Shivakumar Singh

    A table is just a 2D array of strings. Keep it in a shift register and use "replace array element" to modify the desired entry programmatically.
    If you want to modify it manually and directly from the front panel, make it into a control and type directly into the desired element. (In this case your program would need to write to it using a local variable).
    Atttached is a simple example in LabVIEW 7.0 that shows both possibilities.
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    ChangeTableEntries.vi ‏41 KB

  • How to swap columns and rows?

    Hi!
    I want to create a simple report from a db table. The "challenge": due to the nature of the data I always get twelve rows (yes, one for every month) and four columns. I'd really like to swap rows and columns. Does anybody know a way to do this? Did I miss something obvious?
    J.

    try working the sql like this
    SELECT DOT_FISCAL_YEAR
    ,MAX(DECODE(SEQ, 4, BEG_DATE, NULL)) || '-' ||
         MAX(DECODE(SEQ, 4, END_DATE, NULL)) "April"     
    ,MAX(DECODE(SEQ, 5, BEG_DATE, NULL)) || '-' ||
         MAX(DECODE(SEQ, 5, END_DATE, NULL)) "May"
    ,MAX(DECODE(SEQ, 6, BEG_DATE, NULL)) || '-' ||
         MAX(DECODE(SEQ, 6, END_DATE, NULL)) "June"     
    ,MAX(DECODE(SEQ, 7, BEG_DATE, NULL)) || '-' ||
         MAX(DECODE(SEQ, 7, END_DATE, NULL)) "July"
    ,MAX(DECODE(SEQ, 8, BEG_DATE, NULL)) || '-' ||
         MAX(DECODE(SEQ, 8, END_DATE, NULL)) "August"     
    ,MAX(DECODE(SEQ, 9, BEG_DATE, NULL)) || '-' ||
         MAX(DECODE(SEQ, 9, END_DATE, NULL)) "September"
    ,MAX(DECODE(SEQ, 10, BEG_DATE, NULL)) || '-' ||
         MAX(DECODE(SEQ, 10, END_DATE, NULL)) "October"     
    ,MAX(DECODE(SEQ, 11, BEG_DATE, NULL)) || '-' ||
         MAX(DECODE(SEQ, 11, END_DATE, NULL)) "November"
    ,MAX(DECODE(SEQ, 12, BEG_DATE, NULL)) || '-' ||
         MAX(DECODE(SEQ, 12, END_DATE, NULL)) "December"
    ,MAX(DECODE(SEQ, 1, BEG_DATE, NULL)) || '-' ||
         MAX(DECODE(SEQ, 1, END_DATE, NULL)) "January"
    ,MAX(DECODE(SEQ, 2, BEG_DATE, NULL)) || '-' ||
         MAX(DECODE(SEQ, 2, END_DATE, NULL)) "February"     
    ,MAX(DECODE(SEQ, 3, BEG_DATE, NULL)) || '-' ||
         MAX(DECODE(SEQ, 3, END_DATE, NULL)) "March"
    FROM
    (SELECT DOT_FISCAL_YEAR, to_char(BEG_DATE,'mm/dd/yyyy') BEG_DATE, to_char(END_DATE,'mm/dd/yyyy') END_DATE
    ,TO_NUMBER(TO_CHAR(TO_DATE(FISCAL_MONTH, 'MM'),'MM'))SEQ
    FROM FDS_FISCAL_CAL.FDS_FISCAL_CAL)
    GROUP BY DOT_FISCAL_YEAR
    order by to_date(substr(DOT_FISCAL_YEAR,3),'RRRR')
    in this example...our fiscal starts in april...so i brought april first...and in this example..my data elements to show are just start and end dates (they keep switching them for months according to some calcs they use internally)...in your case it is the value 500, 450 etc.
    also i have grouped by year as we store many years' data...you can ignore this if you need only 1 yr..
    -n

  • Columns and Rows for Text (invisible table)

    I am trying to create text on 15 rows in 3 columns in an invisable table for a drinks menu with corresponding drink sizes (ml) and prices. I used the option Type > Area Type Options and added a grid. I encountred 2 problems:
    Firstly the grid disappears (or I just cannot view it) , and secondly, i do not want the columns to be of equal size - I am looking to achieve a 60%-20%-20% ratio. I cannot find a way to resize the column widths, Would be grateful for any advice

    Hi Steve, thanks. I get you as far as 'Split into Grid'. I still cant figure out how to increase the size 1 whole column (of 15 rows) in one sweep and to decrease the size 2 other columns (of 15 rows each) as one would do in an xls. chart. To widen each one seems tedious and with transform the cells are widened, but the other 2 do not automatically decrease in size. The The whole idea of the operation is simply to align the drink item to the amount (in liters) and price (horizontally) but keeping the cell content alignment (vertically uniform throughout the columns Drink name = align Left and Drink amount = align Righ as in Example which I created from a xls chart .

  • Swap columns and rows?

    I had a database export some data to an xls. I loaded it in Numbers and the way the export went is a little goofy.
    It would make more sense if the column data was on rows and the row data was on columns.
    Is there an easy way to swap these?

    Here your original link gives an odd version of the current thread's one:
    http://discussions.apple.com/thread.jspa?threadID=1657123&tstart=0#
    (# added)
    When you paste a link like the last posted one, you may remove the duplicated number and the preceeding "&#".
    It was a time when leaving them gave odd behavior.
    http://discussions.apple.com/thread.jspa?messageID=7629310
    is sufficient
    Yvan KOENIG (from FRANCE dimanche 10 août 2008 19:03:32)

  • Swapping of columns and rows

    Hi all,
    I'm just filling a Numbers table from a webseite per copy & paste.
    Can I swap columns and rows in Numbers like in Quantrix?
    Axel

    Here is a new transpose script.
    This one inserts formulas grabbing the contents of the original block so the transposed one reflects the changes which may be done in the original block.
    It's a bit long but I post it here because it introduce some handlers allowing us to acess some interesting features.
    --[SCRIPT transposeLive]
    Enregistrer le script en tant qu'Application ou Progiciel : transposeLive].app
    déplacer l'application créée dans le dossier
    <VolumeDeDémarrage>:Users:<votreCompte>:Library:Scripts:Applications:Numbers:
    Il vous faudra peut-être créer le dossier Numbers et peut-être même le dossier Applications.
    Merci à Scott Lindsey & Ed.Stockly du forum [email protected]
    qui m'ont aidé à construire le code récupérant le bloc sélectionné.
    Sélectionnez le bloc de cellules à transposer
    menu Scripts > Numbers > transposeLive (exécute le script une première fois)
    Le script récupère les informations utiles sur le bloc à transposer
    Sélectionner la première cellule du bloc destination
    (elle ne peut être dans le bloc source)
    menu Scripts > Numbers > transposeLive (exécute le script une deuxième fois)
    Il insère des formules récupérant le contenu du bloc transposé.
    Les modifications au contenu du bloc source seront répercutées.
    +++++++
    Save the script as an Application or an Application Bundle: transposeLive].app
    Move the newly created application into the folder:
    <startup Volume>:Users:<yourAccount>:Library:Scripts:Applications:Numbers:
    Maybe you would have to create the folder Numbers and even the folder Applications by yourself.
    Thanks to Scott Lindsey & Ed.Stockly from [email protected]
    which helped me to build the code grabbing the selected range.
    Select a group of cells.
    menu Scripts > Numbers > transposeLive (Run the script once.)
    It grabs infos about the selection
    select the first cell of the destination
    (can't be in the source range)
    menu Scripts > Numbers > transposeLive (Run the script one more time.
    It will insert formulas grabbing the transposed range.
    Changes in the source one will be reflected.
    Yvan KOENIG (Vallauris, FRANCE)
    19 janvier 2009
    property theApp : "Numbers"
    property sourceCell : missing value
    property sourceTable : missing value
    property sourceSheet : missing value
    property nbRows : missing value
    property nbColumns : missing value
    --=====
    on run
    set firstPass to sourceCell = missing value
    if firstPass then (*
    Here we are in the first pass.
    We grab infos about the source range *)
    set {rName, sourceTable, sourceSheet, dName} to my getSelection()
    if rName is missing value then error "No selected cells"
    set twoNames to my decoupe(rName, ":")
    if sourceTable does not start with "'" then set sourceTable to "'" & sourceTable & "'"
    if sourceSheet does not start with "'" then set sourceSheet to "'" & sourceSheet & "'"
    set sourceCell to item 1 of twoNames
    set {colNum1, rowNum1} to my decipher(item 1 of twoNames)
    if item 2 of twoNames = item 1 of twoNames then
    set {colNum2, rowNum2} to {colNum1, rowNum1}
    else
    set {colNum2, rowNum2} to my decipher(item 2 of twoNames)
    end if
    set nbRows to rowNum2 + 1 - rowNum1
    set nbColumns to colNum2 + 1 - colNum1
    else --**************
    Here we are in the second pass
    We insert formulas grabbing the transposed cells *)
    set deci to character 2 of (0.5 as text)
    if deci is "." then
    set delim to ","
    else
    set delim to ";"
    end if
    set p2lproj to my getLproj(theApp)
    set OFFSET_loc to my getLocalizedFuncName(p2lproj, "OFFSET")
    --set ADDRESS_loc to my getLocalizedFuncName(p2lproj, "ADDRESS")
    --set INDIRECT_loc to my getLocalizedFuncName(p2lproj, "INDIRECT")
    set {rName, tName, sName, dName} to my getSelection()
    if rName is missing value then error "No selected cells"
    set twoNames to my decoupe(rName, ":")
    set {colNum1, rowNum1} to my decipher(item 1 of twoNames)
    if item 2 of twoNames = item 1 of twoNames then
    set {colNum2, rowNum2} to {colNum1, rowNum1}
    else
    set {colNum2, rowNum2} to my decipher(item 2 of twoNames)
    end if
    (* Here we know the starting point of the destination area. *)
    tell application theApp
    activate
    tell document dName to tell sheet sName to tell table tName
    set rowsCible to (get row count)
    set rowsNeeded to rowsCible - 1 + nbColumns
    if rowsNeeded > rowsCible then
    repeat (rowsNeeded - rowsCible) times
    add row below row rowsCible
    end repeat
    end if -- rowsNeeded
    set columnsCible to (get column count)
    set columnsNeeded to columnsCible - 1 + nbRows
    if columnsNeeded > columnsCible then
    repeat (columnsNeeded - columnsCible) times
    add column after column columnsCible
    end repeat
    end if -- columnsNeeded
    repeat with i from 1 to nbRows
    repeat with j from 1 to nbColumns
    set value of cell (colNum1 - 1 + i) of row (rowNum1 - 1 + j) to "=" & OFFSET_loc & "(" & sourceSheet & " :: " & sourceTable & " :: " & sourceCell & delim & i - 1 & delim & j - 1 & ")"
    end repeat
    end repeat
    end tell -- table of sheet of document
    end tell -- Application
    set sourceCell to missing value
    set sourceTable to missing value
    set sourceSheet to missing value
    set nbRows to missing value
    set nbColumns to missing value
    end if
    end run
    --=====
    on getSelection()
    local mySelectedRanges, sheetRanges, thisRange, _, myRange, myTable, mySheet, myDoc, mySelection
    tell application theApp
    activate
    tell document 1
    set mySelectedRanges to selection range of every table of every sheet whose it is not missing value
    repeat with sheetRanges in mySelectedRanges
    try
    count of sheetRanges
    on error
    set sheetRanges to {sheetRanges}
    end try
    repeat with thisRange in sheetRanges
    if contents of thisRange is not missing value then
    try
    --return thisRange --poorly formed result
    thisRange as text
    on error errMsg number errNum
    set {_, myRange, _, myTable, _, mySheet, _, myDoc} to my decoupe(errMsg, quote)
    --set mySelection to (a reference to (range rn of table tn of sheet sn))
    return {myRange, myTable, mySheet, myDoc}
    end try
    end if -- contents…
    end repeat -- thisRange
    end repeat -- sheetRanges
    end tell -- document 1
    end tell -- application
    return {missing value, missing value, missing value, missing value}
    end getSelection
    --=====
    on decipher(n)
    local letters, colNum, rowNum
    set letters to "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
    if (character 2 of n) as text > "9" then
    set colNum to (offset of (character 1 of n) in letters) * 64 + (offset of (character 2 of n) in letters)
    set rowNum to (text 3 thru -1 of n) as integer
    else
    set colNum to offset of (character 1 of n) in letters
    set rowNum to (text 2 thru -1 of n) as integer
    end if
    return {colNum, rowNum}
    end decipher
    --=====
    on decoupe(t, d)
    local l
    set AppleScript's text item delimiters to d
    set l to text items of t
    set AppleScript's text item delimiters to ""
    return l
    end decoupe
    --=====
    on getLproj(a)
    local lprojs, localId, lproj
    set lprojs to {{"da_DK", "da.lproj"}, {"nl_NL", "Dutch.lproj"}, {"en_US", "English.lproj"}, {"fi_FI", "fi.lproj"}, {"fr_FR", "French.lproj"}, {"de_DE", "German.lproj"}, {"it_IT", "Italian.lproj"}, {"ja_JP", "Japanese.lproj"}, {"ko_KR", "ko.lproj"}, {"no_NO", "no.lproj"}, {"pl_PL", "pl.lproj"}, {"pt_BR", "pt.lproj"}, {"pt_PT", "pt_PT.lproj"}, {"ru_RU", "ru.lproj"}, {"es_ES", "Spanish.lproj"}, {"sv_SE", "sv.lproj"}, {"zf_CN", "zh_CN.lproj"}, {"zh_TW", "zh_TW.lproj"}}
    set localId to my getLocale(a, "http://support.apple.com/en_US/manuals/#iwork")
    set localId to text (1 + (count of "http://support.apple.com/")) thru -1 of localId
    set localId to text 1 thru ((offset of "/" in localId) - 1) of localId
    set lproj to ""
    repeat with i from 1 to count of lprojs
    if localId is item 1 of item i of lprojs then
    set lproj to item 2 of item i of lprojs
    exit repeat
    end if
    end repeat
    if lproj = "" then error "A Frameworks file is missing !"
    return (path to application support as text) & "iWork '09:Frameworks:SFTabular.framework:Versions:A:Resources:" & lproj
    end getLproj
    --=====
    on getLocale(a, x)
    tell application a to return localized string x
    end getLocale
    --=====
    on getLocalizedFuncName(f, x)
    return localized string x from table "Localizable" in bundle file f
    end getLocalizedFuncName
    --=====
    --[/SCRIPT]
    Yvan KOENIG (from FRANCE lundi 19 janvier 2009 18:57:48)

  • Setting the ALV Hierarchy tree with grid line between the columns and rows

    Hi Experts,
    I would like to ask if there is any suggestion on setting the ALV hierarchy tree to be separated by grid line between the columns and rows just like how it is display the same way in normal ALV grid.
    Thanks in advance.

    Hi Lin,
    The requirement which you have stated is not possible.
    Lin,
    Also i have a query regarding BADI ZME_PROCESS_REQ_CUST, which you had raised on SDN. You have marked the question as solved/answered.
    Changing the data of a customize field in purchase requisition
    Could you please let me know, the steps you did to update the screen fields through the BADI.
    I would really appreciate your reply, because i am facing exactly the same problem which you have mentioned.
    Thanks,
    Best regards,
    Prashant

  • CONVERTING ROWS OF AN INTERNAL TABLE TO COLUMNS OF ANOTHER INTERNAL TABLE

    Hi,
    I hv an internal table itab as below with 3 columns.
      name           age         place
      sandeep       24           delhi
      ajay             22           bangalore
      abhishek      25           mumbai
    internal table itab can have any number of rows.
    from this internal table i want to make another internale table itab_new as
    sandeep     ajay            abhishek
    24              22                 25
    delhi          bangalore       mumbai
    thanks

    Hi,
    Check this example:
    data:p_temp(30)  TYPE c value 'ztmp_projectreport'.
    *data declaration
    DATA: it_tab TYPE filetable,
          gd_subrc TYPE i,
          answer TYPE c.
    TYPES: BEGIN OF t_abapcode,
      row(72) TYPE c,
    END OF t_abapcode.
    DATA: it_abapcode TYPE STANDARD TABLE OF t_abapcode INITIAL SIZE 0.
    data:it_prps like prps occurs 0 with header line.
    data:colum(20) type c.
    data:ncol type i.
    data:ccol type c.
    select * into corresponding fields of table
      it_prps from prps where
    append 'report ztmp_projectreport' to it_abapcode.
    append 'data:begin of it_prps2,' to it_abapcode.
    ncol = 1.
    loop at it_prps.
      ccol = ncol.
      concatenate 'colum' ccol '(20)' into colum.
      concatenate colum 'type c,' into it_abapcode.
      add 1 to ncol. 
    endloop.
    append 'data:end of it_prps2.' to it_abapcode.
    'All your code here to fill the internal table and alv grid
    'End of all your code
    INSERT REPORT p_temp FROM it_abapcode.
          SUBMIT (p_temp) AND RETURN.
          DELETE REPORT p_temp.
    Please provide points

  • Excel tables... columns and row formatting after I update the indesign page

    When my excel table gets updated in indesign I lose formatting (hight/wide) for the columns&rows. There are 26 columns and each one is a difference size. Do I have to formatting (hight&wide) each column and row every time the excel table is updated?

    We have many publications with statistical tables, which are done in excel. We want to try to do some publications with only tables and do it in-house. The problem is when we place the table in indesign and finish formatting the table. We will get a updated table that needs to be updated in indesign. But when we do we update we lose all of the indesign formatting. Fixing the fonts, type size, etc is easy but how do we get back the all column widths.

  • How to fix skewed table columns and rows after re-import XML

    My question is regarding XML Import in InDesign CS3.
    I have a XML that has a table of 5 columns and 5 rows, when I import it into InDesign, the table shows up fine with 5 columns and 5 rows. However when I revise my table to have an additional column, and re-import the XML file, the table gets updated, but instead of with an additional column, it gets 'appended' with an additional row instead (InDesign seems to blindly replace each cell from left to right, top to bottom, and ends up with 6 rows instead). The XML file specifies the number of columns and rows (5 and 5 before, 5 and 6 after), why doesn't InDesign recognize it and automatically add a new column when I re-import the file?  Is this problem fixed in CS5.5? Is there a script to fix this?
    Here is an example of my old XML vs new XML:
    Old:
    <frame5>
    <Table xmlns:aid="http://ns.adobe.com/AdobeInDesign/4.0/" aid:table="table" aid:trows="5" aid:tcols="5">
    <Cell aid:table="cell" aid:crows="1" aid:ccols="1"></Cell>
    <Cell aid:table="cell" aid:crows="1" aid:ccols="1">2006</Cell>
    <Cell aid:table="cell" aid:crows="1" aid:ccols="1">2005</Cell>
    <Cell aid:table="cell" aid:crows="1" aid:ccols="1">2004</Cell>
    <Cell aid:table="cell" aid:crows="1" aid:ccols="1">2003</Cell>
    <Cell aid:table="cell" aid:crows="1" aid:ccols="1">Stores at beginning of period</Cell>
    <Cell aid:table="cell" aid:crows="1" aid:ccols="1">846</Cell>
    <Cell aid:table="cell" aid:crows="1" aid:ccols="1">805</Cell>
    <Cell aid:table="cell" aid:crows="1" aid:ccols="1">753</Cell>
    <Cell aid:table="cell" aid:crows="1" aid:ccols="1">678</Cell>
    <Cell aid:table="cell" aid:crows="1" aid:ccols="1">Stores opened during the period</Cell>
    <Cell aid:table="cell" aid:crows="1" aid:ccols="1">36</Cell>
    <Cell aid:table="cell" aid:crows="1" aid:ccols="1">50</Cell>
    <Cell aid:table="cell" aid:crows="1" aid:ccols="1">59</Cell>
    <Cell aid:table="cell" aid:crows="1" aid:ccols="1">79</Cell>
    <Cell aid:table="cell" aid:crows="1" aid:ccols="1">Stores closed during the period</Cell>
    <Cell aid:table="cell" aid:crows="1" aid:ccols="1">13</Cell>
    <Cell aid:table="cell" aid:crows="1" aid:ccols="1">9</Cell>
    <Cell aid:table="cell" aid:crows="1" aid:ccols="1">7</Cell>
    <Cell aid:table="cell" aid:crows="1" aid:ccols="1">4</Cell>
    <Cell aid:table="cell" aid:crows="1" aid:ccols="1">Total stores at end of period</Cell>
    <Cell aid:table="cell" aid:crows="1" aid:ccols="1">869</Cell>
    <Cell aid:table="cell" aid:crows="1" aid:ccols="1">846</Cell>
    <Cell aid:table="cell" aid:crows="1" aid:ccols="1">805</Cell>
    <Cell aid:table="cell" aid:crows="1" aid:ccols="1">753</Cell>
    </Table>
    </frame5>
    New:
    <frame5>
    <Table xmlns:aid="http://ns.adobe.com/AdobeInDesign/4.0/"
    xmlns:aid5="http://ns.adobe.com/AdobeInDesign/5.0/" aid:table="table" aid:trows="5" aid:tcols="6">
    <Cell aid:table="cell" aid:crows="1" aid:ccols="1"></Cell>
    <Cell aid:table="cell" aid:crows="1" aid:ccols="1">2007</Cell>
    <Cell aid:table="cell" aid:crows="1" aid:ccols="1">2006</Cell>
    <Cell aid:table="cell" aid:crows="1" aid:ccols="1">2005</Cell>
    <Cell aid:table="cell" aid:crows="1" aid:ccols="1">2004</Cell>
    <Cell aid:table="cell" aid:crows="1" aid:ccols="1">2003</Cell>
    <Cell aid:table="cell" aid:crows="1" aid:ccols="1">Stores at beginning of period</Cell>
    <Cell aid:table="cell" aid:crows="1" aid:ccols="1">123</Cell>
    <Cell aid:table="cell" aid:crows="1" aid:ccols="1">846</Cell>
    <Cell aid:table="cell" aid:crows="1" aid:ccols="1">805</Cell>
    <Cell aid:table="cell" aid:crows="1" aid:ccols="1">753</Cell>
    <Cell aid:table="cell" aid:crows="1" aid:ccols="1">678</Cell>
    <Cell aid:table="cell" aid:crows="1" aid:ccols="1">Stores opened during the period</Cell>
    <Cell aid:table="cell" aid:crows="1" aid:ccols="1">456</Cell>
    <Cell aid:table="cell" aid:crows="1" aid:ccols="1">36</Cell>
    <Cell aid:table="cell" aid:crows="1" aid:ccols="1">50</Cell>
    <Cell aid:table="cell" aid:crows="1" aid:ccols="1">59</Cell>
    <Cell aid:table="cell" aid:crows="1" aid:ccols="1">79</Cell>
    <Cell aid:table="cell" aid:crows="1" aid:ccols="1">Stores closed during the period</Cell>
    <Cell aid:table="cell" aid:crows="1" aid:ccols="1">789</Cell>
    <Cell aid:table="cell" aid:crows="1" aid:ccols="1">13</Cell>
    <Cell aid:table="cell" aid:crows="1" aid:ccols="1">9</Cell>
    <Cell aid:table="cell" aid:crows="1" aid:ccols="1">7</Cell>
    <Cell aid:table="cell" aid:crows="1" aid:ccols="1">4</Cell>
    <Cell aid:table="cell" aid:crows="1" aid:ccols="1">Total stores at end of period</Cell>
    <Cell aid:table="cell" aid:crows="1" aid:ccols="1">1368</Cell>
    <Cell aid:table="cell" aid:crows="1" aid:ccols="1">869</Cell>
    <Cell aid:table="cell" aid:crows="1" aid:ccols="1">846</Cell>
    <Cell aid:table="cell" aid:crows="1" aid:ccols="1">805</Cell>
    <Cell aid:table="cell" aid:crows="1" aid:ccols="1">753</Cell>
    </Table>
    </frame5>

    What I mean is, right now there is a "workaround" which requires a user to manually add an extra column before re-importing the XML (with an extra column), otherwise the results get skewed. If by providing a script we can simply ask the user to "run" it, it would be a more "acceptable" solution.  
    Right. So, one solution would be to use Convert Text to Tables. If you find that works for you, then you can script it.
    That's why I asked you...
    Of course if nothing is required from the user other than simply re-importing, then that would be the best solution.
    Well, one could imagine a script that was attached to the re-import command, or to the link update notification, but probably the first step is to get something that works reasonably well without automating it completely. Especially because triggers to run scripts silently can introduce hard-to-debug problems.
    Sure we can switch to use "CALS table and see if this works. The question is, why should we need to? In the 2nd XML there is clearly a different "aid:tcols" value, and yet InDesign seems to ignore it and assume the same # of columns? This sounds like an Indesign bug, can someone confirm? Is there any plans to fix this?
    Not to be snarky, but do you want it to work or not? There are the tools you have and the tools you wish you had, and you can't really do much with the ones you wish you had. I'm kind of assuming you are looking for a solution today, not a solution in 2013.
    Yes,  I believe two of us have confirmed this appears to be a bug.
    Plans to fix? Well, we can't really tell you. You could try asking Adobe, but that's not easy information to get out. But you can certainly open a support case at http://adobe.com/go/supportportal and ask. It's not like we have special information here...
    But you're probably better off filing a bug first, in that same fashion.
    But let's assume no one had filed the bug. CS6 is expected in the March/April 2012 timeframe. That means that they're probably just putting the finishing touches on it right now, and it's going to be very difficult to fix things in it now. So then the earliest you'd likely get it fixed in CS6.5/CS7/whatever which presumably comes out by 2Q2013, and that's assuming Adobe decides to fix it...
    I also can't find much documentation on how to update my table to a "CALS table", any examples?
    Try this thread:
    Re: Importing a CALS table into InDesign CS3

  • Merging of multiple rows in an internal table as a single record

    Hi All,
    I have an internal table which has the following columns:
    text, date, time, user.
    it stores notes in the internal table.
    The problem is...when I save a note with multiple lines and spaces it saves each line of the note as a row in the internal table.
    Thus i get more no. of rows in the internal table compare to the no. of rows!
    I need to store each notes as single row in the internal table.
    Please advise how to approach this?
    Helpful answers will be rewarded.
    Thanks & Regards,
    Anshumita.

    You can create a deep internal table. You can declare one Column as an internal table and store the NOTES in that Internal table for each row.
    http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb366d358411d1829f0000e829fbfe/content.htm
    you can check the example in the link
    regards,
    abhishek

  • How to read only particualr columns from excel sheet to internal table

    Hi,
    I have and excel sheet which has around 20 columns, in which i want to read only 6 columns. They are at different column positions, means the 1st column, 6thcolumn, 8th column so on..
    Can we do this in sap? do we have any FM to do this?
    Thanks.
    Praveena.

    hi,
    Use the below logic to fetch the data into internal table..You need to read the data cell by cell and update the internal table,
    DATA l_count TYPE sy-tabix.
       CONSTANTS: lc_begin_col TYPE i VALUE '1',
                  lc_begin_row TYPE i VALUE '2',
                  lc_end_col   TYPE i VALUE '2',
                  lc_end_row   TYPE i VALUE '3000'.
      CLEAR p_i_excel_data. REFRESH p_i_excel_data.
    * Function module to read excel file and convert it into internal table
       CALL FUNCTION 'KCD_EXCEL_OLE_TO_INT_CONVERT'
         EXPORTING
           filename                = p_p_file
           i_begin_col             = lc_begin_col
           i_begin_row             = lc_begin_row
           i_end_col               = lc_end_col
           i_end_row               = lc_end_row
         TABLES
           intern                  = i_data
         EXCEPTIONS
           inconsistent_parameters = 1
           upload_ole              = 2
           OTHERS                  = 3.
    * Error in file upload
       IF sy-subrc NE 0 .
         MESSAGE text-006 TYPE 'E'.
         EXIT.
       ENDIF.
       IF i_data[] IS INITIAL .
         MESSAGE text-007 TYPE 'E'.
         EXIT.
       ELSE.
         SORT i_data BY row col .
    * Loop to fill data in Internal Table
         LOOP AT i_data .
           MOVE i_data-col TO l_count .
           ASSIGN COMPONENT l_count OF STRUCTURE p_i_excel_data TO <fs_source> .
           MOVE i_data-value TO <fs_source> .
           AT END OF row .
    * Append data into internal table
             APPEND p_i_excel_data.
             CLEAR p_i_excel_data.
           ENDAT .
         ENDLOOP .
       ENDIF .

  • Create an internal table with the rows of another internal table.

    Hi I want to know if posible to create an internal table structure with the  rows of another internal table?
    ex.
    If in i_tab column A has this values: row 1 = first, row 2 = second, row 3 = third.
    Now I want that the structure of my internal table be: first, second, third

    Hi,
    If you do this way then what will be the difference between the two table anyway?? First internal table has the same structure irrespective of which row you select. and you are going to store the data from each row to the rows of the second internal table. In that case, the structure of the internal table is the same as first table. and it would have same rows.
    Am I missing something here? or you want to declare the internal table with each field being the structure of the first table? In this case you'd have to do a dynamic declaration of data as the first table can have any no of rows then the second table would have any no of fields in the structure.
    Now if you know that your first internal table is going to have a fixed no of rows eg 3 rows then it becomes simple. Do the following then
    Data: begin of second_table occurs 0,
    first type <first_table type>,
    second type <first_table type>,
    third type <first_table type>,
    end of second_table.
    Regards
    Prasenjit

  • How to get the current selected column and row

    Hi,
    A difficult one, how do i know which column (and row would also be nice) of a JTable is selected?
    e.g.
    I have a JButton which is called "Edit" when i select a cell in the JTable and click the button "Edit" a new window must be visible as a form where the user can edit the a part of a row.
    Then the column which was selected in the JTable must be given (so i need to know current column) and then i want the TextField (the one needed to be edited) be active with requestFocus(). So it would be
    pricetextfield.requestFocus();
    Problem now is that i have to click every time in the window the JTextField which was selected in the JTable. I have chosen for this way of editing because my application is multi-user and it would be too difficult for me when everybody did editing directly (catch signals, reload data, etc.).
    My question is how do I know the current column and the current row in a JTable?

    I'm not sure what your mean by the "current" row or column, but the following utility methods return
    which row and column have focus within the JTable.
    public static int getFocusRow(JTable table) {
        return table.getSelectionModel().getLeadSelectionIndex();
    public static int getFocusColumn(JTable table) {
        return table.getColumnModel().getSelectionModel().getLeadSelectionIndex();
    }

Maybe you are looking for

  • How to change the table's for an existing report

    Hello, How can I change the table names for reports created with a different table name? for e.g If I created a report which included a table called "2009_10_example", How can I change that table to a different table "2010_10_example1". I am using Cr

  • New keyboard - old keyboard

    After having seen the MacBook Air, I've waited - like probably a lot of us - for a revision of the MBP , with multitouch trackpad and probably other improvements. And there it is - with a Penryn CPU, more VRAM, bigger HD and cheaper price at least in

  • Camera Card slot shows up as network sharepoint

    I work in a mac environment, five computers running osx 10.5 throught 10.8. they all show one camera card slot on the HP 6500 as a bloody sharepoint! Is there any way to make this card plug stop broadcasting on the network short of ripping out the et

  • Multiple mask

    Hi All is there anyway to have multiple masks effect a single layer? What I want to so is have 9 different mask moving over a common layer. Right now I am having to duplicate the layer 9 times with 9 seperate masks. Cumbersome since the layer is vide

  • Auto call drop

    Whenever call is taken on the handset and phone taken to the ear it drops after any small moment is done without touching anything on the screen and even opens up menu or nominations or quick setting. Like ear proximity bug, I checked in diagnosis bu