Dynamic Tables and UI

Hello All,
I hope i am posting this in the right area. Please excuse if i am not.
I have a pretty unusual problem.
I have a table with the following columns. "EXTERNAL_ID" "PERIOD" "AMOUNT" and other fields.
in this table, period is a date value and external_id refers to some project. (This is not unique)
i am having values in the fields like
101000 20081101 8
101000 20081201 9
101000 20090101 25
101453 20081101 5
and so on.
i would like to put these into an internal table ( Context table ) of the form "External_ID" "NOV-08" "DEC-08" and so on............
the data should look like
101000 8 9 25
101453 5
One additional problem here is that the dates are dynamic and can differ every time the program is run.
Is there any way to do this efficiently. The number of rows in my first table can be very large (upto 80000 )
Thanks & Regards,
Mz

Hi,
Then you need to build the dynmic node to acheve this.
Depending on the numdber of months,  I guess this can be known based on some input. Some basic criteris should be there as how to get the number of mothns, based on this create a Dynamic Internal table with that many columns and bind the saame to the dynamic node.
For Ex: If a project runs for a ayear/months, i will get fical periods for a project suing some standard FM. we can get to know this right.
Are you using normal Table UI or ALV to display.
Refer Dynamic Node and Internal table creation  -
Re: Create dynamic table of dynamic node
Regards,
Lekha.

