Dynamic table generation, an OOP question, and .

I am attempting to teach myself Java using the Sun tutorials (mostly DiveLog) and these forums. So far, things are going well.
My application is a scheduling program for my current boss. I work in retail, and the app would (ideally) faciliate creating the weekly schedules. I am using Swing to generate the windows and such.
There are two main parts to the app, each corresponding to a tabbed pane. The first part will be a table with the employees listed down the left, the days of the week across the top, and with each cell being that employee's shift for the day. Totals for hours worked that week will be the farmost right column and totals for hours of coverage that day will be the bottom row. The second part of the app allows the user to enter in a new employee or display/edit an existing employee's information, including a list of scheduling constraints (e.g., can't work mornings Tu/Th because of class).
My intuition is that the schedule table and the list of scheduling constraints should be dynamically generated and displayed depending on the number of employees and the number of constraints. It would also seem that both parts of the application need access to the current set of data encompassing all employees and their information. As I am just starting, the work I have done so far has been in the employee info section where I am in the process of implementing an MVC architecture with the model as a sort of employee datagram.
The questions....
1. How do I draw tables with a dynamic number of rows? I want the scheduler table to have a row for each employee and have the number of employees not hardcoded in. With the list of scheduling constraints, could I just have Swing draw each new row from a loop that counts down the number of constraints?
2. What is the smart move regarding having multiple parts of the app/GUI access employee data? Would I just load the data into an object when the app starts and have the two parts access the info via 'get' functions? (And subsequently have the second part of the app be able to edit the data via 'set' functions and then tell the first part of the app update itself?)
3. Is it appropriate to use reading and writing to and from a file for this sort of activity? (As opposed to a database of some sort.) The DiveLog app uses object serialization, and I'm feeling sketchy in this area, particularly with accessing specific pieces of data from whatever gets read from a file. If the user selects an employee from a JComboBox, how do I take that selection and grab the right object from the stuff that's been read back from a file? Similarly with the scheduling table.

Hi,
I am new to Jave programming. As a first step of learning, I want to do a Automated Employee Schedule Project in Java. (JSP)
Could you please help me to understand the flow for creating Automated Employee Schedule project?
Thanks in advance.
Amitava

Similar Messages

  • Dynamic table generation for Employee Schedule Project

    Hi,
    I am new to Jave programming and attempting to teach myself Java using the Sun tutorials & these forums. As a first step of learning, I want to do a Automated Employee Schedule Project in Java. (JSP)
    There are two main parts of the project. The first part will be a table with the employees listed down the left, the days of the week across the top, and with each cell being that employee's shift for the day. There are four different types of shift in a day ( M- Morning, R- Regular, A- Afternoon and N- Night).
    The second part will allows the user to enter in a new employee or display/edit an existing employee's information, including a list of scheduling constraints, like can?t work in Morning shift / Night shift. Apart from that number of employee in a shift may vary based on situation.
    Could you please help me to understand the flow for creating this Automated Employee Schedule project?
    Thanks in advance.
    Amitava

    I need the logic as to how to generate the shift plan. Could you tell me how to get about creating this dynamic table and any idea what i should take as baseline? I was thinking to read the employees from the database and take them as input for the first column. and the number of days as the column list. Can you tell me if this is the correct approach?

  • ADF Dynamic Table Generation

    Hi, I'm trying to generate dynimic tables from my backing bean and i can't get it work, i've looking on the web and many forums, and this is the only example i've found :
    public void setDataTable(UIXTable param) {
    this.dataTable = param;
    if(!columnsBound) {
    // Bind to the table
    List<SearchResultsColumn> cs = this.getColumns();
    for(int c = 0; c < cs.size(); c++) {
    CoreColumn col = new CoreColumn();
    SearchResultsColumn colDef = cs.get(c);
    col.setHeaderText(colDef.getName());
    CoreOutputText coldata = new CoreOutputText();
    FacesContext.getCurrentInstance().getApplication();
    coldata.setValueBinding("value", FacesContext.getCurrentInstance().getApplication().createValueBinding("#{row.cellArray.value}"));
    col.getChildren().add(coldata);
    col.setHeaderText(colDef.getCaption());
    this.dataTable.getChildren().add(col);
    This code is useless for me, because i'm using a version of JDeveloper and ADF that has deprecated methods like createValueBinding(xx) (JDeveloper 11g). I'll be gratefull for any help with this problem.
    Thanks!
    Giorgio

    Some blogs:
    http://jdeveloperandadf.blogspot.com/2011/01/adf-faces-dynamic-tags-for-form-that.html
    and http://blogs.oracle.com/shay/2010/10/adf_faces_dynamic_tags_-fora.html
    Timo

  • Dynamic table generation in webdynpro java

    Hello All,
      could you please  tell  me, how can i create Dynamic table in Webdynpro java.
         can some one help me out on this?
    Thanks
    Venkat.

    Hi,
    Please check this [link|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/74cda090-0201-0010-6b91-f85b2489f765?quicklink=index&overridelayout=true].
    Also search SDN for this query. You can get lot of help from the search.
    Regards,
    Manoj

  • Dynamic Table Creation using RTTS - Question on Issue

    I am using the RTTS services to dynamically create a table.  However, when I attempt to use the get_components method it does not return all the components for all tables that I am working with.
    Cases and End Results
    1) Created structure in data dictionary – get_components works.
    2) Pass PA0001, P0001 or T001P to get_components and I do not receive the correct results.  It only returns a small subset of these objects.  The components table has all the entries; however, the get_components method only returns about 4 rows.
    Can you explain this and point me to the correct logic sequence? I would like the logic to work with all tables.
    Code excerpt below:
    The logic for the get components works for case 1, but not case 2. When I pass into this method a "Z" custom table or structure name for parameter “structure_name” and the get_components() method executes and returns the correct results. However, when I pass in any of the objects listed above in case 2, the get_components method does not return the correct number of entries. When I check typ_struct which is populated right before the get_components line, I see the correct number of components in the components table. 
    method pb_add_column_headings .
      constants: c_generic_struct type c length 19 value 'ZXX_COLUMN_HEADINGS'.
      data: cnt_lines      type sytabix,
            rf_data        type ref to data,
            typ_field      type ref to cl_abap_datadescr,
            typ_struct     type ref to cl_abap_structdescr,
            typ_table      type ref to cl_abap_tabledescr.
      data: wa_col_headings type ddobjname.
      data: rf_tbl_creation_exception type ref to 
                                      cx_sy_table_creation,
            rf_struct_creation_exception type ref to
                                      cx_sy_struct_creation.
      data: t_comp_tab type
                       cl_abap_structdescr=>component_table,
            t_comp_tab_new      like t_comp_tab,
            t_comp_tab_imported like t_comp_tab.
      field-symbols: <fs_comp> like line of t_comp_tab,
                     <fs_col_headings_tbl> type any table.
    **Get components of generic structure
      wa_col_headings = c_generic_struct.
      typ_struct ?= cl_abap_typedescr=>describe_by_name(
                                       wa_col_headings ).
      T_COMP_TAB = typ_struct->get_components( ).
    **Determine how many components in imported structure.
      typ_struct ?= cl_abap_typedescr=>describe_by_name(
                                        structure_name ).
      t_comp_tab_imported = typ_struct->get_components( ).
      cnt_lines = lines( t_comp_tab_imported[] ).

    Hi Garton,
    1. GET_COMPONENT_LIST
       Use this FM.
       It gives all fieldnames.
    2. Use this code (just copy paste)
    REPORT abc.
    DATA : cmp LIKE TABLE OF rstrucinfo WITH HEADER LINE.
    DATA : pa0001 LIKE TABLE OF pa0001 WITH HEADER LINE.
    CALL FUNCTION 'GET_COMPONENT_LIST'
      EXPORTING
        program    = sy-repid
        fieldname  = 'PA0001'
      TABLES
        components = cmp.
    LOOP AT cmp.
      WRITE :/ cmp-compname.
    ENDLOOP.
    regards,
    amit m.

  • Dynamic Table control with context nodes and attributes?

    Hi all
    I have node and attributes in context. i want to create table dynamically using this node and attributes, can anyone give code how to do this???
    Thanks
    Madhan.

    Hi
    Go through this [link|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/80a3de18-ee00-2d10-bfb3-946d7e00fd91?quicklink=index&overridelayout=true].
    Regards
    Arun.P

  • Dynamic table generation

    Hi everybody !
    I'm using Adobe LiveCycle Designer ES free trial.
    I have a set of data and two pdf. The first is a pdf i got on the web, which was created with Adobe LiveCycle Designer ES full version.
    The second is the one i created with the trial version.
    I'm trying to display several data like this:
        <history>
            <date>08/05/2009</date>
            <doc>doc</doc>
            <desc>desc</desc>
        </history>
        <history>
             <date>09/05/2009</date>
             <doc>doc</doc>
             <desc>desc</desc>
         </history>
    With the first pdf it works fine. All the data are displayed.
    But only one data is displayed with mine.
    I checked all the options (like binding) and there are all the same on the two pdf.
    So is there a limitation on the trial version with repeating data ??
    Thanks

    No there are no limitations in the trial version, but the one you got from the web is probably saved as a dynamic PDF and yours is probably not saved that way.
    Paul

  • Dynamic Table in PDF - only first row passed to the WD Java

    Hi Experts,
    I'm working with Web Dynpro for Java on WAS 2004s SP13, ADS for SP13 and LiveCycle Designer 7.1
    I am facing a problem related to PDF-dynamic table generation.
    I am creating the PDF form with a dynamic table, an empty row will be added, when ADD button is clicked, the row will be deleted when DELETE button is clicked. After form submit, only first row of the table is passed to the Web Dynpro. I'v tried to use different dataSource Context node structure without results. The structure diescribed in the thread [Dynamic Table -  same data repeating in all rows;  doesnt works for me. The same happend if i try to folow the advise from Wiki https://wiki.sdn.sap.com/wiki/display/WDJava/Creating%20Table%20in%20Interacting%20form%20using%20Web%20Dynpro.
    Beside this,  my DropDown list in the table column is not populated. I know how to populate the DropDown list outside of table. That's working fine. But the DropDown in the table just not respond on the click (is not going open). I'm pretty sure that this is a result of a Context node structure/binding issue. 
    Please suggest me how can i implement dynamic table and populate the data in table dropdown column.
    Edited by: A. Mustacevic on Sep 7, 2009 12:18 AM

    Hi Prabhakar,
    You describe exactly my situation. The node which is bound to the table row has cardinality 1..n. Exactly Context structure is:
    node dataSource (cardinality 1..1/ Singleton true) ======> dataSource of the Interactive Form
    subnode TableList (cardinality 1..1/ Singleton true) ======> bound to the table in the Interactive Form
    subnode TableWrapper (cardinality 1..n/ Singleton true) ======> bound to the table row in the Interactive Form
    subnode TableData (cardinality 0..1/ Singleton false) ======> table data
    attribute 1  ====>     Context nodeattribute bound to the table row field   
    attribute 2
    This structure is recommanded in the post that I found on the Forum (see the firs hyperlink in my firs post).
    Is this structure correct? Why is not working?
    Your link is not working. Can you post the correct one.
    Thanks in advance.
    Regards
    Adnan
    Edited by: A. Mustacevic on Sep 8, 2009 1:56 PM
    Edited by: A. Mustacevic on Sep 8, 2009 1:57 PM
    Edited by: A. Mustacevic on Sep 8, 2009 2:00 PM
    Edited by: A. Mustacevic on Sep 8, 2009 2:01 PM
    Edited by: A. Mustacevic on Sep 8, 2009 2:02 PM

  • Dynamic ALV: but with globally available dynamic table type

    Hello,
    I would like to create a dynamic node for a ALV and dynamic table types to fill and the ALV.
    The ALV data can be changed so I need to read it again.
    I have read all the threads about dynamic node create and i have no problem with it. I can create a structure and a table dynamically. thats also no issue for me.
    But. I fill the ALV data in a method and read it in another method to save the changes in a data base table.
    Thats also no problem
    So where i need your help? I currently create the dynamic table and structure in both methods. That works, but why do the same thing twice?
    I cant figure out by myself how to create a dynamic table/structure in a global way, so the dynamic table/structure is created once and then available in the whole WD4A view.
    I tried is with a class type in se24 with reference to CL_ABAP_STRUCTDESCR but I cant make that run, because to access the type I created an attribute in se24 with reference to the class type that I now try in instance and fill in the method. But ABAP thinks that my attribute is not compatible anymore.
    Any idea how to make a dynamic table globally available? That must be an ABAP god who can answer this question, hehe. So imagin me falling on my knees for the one who has an answer that really works
    Kind regards,
    Hendrik

    This doesn't seem too difficult really. For a dynamic table you just need to declare the internal table as TYPE REF TO DATA.
    Just more this declaration to the attributes of your Component Controller. So for instance in my component controller I have an attribute called i_data with the RefTo column checked and the associated type = DATA.
    So now I could do the following:
      create data wd_this->idata type table of (tablename).
    Or however you are dynamically creating the table - maybe with TYPE HANDLE instead.
    The point is that your dynamic table is now global to your entire component and you can read and write to it from different methods.
    Is this what you were looking for?  Without knowing more about your existing coding, it is difficult to say more.

  • Dynamic Tables: TableCellEditor depending on Context node value

    Dear community,
    I'm creating a dynamic table containing all the neccessary fields to display my context node in Java code but I have one requirement that I can not resolve by myself:
    Depending on the value of a cell the TableCellEditor should be of type IWDTextView or LinkToURL. So if the context node value is e.g. the String "abc" I want to display a LinkToUrl containing a Target - such as http://www.abc.com - depending on the value, if the context node value is "def" I want to do nothing but display the value in a TextView.
    As I am creating the dynamic table in advance and binding my Context node to it later, I don't know how to change the TableCellEditor at that point of time.
    Right now I have the choice to either display all cells of the column as LinkToUrl TableCellEditor or display all cells as TextView - the dynamic table generation itself is no problem for me.
    Does anyone have an idea on how to do that? Maybe it is not possible in WDJ right now?
    regards,
    Christian

    Hi Christian
    Try this:
    IWDTable theTable=(IWDTable)view.createElement(IWDTable.class,"table");
    IWD TableColumn aColumn=(IWDTableColumn)view.createElement(IWDTableColumn.class,"col");
    if(str.equal("abc"))
    IWDTextView aField=(IWDTextView)view.createElement(IWDTextView.class,"TextView");
    aField.bindText(str);
    aColumn.setTableCellEditor(aField);
    else if(str.equal("def"))
    IWDLinkToURL aField=(IWDLinkToURL)view.createElement(IWDLinkToURL.class,"LinkToURL");
    aField.bindtarget("http://www."str".com");
    aColumn.setTableCellEditor(aField);
    theTable.addColumn(aColumn);
    Best regards,
    Sangeeta

  • Image not displaying on a dynamic Table !

    Dear Friends,
    In my assignment, I would like to display the Status column of a table with different image as per the data received from backend system.
    Infact it is a dynamic table generation.  The code snippet is as below:
    IWDNodeInfo tabNode=wdContext.getNodeInfo().getChild("Reports_TAB");
    String colName="Status";
    String imagePath=tabNode.getAttribute(colName).toString();
    IWDImage colImage=(IWDImage)view.createElement(IWDImage.class, colName+"Image");
    colImage.setSource(imagePath);
    But problem, is imagePath is hold the value as DataAttributeInfo(DashBoardView.It_FinalTAB.Status), instead of actual image name.
    (Ya, Image is stored in src/mimes/Components/<component>/ folder, which is working absolutely fine with test example.)
    Because of this, image is not displaying on the table elements.
    Can anybody help me, how can retrive exact image name from the tabNode?
    Thanks in advance,
    Lakshmikantha

    Hi Lakshmikantha,
         Instead of Doing colImage.setSource() you have to do collmage.bindSource()
    IWDNodeInfo tabNode=wdContext.getNodeInfo().getChild("Reports_TAB");
    String colName="Status";
    IWDAttributeInfo imagePath=tabNode.getAttribute(colName);
    IWDImage colImage=(IWDImage)view.createElement(IWDImage.class, colName+"Image");
    colImage.bindSource(imagePath);
    What we have done here is when the table column is created we are mentioning that at runtime for each record the image source has to be taken from the attribute value of "Status". This will only work if at runtime the value coming in the Attribute Status has the image path (relative path).
    If for instance you dont have the image path coming from the backend but only the status code and you have to decide which image to show at runtime. This is mostly the case. Then under the node "Reports_TAB" you will have to create a calculated attribute of type String. The calculated attribute will generate a getter method which will accept the current record and return the string. You will have to write code to extract status from the current record and return the appropriate path.
    The binding of the Image table column should now point to the newly created calcuated field instead of the field Status.
    Hope this helps.
    Regards,
    Sanyev

  • PDF - Dynamic Table

    Hi,
    I am facing one problem related to PDF-dynamic table generation. Suppose I have designed the master page and i have the company logo as header in all the pages and my body page has one table designed. I have choosen Flow Layout for the table but when the tables has many rows, it is extending to the next page but problem is that these rows are overlapping with the header of the next page(Company Logo). Is there any way we can keep the Master page header fix and the extra table rows from the first table will be displayed that only.
    Your sugestion is highly welcome.
    Regards
    Satya

    Hello,
    You can create multiple master pages with different layouts for 1st and following pages.
    Regards,
    Francois

  • 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!

  • Dynamic table runtime error

    Hi everyone.
    We are working on upgrading from 4.6c to ECC 6.0 and I've run into a programming problem.
    I have a class that I use to convert any internal table based on a dictionary structure to a comma-separated text file.  For the most part, I use the dynamic table techniques that are easy to find here and in other code forums.
    In 6.0 I can not get it to work.  The value assignment of the input table to the field-symbol for the dynamic table causes a "OBJECTS_TABLES_NOT_COMPATIBLE" runtime error.  So far what I can find on this error specific to dynamic tables is related to BW and/or PI.  And I can't seem to find any alternative ways of dealing with dynamic tables.  In debug I can see that decimal number fields in the dynamic table have a different length than what's in the dictionary.
    Any help or ideas would be greately appreciated.
    Here is part of the method that converts the itab to an dynamic internal table, then creates a csv record for each record (I've hilighted the line that causes the dump) :
    Get the structure of the table.
      ref_table_des ?=
          cl_abap_typedescr=>describe_by_name( i_structure ).
      idetails[] = ref_table_des->components[].
      loop at idetails into xdetails.
        clear xfc.
        xfc-fieldname = xdetails-name .
        xfc-datatype = xdetails-type_kind.
        xfc-inttype = xdetails-type_kind.
        xfc-intlen = xdetails-length.
        xfc-decimals = xdetails-decimals.
        append xfc to ifc.
      endloop.
    Create dynamic internal table and assign to FS
      call method cl_alv_table_create=>create_dynamic_table
                   exporting
                      it_fieldcatalog = ifc
                   importing
                      ep_table        = dy_table.
      assign dy_table->* to <dyn_table>.
    Create dynamic work area and assign to FS
      create data dy_line like line of <dyn_table>.
      assign dy_line->* to <dyn_wa>.
    put data into the dynamic table
    <dyn_table> = it_data[].    "<<==the runtime error happens on this line
      loop at <dyn_table> into <dyn_wa>.
        clear: l_fdata, l_data.
        do.
          l_index = sy-index.
          assign component l_index
             of structure <dyn_wa> to <dyn_field>.
          if sy-subrc <> 0.
            exit.
          endif.
          read table ifc into xfc index l_index.
          if xfc-inttype = 'D'.
    *etc...
    Thank you,
    - George

    Hi,
    For Dynamic internal table.u check SM30 Transaction.ther is one simple way to find the code in debugging.
    if not possible i will send code which is relatd to dynamic table .
    *&      Form  get_table_structure
    *       Get structure of an SAP table
    form get_table_structure.
      data : it_tabdescr type abap_compdescr_tab,
             wa_tabdescr type abap_compdescr.
      data : ref_table_descr type ref to cl_abap_structdescr.
    * Return structure of the table.
      ref_table_descr ?= cl_abap_typedescr=>describe_by_name( p_table ).
      it_tabdescr[] = ref_table_descr->components[].
      loop at it_tabdescr into wa_tabdescr.
        clear wa_fieldcat.
        wa_fieldcat-fieldname = wa_tabdescr-name .
        wa_fieldcat-datatype  = wa_tabdescr-type_kind.
        wa_fieldcat-inttype   = wa_tabdescr-type_kind.
        wa_fieldcat-intlen    = wa_tabdescr-length.
        wa_fieldcat-decimals  = wa_tabdescr-decimals.
        append wa_fieldcat to it_fieldcat.
      endloop.
    endform.                    "get_table_structure
    *&      Form  create_itab_dynamically
    *   Create internal table dynamically
    form create_itab_dynamically.
    * Create dynamic internal table and assign to Field-Symbol
      call method cl_alv_table_create=>create_dynamic_table
        EXPORTING
          it_fieldcatalog = it_fieldcat
        IMPORTING
          ep_table        = dyn_table.
      assign dyn_table->* to <fs_table>.
    * Create dynamic work area and assign to Field Symbol
      create data dyn_line like line of <fs_table>.
      assign dyn_line->* to <fs_wa>.
    endform.                    "create_itab_dynamically
    Edited by: subrahmanyam24 on Nov 18, 2010 5:12 AM
    Edited by: subrahmanyam24 on Nov 18, 2010 5:15 AM

  • Drop down in dynamic table in the Adobe Interactive Form (Web dynpro ABAP)

    Hi All,
    I have scenario use drop down in dynamic table in the adobe interactive form (Using the button the dynamic table row will be increasing and decreasing).
    Assume I Add five rows dynamically in the dynamic table. The Last column contains Drop down.
    I have button in the adobe form.
    Button Name = u201CSAVEu201D
    Button type    = SAP Submit button (Native type u2013 I am Using ZCI).
    While clicking save button, I need to store the dynamic table datau2019s to back end system. I can able to store the data to back end system. After form data getting saved those particular values need to display in the adobe form. 
    Here I am facing a problem.
    I cannot able to view as a default value in the drop down, which I have selected some values after save operation I am not getting any values in the drop down as a default.
    Example:
    The dynamic table contains 5 rows (Each and every row Drop down contains one to ten values).
    1)     I have selected second value in the Drop down (ROW1)
    2)     I have selected fourth value in the Drop down (ROW2)
    3)     I have selected fifth value in the Drop down (ROW3)
    4)     I have selected seventh value in the Drop down (ROW4)
    5)     I have selected third value in the Drop down (ROW5)
    I press the save button that particular Drop down value gets saved in back end system and that particular values want display in the Drop down as a default value.
    How to resolve this problem.
    Regards,
    Boopathi M

    Hi,
    Solve the problem .
    I have created the New node for dropdown. also i have one node already for table.
    The new node i bind to dropdown, the table same for table.
    Its working fine
    Boopathi M

Maybe you are looking for