Two swing tables row doesn't have same height-urgent

Hi,
i have two tables inside two different panels.The tables row size is not same.private javax.swing.JPanel getJPanel3() {
     if (ivjJPanel3 == null) {
          try {
                    ivjJPanel3 = new javax.swing.JPanel();
                    ivjJPanel3.setName("JPanel3");
                    ivjJPanel3.setBorder(new javax.swing.border.EtchedBorder());
                    ivjJPanel3.setLayout(new java.awt.BorderLayout());
                    ivjJPanel3.setBackground(new java.awt.Color(220,222,248));
                    ivjJPanel3.setBounds(580, 24, 215, 319);
                    ivjJPanel4 = new javax.swing.JPanel( new BorderLayout());
                    ivjJPanel4.setBackground(new java.awt.Color(220,222,248));
                    ivjJLabel13 = new JLabel("Enter Attendees", JLabel.CENTER);
                    ivjJPanel4.add( ivjJLabel13, BorderLayout.NORTH );
                    ivjJPanel5 = new javax.swing.JPanel( new BorderLayout());
                    ivjJPanel5.setBackground(new java.awt.Color(220,222,248));
                    ivjJLabel14 = new JLabel("First Name");
                    ivjJPanel5.add( ivjJLabel14, BorderLayout.WEST );
                    ivjJTextField17 = new javax.swing.JTextField();
                    ivjJPanel5.add( ivjJTextField17, BorderLayout.CENTER );
                    ivjJPanel4.add(ivjJPanel5, BorderLayout.CENTER);
                    ivjJPanel6 = new javax.swing.JPanel( new BorderLayout());
                    ivjJPanel6.setBackground(new java.awt.Color(220,222,248));
                    ivjJLabel15 = new JLabel("Last Name");
                    ivjJPanel6.add( ivjJLabel15, BorderLayout.WEST );
                    ivjJTextField18 = new javax.swing.JTextField();
                    ivjJPanel6.add( ivjJTextField18, BorderLayout.CENTER );
                    ivjJPanel4.add(ivjJPanel6, BorderLayout.SOUTH);
                    getJPanel3().add( ivjJPanel4, BorderLayout.NORTH );
                    String[] columnNames = {"First Name", "Last Name"};
                    tableModel = new DefaultTableModel( columnNames, 0 ){
                         public boolean isCellEditable(int row, int column)
                             return false;
                    ivjJTable = new JTable( tableModel );
                    ivjJTable.setRowSelectionAllowed(true);
                    ivjJTable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
                    ivjJScrollPane = new JScrollPane( ivjJTable );
                    getJPanel3().add( ivjJScrollPane, BorderLayout.CENTER );
                    ivjJPanel7 = new javax.swing.JPanel();
                    ivjJPanel7.setLayout( new java.awt.BorderLayout());
                    ivjJButton4 = getJButton4();
                    ivjJPanel7.add( ivjJButton4, BorderLayout.WEST);
                    ivjJButton5 = getJButton5();
                    ivjJPanel7.add( ivjJButton5, BorderLayout.EAST );
                    getJPanel3().add(ivjJPanel7, BorderLayout.SOUTH );
               } catch (java.lang.Throwable ivjExc) {
               // user code begin {2}
               // user code end
               handleException(ivjExc);
          return ivjJPanel3;
* Return the JPanel3 property value.
* @return javax.swing.JPanel
/* WARNING: THIS METHOD WILL BE REGENERATED. */
private javax.swing.JPanel getJPanel43() {
     if (ivjJPanel43 == null) {
          try {
                                ivjJPanel43 = new javax.swing.JPanel();
                                ivjJPanel43.setName("JPanel4");
                    ivjJPanel43.setBorder(new javax.swing.border.EtchedBorder());
                    ivjJPanel43.setLayout(new java.awt.BorderLayout());
                    ivjJPanel43.setBackground(new java.awt.Color(220,215,222,248));
                    ivjJPanel43.setBounds(796, 24, 260,296);
                    ivjJPanel4t = new javax.swing.JPanel( new BorderLayout());
     ivjJPanel4t.setBackground(new java.awt.Color(220,222,248));
                                        ivjJLabel13t = new JLabel("Enter Firm", JLabel.CENTER);
                                        ivjJPanel4t.add( ivjJLabel13t, BorderLayout.NORTH );
                                        ivjJPanel5t = new javax.swing.JPanel( new BorderLayout());
                                        ivjJPanel5t.setBackground(new java.awt.Color(220,222,248));
                                        ivjJLabel14t = new JLabel("Firm  ");
                                        ivjJPanel5t.add( ivjJLabel14t, BorderLayout.WEST );
                                        // ivjJTextField17t = new javax.swing.JTextField();
                                        ivjJPanel5t.add( getJComboBox30(), BorderLayout.CENTER );
                                        ivjJPanel4t.add(ivjJPanel5t, BorderLayout.CENTER);
                                        ivjJPanel6t = new javax.swing.JPanel( new BorderLayout());
                                        ivjJPanel6t.setBackground(new java.awt.Color(220,222,248));
                                        ivjJLabel15t = new JLabel("         ");
                                        ivjJPanel6t.add( ivjJLabel15t, BorderLayout.WEST );
                                        ivjJTextField30 = new javax.swing.JTextField();
                                        ivjJPanel6t.add( ivjJTextField30, BorderLayout.CENTER );
                                        ivjJPanel4t.add(ivjJPanel6t, BorderLayout.SOUTH);
                                        getJPanel43().add( ivjJPanel4t, BorderLayout.NORTH );
                                String[] columnNames1 = {"Firm Name"};
                    tableModel1 = new DefaultTableModel( columnNames1, 0 ){
                         public boolean isCellEditable(int row, int column)
                             return false;
                    ivjJTable1 = new JTable( tableModel1 );
                    ivjJTable1.setRowSelectionAllowed(true);
                                ivjJTable1.setSelectionModel(ivjJTable.getSelectionModel());
                                ivjJTable1.changeSelection(ivjJTable.getSelectedRow(),0,false,false);
                    ivjJScrollPane1 = new JScrollPane( ivjJTable1 );
                    ivjJPanel43.add( ivjJScrollPane1, BorderLayout.CENTER);
                                setVisible(true);
           catch (java.lang.Throwable ivjExc) {
               // user code begin {2}
               // user code end
               handleException(ivjExc);
          return ivjJPanel43;
}

If you need further help then you need to create a [Short, Self Contained, Compilable and Executable, Example Program (SSCCE)|http://homepage1.nifty.com/algafield/sscce.html], that demonstrates the incorrect behaviour.

Similar Messages

  • How to join two internal table rows in alternative manner into one internal table?

    How to join two internal table rows in alternative manner into one internal table?
    two internal tables are suppose itab1 &  itab2 & its data
    Header 1
    Header 2
    Header 3
    a
    b
    c
    d
    e
    f
    g
    h
    i
    Header 1
    Header 2
    Header 3
    1
    2
    3
    4
    5
    6
    7
    8
    9
    INTO itab3 data
    Header 1
    Header 2
    Header 3
    a
    b
    c
    1
    2
    3
    d
    e
    f
    4
    5
    6
    g
    h
    i
    7
    8
    9

    Hi Soubhik,
    I have added two additional columns for each internal table.
    Table_Count - It represents the Internal Table Number(ITAB1 -> 1, ITAB2 -> 2)
    Row_Count  - It represents the Row Count Number, increase the row count value 1 by one..
    ITAB1:
    Header 1
    Header 2
    Header 3
    Table_Count
    Row_Count
    a
    b
    c
    1
    1
    d
    e
    f
    1
    2
    g
    h
    i
    1
    3
    ITAB2:
    Header 1
    Header 2
    Header 3
    Table_Count
    Row_Count
    1
    2
    3
    2
    1
    4
    5
    6
    2
    2
    7
    8
    9
    2
    3
    Create the Final Internal table as same as the ITAB1/ITAB2 structure.
    "Data Declarations
    DATA: IT_FINAL LIKE TABLE OF ITAB1.          "Final Internal Table
    FIELD-SYMBOLS: <FS_TAB1> TYPE TY_TAB1,     "TAB1
                                   <FS_TAB2> TYPE TY_TAB2.     "TAB2
    "Assign the values for the additional two column for ITAB1
    LOOP AT ITAB1 ASSIGNING <FS_TAB1>.
         <FS_TAB1>-TABLE_COUNT = 1.             "Table value same for all row
         <FS_TAB1>-ROW_COUNT = SY-TABIX. "Index value
    ENDLOOP.
    "Assign the values for the additional two column for ITAB2
    LOOP AT ITAB2 ASSIGNING <FS_TAB2>.    
         <FS_TAB2>-TABLE_COUNT = 2.                  "Table value same for all row
         <FS_TAB2>-ROW_COUNT = SY-TABIX.      "Index value
    ENDLOOP.
    "Copy the First Internal Table 'ITAB1' to Final Table
    IT_FINAL[] = ITAB1[].
    "Copy the Second Internal Table 'ITAB2' to Final Table
    APPEND IT
    LOOP AT ITAB2 INTO WA_TAB2.
    APPEND WA_TAB2 TO IT_FINAL.
    ENDLOOP.
    "Sort the Internal Table based on TABLE_COUNT & ROW_COUNT
    SORT IT_FINAL BY  ROW_COUNT TABLE_COUNT.
    After sorting, check the output for IT_FINAL Table, you can find the required output as shown above.
    Regards
    Rajkumar Narasimman

  • How do you find a table that doesn't have a specific word in it.

    I have two questions.
    questions 1
    How do you find a table that doesn't have a specific word in it by using a query on the whole database?
    questions 2
    How would i list all of my cars names in my database not showing duplicates?
    I have tried, tried and tried some more to get both of these, but I guess i don't know how to query a specific word.
    I also don't know how to query everything in just 1 column name.
    If anyone could help with these that would be great I have been trying queries for over an hour now and no luck.
    Thanks

    798837 wrote:
    I tried the all_tab_columns, just like you did it, however that just gives me the column name I am looking for what is not in a column.
    For example I need to find all the tables where mustang is not = 'red' but using a single query i need to find all of the tables.
    As for number 2
    I am looking for something like this
    select distinct column_name
    from all_tab_columns
    where column_name ='AcertainColumn';Now I'm even more confused. In your example, is MUSTANG a column name? Or is it the value of a MODEL column in the CARS table? And how could that possibly relate to something that exists in multiple tables?
    If your data model is at all reasonable, I would expect that you would just want
    SELECT *
      FROM cars
    WHERE model = 'Mustang'
       AND color != 'Red'but I can't see how this would relate to data stored in multiple tables.
    Justin

  • How can i compare 2 internal table's data which have  same structure ?

    hi friends,
    i want to know how  to compare 2 internal table's data which have  same structure

    DATA: BEGIN OF LINE,
    COL1 TYPE I,
    COL2 TYPE I,
    END OF LINE.
    DATA: ITAB LIKE TABLE OF LINE,
    JTAB LIKE TABLE OF LINE.
    DO 3 TIMES.
    LINE-COL1 = SY-INDEX.
    LINE-COL2 = SY-INDEX ** 2.
      APPEND LINE TO ITAB.
    ENDDO.
    MOVE ITAB TO JTAB.
    LINE-COL1 = 10. LINE-COL2 = 20.
    APPEND LINE TO ITAB.
    IF ITAB GT JTAB.
    WRITE / 'ITAB GT JTAB'.
    ENDIF.
    APPEND LINE TO JTAB.
    IF ITAB EQ JTAB.
    WRITE / 'ITAB EQ JTAB'.
    ENDIF.
    LINE-COL1 = 30. LINE-COL2 = 80.
    APPEND LINE TO ITAB.
    IF JTAB LE ITAB.
    WRITE / 'JTAB LE ITAB'.
    ENDIF.
    LINE-COL1 = 50. LINE-COL2 = 60.
    APPEND LINE TO JTAB.
    IF ITAB NE JTAB.
    WRITE / 'ITAB NE JTAB'.
    ENDIF.
    IF ITAB LT JTAB.
    WRITE / 'ITAB LT JTAB'.
    ENDIF.
    The output is:
    ITAB GT JTAB
    ITAB EQ JTAB
    JTAB LE ITAB
    ITAB NE JTAB
    ITAB LT JTAB
    This example creates two standard tables, ITAB and JTAB. ITAB is filled with 3 lines and copied to JTAB. Then, another line is appended to ITAB and the first logical expression tests whether ITAB is greater than JTAB. After appending the same line to JTAB, the second logical expression tests whether both tables are equal. Then, another line is appended to ITAB and the third logical expressions tests whether JTAB is less than or equal to ITAB. Next, another line is appended to JTAB. Its contents are unequal to the contents of the last line of ITAB. The next logical expressions test whether ITAB is not equal to JTAB. The first table field whose contents are different in ITAB and JTAB is COL1 in the last line of the table: 30 in ITAB and 50 in JTAB. Therefore, in the last logical expression, ITAB is less than JTAB.
    regards,
    srinivas
    <b>*reward for useful answers*</b>

  • How can I replicate a source table that doesn't have any primary keys?

    We have transactional replication setup in our workplace.
    In the source database, there are some tables that do not have any primary key.
    1) How can I get these tables to replicate in the current scenario?
    2) Is it possible to introduce foreign elements in a replicated instance of the database?
    Example, additional records in a table that don't exist in the source or additional tables in the database?

    1) You need to add a primary key to this table. There must be a criteria that the app uses to identify which row it wants to up date or delete. If not you might be able to add an identity column to the table and then add a primary key to it. If this is not
    possible you might want to use snapshot replication or CDC to do change tracking and then something like SSIS or service broker to move the change to the destination server.
    2) yes, but be careful. They should not modify the schema or the data of tables which are being replicated.
    looking for a book on SQL Server 2008 Administration?
    http://www.amazon.com/Microsoft-Server-2008-Management-Administration/dp/067233044X looking for a book on SQL Server 2008 Full-Text Search?
    http://www.amazon.com/Pro-Full-Text-Search-Server-2008/dp/1430215941

  • Photoshop CS5 doesn't have same printer presets as other CS5 products

    I am trying to print from Photoshop CS5 to a Konica Bizhub c451 printer that uses account tracking and user authentication.  But, when attempting to print from photoshop CS5 the printer preset doesn't have the same options (doesn't allow us to put in owner information) as the other CS5 products.  For example I am able to print from Illustrator CS5 but not Photoshop CS5.  I am also able to print from Photoshop CS3 on the same computer but not CS5.  Any ideas?

    Yes, post in the Photoshop forum. This forum is for suite specific issues.
    Bob

  • Hi change of selections in swings table rows..

    hi,
    i have created table using swings..jtable..
    it contains 3 colums and 16 rows..in first column a field called property..
    i have taken Table column in first column and inserted a combo box which contains 15 values..
    when user clicks on first columns rows it shows that combo box for selection..then user can select a value from that..now i want if user select value from combo box then in second column it should show the corresponding values for selection..
    like in first row.. second row..
    empno---null,not null,like
    empname---like,eqaul,
    empdate --less than,greaet than etcc..
    this is what i want..
    if he selects avalue from combo box of first columns it should show corresponding values in second column's row..
    it should show for all 16 rows..
    in second coumn also same as table column and combo box with that values(null,not null etc)
    my question will be bit confusing..
    give me solutions with sample code for above req..
    regards,
    sam

    the approach is similar to that used in "filtering" the table contents.
    sub the tablemodel and use two vectors to manage the reflected data...
    Vector a = inital data in unchanged state.
    Vector b = table data which can be set using the current row selection and the data in vector a. (data store)
    Thus the flow would be:
    i)process selection event.
    ii)apply selection rule against Vector a
    iii)set/change data in Vector b using data from Vector a
    firetableDataChanged()this triggers a refresh of displayed data.
    not strictly necessary to use Vectors but helpful if you need ti Iterate...
    :)

  • PowerView - 1 Workbook; 2 Data Sources(one linked to SQL and one a table inside excel); Both have same data set but Counts are Different

    Hi Everyone,
    Hopefully someone might have an explanation for the difference in counts.
    Problem:
    Excel 2013 on Windows 7
    A Single excel spreadsheet with 2 data sources: 
    One created using "From Other Sources on the DATA tab which connects to SQL Server"
    Second data source the same data as item 1, but in a differnet worksheet tab inside the workbook
    [Sheet1] - Other SQL data Source
    [Sheet2] - Exact Same data as Sheet1 but in a table
    [PowerView] - 2 tables
    Table one uses Sheet1 as its table data source
    Table two uses Sheet2 as its table data source
    When you Count(Not Blank) using the same criteria and fields for each table, the numbers dont match.
    The one that has the incorrect count is when I use the Table data from [Sheet1] - which is the Other SQL Data Source
    Testing:
    I also created a standard pivot table using Excel and the counts then are both correct for both datasources.  So it must be something in PowerView????
    Any ideas anyone...

    Hi,
    This is the forum to discuss questions and feedback for Microsoft Office client. Since your question is Power View related, I'm moving it to the forum of
    power BI>Power View, where you can get more experienced responses:
    http://social.technet.microsoft.com/Forums/en-US/home?forum=powerview
    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding.
    Regards,
    Ethan Hua
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • Need to display my table rows as columns (have tried lots, still no luck)

    My data is as follows:
    attribute_name attribute_value
    VisitType Housing
    Priority 1
    I need it to come out in this format:
    VisitType Priority
    Housing 1
    It's set up this way to make some of the fields user definable. Therefore, VisitType is defined by the user and isn't set in stone.
    I don't like this model but I'm stuck with it. Have tried a few things but nothing works!!
    please help.

    may be this could help.
    Create table Att_tab (
    Attribute_name varchar2(30),
    Attribute_type varchar2(30))
    Insert into Att_tab
    Select 'VisitType', 'Housing' from dual
    union all
    Select  'Priority', '1' from dual;
    Select * from Att_tab;
    SELECT srno,
    LTRIM(MAX(SYS_CONNECT_BY_PATH(Attribute_name,',')) KEEP (DENSE_RANK LAST ORDER BY curr),',') AS Attribute_name,
    LTRIM(MAX(SYS_CONNECT_BY_PATH(Attribute_type,',')) KEEP (DENSE_RANK LAST ORDER BY curr),',') AS Attribute_type
    FROM (SELECT 1 srno,
    Attribute_type,
    ATTRIBUTE_NAME,
    ROW_NUMBER() OVER (PARTITION BY 1 ORDER BY Attribute_type) AS curr,
    ROW_NUMBER() OVER (PARTITION BY 1 ORDER BY Attribute_type) -1 AS prev
    FROM Att_tab)
    GROUP BY srno
    CONNECT BY prev = PRIOR curr AND srno = PRIOR srno
    START WITH curr = 1;

  • Is there any way to synch mail on two Macs so it doesn't have to be read twice?

    Is there any way to process mail once instead of having to go through it again on each device? If you read or delete a message is there any way to have this synched on other devices?

    Use ones that do :-)
    Any service that does not provide IMAP, in my opinion, is not a service you want.
    I suppose the alternative is to use webmail.  Yuk.
    Grant

  • How to get the index of table row without selection?

    Hi all,
    I have an table designed in XML view.Now i have added an change method for qty cell "valqty". When user inputs the qty in the cell and press enter this method is triggered now I want to know which index of the table is currently edited.Through which i can get the value of other cell in the same row.
    NOTE: The table row doesn't have selection either multiple or single
    I tried the following inside the valqty method but it now working
    this.getValue();
    this.getBindingContext().getProperty('PRD_NUM');
    <Table id="idProductsTable"
    inset="false"
    items="{oModel>/deliverylist}"
    visibleRowCount= "7"
    mode="MultiSelect"
    modeAnimationOn="true">
    <headerToolbar>
    <Toolbar>
    <Label text="Products"></Label>
    </Toolbar>
    </headerToolbar>
    <columns>
    <Column
    minScreenWidth="Tablet"
    demandPopin="true">
    <Text text="Order" />
    </Column>
    <Column
    minScreenWidth="Tablet"
    demandPopin="true">
    <Text text="Quantity" />
    </Column>
    </columns>
    <items>
    <ColumnListItem>
    <cells>
    <Text text="{oModel>PRD_NUM}" />
    <Input value="{oModel>DEL_QUAN}" change="valqty" maxLength="13"  />
    </cells>
    </ColumnListItem>
    </items>
    </Table>
    Thanks

    Thanks Robin,
    But in my case oEvent.getSource() is returning the cell instance and
    oEvent.getSource().getBindingContext() is undefined
    Hence not getting the value
    I also tried the following
    oEvent.getSource().getParent().getParent().indexOfItem()
    But index returned is -1

  • Displaying contents of two int. tables in same screen using grid display

    Hello everyone,
       Can anyone give me any idea how we can print contents of two internal tables of different structures in same screen while we are using GRID display fm. This is working fine in LIST display with fm's like REUSE_ALV_BLOCK_LIST_INIT , BLOCK_LIST_APPEND and BLOCK_LIST_DISPLAY. But what about the same in Grid display?

    Hi,
    You have to define two containers in a single Screen.
    Define two containers on a single screen
    DATA: ok_code LIKE sy-ucomm,
          g_container TYPE scrfname VALUE 'CUSTOM2',
          grid1  TYPE REF TO cl_gui_alv_grid,
          g_custom_container TYPE REF TO cl_gui_custom_container.
    DATA: i_cat            TYPE kkblo_t_fieldcat,
          i_fieldcatalog   TYPE lvc_t_fcat,
          ws_fcat        TYPE lvc_s_fcat,
           wa_layout     TYPE lvc_s_layo.
    DATA:
          g_container1 TYPE scrfname VALUE 'CUSTOM3',
          grid2  TYPE REF TO cl_gui_alv_grid,
          g_custom_container1 TYPE REF TO cl_gui_custom_container.
    DATA: i_cat1            TYPE kkblo_t_fieldcat,
          i_fieldcatalog1   TYPE lvc_t_fcat,
          wa_layout1        TYPE lvc_s_layo.
    Display firstALV
      wa_layout-grid_title = text-029.
      wa_layout-zebra      = 'X'.  "Output rows with alternating colors
      wa_layout-no_author  = 'X'.  "Allow users to enter global layouts
      wa_layout-sel_mode   = 'A'.
      wa_layout-cwidth_opt = 'X'.
      ws_repid = sy-repid.
    *Function module to get the field catalog in the kkblo_t_fieldcat format
      CALL FUNCTION 'K_KKB_FIELDCAT_MERGE'
           EXPORTING
                i_callback_program     = ws_repid
                i_tabname              = 'WS_OPEN_SUM'
                i_inclname             = ws_repid
           CHANGING
                ct_fieldcat            = i_cat
           EXCEPTIONS
                inconsistent_interface = 1
                OTHERS                 = 2.
      IF sy-subrc <> 0.
        MESSAGE e000 WITH text-003.
      ENDIF.
    *Function module to get the field catalog in the lvc_t_fieldcat format
      CALL FUNCTION 'LVC_TRANSFER_FROM_KKBLO'
           EXPORTING
                it_fieldcat_kkblo = i_cat
           IMPORTING
                et_fieldcat_lvc   = i_fieldcatalog
           EXCEPTIONS
                it_data_missing   = 1
                OTHERS            = 2.
      IF sy-subrc <> 0.
        MESSAGE e000 WITH text-003.
      ENDIF.
      LOOP AT i_fieldcatalog INTO ws_fcat.
        IF ws_fcat-fieldname = 'BALANCE'.      "#CCE
    #CCE - IF required
          ws_fcat-do_sum = 'X'.
          MODIFY i_fieldcatalog FROM ws_fcat.
        ENDIF.
      ENDLOOP.
      IF g_custom_container IS INITIAL.
        CREATE OBJECT g_custom_container
         EXPORTING container_name = g_container.
        CREATE OBJECT grid1
                  EXPORTING i_parent = g_custom_container.
        CALL METHOD grid1->set_table_for_first_display
                 EXPORTING
                     is_layout = wa_layout
                 CHANGING
                     it_fieldcatalog  = i_fieldcatalog
                     it_outtab        =  i_open_sum.
      ENDIF.
    Display second ALV
      wa_layout1-grid_title = 'SAP R/3 (GLPCT) Totals'.
      wa_layout1-zebra      = 'X'.  "Output rows with alternating colors
      wa_layout1-no_author  = 'X'.  "Allow users to enter global layouts
      wa_layout1-sel_mode   = 'A'.
      wa_layout1-cwidth_opt = 'X'.
      ws_repid = sy-repid.
    *Function module to get the field catalog in the kkblo_t_fieldcat format
      CALL FUNCTION 'K_KKB_FIELDCAT_MERGE'
           EXPORTING
                i_callback_program     = ws_repid
                i_tabname              = 'WS_GLPCT_CHK'
                i_inclname             = ws_repid
           CHANGING
                ct_fieldcat            = i_cat1
           EXCEPTIONS
                inconsistent_interface = 1
                OTHERS                 = 2.
      IF sy-subrc <> 0.
        MESSAGE e000 WITH text-003.
      ENDIF.
    *Function module to get the field catalog in the lvc_t_fieldcat format
      CALL FUNCTION 'LVC_TRANSFER_FROM_KKBLO'
           EXPORTING
                it_fieldcat_kkblo = i_cat1
           IMPORTING
                et_fieldcat_lvc   = i_fieldcatalog1
           EXCEPTIONS
                it_data_missing   = 1
                OTHERS            = 2.
      IF sy-subrc <> 0.
        MESSAGE e000 WITH text-003.
      ENDIF.
      LOOP AT i_fieldcatalog1 INTO ws_fcat.
        CASE ws_fcat-fieldname.
          WHEN 'HSLVT'.
            ws_fcat-do_sum = 'X'.
          WHEN 'HSL01' OR 'HSL02' OR 'HSL03' OR 'HSL04' OR
               'HSL05' OR 'HSL06' OR 'HSL07' OR 'HSL08' OR
               'HSL09' OR 'HSL10' OR 'HSL11' OR 'HSL12' OR
               'HSL13' OR 'HSL14' OR 'HSL15' OR 'HSL16' .
            ws_fcat-no_out = 'X'.
          WHEN 'RBUKRS' OR 'RACCT' OR 'RPRCTR' .
            ws_fcat-key = 'X'.
        ENDCASE.
        MODIFY i_fieldcatalog1 FROM ws_fcat.
      ENDLOOP.
      IF g_custom_container1 IS INITIAL.
        CREATE OBJECT g_custom_container1
         EXPORTING container_name = g_container1.
        CREATE OBJECT grid2
                  EXPORTING i_parent = g_custom_container1.
        CALL METHOD grid2->set_table_for_first_display
                 EXPORTING
                     is_layout = wa_layout1
                 CHANGING
                     it_fieldcatalog  = i_fieldcatalog1
                     it_outtab        =  i_glpct_chk.
      ENDIF.
    Then call the screen
      Call Screen 9000.
    Regards
    Subramanian

  • Report based on fact tables that don't have the same dimensionality

    Hi all
    I want to combine in the same report different measures from different fact tables that doesn't have the same dimensionality,for example:
    measure 1 linked to dimensions : time geography and product
    measure 2 linked to dimensions : time and geography
    Currenctly when I create a report like:
    time----gepgraphy---product------measure 1-----measure 2 I don't have any data for measure2 because it's not linked to the product dimension.
    The exact report is year---store name---product area name----- store sales-----number of visitors : the number of vistors doesn't have any relation with the product dimension.
    Is there a way to create this kind of report??
    Regards

    Don't take this the wrong way guys, but I feel compelled to say this before the answers start coming in:
    This issue had been discussed already many times. Stijn, John, Kishore etc. have all answered this question for the one or the other user. This forum has a search functionality for a reason. To first look for information and then ask your question. Why wait - potentially - a couple of hours for an answer that's one search away?
    Seriously people. It's not like forums magically appeared in 2k7...they've been around for quite a while now and netiquette and common sense with regards to posting should become normal.
    Cheers,
    C.

  • Swing Tables

    Hi ,
    I have two Swing Tables. I selected a row in one table. Now i want to select the same index row of another table.Please tell me how to do.It's urgent.

    Could you please give some brief notes to implementIts one line of code that has already been given to you. There is nothing to implement. At least if I understand the question there is nothing to implement.
    If you don't like the 1 line of code suggestion, then feel free to implement your own ListSelectionListener. You can read the Swing tutorial on [How to Write a List Selection Listener|http://java.sun.com/docs/books/tutorial/uiswing/TOC.html]
    If you need further help then you need to create a [Short, Self Contained, Compilable and Executable, Example Program (SSCCE)|http://homepage1.nifty.com/algafield/sscce.html], that demonstrates the incorrect behaviour.
    Don't forget to use the [Code Formatting Tags|http://forum.java.sun.com/help.jspa?sec=formatting], so the posted code retains its original formatting.

  • How to combine 2 table rows into 1

    Hi,
    I have an interesting situation where I have two table rows which represent the same row but with a different set of attributes, and I want to combine these two rows into one row for display with in my ADF table. Is there a way that I can manipulate my table data to do this before it is rendered within my table?
    As an example I have:
    Name | Type | Attribute
    T1      A        blue
    T1      A        red
    T2      B        green
    Instead of displaying the above I would like to display
    Name | Type | Attribute
    T1      A      blue, red
    T2      B      greenAny help is appreciated,
    -Wraith
    Edited by: wraith101 on Oct 8, 2012 2:42 PM

    Frank,
    create a database view that calls a stored function to parse the duplicate values into a comma separate string and then built the ADF BC entity and view on top of this. This issue is not really one that should be fixed on the >model or UI layer. Building entity view is not a good idea, as all views are not update able, and in this scenario it would'nt be.

Maybe you are looking for

  • Getting error message stating that ' period is nt open for account type'

    I am getting an error message F5286 in MIGO transaction. I have changed all the dates but still I am getting error message regarding the dates only. After I had updated the dates in SE16N, still I am getting , 'dates not open for compamy code'. Moder

  • Playing pps file with sound in kynote 08

    I'm trying the trial version of kynote 08. Before in previous versions, I was having the same type of problem. When trying to play powerpoint presentation using the kynote, I don't have the sound, no music, nothing! Just slides passing by! Is any pro

  • Pass parameters to a report

    Hi all, I would like to know how to pass parameters to a report to filter the data from an external application, for example a Oracle ADF app. Thanks, Jhon BI PUB 11.1.1.7

  • How to get Follow on documents

    Hi All, I need to find follow on documents for sales orders, e.g, I need to find all accounting documents created for a sales order. I know we have document numbers for Invoices and Credit Memos in VBFA but how do we link them to accounting tables li

  • Solaris 10 compile samba4 error

    Hi all First, sorry for my poor English. I am trying to compile Samba 4 on Solaris 10 ( Sunfire v250 machine) Here are list of things I did: +) got errors about option "-mt" of gcc so I wrote a short shell script to replace CC ( remove option "-mt")