Problem displaying  authorization Table SM30

Hi all
Hi
I am working on finding SAP Authorization object in ECC 6.0. When I went to Table SM30-- TSTC, I get the following message.
<b><u>“View/Table TSTC can only be displayed and maintained with restrictions”</u></b>
Can anyone please let me know How do I fix this problem. Or is  there any other table that gives the information about authorization objects.
Thanks everyone.

se11 gives info about authorisation objects and how to create them
sm30 is for maintaing tables. SAP tables are normally not accessed with sm30
if you want to view the fieldvalues from a table use tcode se16n instead
and if it is a z table look in se11 in the table structure about the restriction on the table
kind regards
Reward if usefull
arthur de smidt
Message was edited by:
        A. de Smidt

Similar Messages

  • Want  Authorization for SM30 in particular table

    Hi friends,
    i am created a ztable and also created table maintanence generator.
    now my problem is, i want to  Authorization for SM30 in particular table.
    Thanks & Rgards,
    Vallamuthu.M

    Hi this will help u.
    In general different users will be given different authorizations based on their role in the orgn.
    We create ROLES and assign the Authorization and TCODES for that role, so only that user can have access to those T Codes.
    USe SUIM and SU21 T codes for this.
    Much of the data in an R/3 system has to be protected so that unauthorized users cannot access it. Therefore the appropriate authorization is required before a user can carry out certain actions in the system. When you log on to the R/3 system, the system checks in the user master record to see which transactions you are authorized to use. An authorization check is implemented for every sensitive transaction.
    If you wish to protect a transaction that you have programmed yourself, then you must implement an authorization check.
    This means you have to allocate an authorization object in the definition of the transaction.
    For example:
    program an AUTHORITY-CHECK.
    AUTHORITY-CHECK OBJECT <authorization object>
    ID <authority field 1> FIELD <field value 1>.
    ID <authority field 2> FIELD <field value 2>.
    ID <authority-field n> FIELD <field value n>.
    The OBJECT parameter specifies the authorization object.
    The ID parameter specifies an authorization field (in the authorization object).
    The FIELD parameter specifies a value for the authorization field.
    The authorization object and its fields have to be suitable for the transaction. In most cases you will be able to use the existing authorization objects to protect your data. But new developments may require that you define new authorization objects and fields.
    http://help.sap.com/saphelp_nw04s/helpdata/en/52/67167f439b11d1896f0000e8322d00/content.htm
    To ensure that a user has the appropriate authorizations when he or she performs an action, users are subject to authorization checks.
    Authorization : An authorization enables you to perform a particular activity in the SAP System, based on a set of authorization object field values.
    You program the authorization check using the ABAP statement AUTHORITY-CHECK.
    AUTHORITY-CHECK OBJECT 'S_TRVL_BKS'
    ID 'ACTVT' FIELD '02'
    ID 'CUSTTYPE' FIELD 'B'.
    IF SY-SUBRC <> 0.
    MESSAGE E...
    ENDIF.
    'S_TRVL_BKS' is a auth. object
    ID 'ACTVT' FIELD '02' in place 2 you can put 1,2, 3 for change create or display.
    The AUTHORITY-CHECK checks whether a user has the appropriate authorization to execute a particular activity.
    This Authorization concept is somewhat linked with BASIS people.
    As a developer you may not have access to access to SU21 Transaction where you have to define, authorizations, Objects and for nthat object you assign fields and values. Another Tcode is PFCG where you can assign these authrization objects and TCodes for a  profile and that profile in turn attached to a particular user.
    Take the help of the basis Guy and create and use.
    Sy-SUBRC values
    4              User has no authorization in the SAP System for
                   such an action. If necessary, change the user
                   master record.
    8              Too many parameters (fields, values). Maximum
                   allowed is 10.
    12             Specified object not maintained in the user
                   master record.
    16             No profile entered in the user master record.
    24             The field names of the check call do not match
                   those of an authorization. Either the
                   authorization or the call is incorrect.
    28             Incorrect structure for user master record.
    32             Incorrect structure for user master record.
    36             Incorrect structure for user master record.
    with regards,
    Hema Sundara.
    pls reward if u find it helpful.

  • Problem with maintain table views SM30 Transaction

    Hello All,
    i have a problem with the table maintenance view SM30, it doesn't permit me to modify the rows in the table.
    we have added a field into the table and when i tried to change the table view from menu: Utilities ==> table maintenance generator==> change the system propose me a message that the screen 0001 will be deleted and recreated...but the system has deleted the screen and doesn't recreate it...in somewehere on internet we find that we should use the transaction SE55 menu:
    Environment==> modification ==> Maintenance screen ==> button Layout which open the tool Screen Painter and from that we have created our screen with 4 fields of our table...our result that the screen is created and i can see it from the SM30 transaction but i can't insert rows in the table...when i try to go to maintain table: menu: Utilities ==> Table maintenance generator to try if i can modify something the system give me a message: "set the compare flag dialog ZIV_DP_PLCHAR_LA"
    the ZIV_DP_PLCHAR_LA is the name of my table...
    can you give me some advices please how should i do to fix this problem to insert rows in table throughout the transaction
    SM30 "maintain table views: initial screen"
    if i want to delete the screen from the SE55 transaction to recreate it newly what should i do to take care about some options
    to have a new screen?
    thanks for all
    Bilal

    Hi
    First delete the old table maintainence generator.
    Now Recreate the screen and your table is good to go..
    These error messages come when we add new fields and different version of the table maintainence generator in database.

  • Change/display customizing tables via IMG only - SM31

    Hi Experts,
    I've posted this message previously in another forum area on SDN. In the absence of a response, I've posted it here, hoping that this is a more appropriate area.
    We are attempting to maintain table LRF_WKQU through SM31 in our QA system.
    The following message appears:
    Change/display customizing tables via IMG only
    Message no. SV000
    I've also noticed that a number of other tables show the same response.
    We are able to perform maintenance of this table in our Production system via SM31.
    I've checked the table properties, and they are the same on both systems.
    Does anyone know if there is a system setting or such like, that will allow for maintenance of tables via SM31 and not the IMG?
    Thanks,
    Chris

    Why do you want to change customizing tables outside the IMG. In the case of this table LRF_WKQU you mention there are a few more tables which might also be updated  when you use the IMG. Without IMG the risk is very big on inconsitencies.
    The other tables being updated through IMG (for table LRF_WKQU) are
    T346
    T346T
    T346L
    Whe you use SM31 (or SM30), these tabels will not be updated. This does not have to cause a problem, but I think for that reason (because it MIGHT cause a problem). SAP shows you this message.

  • Automatic Payment program -line item cleared not displaying in table

    automatic Payment program -line item cleared not displaying in table
    i have re run the APP program DUSR1 same earlier it has run twice but table dose not show double payment to vendors how to resolve the issue.
    Can some one please guide me on this.

    Hi Priyanka,
    First, which table are you referring to.  If your fist APP run clears the line item, it will no longer be available in the open item. 
    Please be more specific on the problem so that we can try to help you.  If possible, please provide screenshots.
    Regards,
    Ganesh

  • Problem in Assigning  table to access sequence

    Dear All,
    i am facing problem in assigning table to access sequence for billing output type.
    I have created 1 table B902 with the combination of Sales org,plant ,Division,Billing doc type.
    but if i am going to assign with access sequence system is taking for Billing type & division & for other its showing red marks & errorr.Access sequence->Aceessess->Field.if i am clicking on field in I/O column for plant its displaying negative.
    bcause of this i am not able to make condtion record.
    Message is Select a document field for WERKS
    Regards
    ajit
    Edited by: SAP SD AJIT on Mar 1, 2010 3:18 PM

    Hi SAP SD AJIT ,
         Go to IMG --> Sales and Distribution --> Basic Functions --> Output control --> Output Determination --> Output Determination using condition technique --> Mantain  output  Determination for billing document --> Mantain condition table,  in the pop-up choose the option "Field catalog: Messages for billing documents", there you can add standard field into the catalog, so you can add WERKS and the other one "document structure" I don't know what field it is, but if it is and standard field you can add it. If you have a Z field you need ABAP help to add the Z field to the structure "KOMKBZ5" and then you can add it to the catalog.
    Regards,
    Mariano.

  • What is the right  way to display a table in Java web dynpro using a node.

    Hi experts,
      I am trying to show a node of cardinality 0...n as a table in an adobe form in Java web dynpro. But its not showing it properly. Can anybody please tell me what is the right way to display a table on adobe form using a node of cardinality 0...n or 1...n in Java Webdynpro.  In ABAP webdynpro, we can drag and drop a node of cardianlity 0...n or 1...n to  show as a table and it works fine. Is the same possible in Java webdynpro also. Please help.
    Thanks and Regards.
    Vaibhav Tiwari.

    Please refer to my post.. you will get the answer
    Dynamic Table -  same data repeating in all rows
    Special care should be taken in designing the context for table attribute.
    The attribute type singletone also plays a important role. I have this doubt from the beginning when you have reported this problem for the first time but finally you marked it as solved so i thought there might be some other issues but again when you reported that again i did some analysis.
    Now coming to final solution :
    For designing a table in adobe interactive form you have consider following
    You have to design the view context upto three level, I am explaining you the properties
    PDFDataSource (Parent Level1) - Cardinality 1:1 - Signetone -True - This is assigned to datasource
    TableList (Parent Level2) - Cardinality (1:1) - Signetone -True
    TableWrapper(Parent Level3) - Cardinality (0:n) - Signetone -True
    TableData (Parent Level4) - Cardinality (0:1) - Signetone - false (This is the main point)
    Then under TableData value node, you have to put all your table attributes.
    This Value Node name can be anything but hierarchy should be same as I have mentioned above.
    Please try out these steps and get back to me if you have any doubt.

  • Problems displaying rtf memo fields

    Post Author: Davidm
    CA Forum: General
    We use Crystal Reports X to run reports on an Access database with a significant number of rtf memo fields. We use Total Access Memo to allow extended use of rtf within Access as our users require the additional formatting capabilities that this offers.
    However, there are considerable problems displaying items like bullet points, tables and hyperlinks in the Crystal Viewer with tables in particular coming out in a real mess with all entries in the table being displayed in a list with a small square marking each cell at the end of each line.
    Curiously, if you preview the report in the full version of Crystal X, it appears a bit better with the hyperlinks still underlined (bullet points still vanish) and rows in rtf tables are at least presented as a row even if the columns are not ordered and mixed (with no bounding cells visible).
    Firstly, is this disparity of end result between full Crystal X Print Preview and the Crystal X Viewer fixable?
    Secondly, is the limited handling of rtf tags likely to be solved in the next release of Crystal?

    Hi Mathias,
    If I caught you correctly, you want to display data in Adobe forms in form of tabel, right?
    So, follow the steps:
    1. Insert one sub form on your adobe form.
    2. Set its type as "flow content" in object->subform property.
    3. Set flow direction as "Table".
    4. Insert another subform inside this subform.
    5. set its type as "flow content" and flow direction as "Table row".
    6. Now, choose binding tab, and there check "repeat subform for each Data item check box" and specify min. count for your rows.
    7. Now, insert your column fields inside this sub form once.
    8. Format its look and feel as you want.
    When you run this application, it will show you multiple data as table on Adobe form.
    Regards,
    Bhavik

  • Problems displaying itab with 'REUSE_ALV_GRID_DISPLAY'

    Hi experts!
    I have a problem displaying the internal table itab_test. Itab_uload is a TYPE TABLE of a complex and nested structure I defined in the DDIC. I am able to pass the entries, which are not conform with the specifications, to itab_test, but when I execute the program I get a short dump.
    Error message is:" It was tried to pass the internal table IT_FIELDCAT to the formal parameter IT_FIELDCAT. In doing so, a ^type conflict occured between the formal and the actual parameter."
    Can anybody please advise on the code-sample below. What did I wrong and what can I do to correct it?
    Thanks a lot for your help!
    Johann
    P.S.:Points will be rewarded for helpful answers!
    *&          DECLARATIONS
    TYPES: BEGIN OF error_test,
           oz TYPE c,
           bez TYPE c,
           END OF error_test.
    DATA: itab_test TYPE TABLE OF error_test WITH HEADER LINE,
          itab_upload TYPE TABLE OF zstr_gaeb WITH HEADER LINE.
    DATA: wa_upload TYPE zstr_gaeb,
          wa_lvbereich TYPE zstr_lvbereich,
          wa_bereichdeslv TYPE zstr_bereichdeslv,
          wa_beschreibung TYPE zstr_lvbeschreibung,
          wa_position TYPE zstr_position.
    DATA :      it_fieldcat TYPE lvc_t_fcat,
              wa_fieldcat LIKE LINE OF it_fieldcat,
              wrk_pos TYPE i.      
    *&           START OF SELECTION
    START-OF-SELECTION.
    LOOP AT itab_upload INTO wa_upload.
        LOOP AT wa_upload-vergabe-lv-lvbereich INTO wa_lvbereich.
          oz_len = STRLEN( wa_lvbereich-oz ).
          IF oz_len <> 3.
            MOVE wa_lvbereich-oz TO itab_test-oz.
            MOVE wa_lvbereich-bez TO itab_test-bez.
          ENDIF.
        ENDLOOP.
      ENDLOOP.
      CLEAR wa_fieldcat.
      wrk_pos = wrk_pos + 1.
      wa_fieldcat-col_pos = wrk_pos.
      wa_fieldcat-tabname = 'ITAB_TEST'.
      wa_fieldcat-fieldname = 'oz'.
      wa_fieldcat-seltext = 'Ordnungszahl'.
      wa_fieldcat-emphasize = ''.
      wa_fieldcat-hotspot = 'X'.
      APPEND wa_fieldcat TO it_fieldcat.
      CLEAR wa_fieldcat.
      wrk_pos = wrk_pos + 1.
      wa_fieldcat-col_pos = wrk_pos.
      wa_fieldcat-tabname = 'ITAB_TEST'.
      wa_fieldcat-fieldname = 'bez'.
      wa_fieldcat-seltext = 'Bezeichnung'.
      wa_fieldcat-emphasize = ''.
      wa_fieldcat-hotspot = ''.
      APPEND wa_fieldcat TO it_fieldcat.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
       EXPORTING
      I_INTERFACE_CHECK                 = ' '
      I_BYPASSING_BUFFER                = ' '
      I_BUFFER_ACTIVE                   = ' '
      I_CALLBACK_PROGRAM                = ' '
      I_CALLBACK_PF_STATUS_SET          = ' '
      I_CALLBACK_USER_COMMAND           = ' '
      I_CALLBACK_TOP_OF_PAGE            = ' '
      I_CALLBACK_HTML_TOP_OF_PAGE       = ' '
      I_CALLBACK_HTML_END_OF_LIST       = ' '
      I_STRUCTURE_NAME                  =
      I_BACKGROUND_ID                   = ' '
      I_GRID_TITLE                      =
      I_GRID_SETTINGS                   =
      IS_LAYOUT                         =
         it_fieldcat                       = it_fieldcat
      IT_EXCLUDING                      =
      IT_SPECIAL_GROUPS                 =
      IT_SORT                           =
      IT_FILTER                         =
      IS_SEL_HIDE                       =
      I_DEFAULT                         = 'X'
      I_SAVE                            = ' '
      IS_VARIANT                        =
      IT_EVENTS                         =
      IT_EVENT_EXIT                     =
      IS_PRINT                          =
      IS_REPREP_ID                      =
      I_SCREEN_START_COLUMN             = 0
      I_SCREEN_START_LINE               = 0
      I_SCREEN_END_COLUMN               = 0
      I_SCREEN_END_LINE                 = 0
      I_HTML_HEIGHT_TOP                 = 0
      I_HTML_HEIGHT_END                 = 0
      IT_ALV_GRAPHICS                   =
      IT_HYPERLINK                      =
      IT_ADD_FIELDCAT                   =
      IT_EXCEPT_QINFO                   =
      IR_SALV_FULLSCREEN_ADAPTER        =
    IMPORTING
      E_EXIT_CAUSED_BY_CALLER           =
      ES_EXIT_CAUSED_BY_USER            =
        TABLES
          t_outtab                          = itab_test
    EXCEPTIONS
      PROGRAM_ERROR                     = 1
      OTHERS                            = 2
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.

    Hello,
    Make the change like this
      DATA: L_R_REPID LIKE SY-REPID.
      L_R_REPID = SY-REPID.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
    I_CALLBACK_PROGRAM = L_R_REPID " CHeck here
    * I_INTERFACE_CHECK = ' '
    * I_BYPASSING_BUFFER = ' '
    * I_BUFFER_ACTIVE = ' '
    * I_CALLBACK_PROGRAM = ' '
    * I_CALLBACK_PF_STATUS_SET = ' '
    * I_CALLBACK_USER_COMMAND = ' '
    * I_CALLBACK_TOP_OF_PAGE = ' '
    * I_CALLBACK_HTML_TOP_OF_PAGE = ' '
    * I_CALLBACK_HTML_END_OF_LIST = ' '
    * I_STRUCTURE_NAME =
    * I_BACKGROUND_ID = ' '
    * I_GRID_TITLE =
    * I_GRID_SETTINGS =
    * IS_LAYOUT =
    it_fieldcat = it_fieldcat
    * IT_EXCLUDING =
    * IT_SPECIAL_GROUPS =
    * IT_SORT =
    * IT_FILTER =
    * IS_SEL_HIDE =
    * I_DEFAULT = 'X'
    * I_SAVE = ' '
    * IS_VARIANT =
    * IT_EVENTS =
    * IT_EVENT_EXIT =
    * IS_PRINT =
    * IS_REPREP_ID =
    * I_SCREEN_START_COLUMN = 0
    * I_SCREEN_START_LINE = 0
    * I_SCREEN_END_COLUMN = 0
    * I_SCREEN_END_LINE = 0
    * I_HTML_HEIGHT_TOP = 0
    * I_HTML_HEIGHT_END = 0
    * IT_ALV_GRAPHICS =
    * IT_HYPERLINK =
    * IT_ADD_FIELDCAT =
    * IT_EXCEPT_QINFO =
    * IR_SALV_FULLSCREEN_ADAPTER =
    * IMPORTING
    * E_EXIT_CAUSED_BY_CALLER =
    * ES_EXIT_CAUSED_BY_USER =
    TABLES
    t_outtab = itab_test
    * EXCEPTIONS
    * PROGRAM_ERROR = 1
    * OTHERS = 2
    IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    * WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    VAsanth

  • Problem in MARA table for the field PSTAT

    Dear all,
    I am facing a problem with mara table , for a material it is showing "C" Classification status in MARA table in field PSTAT
    But if im going to Transaction MM03 with the same material im not able to find any Classification view there(mm03).
    Please help me why is this happening and what is the possible solution for this .
    Many Thanks!!!
    rewards will be given....

    Hi,
    In  relation to the issue, there are a number of reasons why the                              
    classification view may not be displaying in MM02/MM03:                                                                               
    1. OMS2 customising settings for material type                                               
    2. OMT3 customising settings for the screen sequence                                         
    3. Authorisation object M_MATE_STA                                                                               
    If these settings are correct, kindly refer to the note 113966.                          
    If there are inconsistencies in the material status in MARA and MARC                          
    then report ZRMMMSTAT outlined in this note should resolve the issue.                         
    Best regards
    Erika

  • How to control the display of table control

    hi,
    If I dont find any entry in the internal table to be displayed in table control then I should not display the blank table in the screen.
    I tried using if not itab[] is initial in PBO but there(PBO) 'if' is not recognised and it gives syntax error.
    Even if I tried to put the code of table control 'loop at itab[] into wa_tab contrl....'this part in a module and there to put the If condition it gives error to put where after wa_tab.
    Thanks,
    mohan

    hi,
    As i told i had put the if part in the module but then it is the error with syntax check of table control as shown below
    PBO
    module pbo_100.
    loop at itab into wa with contril Tc cursor tc-lines.
    endloop
    pai
    module pai_100
    but here if i create a new module in PBO say module check_table and put the code for table control as
    if not itab is initial
    loop at itab into wa with contril Tc cursor tc-lines.
    endloop
    endif.
    then here error comed with syntax of loop at itab into wa has to be 'where' condition.
    So the problem is i dont want to display the table control in 1st but after some input on the screen then only the table control is to be displayed .
    Let me know if this is clear.
    thanks,
    mohan

  • Displaying 2 tables in 1 frame

    Hi guys,
    I have this problem. I need to display 2 tables (with scroll panes) on a frame. I have tried it a couple of different ways.
    1) Using 1 JPanel that has 1 table and then adding that and another table to a JFrame (GridLayout)
    2) Using GridLayout on a JPanel and adding that to a JFrame
    3) Using 2 JPanel and adding it to a JFrame
    4) Placing both JTables on 1 JPanel and then adding that to the JFrame
    but it doesn't work. It seems that the table that is added first (not to mention the buttons and textfields) doesn't appear (not visible) only the 2nd table is visible.
    This this the latest "version" I've tried.
    import java.awt.*;
    import java.awt.event.*;
    import java.io.*;
    import javax.swing.*;
    import javax.swing.table.TableColumn;
    public class Main {
        //Variable declarations
        private JFrame f;
        private JScrollPane ladderSP, resSP;
        private JPanel p0, p1;
        public Main() {
            createTable();
            createResTable();
            createPanelZero();
            createPanelOne();
            createAndShowGUI();
        private void createAndShowGUI() {
            f = new JFrame("Calculate MW");
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            f.setLayout(new GridLayout(1,2));
            f.setLocation(100, 100);
            f.add(p0);
            f.add(p1);
            f.pack();
            f.setResizable(false);
            f.setVisible(true);
        private void createPanelZero() {
            p0 = new JPanel(new GridLayout(1,2));
            p0.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));
            p0.add(ladderSP);
            p0.add(resSP);
        private void createPanelOne() {
            p1 = new JPanel(new GridLayout(1,1));
            p1.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));
            p1.add(resSP);
        private JTextField setObjSize (JTextField com) {
            Dimension d = new Dimension(80, 23);
            com.setPreferredSize(d);
            com.setMaximumSize(d);
            com.setMinimumSize(d);
            return com;
        private void createTable() {
            // Variables
            String[] colNames = {"Molecular Weight", "Length (cm)"};
            String[][] data;
            data = getLadder(new File("ladder.txt"));
            JTable table = new JTable(data, colNames);
            table.setPreferredScrollableViewportSize(new Dimension(220, 300));
            // Set 1st column uneditable
            JTextField tf = new JTextField();
            tf.setEditable(false);
            TableColumn wtCol = table.getColumnModel().getColumn(0);
            wtCol.setCellEditor(new DefaultCellEditor(tf));
            // Set the table width
            table.setColumnSelectionAllowed(false);
            table.getTableHeader().setResizingAllowed(false); //not allowing resizing of columns
            table.getTableHeader().setReorderingAllowed(false); //not allowing reordering of columns
            table.setRowSelectionAllowed(false);
            ladderSP = new JScrollPane(table);
        private void createResTable() {
            String[] colNames = {"Partition", "Molecular Weight"};
            String[][] data = new String[1][1];
            JTable table = new JTable(data, colNames);
            table.setPreferredScrollableViewportSize(new Dimension(220, 401));
            //table.setEnabled(false);
            table.setRowSelectionAllowed(false);
            table.getTableHeader().setResizingAllowed(false);
            table.getTableHeader().setReorderingAllowed(false);
            resSP = new JScrollPane(table);
            //resSP.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));
        private String[][] getLadder(File file) {
            String line;
            String[] temp = new String[2];
            String[][] sA = new String[30][2];
            int x = 0;
            try {
                BufferedReader reader = new BufferedReader(
                        new FileReader(file));
                while ((line = reader.readLine()) != null) {
                    if (line.length() > 0) {
                        temp = line.split("\\t");
                        sA[x][0] = temp[0];
                        sA[x][1] = temp[1];
                        x++;
            catch (IOException e) {
                System.out.println(e.getStackTrace());
                System.out.println(e.getMessage());
            String[][] tempArr = new String[x][2];
            for (int y=0; y<x; y++) {
                tempArr[y][0] = sA[y][0];
                tempArr[y][1] = sA[y][1];
            return tempArr;
        public static void main(String[] args) {
            Main black = new Main();
    }There are labels and textfields and such but I've cut them out because it seems that having 2 JTables causes the problem to happen.
    Am I doing something wrong?
    Thanks.
    Desmond

    Oh damn I forgot about that, sorry.
    Here is the code again (amended). I've added all the JComponents and made it independent of external sources.
    Does anyone else have this problem or is it only me?
    import java.awt.*;
    import java.awt.event.*;
    import java.io.*;
    import javax.swing.*;
    import javax.swing.table.TableColumn;
    public class Main {
        //Variable declarations
        private JFrame f;
        private JScrollPane ladderSP, resSP;
        private JPanel p0, p1;
        public Main() {
            createTable();
            createResTable();
            createPanelZero();
            createPanelOne();
            createAndShowGUI();
        private void createAndShowGUI() {
            f = new JFrame("Calculate MW");
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            f.setLayout(new GridLayout(1,2));
            f.setLocation(100, 100);
            f.add(p0);
            f.add(p1);
            f.pack();
            f.setResizable(false);
            f.setVisible(true);
        private void createPanelZero() {
            p0 = new JPanel(new GridBagLayout());
            p0.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));
            //set global gridbag constraints
            GridBagConstraints c = new GridBagConstraints();
            c.anchor = GridBagConstraints.EAST;
            c.insets = new Insets(1, 1, 0, 1);
            //length label
            JLabel lengthLabel = new JLabel("Length (cm): ");
            c.gridx = 0;
            c.gridy = 0;
            p0.add(lengthLabel, c);
            //length text field
            JTextField lengthTF = new JTextField();
            lengthTF = setObjSize(lengthTF);
            c.gridx = 1;
            c.gridy = 0;
            p0.add(lengthTF, c);
            //partition label
            JLabel partitionLabel = new JLabel("Number of partititons: ");
            c.gridx = 0;
            c.gridy = 1;
            p0.add(partitionLabel, c);
            //partition text field
            JTextField partitionTF = new JTextField();
            partitionTF = setObjSize(partitionTF);
            c.gridx = 1;
            c.gridy = 1;
            p0.add(partitionTF, c);
            //ladder label
            JLabel ladderLabel = new JLabel("Ladder: ");
            c.gridx = 0;
            c.gridy = 2;
            p0.add(ladderLabel, c);
            //ladder combo box
            JComboBox ladderCB = new JComboBox();
            Dimension d = new Dimension(80, 23);
            ladderCB.setPreferredSize(d);
            ladderCB.setMaximumSize(d);
            ladderCB.setMinimumSize(d);
            c.gridx = 1;
            c.gridy = 2;
            p0.add(ladderCB, c);
            //calculate button
            JButton button = new JButton("Calculate");
            button.addActionListener(new ActionListener() {
               public void actionPerformed(ActionEvent e) {
                   //blah
            c.gridwidth = 2;
            c.fill = GridBagConstraints.HORIZONTAL;
            c.gridx = 0;
            c.gridy = 3;
            p0.add(button, c);
            //table
            c.gridx = 0;
            c.gridy = 4;
            p0.add(ladderSP, c);       
        private void createPanelOne() {
            p1 = new JPanel(new GridLayout(1,1));
            p1.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));
            p1.add(resSP);
        private JTextField setObjSize (JTextField com) {
            Dimension d = new Dimension(80, 23);
            com.setPreferredSize(d);
            com.setMaximumSize(d);
            com.setMinimumSize(d);
            return com;
        private void createTable() {
            // Variables
            String[] colNames = {"Molecular Weight", "Length (cm)"};
            String[][] data = {
                {"220", "2.1"},
                {"160", "2.7"},
                {"120", "3.4"},
                {"100", "3.75"},
                {"90", "3.95"}
            JTable table = new JTable(data, colNames);
            table.setPreferredScrollableViewportSize(new Dimension(220, 300));
            // Set 1st column uneditable
            JTextField tf = new JTextField();
            tf.setEditable(false);
            TableColumn wtCol = table.getColumnModel().getColumn(0);
            wtCol.setCellEditor(new DefaultCellEditor(tf));
            // Set the table width
            table.setColumnSelectionAllowed(false);
            table.getTableHeader().setResizingAllowed(false); //not allowing resizing of columns
            table.getTableHeader().setReorderingAllowed(false); //not allowing reordering of columns
            table.setRowSelectionAllowed(false);
            ladderSP = new JScrollPane(table);
        private void createResTable() {
            String[] colNames = {"Partition", "Molecular Weight"};
            String[][] data = new String[1][1];
            JTable table = new JTable(data, colNames);
            table.setPreferredScrollableViewportSize(new Dimension(220, 401));
            table.setEnabled(false);
            table.setRowSelectionAllowed(false);
            table.getTableHeader().setResizingAllowed(false);
            table.getTableHeader().setReorderingAllowed(false);
            resSP = new JScrollPane(table);
        public static void main(String[] args) {
            Main black = new Main();
    }

  • Adobe Forms, display connected tables

    Hi.
    I have a problem in a Adobe form, to display connected tables.
    I need to make a catalog of product..., then I have in one table, the product with its specifications...etc, and in other table, I have the URLs with the image associated to this product.
    The two tables have the same key (zproduct_key), then I want to get the next structure, but I don't know how to indicate in the Adobe Form table, that in the loop of the table of products, make a loop of the images product and only print the images that corresponse with this product.
    Can you help me??? Thks.
    product1
    image1product1              image2product1
    image3product1              image4product1
    product2
    image1product2             image2product2
    product3
    image1product3

    Please, I need your help..., I don't get to solve this problem.
    Thks again.

  • Alignment problem in Smartform table

    Hi,
          I have a table having four columns no rows. In the first column I have text and in the second, third and fourth I have to display Amounts. The text in the first column changes.
    I am facing the problem when the table goes to second page here the alignment to a particular Text of the first column and the amount in corresponding columns are not aligned properly. In the second, third and fourth columns the amount fields may be or may not be there. The problem comes only when the amount field is not there at the page break.
    Regards,
    Ramu N.

    Hi,
    I have tried printing the borders. The problem comes only when there is no amount field at the page break other wise it is working fine. When there is no amount field at the page break the amount field which is to be printed next is coming down than the actual place where it has to be printed.
    Here I have only 1 row but the number of lines in that row are many.
    Regards,
    Ramu N.

  • User enter sales order, system display " Lock table overflow",

    Hi Experts,
    We are facing a problem, user enter sales order, system display " Lock table overflow",  and using T-code VL02N, system display "You   cannot block the transaction at the moment.
    Please help.
    Thanks,
    Sujit S.

    Dear Sujit,
    [Lock Table Overflow|Re: Lock table overflow]
    Also, Just check with your Basis-Admin in T. Code: TU02 - profile parameter maintenance
    Best Regards,
    Amit

Maybe you are looking for

  • Setting up Snow Leopard Server with Address Book, iCal for Small Business

    Hello Folks, I have a small business with 2-3 people and I want to setup Snow Leopard Server on a Mac Mini. I have everything in place, RAID, Backup drive etc. What I need is a guide on how to setup the server correctly and how to setup Address Book

  • Problem in mapping remoteobject on server side

    Hello all I am trying to use remoteobjects in Flex and PHP via Zend_AMF.  I am having problem in mapping the data object in flex with the one in PHP. Here's my code.... private function getAuthors(event:Event):void      serviceRO = new RemoteObject()

  • My IPhoto Library is unreadable Tried everything recommended even deleted IPhoto and I still get the error message

    Hi I keep getting the error message  (photo library is either in use by another application or has become unreadable ) I've tried everything that has been suggested, I've even deleted Iphoto and reinstalled it ,but this doesn't work, I even reinstall

  • IR Extender for QIP-7100 (-1 and -2)

    Hey Everyone I see posts about IR extenders across the boards, but no working links Does anyone know where I can obtain these IR extenders?  I have two boxes and I'm getting killed with IR Repeaters, they just aren't the same. I bought an IR receiver

  • CPO SAP Adapter pre-requisite Check Error

    TEO 2.3.5 SAP adpater Pre-requisite Error          Trying to setup an SAP ABAP connection. Satisfied the pre-requisite of SAP NCO sapnco30dotnet40P_7-20007348, still get the following error while checking the pre-requisite. Unable to check for prereq