Acrobat - Insert Table (Rows/Columns)

I need to insert a table over a plan (architectural plan) so that we can indicate start and finish dates for work activities.  Is any one aware of a plug-in facility that will allow you to create a table (Rows/Columns) of varying quantity/size? Similar to draw table in MS Word.
Thanks

The only way I know to do this is to create the table in a word processor or such. You could do this for all of the tables you need. Create a new PDF of the tables. Then use the object touchup tool (or object select?) to copy the table from the table PDF to the drawing. You may have to look for where it is copied and move it to where needed. The paste seems to work differently in different versions of Acrobat.

Similar Messages

  • Why is it so laborious to insert table rows?

    I have a table that is at least 1,000 rows in length. I've
    used the shortcut Alt+A+I+R to insert a single table row, and I've
    found that if I select existing rows, such as five or ten at a
    time, I can insert that same number of rows in one action. However,
    to insert five rows at a time, it takes about 3-5 minutes. To
    insert 10 table rows at a time, it takes about 5-10 minutes.
    Is there anyway I can eliminate the time lag to insert table
    rows? I tried to create one new table of 1,000 rows initially, but
    RoboHelp limits the table creation to 100 rows at a time.
    thanks in advance,
    ChristyG

    Hi ChristyG
    I think what you are seeing is something inherent with the
    RoboHelp HTML editor. 1,000 rows is a pret-ty large table IMHO. The
    RoboHelp HTML WYSIWYG editor just wasn't designed to handle things
    that size. I'm just guessing here, but You probably also notice
    that you can easily "type ahead" in this topic and it looks as if
    you are typing i n s l o w m o t i o n.
    So unfortunately, I'm going to have to say that no, there is
    simply no way to "speed it up". The only possibility that comes to
    mind is to use a different HTML editor for such topics. I have no
    idea if Dreamweaver or other editors are up to that sort of task.
    Perhaps someone with more experience with different editors can
    comment on that.
    Sincerely... Rick

  • Insert table row - moving Selection

    Have a table row selected and new data is inserted and the table rows are moving down. When first row is NOT selected and new table row has fired inserted, the selection row programatically moves down.
    However if the first row is selected, and new data is added to the first row, the first and second row are selected even tho its programatically should work, just like if the row selected was second, third etc...
    What's up with the first table row selected and new data inserted into the first table row to cause selection unions, even tho programatically it shouldn't?
    Thanks
    Abraham Khalil

    After the row being inserted, have you tried
    table.setRowSelectionInterval(row1,row2)?
    And in case it is the first row,
    table.setRowSelectionInterval(0,0);
    And you can even scroll to show the selection if you want by call
    table.scrollRectToVisible(getCellRect(selectedRow, 0, true));
    which will show the selectedRow
    HTH
    Bing
              

  • Inserting Table Rows in Acrobat 9

    I have a table that was created in MS Word, then converted to a PDF.  Is there a way to add rows to the table dynamically, depending on how much info the user has to fill out?

    You can create dynamic forms with LiveCycle Designer.

  • Creating Tables (Rows & Columns)

    Hi, I am having trouble designing tables for an article of my
    university magazine publication.. I know freehand doesnt support
    tables so I converted my MSWORD file into PDF and then used the
    snapshot tool to get an image of those tables in freehand--but it
    isnt coming right. The image gets massively distorted.. I have used
    different website (vectormagic.com) to create vector images of the
    tables, but still no success. I surely cannot draw 140 rows and 6
    columns (thats easy) and then put numerical data in those spaces.
    it will take me ages.. is there anyone to ease my pain? plz answer
    [email protected]

    > Hi, I am having trouble designing tables for an article
    of my universi=
    ty
    > magazine publication.. I know freehand doesnt support
    tables so I =
    > converted my
    > MSWORD file into PDF and then used the snapshot tool to
    get an image o=
    f =
    > those
    > tables in freehand--but it isnt coming right. The image
    gets massively=
    > distorted.. I have used different website
    (vectormagic.com) to create =
    =
    > vector
    > images of the tables, but still no success. I surely
    cannot draw 140 =
    > rows and 6
    > columns (thats easy) and then put numerical data in
    those spaces. it =
    > will take
    > me ages.. is there anyone to ease my pain? plz answer =
    > [email protected]
    Is the magazine made with FreeHand too? Layout programs like
    InDesign ca=
    n =
    import pdf files as images of course InDesign also imports
    Word tables.
    Best way I can think of is to make the table layout in Word
    and then =
    export pdf files. Insead of making images pdf files can be
    saved as eps =
    =
    and imported to FreeHand as any other eps image. This
    requires Acrobat =
    Pro, though. FreeHand can import some pdf formats but most
    often not.
    If the tabels have black text ensure that eps file do not
    include rgb =
    colors (Pdf export settings, Press Quality for example).
    Wrong color spa=
    ce =
    will mess up the printing for sure because rgb black is
    usually converte=
    d =
    into cmyk color like C=3D94 M=3D82 Y=3D81 K=3D89.
    Jukka

  • SetActionListener to access table row column

    I am using JDev 11.1.1.6.
    I am using a Panel Header Form. Within the form I have a menu and a read only table.
    The able has several columns and several rows of data. The menu has a command link in which I need to pass some parameters via the request scope to the bounded task flow that I am calling. Within the command link I am currently setting the requestScope parameters with a setActionListener. The from parameters are currently hardcoded and posted to the cooresponding requestScope parameters. Based on the hard coded parameters that I am passing the called task flow and page are rendering correctly.
    I would like to dynamically pass properties from one of the columns for a given selected row in the table. Because the menu with the command link is not embedded within the table, I can't access the "row" variable from the table.
    The question I have is how can I access a column value for a given row in the table when using the setActionListener within my menu. I have also read that I might want to utilize setPropertyListener instead, however I seem to have the same issue accessing the row data.

    This helped quite a bit, but I still have 1 more question.
    Currently my action on my commandMenuItem is the action associated with my Control Flow Case call. The example you provided has the action calling the method within my backing bean. How would I be able to execute both the call to the backing bean which will set my requestScope variable. The current method I have within the backing bean is as follows:
    public void m2_attributeChangeListener(AttributeChangeEvent attributeChangeEvent) {
    // Add event code here...
    // For learning purposes - show Select One button clicked
    System.out.println("Navigate to page link clicked");
    // Get bindings associated with the current scope, then access the one that we have assigned to our table - e.g. OpenSupportItemsIterator
    DCBindingContainer bindings =
    (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
    DCIteratorBinding dcItteratorBindings =
    bindings.findIteratorBinding("OpenSupportItemsIterator");
    // Get an object representing the table and what may be selected within it
    ViewObject voTableData = dcItteratorBindings.getViewObject();
    // Get selected row
    Row rowSelected = voTableData.getCurrentRow();
    //print
    System.out.println("DC Number" + rowSelected.getAttribute("DcNum"));
    ADFUtil.setEL("#{requestScope.DcNumber}", rowSelected.getAttribute("DcNum"));
    }

  • Images in table rows/columns

    Hi I am new to this and seem to struggle on what I think
    should be easy!
    I have one client with many pictures I want to display 4
    pictures in a row, repeating the rows until all the images for that
    client are displayed.
    Can anyone point me in the right direction with the correct
    CF tags to use
    Many thanks

    You want to use the MOD attribute.
    <!-- set how many rows across you want-->
    <cfset ColumnCount=4>
    <!-- set the physical path to your images-->
    <cfset imagefolderpath = "D:\website\folder\images">
    <!- query the folder for a list of images that are jpg -
    edit for other file types if needed-->
    <cfdirectory action="list" name="readfolder"
    directory="#imagefolderpath#">
    <cfquery dbtype="query" name="listimage">
    SELECT Type, Name
    FROM readfolder
    WHERE Type = <cfqueryparam cfsqltype="cf_sql_varchar"
    value="File">
    AND
    ( Name LIKE <cfqueryparam cfsqltype="cf_sql_varchar"
    value="%.jpg">
    OR Name LIKE <cfqueryparam cfsqltype="cf_sql_varchar"
    value="%.JPG">)
    ORDER BY Name ASC
    </cfquery>
    <!-- output images -->
    <body>
    <table>
    <tr>
    <cfoutput query="listimage">
    <cfif (listimage.CurrentRow mod ColumnCount) is 1>
    </tr><tr>
    </cfif>
    <td>
    <IMG src="../images/foldername/#name#">
    </td>
    </cfoutput>
    </tr>
    </table>
    </body>
    This is a basic proof of concept. You can style your images,
    whatever
    HTH

  • Error inserting a row into a table with identity column using cfgrid on change

    I got an error on trying to insert a row into a table with identity column using cfgrid on change see below
    also i would like to use cfstoreproc instead of cfquery but which argument i need to pass and how to use it usually i use stored procedure
    update table (xxx,xxx,xxx)
    values (uu,uuu,uu)
         My component
    <!--- Edit a Media Type  --->
        <cffunction name="cfn_MediaType_Update" access="remote">
            <cfargument name="gridaction" type="string" required="yes">
            <cfargument name="gridrow" type="struct" required="yes">
            <cfargument name="gridchanged" type="struct" required="yes">
            <!--- Local variables --->
            <cfset var colname="">
            <cfset var value="">
            <!--- Process gridaction --->
            <cfswitch expression="#ARGUMENTS.gridaction#">
                <!--- Process updates --->
                <cfcase value="U">
                    <!--- Get column name and value --->
                    <cfset colname=StructKeyList(ARGUMENTS.gridchanged)>
                    <cfset value=ARGUMENTS.gridchanged[colname]>
                    <!--- Perform actual update --->
                    <cfquery datasource="#application.dsn#">
                    UPDATE SP.MediaType
                    SET #colname# = '#value#'
                    WHERE MediaTypeID = #ARGUMENTS.gridrow.MediaTypeID#
                    </cfquery>
                </cfcase>
                <!--- Process deletes --->
                <cfcase value="D">
                    <!--- Perform actual delete --->
                    <cfquery datasource="#application.dsn#">
                    update SP.MediaType
                    set Deleted=1
                    WHERE MediaTypeID = #ARGUMENTS.gridrow.MediaTypeID#
                    </cfquery>
                </cfcase>
                <cfcase value="I">
                    <!--- Get column name and value --->
                    <cfset colname=StructKeyList(ARGUMENTS.gridchanged)>
                    <cfset value=ARGUMENTS.gridchanged[colname]>
                    <!--- Perform actual update --->
                   <cfquery datasource="#application.dsn#">
                    insert into  SP.MediaType (#colname#)
                    Values ('#value#')              
                    </cfquery>
                </cfcase>
            </cfswitch>
        </cffunction>
    my table
    mediatype:
    mediatypeid primary key,identity
    mediatypename
    my code is
    <cfform method="post" name="GridExampleForm">
            <cfgrid format="html" name="grid_Tables2" pagesize="3"  selectmode="edit" width="800px" 
            delete="yes"
            insert="yes"
                  bind="cfc:sp3.testing.MediaType.cfn_MediaType_All
                                                                ({cfgridpage},{cfgridpagesize},{cfgridsortcolumn},{cfgridsortdirection})"
                  onchange="cfc:sp3.testing.MediaType.cfn_MediaType_Update({cfgridaction},
                                                {cfgridrow},
                                                {cfgridchanged})">
                <cfgridcolumn name="MediaTypeID" header="ID"  display="no"/>
                <cfgridcolumn name="MediaTypeName" header="Media Type" />
            </cfgrid>
    </cfform>
    on insert I get the following error message ajax logging error message
    http: Error invoking xxxxxxx/MediaType.cfc : Element '' is undefined in a CFML structure referenced as part of an expression.
    {"gridaction":"I","gridrow":{"MEDIATYPEID":"","MEDIATYPENAME":"uuuuuu","CFGRIDROWINDEX":4} ,"gridchanged":{}}
    Thanks

    Is this with the Travel database or another database?
    If it's another database then make sure your columns
    allow nulls. To check this in the Server Navigator, expand
    your DataSource down to the column.
    Select the column and view the Is Nullable property
    in the Property Sheet
    If still no luck, check out a tutorial, like Performing Inserts, ...
    http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/index.jsp
    John

  • Can not insert a row to a table from Oracle DBA Studio

    Hi,
    I try to use the Oracle DBA Studio to create a table and put some test data in it. Here is what I found:
    I start Oracle DBA Studio on the client machine by connecting to an Oracle server 8i (8.1.7). I create a simple table called Test with two columns: one is USER, VARCHAR2, 10; and the other is USER2, CHAR, 2. After that, I right click on the table name and select "Table Data Editor" from the popup menu. The table editor window shows up. I type in the value 'AA' and 'BB' in the grid of two columns. Then I click the Apply button. An error message box popped up:
    ORA-00928 missing SELECT keyword.
    I click Show SQL button. The SQL statement is as following:
    INSERT INTO "TASYS"."TEST" (USER ,USER2 ) VALUES ('AA' ,'BB').
    I copy the statement to SQL Plus and run it. The same error is generated. But if I remove (USER, USER2) from the statement, it inserts a row without complaint. In other word, the database will not allow to insert if individual columns are list. I realize something must wrong with the new server and client installed and could not figure out what happening. Hope someone can help.
    Thanks.
    null

    I am not sure, but could it be that USER is a keyword or predefine word. Check Oracle'slist of predefine/keyword

  • When inserting 3 column details in a single table using Stored Procedure.Only 1 Column details getting inserted.Other 2 Column details are not getting into the table.Please see the below script and help me to change.

    From the Parent Table i need to insert rows which are all under this column {(TradeIn_1_VIN),(TradeIn_2_VIN),(TradeIn_3_VIN) } into SALES_TRADEIN Table .
    I have used the below Query,
    But it reads only (TradeIn _1_Vin) Column in the SALES_TRADEIN table rest 2 records got skipped..
    INSERT INTO SALES_TRADEIN
    SalesID,
    TradeIn_VIN,
    TradeIn_Make,
    TradeIn_Model,
    TradeIn_ExteriorColor,
    TradeIn_Year,
    TradeIn_Mileage,
    TradeIn_Gross,
    TradeIn_Payoff,
    TradeIn_ACV,
    TradeIn_InteriorColor
    VALUES
    @SalesID,
    case when @TradeIn_1_VIN is null then @TradeIn_2_VIN else @TradeIn_1_VIN end,
    case when @TradeIn_1_Make is null then @TradeIn_2_Make else @TradeIn_1_Make end,
    case when @TradeIn_1_Model is null then @TradeIn_2_Model else @TradeIn_1_Model end,
    case when @TradeIn_1_ExteriorColor is null then @TradeIn_2_ExteriorColor else @TradeIn_1_ExteriorColor end,
    case when @TradeIn_1_Year is null then @TradeIn_2_Year else @TradeIn_1_Year end,
    case when @TradeIn_1_Mileage is null then @TradeIn_2_Mileage else @TradeIn_1_Mileage end,
    case when @TradeIn_1_Gross is null then @TradeIn_2_Gross else @TradeIn_1_Gross end,
    case when @TradeIn_1_Payoff is null then @TradeIn_2_Payoff else @TradeIn_1_Payoff end,
    case when @TradeIn_1_ACV is null then @TradeIn_2_ACV else @TradeIn_1_ACV end,
    case when @TradeIn_1_InteriorColor is null then @TradeIn_2_InteriorColor else @TradeIn_1_InteriorColor end
    END TRY
    Actually my problem is
     If  [(TradeIn_1_VIN),(TradeIn_2_VIN),(TradeIn_3_VIN)] these 3 columns have details i need all the 3 columns  details need to be read to SALES_TRADEIN table.
    Suppose if we have data only in [(TradeIn_1_VIN),(TradeIn_2_VIN)] then these column details need to loaded in the SALES_TRADEIN table.
    If any columns are blank no problem it can move next process.
    Please help me change those particular lines to insert all the 3 records  (TradeIn_1_VIN) (TradeIn_2_VIN) (TradeIn_3_VIN) in to the table.

    From SQL2008 on, besides INSERT-SELECT, and INSERT-EXEC, the INSERT-VALUES form of the insert command is improved. It can insert multiple rows like this:
    INSERT INTO my_table(MyColA, MyColB)
    VALUES
    (1, 1),
    (2, 2),
      (3, 3)
    You could also use that in SELECTs, like this:
    SELECT *
    FROM
    (    VALUES (1,2), (3,4)
    ) t(a, b)

  • Button in a table row to get value of a column.

    Hello,
    I am following [this thread|Re: Problem with getting table element's table row] to get the value of a column up on button click (the button is in the same row).
    Here is the code in wdDoModify ()
    if (firstTime)
              IWDButton button = (IWDButton) view.getElement("TableCellEditor");
              button.mappingOfOnAction().addSourceMapping("ScheduledCourses", "row");
    Here is the code in the button action()
    public void onActionRegisterStudent(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent, com.gfc.hr.training.wdp.IPrivateCourseRegistrationCompView.IScheduledCoursesElement row )
        //@@begin onActionRegisterStudent(ServerEvent)
         wdContext.nodeScheduledCourses().setLeadSelection(row.index());
        //@@end
    The context node for the table is "ScheduledCourses"
    When I click the button, I get an exception....
    com.sap.tc.webdynpro.services.exceptions.WDIllegalArgumentException: Parameter ScheduledCourses not found

    Hi Srinivas,
    Assuming you have a node 'ScheduledCourses' with two attributes 'courseId' and 'courseName' and you want to display the 'courseName' on click of the button placed in a particular row of the table, please try the following (Most of them you have already done, if i am not wrong. I am listing the entire steps so that you can check whether you have missed any thing). 
    1. Place a Table UI element and bind the datatsource property to the node 'ScheduledCourses'
    2. Insert a new column in the table and for the column insert a table cell editor and select 'Button' from the list.
    3. select the button(table cell editor) and create an action for the button. While creating an action create a parameter with name 'courseElement' and type as IPrivate<ViewName>.IScheduledCoursesElement (Interface representing element of ScheduledCourses node)
    3. In wdDoModifyView() write the following code
        if(firstTime){
             IWDButton button=(IWDButton)view.getElement("Button1");
             button.mappingOfOnAction().addSourceMapping("nodeElement","courseElement");
    Here "Button1" is the id of the button inserted in the table column. The string "nodeElement" should be written as such and "courseElement" is the name of the parameter which we have created for the action of the button.
    4. Now in the action created for the button try to print the courseName as shown
    wdComponentAPI.getMessageManager().reportSuccess(courseElement.getCourseName());
    Regards,
    Shabeer

  • How can I write into a table cell (row, column are given) in a databae?

    How can I write into a table cell (row, column are given) in a database using LabVIEW Database Toolkit? I am using Ms Access. Suppose I have three columns in a table, I write 1st row of 1st column, then 1st row of 3rd column. The problem I am having is after writing the 1st row 1st column, the reference goes to second row and if I write into 3rd column, it goes to 2nd row 3rd column. Any suggestion? 
    Solved!
    Go to Solution.

    When you do a SQL INSERT command, you create a new row. If you want to change an existing row, you have to use the UPDATE command (i.e. UPDATE tablename SET column = value WHERE some_column=some_value). The some_column could be the unique ID of each row, a date/time, etc.
    I have no idea what function to use in the toolkit to execute a SQL command since I don't use the toolkit. I also don't understand why you just don't do a single INSERT. It would be much faster.

  • Need to insert into NVARCHAR2 column in a database table

    I need to insert into a table with column type NVARCHAR2(2000) in java.
    Cant use normal setString on that column. How can I do this using PreparedStatement in Java?

    The scenario is:
    I have to read a CSV file which contains a column in Urdu language, and show it on the JTable first.
    Then I have to import the JTable contents into a database table.
    Database Table structure is:
    CREATE TABLE IMPORT_TMP (
    ctype          VARCHAR2(3),
    urdu_name  NVARCHAR2(2000)
    );My java code which inserts into the database table is:
                    Vector dataVector = tableModel.getDataVector();
                    rowVector = (Vector) dataVector.get(row);
                  cType = "";
                    if (rowVector.get(INDEX_BANK) != null) {
                        cType = rowVector.get(INDEX_CTYPE).toString();
                    urduName = "";
                    if (rowVector.get(INDEX_URDU_NAME) != null) {
                        urduName = rowVector.get(INDEX_URDU_NAME).toString();
                    statementInsert.setString(1, cType);
                    statementInsert.setString(2, urduName);I also applied Renderer on the table column, my renderer class is:
    public class LangFontRenderer extends JLabel implements TableCellRenderer {
        private Font customFont;
        public LangFontRenderer(Font font) {
            super();
            customFont = font;
            System.out.println("font = " + font.getFontName());
            this.setFont(font);
        @Override
        public Component getTableCellRendererComponent(JTable table,
                Object value, boolean isSelected, boolean hasFocus, int row, int column) {
            if (value != null) {
                if (value instanceof String) {
                    setText((String) value);
                    return this;
            return this;
        @Override
        public Font getFont() {
            return customFont;
        // overriding other methods for performance reasons only
        @Override
        public void invalidate() {
        @Override
        public boolean isOpaque() {
            return true;
        @Override
        public void repaint() {
        @Override
        public void revalidate() {
        @Override
        public void validate() {
    }I applied the renderer on the column as:
            TableColumn col = IATable.getColumnModel().getColumn(INDEX_URDU_NAME);
            LangFontRenderer langRenderer = new LangFontRenderer(new java.awt.Font("Urdu Naskh Asiatype", 0, 11));
            col.setCellRenderer(langRenderer);It does not give any error but when i query on the database table it does not show the column data in Urdu language.
    Also it does not show the correct value on JTable column, some un-identified symbols.
    Furthermore when I open the CSV file in notepad, it shows the correct language in that column, as I have installed the Urdu language and font on my system.

  • Query to insert a row in a table with same values except 1 field.

    Suppose I have a table with 100 columns(fields).
    I want to insert a row with 99 fileds being the same as previous ones except one fileld being different.
    The table doesn't have any constraints.
    Kindly suggest a query to solve the above purpose..

    And for much more lazy people, a desc of table is shorter to write. :-)
    Then copy & paste into any editor, then mode column to add a comma after every column name in one shot.Or have the system do it for you. Be lazy.
    SELECT Column_Name || ',' FROM User_Tab_Columns where Table_Name = '';
    Indeed, it can be converted to a script called desc(.sql)
    SELECT Column_Name || ',' FROM User_Tab_Columns where Table_Name = '&1' ORDER BY Column_Id;
    Then desc or @desc.

  • Adding Specific columns of dynamic internal table row into another column

    Hi Gurus,
    I need to add  few columns of a dynamic internal table row into another column:
    Article description hy01 hy02 total
    101      panza         10     12      22
    102      masht         12     12     24
    dynamic internal table is created and columns hy01 hy02.... can increase
    How to add the the values in hy01 hy 02... into total.
    Regards,
    Dep

    Hi,
    If you really want to have a dynamic table, then you will have to find a way to generate a whole new table, and then copy the data from the old table to the new one. There is no way to modify a type during runtime in ABAP.
    Here an example how to generate a dynamic table based on another internal table, hope this will help you.
    TYPE-POOLS: slis.
    PARAMETERS: p_nb_hy TYPE i DEFAULT 2. "Number of new HY columns to be added
    * Type ZST_T:
    *   matnr  TYPE matnr
    *   maktx  TYPE maktx
    *   hy01   TYPE i
    *   total  TYPE i
    TYPES: ty_t TYPE STANDARD TABLE OF zst_s.
    PERFORM main.
    *&      Form  main
    *       text
    FORM main.
      DATA: lt_fieldcat     TYPE slis_t_fieldcat_alv,
            lt_t            TYPE ty_t,
            lr_new_t        TYPE REF TO data.
      FIELD-SYMBOLS: <lt_new_t> TYPE STANDARD TABLE.
      "Add some lines to LT_T just to have something to display on screen
      DO 10 TIMES.
        APPEND INITIAL LINE TO lt_t.
      ENDDO.
      CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
        EXPORTING
          i_structure_name = 'ZST_S'
        CHANGING
          ct_fieldcat      = lt_fieldcat.
      "Copy LT_T to LR_NEW_T
      PERFORM extend_and_copy_table USING lt_t p_nb_hy CHANGING lr_new_t lt_fieldcat.
      CLEAR lt_t. "Not needed anymore...
      ASSIGN lr_new_t->* TO <lt_new_t>.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          it_fieldcat = lt_fieldcat
        TABLES
          t_outtab    = <lt_new_t>.
    ENDFORM.                    "main
    *&      Form  extend_and_copy_table
    FORM extend_and_copy_table USING ut_t           TYPE STANDARD TABLE
                                     uv_nb_hy       TYPE i
                               CHANGING cr_t        TYPE REF TO data
                                        ct_fieldcat TYPE slis_t_fieldcat_alv
                               RAISING cx_sy_struct_creation cx_sy_table_creation.
      DATA: lo_tabledescr      TYPE REF TO cl_abap_tabledescr,
            lo_structdescr     TYPE REF TO cl_abap_structdescr,
            lo_new_structdescr TYPE REF TO cl_abap_structdescr,
            lo_new_tabledescr  TYPE REF TO cl_abap_tabledescr,
            lt_components      TYPE cl_abap_structdescr=>component_table,
            ls_component       TYPE cl_abap_structdescr=>component,
            lv_field_cnt       TYPE numc2,
            ls_fieldcat        TYPE slis_fieldcat_alv,
            lr_fieldcat        TYPE REF TO slis_fieldcat_alv.
      FIELD-SYMBOLS: <ls_old_s> TYPE ANY,
                     <lt_new_t> TYPE STANDARD TABLE,
                     <ls_new_s> TYPE ANY.
      "Get the list of all components from UT_T line structure
      lo_tabledescr  ?= cl_abap_tabledescr=>describe_by_data( ut_t ).
      lo_structdescr ?= lo_tabledescr->get_table_line_type( ).
      lt_components  = lo_structdescr->get_components( ).
      "The new columns will be from type of column HY01
      ls_component-type = lo_structdescr->get_component_type( 'HY01' ).
      "The new columns will have the same fieldcat info as column HY01
      READ TABLE ct_fieldcat INTO ls_fieldcat WITH KEY fieldname = 'HY01'.
      "HY<lv_field_cnt> = new field name
      lv_field_cnt = uv_nb_hy + 1.
      "For each new column...
      DO uv_nb_hy TIMES.
        "Generate the new column field name
        CONCATENATE  'HY' lv_field_cnt INTO ls_component-name.
        ls_fieldcat-fieldname = ls_component-name.
        "Add the new field to the components of the new structure
        INSERT ls_component INTO lt_components INDEX 4.
        "Add the new field's fieldcat info to the fieldcat
        INSERT ls_fieldcat  INTO ct_fieldcat   INDEX 4.
        lv_field_cnt = lv_field_cnt - 1.
      ENDDO.
      "Adjust the COL_POS from fieldcat
      LOOP AT ct_fieldcat REFERENCE INTO lr_fieldcat.
        lr_fieldcat->col_pos = sy-tabix.
      ENDLOOP.
      "Create the new table
      lo_new_structdescr = cl_abap_structdescr=>create( p_components = lt_components ).
      lo_new_tabledescr  = cl_abap_tabledescr=>create( p_line_type = lo_new_structdescr ).
      CREATE DATA cr_t TYPE HANDLE lo_new_tabledescr.
      ASSIGN cr_t->* TO <lt_new_t>.
      "Copy all data from old to new table
      LOOP AT ut_t ASSIGNING <ls_old_s>.
        APPEND INITIAL LINE TO <lt_new_t> ASSIGNING <ls_new_s>.
        MOVE-CORRESPONDING <ls_old_s> TO <ls_new_s>.
      ENDLOOP.
    ENDFORM.                    "main

Maybe you are looking for

  • How to control size and clarity of text?

    Since installing Firefox 4, I notice that text is sharper and clearer, but also smaller. I'd gladly give up some screen resolution to have text that's larger and easier to read, just as I used to with Firefox. Small type, no matter how clear, is hard

  • Debugging a function module

    Hi, Could somebody give me a detailed step by step debugging technique of a ABAP function module (How to pass the value to a specific function, how values are getting populated in table fields etc.) Thanks, Soumen Moderator message: please search for

  • Port suspended on Cisco ESW-520-24P

    Hi experts, I appreciate if anyone can help me with this. I just bought 4 units of Cisco ESW-520 24Ports switches. I did some testing and found out for PORTS 1 and 12 is in "Suspended" mode and thus not able to use. This not happened to 1 but all 4 s

  • [Solved] Strange behaviour when searhing files in Gnome 3.8 overview

    Searching for "spot" finds the file "The Ink Spots - Maybe.mp3" but searching for "maybe" does not. Any ideas? Last edited by discon (2013-06-13 07:51:38)

  • IMac keeps going to sleep

    Hi there. I bought a second hand Rev. A G5 2 months ago. It has always been noisy - loud fan and a whiny noise. It's a bit annoying but I can live with it. My major problem is the computer falls asleep by itself. It's unpredictable when it will happe