Similar Messages

  • To get the input values from the dynamic tables and save in the SAPdatabase

    HI EXPERTS,
    I AM NEW TO WEB DYNPRO ABAP. MY QUERY IS HOW TO GET THE VALUES THE USER ENTERS IN THE DYNAMIC TABLE AND SAVE THE SAME IN THE SAP DATABASE. I HAVE CREATED THE TABLES BUTTON EVERYTHING BUT I DONT KNOW THE CODE HOW TO DO. PLEASE HELP ME OUT.

    >
    vadiv_maha wrote:
    > HI EXPERTS,
    >
    > I AM NEW TO WEB DYNPRO ABAP. MY QUERY IS HOW TO GET THE VALUES THE USER ENTERS IN THE DYNAMIC TABLE AND SAVE THE SAME IN THE SAP DATABASE. I HAVE CREATED THE TABLES BUTTON EVERYTHING BUT I DONT KNOW THE CODE HOW TO DO. PLEASE HELP ME OUT.
    hi,
    1 there is one property OnAction of the button...
    2 So, in this event handler,you have to read the context node to which ur table is binded
    3 use the code wizard
    control+f7
    , and use the method
    get_static_attribute_table
    4 now u have got the vaues in internal table,so now as pointed in the previous reply, you can use the
    Update
    or
    Modify
    statement...
    regards,
    Amit

  • Dynamic tables and conditional page break

    I have inserted a table in my form and have included an Add New Row button to insert additonal rows.   I want a maximum of 16 rows added with a subtotal field.  I want the table, then to automatically go to a new page with a subtotal field.  At the end of all pages I want to include a total field.   The table goes to the next page after a number of rows are entered, but there is not a break;  the original form continues.  How do conditionally break the page and have a (new) table display in the second page?
    Thanks for your help.

    Hi Paul,
    Thanks for working with me on this.   I have sent a copy to the gmail.com address.  I'm new to LiveCycle, so please forgive me.
    Date: Thu, 29 Jul 2010 09:18:53 -0600
    From: [email protected]
    To: [email protected]
    Subject: dynamic tables and conditional page break
    You can accomplish that with a single table and some creative script. I suggest that you get the table worked out and working correctly then we can add in the page totals and final total afterwards. Once the table is ready email the form to mailto:[email protected] and I will put together a sample for you that shows what to do. Please include a description of what you want to do with the email as the mail message and this forum are not tied together. Also if you have a data file  that fills out the table that would be useful as well.
    Paul
    >

  • Read a csv file, fill a dynamic table and insert into a standard table

    Hi everybody,
    I have a problem here and I need your help:
    I have to read a csv file and insert the data of it into a standard table.
    1 - On the parameter scrreen I have to indicate the standard table and the csv file.
    2 - I need to create a dynamic table. The same type of the one I choose at parameter screen.
    3 - Then I need to read the csv and put the data into this dynamic table.
    4 - Later I need to insert the data from the dynamic table into the standard table (the one on the parameter screen).
    How do I do this job? Do you have an example? Thanks.

    Here is an example table which shows how to upload a csv file from the frontend to a dynamic internal table.  You can of course modify this to update your database table.
    report zrich_0002.
    type-pools: slis.
    field-symbols: <dyn_table> type standard table,
                   <dyn_wa>,
                   <dyn_field>.
    data: it_fldcat type lvc_t_fcat,
          wa_it_fldcat type lvc_s_fcat.
    type-pools : abap.
    data: new_table type ref to data,
          new_line  type ref to data.
    data: xcel type table of alsmex_tabline with header line.
    selection-screen begin of block b1 with frame title text .
    parameters: p_file type  rlgrap-filename default 'c:Test.csv'.
    parameters: p_flds type i.
    selection-screen end of block b1.
    start-of-selection.
    * Add X number of fields to the dynamic itab cataelog
      do p_flds times.
        clear wa_it_fldcat.
        wa_it_fldcat-fieldname = sy-index.
        wa_it_fldcat-datatype = 'C'.
        wa_it_fldcat-inttype = 'C'.
        wa_it_fldcat-intlen = 10.
        append wa_it_fldcat to it_fldcat .
      enddo.
    * Create dynamic internal table and assign to FS
      call method cl_alv_table_create=>create_dynamic_table
                   exporting
                      it_fieldcatalog = it_fldcat
                   importing
                      ep_table        = new_table.
      assign new_table->* to <dyn_table>.
    * Create dynamic work area and assign to FS
      create data new_line like line of <dyn_table>.
      assign new_line->* to <dyn_wa>.
    * Upload the excel
      call function 'ALSM_EXCEL_TO_INTERNAL_TABLE'
           exporting
                filename                = p_file
                i_begin_col             = '1'
                i_begin_row             = '1'
                i_end_col               = '200'
                i_end_row               = '5000'
           tables
                intern                  = xcel
           exceptions
                inconsistent_parameters = 1
                upload_ole              = 2
                others                  = 3.
    * Reformt to dynamic internal table
      loop at xcel.
        assign component xcel-col of structure <dyn_wa> to <dyn_field>.
        if sy-subrc = 0.
         <dyn_field> = xcel-value.
        endif.
        at end of row.
          append <dyn_wa> to <dyn_table>.
          clear <dyn_wa>.
        endat.
      endloop.
    * Write out data from table.
      loop at <dyn_table> into <dyn_wa>.
        do.
          assign component  sy-index  of structure <dyn_wa> to <dyn_field>.
          if sy-subrc <> 0.
            exit.
          endif.
          if sy-index = 1.
            write:/ <dyn_field>.
          else.
            write: <dyn_field>.
          endif.
        enddo.
      endloop.
    REgards,
    RIch Heilman

  • Dynamic tables and ListDataProvider

    Hello creator folk,
    I have to dynamicaly generate a table, whom data are not coming from a database but from a list of "Efficiency" objects. So I've read the formidable post by Winston Prakash, here: http://blogs.sun.com/winston/entry/creating_dynamic_table.
    Here are my Efficiency object, quite simple:
    public class Efficiency {
        private String abbr;
        private double eff;
        /** Creates a new instance of Efficiency */
        public Efficiency(String abbr, double eff) {
            this.abbr = abbr;
            this.eff = eff;
        public String getAbbr() {
            return abbr;
        public double getEff() {
            return eff;
        }And here is the extract of prerender() where I compute the table:
                ArrayList listEff = new ArrayList();
                // skipping listEff generation. listEff is a list of Efficiency
                listDataProvider = new ListDataProvider(listEff);
                // I checked in the debugger, both listEff and listDataProvider got well filled
                //Create the Table Dynamically
                Table table = new Table();
                table.setId("table_" + zoneName);
                table.setTitle(zoneName);
                table.setAugmentTitle(false);
                // Create the Table Row group dynamically
                TableRowGroup rowGroup = new TableRowGroup();
                rowGroup.setId("rowGroup_" + zoneName);
                rowGroup.setSourceVar("currentRow");
                rowGroup.setValueBinding("sourceData", getApplication().
                createValueBinding("#{Page1.listDataProvider}"));
                // Add the table row group to the table as a child
                table.getChildren().add(rowGroup);
                // Create the first table Column
                TableColumn tableColumn1 = new TableColumn();
                tableColumn1.setId("tableColumnAbbr_" + zoneName);
                tableColumn1.setHeaderText("Abbr");
                // Add the first table Column to the table row group
                rowGroup.getChildren().add(tableColumn1);
                // Create the Static text and set its value as TRIPID
                StaticText staticText1 = new StaticText();
                staticText1.setValueBinding("text", getApplication().
                        createValueBinding("#{currentRow.abbr}"));
                // Add the static text to the table column1
                tableColumn1.getChildren().add(staticText1);
                // Create the second table Column
                TableColumn tableColumn2 = new TableColumn();
                tableColumn2.setId("tableColumnEff_" + zoneName);
                tableColumn2.setHeaderText("Efficacit�");
                // Add the second table Column to the table row group
                rowGroup.getChildren().add(tableColumn2);
                // Create the Static text and set its value as DEPDATE
                StaticText staticText2 = new StaticText();
                staticText2.setValueBinding("text", getApplication().
                        createValueBinding("#{currentRow.eff}"));
                // Add the Static Text2 to the table column2
                tableColumn2.getChildren().add(staticText2);
                gridPanel1.getChildren().add(table);The result of the above code can be seen here: http://img151.imageshack.us/img151/9476/dynamictablebq9.png
    No data are found. As I said in the code comment, in the debugger I see that listDataProvider contains my data.
    My understanding is that my value binding expressions are not correct. Could you provide me a hint please?

    Of course, my listDataProvider is correctly accessible from the JSP:
        private ListDataProvider listDataProvider = new ListDataProvider();
        public ListDataProvider getListDataProvider() {
            return  listDataProvider;
       

  • Dynamic Tables and Data Service

    hi :)
    i have a dynamic table (with add/delete row) buttons,
    one of the fields in each row, needs to populate the rest of the fields with first/last/address information.
    i understand how the data service works for a single fields, is there a way to do this by adding/deleting rows?
    how can i bind them? and how do i ensure that the proper row is populating?
    Thanks!

    To get the instance of the subform that you are working on you can use this.parent.index. Now when addressing the field the occurance number is on the container subform and not on the field itself. So if you had a Page1 - Subform1 - Row - Object you would use Page1.Subform1.Row[instancenumber].object.rawValue
    The only issue is the the [] are illegal in javascript so you can use the syntax:
    xfa.resolveNode("Page1.Subform1.Row[" + this.parent.index + "]").object.rawValue
    Make sense?

  • Dynamic table and Fieldcatalog

    Hi All,
    I am creating one dynamic internal table using method
      CALL METHOD cl_alv_table_create=>create_dynamic_table
           EXPORTING
               it_fieldcatalog           = fieldcatalog_c
           IMPORTING
               ep_table                  = dref_c.
    For which I am building fieldcatalog_c , in that one of the field has following structure
    fieldcatalog2-fieldname     = 'DIFF'.
      fieldcatalog2-coltext       = text-036.
      fieldcatalog2-col_pos       = colpos.
      fieldcatalog2-outputlen     = 15.
      fieldcatalog2-just          = 'R'.
    Now what is happening is even if I have given output len and justification for it after the table is created the length of the field is shown as more than the defined one in this case it is showing 26 but I want 15. Where as with other fields I am not facing such kind of problem.
    Any clues?
    Thanks
    pM

    hi, if you want the field has 15 length definition, you should set 'intlen', not 'outputlen'.
    normally, 'outputlen' is for print out length.
    thanks

  • Dynamis table and columns in Cursor

    Hi,
    I´m implementing an oracle function find a row position when I order the table by a dynamic column passed into the function. below is the algorithm, but I don´t know some sintax keywords to loop from my cursor and how to implement a dynamic cursor constructed from function parameters.
    Can someone Help me please?
    Thanks in advance
    CREATE OR REPLACE
    FUNCTION GET_ROW_POSITION (tableName VARCHAR2, columnId VARCHAR2, columnOrder VARCHAR2, idToShearch VARCHAR2)
    RETURN VARCHAR2 IS
    TYPE GenericCurTyp IS REF CURSOR;
    cur1 GenericCurTyp;
    i integer = 0;
    begin
    SELECT columnId into cur1 FROM tableName order by columnOrder;
    Loop in cur1
    i++;
    if(cur1.columnId = idToShearch) then
    CLOSE cur1;
    return i;
    end if;
    end loop;
    CLOSE cur1;
    RETURN NULL;
    END;
    Operator

    Generally speaking, this kind of generic function is a bad thing, but if you insist, then you need to do it the most efficient way you can, and that does not include scrolling through a cursor. It does require dynamic sql though.
    I would (if forced at gunpoint) write it like:
    CREATE OR REPLACE FUNCTION get_row_position (p_tab  VARCHAR2,
                                                 p_col  VARCHAR2,
                                                 p_sort VARCHAR2,
                                                 p_id   VARCHAR2) RETURN NUMBER IS
       l_ret NUMBER;
       l_sql VARCHAR2(4000);
    BEGIN
       l_sql := 'SELECT rn FROM (SELECT '||p_col||
                ' col, ROW_NUMBER() OVER (ORDER BY '||p_sort||') rn FROM '||
                p_tab||') WHERE col = :b1';
       EXECUTE IMMEDIATE l_sql INTO l_ret USING p_id;
       return l_ret;
    END;John

  • Dynamic table and columns

    Dear experts,
    is it possible to build a form with a table, defined in web dynpro abap?
    in my scenario, there should be a web dynpro screen defining the columns to be visible or not. These values have to be passed to an interactive form.
    Does anyone know how to achieve this?
    The only way I know to build a table on an interactive form is using table creation assistent in layout tab.
    Regards,
    Florian

    Hello,
    1) you should NOT use the tables at all, I mean the tables like in MS Word, the tables not based on subforms, they´re not flexible, weird in all aspects
    2) you should understand how it works in Adobe: you must create everything you will possibly use in the form and then hide the parts you don´t use. That means for table: you must create the whle table - all columns - and on runtime you can hide few columns if you like. But you cannot make visible something you have not created before
    3) I am looking forward to see you around with some SDN points received. That would, in my eyes, mean that you help people with their beginners´ questions if you ask your own.
    Regards Otto

  • How to pass values in dynamic structure and then dynamic table

    Hi,
    we have a Z structure in se11 holding 10 fields. But at run time i need to create a dynamic table with more than 10 records.
    I am able to create the structure and corresponding internal table. Now the issue is i have to populate this dynamic structure with some values and then append it to dynamic internal table. Since the dynamic  table type is any its not allowing an index operation like modify etc etc.
    Could anyone help me in passing the values . I have searched in SDN . everyone created a dynamic table and then populated it values from some standard or custom tables.Then assigning the component of structure  and displaying the output. but in my situation i have no such values stored in any tables. i populate values based on certain calculation.

    Hi Friends,
    This is the piece of code.After creating dynamic work area and dynamic table what i should do?
    TYPES: BEGIN OF STR,
    ID TYPE I,
    NAME(30) TYPE C,
    END OF STR.
    data: v_lines type i.
    STR_TYPE ?= CL_ABAP_TYPEDESCR=>DESCRIBE_BY_NAME( 'STR' ).
    STR_COMP = STR_TYPE->GET_COMPONENTS( ).
    APPEND LINES OF STR_COMP TO COMP_TAB.
    COMP-NAME = 'NAME1'.
    COMP-TYPE = CL_ABAP_ELEMDESCR=>GET_STRING(  ).
    APPEND COMP TO COMP_TAB.
    COMP-NAME = 'VALUE1'.
    COMP-TYPE = CL_ABAP_ELEMDESCR=>GET_STRING( ).
    APPEND COMP TO COMP_TAB.
    COMP-NAME = 'NAME2'.
    COMP-TYPE = CL_ABAP_ELEMDESCR=>GET_STRING( ).
    APPEND COMP TO COMP_TAB.
    COMP-NAME = 'VALUE2'.
    COMP-TYPE = CL_ABAP_ELEMDESCR=>GET_STRING( ).
    APPEND COMP TO COMP_TAB.
    COMP-NAME = 'NAME3'.
    COMP-TYPE = CL_ABAP_ELEMDESCR=>GET_STRING( ).
    APPEND COMP TO COMP_TAB.
    COMP-NAME = 'VALUE3'.
    COMP-TYPE = CL_ABAP_ELEMDESCR=>GET_STRING( ).
    APPEND COMP TO COMP_TAB.
    NEW_STR = CL_ABAP_STRUCTDESCR=>CREATE( COMP_TAB ).
    NEW_TAB = CL_ABAP_TABLEDESCR=>CREATE(
    P_LINE_TYPE = NEW_STR
    P_TABLE_KIND = CL_ABAP_TABLEDESCR=>TABLEKIND_STD
    P_UNIQUE = ABAP_FALSE ).
    CREATE DATA DREF TYPE HANDLE NEW_TAB.
    CREATE DATA DREF1 TYPE HANDLE NEW_str.

  • Columns in a dynamic table

    Hi guys!
    I'm working with field symbols and dynamic tables and i have this code:
    REPORT  zpractica03.
    PARAMETERS: p_tabla TYPE dd02l-tabname.
    DATA: tabla_name TYPE dd02l-tabname,
          tabla_generica  TYPE REF TO data,
          linea_generica  TYPE REF TO data.
    FIELD-SYMBOLS: <fs_tabla> TYPE ANY TABLE,
                   <fs_linea> TYPE ANY,
                   <fs_campo> TYPE ANY.
    tabla_name = p_tabla.
    CREATE DATA tabla_generica TYPE STANDARD TABLE OF (tabla_name).
    ASSIGN tabla_generica->* TO <fs_tabla>.
    CREATE DATA linea_generica TYPE (tabla_name).
    ASSIGN linea_generica->* TO <fs_linea>.
    SELECT *
           INTO CORRESPONDING FIELDS OF TABLE <fs_tabla>
           FROM (tabla_name).
    DATA: lv_indice_campo TYPE sy-tabix,
          lv_valor_campo.
    LOOP AT <fs_tabla> INTO <fs_linea>.
      CLEAR lv_indice_campo.
      lv_indice_campo = sy-tabix.
         ASSIGN COMPONENT lv_indice_campo OF STRUCTURE <fs_linea> TO <fs_campo>.
        IF sy-subrc EQ 0.
          MOVE <fs_campo> TO lv_valor_campo.
        ENDIF.
    ENDLOOP.
    In the last step, I know that I need something like this in order to get one line and save the info in a workarea and then create an ALV :
    Do n Times
         ASSIGN COMPONENT lv_indice_campo OF STRUCTURE <fs_linea> TO <fs_campo>.
        IF sy-subrc EQ 0.
          MOVE <fs_campo> TO lv_valor_campo.
        ENDIF.
    Enddo.
    What I don't know how to do is how can I get the number 'N' ? Can somebody explain me how can I get the number of the columns in a table that can be different any time that i run the program?
    Thank you very much.
    Gaby

    Hello,
    You can use the FM: DDIF_FIELDINFO_GET & pass the table name tabla_name.
    It will return the table DFIES_TAB which will contain the column details. So before this:
    Do n Times
    lv_indice_campo = lv_indice_campo + 1.
    ASSIGN COMPONENT lv_indice_campo OF STRUCTURE <fs_linea> TO <fs_campo>.
    IF sy-subrc EQ 0.
    MOVE <fs_campo> TO lv_valor_campo.
    ENDIF.
    Enddo.
    Add this code:
    DATA: LT_DFIES        TYPE STANDARD TABLE OF DFIES.
        CALL FUNCTION 'DDIF_FIELDINFO_GET'
          EXPORTING
            TABNAME        = tabla_name
          TABLES
            DFIES_TAB      = LT_DFIES
          EXCEPTIONS
            NOT_FOUND      = 1
            INTERNAL_ERROR = 2
            OTHERS         = 3.
        IF SY-SUBRC = 0.
          N = LINES ( LT_DFIES ).
        ENDIF.
    Else you can easily avoid this stuff by EXITing the DO...ENDDO loop.
    Do.
    lv_indice_campo = lv_indice_campo + 1.
    ASSIGN COMPONENT lv_indice_campo OF STRUCTURE <fs_linea> TO <fs_campo>.
    IF sy-subrc EQ 0.
      MOVE <fs_campo> TO lv_valor_campo.
    ELSE.
      EXIT.
    ENDIF.
    Enddo.
    Hope i am clear.
    BR,
    Suhas

  • How to change the display limits of a dynamic table?

    Hi folks,
    I'm using DW CS4 and PHP. I've got a php page with a dynamic table and repeating region that I built for my client. This table lists our entire active member list. Initially I built the dynamic table to show only 50 records at a time because 300+ records made an overly long page. Now my client wants all the records on a single page, because he doesn't like clicking through the recordset paging of First - Next - Previous - Last list to find who he is looking for. I tried changing the Repeating Region behavior to All Records (rather than 50) but it still displays only 50. I'm sure this is because initially when I set up the dynamic table, I limited it to 50 there. Is there an easy way to change the dynamic table from 50 to All Records, without rebuilding the entire page? I've looked in several places and can't find a way to edit this. Thanks for your help,
    Gail

    Gunter,
    Thanks for your continued help on this forum. You have made people's
    work a lot easier and stuck with them through some thorny issues.
    If I may redirect you to an issue I had a few months back - the initial
    posting was here at:
    http://forums.adobe.com/thread/767154?tstart=300
    I couldn't turn the answers I received into a workable solution. Would
    you be willing to take a look at this?
    Thanks again for your help,
    Gail

  • Sum for Dynamic Fields in a Dynamic Table with Field Symbol

    Hi All,
    I currently have an report which I am looking to update with some totals.  The information is currently output in an ALV which is fed data from a dynamic table defined with a field symbol.  The modification that needs to be applied is a summation per currency code where each of the fields to be summed is a dynamically named field at runtime.  I am now just looking to see if anyone has any recommendations on how to obtain these totals it would be appreciated.  I have no problem doing the leg work in piecing the solution together but am just stuck on which approach I should be investigating here.  I have looked into several options but do to the fact that the totals are for dynamic fields in a dynamic table and it is a field symbol I am having some difficulties thinking of the easiest approach to obtain these totals.
    Below is a simple sample of what the report currently looks like and what we are looking to add.
    ====================================================================================
    As-Is Report:
    DETAILED DATA ALV
    Company Code  |  Plant  |  2006 Total  |  2007 Total  |  2008 Total |  CURRENCY
    0001          |   ABCD  |    1,500     |    1,200     |    1,700    |    USD
    0001          |   BCDE   |    2,300     |    4,100     |    3,600    |    GBP
    0003          |   DBCA  |    3,200     |    1,600     |    6,200    |    USD
    Addition 1:
    TOTALS PER CURRENCY
    Currency                |  2006 Total  |  2007 Total  |  2008 Total |
    USD              |    4,700     |    2,800     |    7,900    |
    GBP                       |    2,300     |    4,100     |    3,600    |
    Addition 2:
    CONVERSIONS TO USD
                                          |  2006 Curr   |  2006 USD    |  2008 Curr   |  2006 USD   |
    USD                       |  4,700 USD   |  4,700 USD   |  7,900 USD  |  7,900 USD  |
    GBP   (1.5GBP/1 USD)    |  2,300 GBP   |  1,150 USD   |  2,300 GBP  |  1,800 USD  |
    ====================================================================================
    Any recommendations will be appreciated.

    Hi,
    We cannot use the key word SUM in the loop at assigning statement.
    The way i see is
    When  you are creating the first dynamic internal table , create one more with  the structure below:
    Currency | 2006 Total | 2007 Total | 2008 Total |
    Then while populating the data into first itab,also move the contents to the second itab using collect statement.

  • Merging of cells of a dynamic table in adobe form

    Hi,
    I am trying to Merge 2 columns in a dynamic table in adobe form.The requirement is to merge column 3 and column 4 if column 4 is empty. I used the below javascript code in both "Form ready " and Initialize event of the row.
    if (this.Cell4.rawValue == " ")
    this.Cell3.colSpan = "2";
    this.Cell4.presence = "hidden";
    Note : Since above code was not working , i used the below code in my subform also but it did not returned desired output.
    if(Table22.Row1.Cell1.rawValue == " ")
    Table22.Row1.Cell3.colSpan = "2";
    Table22.Row1.Cell4.presence = "hidden";
    The problem is that in my dynamic table , its the second row where the requirement is fulfilled ie in the 2nd entry of my table the column4 is blank (the exact row number might change depending on input data).
    is there a way to loop in the dynamic table and check if column 4 is empty for a particular row.
    the above code does not help to fulfill my requirements. kindly help.
    Thanks
    Aditi

    Hello Aditi priya,
    Hope you are doing good..
    Please go through my recent blog..
    http://scn.sap.com/community/interactive-forms-by-adobe/blog/2015/01/02/merging-internal-table-cells-dynamically-in-sap-adobe-forms-using-java-script-code
    I hope you will find all answers from this blog..Reward if helpful...
    Thanks & Regards,
    B Raghu Prasad

  • Here's how to use DYNAMIC tables for almost any structure (4.6C onwards)

    Hi guys
    I'm describing a  feature  here that has been around since 4.6C that is not really well known but can really simplfy programming where you need to get data into some sort of internal table and then display it either as a classical list or as al ALV grid.
    This feature is RTTI which allows you to retrieve your structure, build a dynamic FCAT (Field catalog) and a Dynamic table.
    Here's a really quick little program which reads 200 entries from VAPMA into a dynamic table. Any structure will work if you use the code sample shown.
    To pass it to an ALV GRID  is then really simple as you've already got the Field Catalog, Table and Data.
    The method I'm showing below will work for almost ANY structure you care to name whether or not the fields are in the data dictionary.
    I create a dynamic FCAT and dynamic table based on the FCAT and then populate it.
    You can create field catalogs dynamically quite simply by using the new RTTI facility available from 4.6C onwards.
    (From here it's only a small step to dynamic tables and EASY ALV grid displays)
    Example to create dynamic FCAT and table and populate it with 200 entries from VAPMA
    PROGRAM ZZ_BUILD_FLDCATALOG.
    tables: vapma.
    Define any structure
    types: begin of s_elements,
    vbeln type vapma-vbeln,
    posnr type vapma-posnr,
    matnr type vapma-matnr,
    kunnr type vapma-kunnr,
    werks type vapma-werks,
    vkorg type vapma-vkorg,
    vkbur type vapma-vkbur,
    status type c,
    end of s_elements.
    end of your structure
    data lr_rtti_struc type ref to cl_abap_structdescr .
    data:
    zog like line of lr_rtti_struc->components .
    data:
    zogt like table of zog,
    wa_it_fldcat type lvc_s_fcat,
    it_fldcat type lvc_t_fcat ,
    dy_line type ref to data,
    dy_table type ref to data.
    data: dref type ref to data.
    field-symbols: <fs> type any,
    <dyn_table> type standard table,
    <dyn_wa>.
    *now I want to build a field catalog
    *First get your data structure into a field symbol
    create data dref type s_elements.
    assign dref->* to <fs>.
    lr_rtti_struc ?= cl_abap_structdescr=>describe_by_data( <fs> ).
    zogt[] = lr_rtti_struc->components.
    Now build the field catalog.  zogt has the structure in it from RTTI.
    loop at zogt into zog.
    clear wa_it_fldcat.
    wa_it_fldcat-fieldname = zog-name .
    wa_it_fldcat-datatype = zog-type_kind.
    wa_it_fldcat-inttype = zog-type_kind.
    wa_it_fldcat-intlen = zog-length.
    wa_it_fldcat-decimals = zog-decimals.
    wa_it_fldcat-coltext = zog-name.
    wa_it_fldcat-lowercase = 'X'.
    append wa_it_fldcat to it_fldcat .
    endloop.
    Let's create a dynamic table and populate it
    call method cl_alv_table_create=>create_dynamic_table
    exporting
    it_fieldcatalog = it_fldcat
    importing
    ep_table = dy_table.
    assign dy_table->* to <dyn_table>.
    create data dy_line like line of <dyn_table>.
    assign dy_line->* to <dyn_wa>.
    select vbeln posnr matnr kunnr werks vkorg vkbur
    up to 200 rows
    from vapma
    into corresponding fields of table <dyn_table>.
    from here you can pass your table to a GRID for display etc etc.
    Cheers
    Jimbo

    Thanks for the info.
    I went to their web site and also Googled.
    I found a great review on their photographer's books on nikonians.org
    They use an HP/Indigo Ultrastream 3000 digital offset press for all hardcover books, which is GREAT!
    I did sign up and requested the 45 day trial "photographer" account.
    I am curious if Shared Ink offers a size that matches the ONLY current book size from Aperture, the odd 8.5x11.
    In the above review, I saw that Shared Ink offers a 12x12 book.. very nice! Except you will need to design that one in CS2
    So then, all that Apple really needs to do is simply add the ability to select/create custom book sizes. Then we don't need a printing service from Apple, as there are plenty of options out there, and more arriving on the market each month!

Maybe you are looking for