Problem in deleting Proxy Objects

Hi All,
I have deleted the Proxy but the Proxy Objects(Classes, Tables, etc.,) are still not deleted. I tried deleting them in se24/se11 but it says it is to be edited in SPROXY, but it is no longer visible in SPROXY. Is there some way to delete it?
Thanks,
Divya.

Hi Divya,
Do you want to delete complete proxy objects or you want to regenerate it?
If I am not wrong all object get deleted when you delete proxy object. Anyway as suggested you can delete complete package..
If not try to regerate proxy and delete all objects again.
Hope this will help.
Nilesh

Similar Messages

  • How to delete proxy Objects/structure in R/3

    Hi Experts,
    In my scenario i generated ABAP proxy. I want to delete that proxy now. I am selected the particular proxy and i deleted. but here only service interface only deleting. not deleting all objects like message type and data type and proxy generated objects are not deleting.
    While i am deleting it was allowing me to delete only root object. under root table structure and datatype/message type objects are not deleting. here even i deleted lock entrys also.
    Here my question is how to delete all proxy objects. please give me your valuable suggestions.
    thanks
    Srini

    refer this Problem in deleting Proxy Objects that talks about the same issue .

  • Name Problem while creating Proxy

    Dear All,
    While creating a proxy we are getting warning with regards to NAMES PROBLEM.
    Under Names Problem tab there are 3 comments:
    1. Object Already Exists
    2. Name already exists
    3. Special Character / underscore at position 30 deleted.
    As per my understanding the objects already exists, but I have deleted those objects create earlier by deleting the proxy.
    Is there any way from where we can delete already deleted objects?
    Is it because of Cache refresh, if yes than please tell how to refresh Cache in ECC system?
    While activating any Functional Module in same ECC system, I can see all earlier created objects although I have deleted all of them while deleting proxy objects.
    Please help!!
    Regards
    Edited by: Chanakya Sharma on Jun 21, 2010 11:16 AM

    > 1. Object Already Exists
    > 2. Name already exists
    > 3. Special Character / underscore at position 30 deleted.
    >
    > As per my understanding the objects already exists, but I have deleted those objects create earlier by deleting the proxy.
    Table structures are not deleted automatically. Check in SE80 for all objects created with SPROXY.
    The issue could happen also, when name of data type, message type and message interface is equal. Then the creation ot the data type objects fails, is there is already an object related to message type.
    For proxy genaration you should name all ojects with a prefix, like DT for data type.

  • Error "Problem occured locking WS object" while activating Proxy

    Hi All,
    I have move an Inbout proxy to a different Client(QA system) and in QA system that proxy shows incative.
    When i tried to activate that proxy/service in Sproxy, getting error "Problem occured locking WS object".
    Proxy was active in development system and was working fine without any error.
    Please provide some help, what need to be done to fix this issue
    Thanks
    Harshit

    Hi Harshit,
    Try with the following steps in sequence:
    1. Re-genarate the proxy in Development - Create a New Transport Reuest.
    2. Transport the Proxy from PI Dev to PI OA
    3. Confirm the Proxy in PI QA and then, transport the re-generated Request from ECC Dev to ECC QA.
    Regards,
    Pranav.

  • Problem in ABAP proxy

    hai all,
    iam doing a abap proxy scenario in the following flow.
    Flow: XI (Client 800) -
    > XI (Client 001) ---> XI (Client 800)
    now when iam trying to send the data from 800 client to 001 client
    in 001 client sxmb_moni
    it is giving one error
    <SAP:Category>XIProxy</SAP:Category>
      <SAP:Code area="ABAP">INTERFACE_REGISTRATION_ERROR</SAP:Code>
      <SAP:P1>ifmmessif</SAP:P1>
      <SAP:P2>mi_flietdata_OA</SAP:P2>
      <SAP:P3>urn:proxytoproxy</SAP:P3>
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>No implementing class registered for the interface (ABAP interface, request message mi_flietdata_OA, request message, namespace urn:proxytoproxy)</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
    can any one solve this problem.
    regards,
    Madhav Poosarla.

    hai sumit,
    i have generated proxy object as a local object,
    previously i have created 4 levels of package
    Structure Package(ZXI_PACKAGE)----
    Level1
         Main Package(ZSCSLSAP)----
    Level2
                        Sub Package(ZSIVA_SCSLCOMP)----
    Level3
                       SubPackage   (ZSIVA_SCSLCOMP_PROXY2PROXY)--Level4
    and i have added SAI_TOOLS to
    ZSIVA_SCSLCOMP_PROXY2PROXY sub package,
    at that time i have tried to add SAI_TOOLS to  ZXI_PACKAGE but it was not allowed.
    now i will create one more package hirachy and and i will try to execute again.
    now i will delete my outbound proxy and will generate it again.
    yes, mi_flietdata_OA  is outbound interface.
    thanks & regards,
    Madhav Poosarla.

  • Error in FM DDIF_NAMETAB_GET when deleting BI objects via transport request

    Dear all,
    when importing a transport request in which several types of BI objects are deleted (Infocubes, DSO's, transformations, routines, DTP's, query elements, infosets, process chains). The import terminates only when transporting from acceptance to production with return code 12 due to an uncaught exception:
    Transporting from development to acceptance did not raise this exception.
    The ST22 dump (see below) refers in the "contents of system fields" section to a DSO, and to post-import activities. The DSO and the associated tables could not be found (rsa1 & se16), since they are deleted as desired.
    Some of the relevant notes that I have found do refer to DSO related problems, but they all indicate to install SP19 which we already have installed (BW 7.0 Patch Level 23)
    Could you please assist in pointing out potential solutions based on the information from the ST22 Runtime Error below?
    Kind regards,
    PJ
    Runtime Errors         UNCAUGHT_EXCEPTION
    Except.                CX_RS_PROGRAM_ERROR
    Date and Time          08.02.2011 10:48:14
    Short text
        An exception occurred that was not caught.
    What happened?
        The exception 'CX_RS_PROGRAM_ERROR' was raised, but it was not caught anywhere
        along the call hierarchy.
        Since exceptions represent error situations and this error was not
        adequately responded to, the running ABAP program
        'CL_RSDD_DS====================CP' has to be
        terminated.
    Error analysis
        An exception occurred which is explained in detail below.
        The exception, which is assigned to class 'CX_RS_PROGRAM_ERROR', was not caught
        and therefore caused a runtime error.
        The reason for the exception is:
        Error in BW: Error in DDIF_NAMETAB_GET
    How to correct the error
        If the error occurs in a non-modified SAP program, you may be able to
        find an interim solution in an SAP Note.
        If you have access to SAP Notes, carry out a search with the following
        keywords:
        "UNCAUGHT_EXCEPTION" "CX_RS_PROGRAM_ERROR"
        "CL_RSDD_DS====================CP" or "CL_RSDD_DS====================CM001"
        "APPEND_DS_TEC_FIELDS"
    System environment
        SAP-Release 700
        Application server... "dp1ci"
        Network address...... "<removed>"
        Operating system..... "HP-UX"
        Release.............. "B.11.23";
        Hardware type........ "ia64"
        Character length.... 16 Bits
        Pointer length....... 64 Bits
        Work process number.. 45
        Shortdump setting.... "full"
        Database server... "spisap02"
        Database type..... "ORACLE"
        Database name..... "DP1"
        Database user ID.. "SAPBIW"
        Terminal................. " "
        Char.set.... "C"
        SAP kernel....... 700
        created (date)... "Dec 14 2009 20:47:35"
        create on........ "HP-UX B.11.23 U ia64"
        Database version. "OCI_102 (10.2.0.1.0) "
        Patch level. 236
        Patch text.. " "
        Database............. "ORACLE 10.1.0.*.*, ORACLE 10.2.0.*.*, ORACLE 11.2.*.*.*"
        SAP database version. 700
        Operating system..... "HP-UX B.11";
        Memory consumption
        Roll.... 5979936
        EM...... 0
        Heap.... 1459888
        Page.... 40960
        MM Used. 6988880
        MM Free. 415648
    User and Transaction
        Client.............. 000
        User................ "DDIC"
        Language key........ "E"
        Transaction......... " "
        Transactions ID..... "4D5111661004210BE10000000AFA2502"
        Program............. "CL_RSDD_DS====================CP"
        Screen.............. "SAPMSSY0 1000"
        Screen line......... 6
    Information on where terminated
        Termination occurred in the ABAP program "CL_RSDD_DS====================CP" -
         in "APPEND_DS_TEC_FIELDS".
        The main program was "RDDEXECU ".
        In the source code you have the termination point in line 61
        of the (Include) program "CL_RSDD_DS====================CM001".
        The program "CL_RSDD_DS====================CP" was started as a background job.
        Job Name....... "RDDEXECL"
        Job Initiator.. "DDIC"
        Job Number..... 10475900
    Source Code Extract
    Line  SourceCde
       31         RAISE EXCEPTION TYPE cx_rs_program_error
       32           EXPORTING
       33             text = 'Invalid DSO subtype'.                   "#EC NOTEXT
       34     ENDCASE.
       35
       36 *   get table name from DDIC
       37     CALL METHOD cl_rsd_odso=>get_tablnm
       38       EXPORTING
       39         i_odsobject = n_infoprov
       40         i_tabt      = l_tab
       41       IMPORTING
       42         e_tablnm    = l_tablnm
       43       EXCEPTIONS
       44         OTHERS      = 1.
       45
       46     IF sy-subrc <> 0.
       47       RAISE EXCEPTION TYPE cx_rs_program_error
       48         EXPORTING
       49           text = 'Error in CL_RSD_ODSO=>get_Tablnm'.        "#EC NOTEXT
       50     ENDIF.
       51
       52     CALL FUNCTION 'DDIF_NAMETAB_GET'
       53       EXPORTING
       54         tabname   = l_tablnm
       55       TABLES
       56         dfies_tab = l_t_comp
       57       EXCEPTIONS
       58         not_found = 1
       59         OTHERS    = 2.
       60     IF sy-subrc <> 0.
    >>>>>       RAISE EXCEPTION TYPE cx_rs_program_error
       62         EXPORTING
       63           text = 'Error in DDIF_NAMETAB_GET'.        "#EC NOTEXT
       64     ENDIF.
       65
       66
       67   ELSE.
       68 *   model table only needed for standard datastore objects, for
       69 *   write optimized DSOs target table is a changelog that is fully described by
       70 *   dta_pro (infoobjects)
       71     CHECK n_s_dta-odsotype = rsdod_c_type-standard.
       72
       73 *   get model table fields to add
       74     CALL METHOD cl_rsd_odso=>get_mod_tab
       75       IMPORTING
       76         e_mod_fld_ur = l_t_comp.
       77   ENDIF.
       78
       79 * according to T.B. ( 13.04.2007) the correct position is
       80 * not needed in the D version
    Contents of system fields
    Name     Val.
    SY-SUBRC 0
    SY-INDEX 0
    SY-TABIX 1
    SY-DBCNT 1
    SY-FDPOS 0
    SY-LSIND 0
    SY-PAGNO 0
    SY-LINNO 1
    SY-COLNO 1
    SY-PFKEY
    SY-UCOMM
    SY-TITLE Execute Post-Import Methods and XPRAs for Transport Request
    SY-MSGTY E
    SY-MSGID DA
    SY-MSGNO 300
    SY-MSGV1 /BIC/AV_AMOFCB40
    SY-MSGV2
    SY-MSGV3
    SY-MSGV4
    SY-MODNO 0
    SY-DATUM 20110208
    SY-UZEIT 104759
    SY-XPROG SAPLSYST
    SY-XFORM SYSTEM_HOOK_OPEN_DATASET

    Hi All
    We are also experiencing this same error when transporting deletions of multiple objects.
    Although the transport was cancelled in the destination system (production) it appears to have largely deleted all objects successfully except for DSOs.
    The DSOs still appear in the table RSDODSO (via SE11) but are not visible anywhere else.  When you try to view the DSO via RSDODS a warning appears saying "DataStore object to be deleted by transport -> delete only allowed".  If you try to delete them in this transaction the same ABAP runtime error as the transport appears.
    Any assistance would be greatly appreciated!
    Regards
    David

  • Error in activating proxy object

    hi
    when i m trying to activate my proxy objects in CLIENT PROXY scenario in the ECC , the following error message is being prompted :
    Erro in object editing :
    "SAP object CLAS CO_PRXY_MI cannot be assigned to
    package ZXIPACKAGE:
    A package has been created in ECC by the name of zxipackage .
    Pl help to rectify the problem
    rgds
    shazia

    Hi,
    You should assign it to Z-package ie.e Customized one not SAP package
    Use a prefix of Z when doing the generation and you can use your own development class. you are trying to create objects in the SAP namespace.
    The Proxy object should have to be in non SAP package only, if its customized.
    As while activating the ABAP proxy internally Class and verious methods as well as some data typs get creaetd which are to be assigned it Z-package.
    refer below link
    Tips for Generating ABAP Proxies
    http://help.sap.com/saphelp_nw04s/helpdata/en/2b/f49b21674e8c44940bb3beafd83d5c/frameset.htm
    thanks
    Swarup

  • Error when creating a Proxy Object from WSDL

    Hi,
    when creating a proxy object in abap based on the [WSDL|http://download.mapandguide.com/EN/dev/xserver/XLocate-1.6.0.3.wsdl] i get the error 'Incorrect value: Unknown Type Referencens0:ArrayOfString'.
    1- Is there a conflict with the type 'String' that's also a type in ABAP
    <complexType name="ArrayOfString">
      <sequence>
      <element name="String" type="xsd:string" minOccurs="0" maxOccurs="unbounded" nillable="true" />
      </sequence>
      </complexType>
    2- Is it a name space problem?
    xmlns:ns0="http://types.xlocate.xserver.ptvag.com"
    type="ns0:ArrayOfString"
    3- Something else?
    Please Help!
    Thank
    Fouad

    Hi Isaias,
    we are working with this versions:
    SAP_BASIS     700     0015     SAPKB70015     SAP Basiskomponente
    SAP_AP                     700     0013     SAPKNA7013     SAP Application Platform
    We are not working with developer studio, only with the regular tools of the abap development workbench Transaction SE80.
    Thanks,
    Fouad

  • Problem in ABAP Proxy generation

    Hi,
    I have generated a proxy in development systems. And moved to pre-production systems. By mistake, one of the proxy generated data types is not moved to pre-production. So, all the dependant data types are not generated in pre-production. Hence proxy is ended up with an errors.
    Now, I am unable to understand how can I solve this problem.
    Could you please help me out with few steps, so that my proxy gets successfully generated with all the data types in pre-production system.
    Thanks for the help.
    cheers
    san

    > Could you please help me out with few steps, so that my proxy gets successfully generated with all the data types in pre-production system.
    I suppose that all your proxy objects are in the same package.
    So you simply transport the whole package.
    If you do not know how to transport, then ask your basic admins, they should be able to tell you.

  • Deletion of Objects in ABAP Workbench

    Hi,
    I want do delete an self defined interface in the ABAP Workbench. But for some reason it is not possible to delete this interface, although its not used anywhere. I got the message
    Object cannot be edited with Class Builder
    Message no. OO612
    But where else should I delete the interface if not in the class builder or in the workbench?
    Any ideas how to solve this problem?

    Good day,
    I also ran into this issue when trying to deploy some wd objects with SAPlink.
    I managed to delete the objects by using the "OO_INTERFACE_DELETE" function module. There is also a function module called "OO_CLASS_DELETE" to delete classes.
    In either case you just populate the parameters in the following way:
    INTERFACE (or CLASS) = <your class\interface name>
    COMMIT = 'X'
    FORCE = 'X'
    Hope this helps.
    Regards,
    Shaun

  • Problem in deleting the orders under Custom category.

    Hi friends,
            I am facing some problem in deleting the Orders which were created under custom category. In fact we are creating Intransits under Standard category "EI" as well as Custom Category "ZP". I am able to modify the intransits created under "EI" but when I tried to change or delete the orders created under Category "ZP", I am getting a messag triggered by BAPI as " Order can not be changed". atleast I need to delete the order if change is not possible. I am using the BAPI "BAPI_SLSRVAPS_CREATEINTRANS" to create intransits under "EI" and i am using the same BAPI with BADI implementation to "SAPAPO_DM_PO_CHANGE" to create intransits under "ZP". Based on the condition I am changing the am changing the category from EI  to ZP in the BADI.
           I am able to change or delete the orders created under the EI but when I tried to change or delete the orders under ZP its giving me a message as Order can not be changed.
           One more thing is If I go to Tcode /SAPAPO/RLCDEL trying to delete all the orders based on category. I am able to see all the orders under created under EI. If  I tried to delete the orders based on Custom category ZI it is giving me the message  as "No Orders exists in Live cache". But I am able to see the orders in tcode "SAPAPO/RRP3".
           Can any one help me out in making this done. Please help me out in this.
    Thanks & Regards,
    Ramana.

    Hi Visu,
               I really appreciate your gr8 help. Hope you can understand my problem that I am not a SCM person. Still you are responding to my questions with great patience.
               Here what I found is I found the record in OM19 transaction in the object "/SAPAPO/OM_ORDER_EXT_STR". But the interesting is its giving me the GUID as blank . there is empty value in that field. where as the program "/SAPAPO/OM_DELETE_INCON_ORDERS" is asking for the "order GUID".
             can you help me out in finding the order guid and deleting this order.
    Regards,
    Ramana.

  • Problem in deletion of data from DSO

    Hi All,
    We are facing a problem in deleting data from Data Store Object.I am trying to delete data by using right click option on DSO -->Delete Data.It is saying "The system has not finished loading request no : XYZ".
    I have tried to trace that request and found that request is running in background and the related process chain was deleted.Also no jobs of that request are available.
    Now i want to delete one field from that particular DSO and it is not allowing because we are unable to delete data.Actually no data is present in Active table but we have data in Change Log table which we are unable to delete.
    Thanks in Advance.
    Regards,
    Jaya.

    Hi,
    Any way u r deleted that processchain if it is there u can kill that job through process chain by killing that job,if it is not possible
    u should ask ur BASIS people in SM50 or SMICM tcode we can kill our job but ask the basis people.
    once u deleted that then delete the data in hange log then (other once the data is there through that DTP it will not allow u to delete so u delete the data) then go for deleting that DTP also.
    Thanks & regards
    sathsih

  • Project Online - Can't Delete Resource and User from Delete Enterprise Objects

    I would like to link a resource account to a user account but I ran into an error: "The resource account
    is already in use.".  This is a known issue which I attempted to resolve by following the instructions in KB2881398.
    However when deleting the selected resource from Delete Enterprise Objects I get a message indicating success ("The
    selected Resources and Users have been deleted.") but the duplicate user is still in the listing in Delete Enterprise Objects and when attempting to link the remaining resource to a user logon account I still get the error
    "The resource account is already in use."
    Why is the user not deleted even though Delete Enterprise Objects reports success and how can I delete these duplicates to be able to successfully link the account?

    Hi,
    This might be due to your Exchange Sync issue, where your project workspace is unable to delete that user from local DB. Try following steps to diagnose the problem:
    1) Go to your Resource Pool, DELETE a resource.
    2) While resource is being Deleted, open another window 
    Server Settings -> Manage Queue Jobs
    3) Here you can view the progress of your current Resource Deletion update, check if all goes smooth and your Resource is deleted successfully by showing process completion 100% :
     ( to view any error look at the
    last column of table on Manage Queue Job page)
    4) Cross check your Resource by running Resource Availability Report.
    Basically this will give you a fair idea of your resource deletion problems and how system is responding to it.
    Regards

  • Problem of deletion of rows in jtable, table refreshing too

    Hi,
    I have a table with empty rows in the beginning with some custom properties( columns have fixed width...), later user would be adding to the rows to this table and can delete, I've a problem while deleting the rows from table,
    When a selected row is deleted the model is also deleting the data but the table(view) is not refreshed.
    Actually i'm selecting a cell of a row, then hitting the delete button.
    So the model is deleting the information, but i'm not able to c the fresh data in table( especially when the last cell of last row is selectd and hit the delete button, i am getting lots of exception)
    Kindly copy the below code and execute it, and let me know,
    * AuditPanel.java
    * Created on August 30, 2002, 3:05 AM
    import javax.swing.*;
    import java.awt.*;
    import javax.swing.table.*;
    import java.awt.event.*;
    import javax.swing.event.*;
    import java.util.Vector;
    * @author yaman
    public class AuditPanel extends javax.swing.JPanel {
    // These are the combobox values
    private String[] acceptenceOptions;
    private Vector colNames;
    private Color rowSelectionBackground = Color.yellow;
    private int rowHeight = 20;
    private int column0Width =70;
    private int column1Width =96;
    private int column2Width =327;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JButton jButton2;
    private javax.swing.JButton jButton1;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JTable jTable1;
    /** Creates new form AuditPanel */
    public AuditPanel() {
    public void renderPanel(){
    initComponents();
    public String[] getAcceptenceOptions(){
    return acceptenceOptions;
    public void setAcceptenceOptions(String[] acceptenceOptions){
    this.acceptenceOptions = acceptenceOptions;
    public Vector getColumnNames(){
    return colNames;
    public void setColumnNames(Vector colNames){
    this.colNames = colNames;
    public Vector getData(){
    Vector dataVector = new Vector();
    /*dataVector.add(null);
    dataVector.add(null);
    dataVector.add(null);
    return dataVector;
    /** This method is called from within the constructor to
    * initialize the form.
    * WARNING: Do NOT modify this code. The content of this method is
    * always regenerated by the Form Editor.
    private void initComponents() {
    java.awt.GridBagConstraints gridBagConstraints;
    jPanel2 = new javax.swing.JPanel();
    jButton1 = new javax.swing.JButton();
    jButton2 = new javax.swing.JButton();
    jPanel1 = new javax.swing.JPanel();
    jTable1 = new javax.swing.JTable();
    setLayout(new java.awt.GridBagLayout());
    setBorder(new javax.swing.border.EmptyBorder(0,0,0,0));
    jPanel2.setLayout(new java.awt.GridBagLayout());
    jPanel2.setBorder(new javax.swing.border.EmptyBorder(0,0,0,0));
    jButton1.setText("Add");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    gridBagConstraints.ipadx = 8;
    gridBagConstraints.insets = new java.awt.Insets(0, 1, 5, 0);
    gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST;
    jPanel2.add(jButton1, gridBagConstraints);
    jButton2.setText("Delete");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 1;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST;
    jPanel2.add(jButton2, gridBagConstraints);
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 2;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.insets = new java.awt.Insets(0, 5, 0, 0);
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTH;
    add(jPanel2, gridBagConstraints);
    jPanel1.setLayout(new java.awt.GridBagLayout());
    jPanel1.setBorder(new javax.swing.border.BevelBorder(javax.swing.border.BevelBorder.LOWERED, Color.black, Color.gray) );
    jTable1.setModel(new javax.swing.table.DefaultTableModel(getData(), getColumnNames()));
    // get all the columns and set the column required properties
    java.util.Enumeration enum = jTable1.getColumnModel().getColumns();
    while (enum.hasMoreElements()) {
    TableColumn column = (TableColumn)enum.nextElement();
    if( column.getModelIndex() == 0 ) {
    column.setPreferredWidth(column0Width);
    column.setCellEditor( new ValidateCellDataEditor(true) );
    if( column.getModelIndex() == 1) {
    column.setPreferredWidth(column1Width);
    column.setCellEditor(new AcceptenceComboBoxEditor(getAcceptenceOptions()));
    // If the cell should appear like a combobox in its
    // non-editing state, also set the combobox renderer
    //column.setCellRenderer(new AcceptenceComboBoxRenderer(getAcceptenceOptions()));
    if( column.getModelIndex() == 2 ) {
    column.setPreferredWidth(column2Width); // width of column
    column.setCellEditor( new ValidateCellDataEditor(false) );
    jScrollPane1 = new javax.swing.JScrollPane(jTable1);
    jScrollPane1.setPreferredSize(new java.awt.Dimension(480, 280));
    jTable1.setMinimumSize(new java.awt.Dimension(60, 70));
    //jTable1.setPreferredSize(new java.awt.Dimension(300, 70));
    //jScrollPane1.setViewportView(jTable1);
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTH;
    jPanel1.add(jScrollPane1, gridBagConstraints);
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 0;
    add(jPanel1, gridBagConstraints);
    // set the row height
    jTable1.setRowHeight(rowHeight);
    // set selection color
    jTable1.setSelectionBackground(rowSelectionBackground);
    // set the single selection
    jTable1.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
    // avoid table header to resize/ rearrange
    jTable1.getTableHeader().setReorderingAllowed(false);
    jTable1.getTableHeader().setResizingAllowed(false);
    // Table header font
    jTable1.getTableHeader().setFont( new Font( jTable1.getFont().getName(),Font.BOLD,jTable1.getFont().getSize() ) );
    jButton1.setMnemonic(KeyEvent.VK_A);
    // action of add button
    jButton1.addActionListener( new ActionListener(){
    public void actionPerformed(ActionEvent actionEvent){
    // If a button press is the trigger to leave a JTable cell and save the data in model
    if(jTable1.isEditing() ){
    //System.out.println("table is edition ");
    String text=((javax.swing.text.JTextComponent)jTable1.getEditorComponent()).getText();
    jTable1.setValueAt(text,jTable1.getSelectedRow(),jTable1.getSelectedColumn()) ;
    jTable1.getCellEditor().cancelCellEditing();
    // find out total available rows
    int totalRows = jTable1.getRowCount();
    int cols = jTable1.getModel().getColumnCount();
    if( jTable1.getModel() instanceof DefaultTableModel ) {
    ((DefaultTableModel)jTable1.getModel()).addRow(new Object[cols]);
    int newRowCount = jTable1.getRowCount();
    // select the first row
    jTable1.getSelectionModel().setSelectionInterval(newRowCount-1,newRowCount-1);
    jButton2.setMnemonic(KeyEvent.VK_D);
    // action of Delete button
    jButton2.addActionListener( new ActionListener(){
    public void actionPerformed(ActionEvent actionEvent){
    int totalRows = jTable1.getRowCount();
    // If there are more than one row in table then delete it
    if( totalRows > 0){
    int selectedOption = JOptionPane.showConfirmDialog(null,"Are you sure you want to delete this audit row?","Coeus", JOptionPane.YES_NO_OPTION);
    // if Yes then selectedOption is 0
    // if No then selectedOption is 1
    if(0 == selectedOption ){
    // get the selected row
    int selectedRow = jTable1.getSelectedRow();
    System.out.println("Selected Row "+selectedRow);
    if( selectedRow != -1 ){
    DefaultTableModel dm= (DefaultTableModel)jTable1.getModel();
    java.util.Vector v1=dm.getDataVector();
    System.out.println("BEFOE "+v1);
    v1.remove(selectedRow);
    jTable1.removeRowSelectionInterval(selectedRow,selectedRow);
    System.out.println("After "+v1);
    }else{
    // show the error message
    JOptionPane.showMessageDialog(null, "Please Select an audit Row", "Coeus", JOptionPane.ERROR_MESSAGE);
    } // end of initcomponents
    class AcceptenceComboBoxRenderer extends JComboBox implements TableCellRenderer {
    public AcceptenceComboBoxRenderer(String[] items) {
    super(items);
    public Component getTableCellRendererComponent(JTable table, Object value,
    boolean isSelected, boolean hasFocus, int row, int column) {
    if (isSelected) {
    setForeground(table.getSelectionForeground());
    super.setBackground(rowSelectionBackground);
    } else {
    setForeground(table.getForeground());
    setBackground(table.getBackground());
    // Select the current value
    setSelectedItem(value);
    return this;
    class AcceptenceComboBoxEditor extends DefaultCellEditor {
    public AcceptenceComboBoxEditor(String[] items) {
    super(new JComboBox(items));
    } // end editor class
    public class ValidateCellDataEditor extends AbstractCellEditor implements TableCellEditor {
    // This is the component that will handle the editing of the
    // cell value
    JComponent component = new JTextField();
    boolean validate;
    public ValidateCellDataEditor(boolean validate){
    this.validate = validate;
    // This method is called when a cell value is edited by the user.
    public Component getTableCellEditorComponent(JTable table, Object value,
    boolean isSelected, int rowIndex, int vColIndex) {
    if (isSelected) {
    component.setBackground(rowSelectionBackground);
    // Configure the component with the specified value
    JTextField tfield =(JTextField)component;
    // if any vaidations to be done for this cell
    if(validate){
    //tfield.setDocument(new JTextFieldFilter(JTextFieldFilter.NUMERIC,4));
    tfield.setText( ((String)value));
    // Return the configured component
    return component;
    // This method is called when editing is completed.
    // It must return the new value to be stored in the cell.
    public Object getCellEditorValue() {
    return ((JTextField)component).getText();
    // This method is called just before the cell value
    // is saved. If the value is not valid, false should be returned.
    public boolean stopCellEditing() {
    String s = (String)getCellEditorValue();
    return super.stopCellEditing();
    public void itemStateChanged(ItemEvent e) {
    super.fireEditingStopped();
    }//end of ValidateCellDataEditor class
    public static void main(String args[]){
    JFrame frame = new JFrame();
    AuditPanel auditPanel = new AuditPanel();
    frame.getContentPane().add(auditPanel);
    auditPanel.setAcceptenceOptions(new String[]{"Accepted", "Rejected", "Requested"} );
    java.util.Vector colVector = new java.util.Vector();
    colVector.add("Fiscal Year");
    colVector.add("Audit Accepted");
    colVector.add("Comment" );
    auditPanel.setColumnNames( colVector);
    auditPanel.renderPanel();
    frame.pack();
    frame.show();

    Hi,
    I've got the solution for it. As when the cursor is in cell of
    a row and hit the delete button, the data in that cell is not saved,
    So i'm trying to save the data first into the model then firing the action event by doing this ..
    jButton2.addActionListener( new ActionListener(){       
    public void actionPerformed(ActionEvent actionEvent){           
    // If a button press is the trigger to leave a JTable cell and save the data in model
    if(jTable1.isEditing() ){                   
    String text=((javax.swing.text.JTextComponent)jTable1.getEditorComponent()).getText();
    jTable1.setValueAt(text,jTable1.getSelectedRow(),jTable1.getSelectedColumn()) ;
    jTable1.getCellEditor().cancelCellEditing();
    // HERE DO THE DELETE ROW OPERATION
    <yaman/>

  • Facing lot of problems with the DATA object  -- Urgent

    Hi,
    I am facing lot of problems with the data object in VC.
    1. I created the RFC initially and then imported the data object in to VC. Later i did some modifications to RFC Function module,and when i reload the data object, I am not able to see the new changes done to RFC in VC.
    2. Even if i delete the function module, after redeploying the IVIew, results are getting displayed.
    3. How stable is the VC?
      I restarted the sql server and portal connection to R3 is also made afresh.... still i am viewing such surprise results..
    please let me know what might be the problem.

    Hi Lior,
    Are u aware of this problem.
    If yes, please let me know...
    Thanks,
    Manjunatha.T.S

Maybe you are looking for

  • Goods issue for plant maintenance order

    Goods issue with ref to plant maintenance order( Componenets of the order) is not possible in transaction code MIGO. Error message " MIGO is not possible for the refurbishment order". Goods issue for the same order can be posted with transaction MB!A

  • Help in FM 'FILE_GET_NAME_USING_PATH'.

    Hi, I have to upload data in a flat file from the internal table to the application server.I am trying to use the FM 'FILE_GET_NAME_USING_PATH' to get the phiysical file path for upload into the application server.The FM is giving an error that 'defi

  • Help For A Novice User Of Adobe Audition v.3

    We purchased Adobe Audition vs. 3 to record programs to put on the radio. The trouble is I am a novice with this program. Where do I go to learn how to use this program? The only thing I need for now is to know how to : (1)Record a voice track (2)Ins

  • XML cannot fully get all metadata with "getItemRequest"

    Hi All, My client is using GroupWise 7.0.3. We want to get the dropdown list custom field data of document, but the XML file cannot fully record all corresponding custom field data by using "getItemRequest". For example: GroupWise Client - Document 1

  • How to remove fading from text?

    Hey everyone, I'm trying to have my text not fade in.  I want it to show up immediately, and disappear immediately.  I don't see any way to change the time of the fade in/fade out like you can do for other video clips.  Is there a way?  Is there that