Delete a single Record

Hai,
I used the Jdeveloper11.1.1.3.0 ,I need a delete a particular record in a table by programmatically in ADF .
Thanks & Regards,
(Nanthini.D).

public String delete_action() {
deleteOnTable(this.employees_table);
return null;
public void deleteOnTable(RichTable myTab) {
RowKeySet rowKeySet = (RowKeySet)myTab.getSelectedRowKeys();
CollectionModel cm = (CollectionModel)myTab.getValue();
for (Object facesTreeRowKey : rowKeySet) {
cm.setRowKey(facesTreeRowKey);
JUCtrlHierNodeBinding rowData = (JUCtrlHierNodeBinding)cm.getRowData();
rowData.getRow().remove();
}You can use the above code as well
Regards,
Srinidhi
Edited by: Srinidhi on Mar 30, 2011 7:40 PM

Similar Messages

  • Delete a single record of specific Master Data

    Hello Experts,
    We have this InfoObject '0FUND' which is time-dependent. For a specific Master Data, exp: 40002, we have a list of records, that vary in 'Valid from' and 'Valid To'. Example:
    FMArea__Fund____ValidTo____ValidFrom____Attribute...
    CM______40002__31.12.2001__01.01.1000_____MOD
    CM______40002__31.12.2002__01.01.2002_____MOD
    CM______40002__31.12.2003__01.01.2003_____MOD
    This master data as no transactional data in any InfoProvider. When we try to delete a single record, the system delete all the records for 0FUND=40002.
    Is there possible to make a selective deletion, in order to choose a single record?
    At same time, we delete from the InfoCube all transactional data assign to a specific Master Data in a particular year. Exp (0FUND=40022; 0FISCYEAR=2004). When we try to delete this specific record:
    FMArea__Fund____ValidTo____ValidFrom____Attribute...
    CM_____40022___31.12.2004__01.01.2004_____MOD
    The BW System doesn't allow deleting this specific record. Why this occur, its necessary delete all the transactional data assigned to 40022 Master Data??
    Best Regards,
    IB

    Hi IB,
    Yes. It is necessary to delete the transacton data where the master data is referred before deleting the master data. This because the master data value in the Cube/ODS looks up at the SID table for the master data.
    Bye
    Dinesh

  • How to delete the single record from the  ODS

    HI,
       I want to DELETE  the particular record from ODS.. how to delete that..
    plz give me the solution.. it's urgent..
    with regards
    @jay

    Hi Prakash,
        You can delete a particular record from ODS by specifying the key field name in Selective deletion button available in Contents tab in the manage screen of ODS. But it will only delete the record from the active data table and not from the Change log and new data table . You should be very carefull if you are doing in Production system as there is chance of deleting other records accidentally.
    Go to Selective deletion button - > Click on delete selection -> Enter the key field values of the record you want to delete-> Press save button to save as Variant -> Go back and click on selection button -> Chosse the background job type -> Click on start button.
    Regards,
    Prakash

  • TREX: delete single records in an index

    Hey guys,
    is there a way to delete one single record on a TREX index?
    I am using function module TREX_EXT_UPDATE_DOC_ATTRIBUTES.
    I don't want to delete the whole index because it takes to much time to build it up again. Therefore i want delete single records. I have the doc-key to identify the record but how to delete it?
       thx,
          Ming

    You set the field doc_action = 'D' for deindexing records, and set doc_action = 'I' for indexing records, and then call the function module    
    ls_doc-doc_key = "enter doc key here
    ls_doc-doc_action = 'D'. "for deindexing
    "set other fields similarly
    APPEND ls_doc TO lt_docs.
    CALL FUNCTION 'TREX_EXT_INDEX'
          EXPORTING
            I_INDEX_ID                          = gs_trex_doc-index_id
            I_RFC_DESTINATION           = lc_rfc_destn
            I_INDEX_DOCUMENT_LIST  = lt_docs
          IMPORTING
            E_RETURN_CODE   = lv_return_code
            E_RETURN_TEXT     = lv_return_text
          EXCEPTIONS
            CONVERSION_ERROR      = 1
            RFCSERVER_ERROR       = 2
            ERROR                 = 3
            OTHERS                = 4.
    if you want to delete attributes use the function module "TREX_EXT_DELETE_ATTRIBUTE"
    hope this helps

  • Is there any solution to Delete Single Record in Delta Queue 2LIS_08TRFKZ

    Hi,
    Is there any solution to Delete the Single Record in Delta Queue at R/3 -(RSA7) for Datasoure 2LIS_08TRFKZ
    A wrong posting has been posted at R/3, its has been deleted once they came to know its wrong at R/3.
    Now the  Problem is  wrong data has come into Delta Queue RSA7.
    We are unable to extract the data in BW. Its not even coming till PSA also  so that we can delete at PSA itself that particular record.
    Is there any solution to delete the Single Record in Delta Queue at R/3 -RSA
    Thanks & Regards
    Ashfaq

    >
    Ashfaq Shaik wrote:
    >
    > Record 166 :Contents <000000000.00000000 from field ZZVOLUME cannot be converted in type DEC     RSAR     197
    Sorry I didnot see this error before.
    I guess you didnot try error handling hence you get this error BW side.Try error handling first.
    If this doesn't work then you can go with above method.

  • Deleting 20 000 records

    Hi
    I have to get deleted 20 000 of unwanted records in one of my oracle database. As i monitored , when i going to delete a single record it takes around 2 mins time and also it's gonna be a impact for performance as well since its increasing CPU usage.
    Can somebody help me to delete those records by finding a most suitable way ?
    Many Thanks
    Luke

    Presumably, you're storing this multimedia data in a BLOB column (or columns), correct?
    No matter how much data you store in a row, it shouldn't take 2 minutes to delete a row.
    - How are you identifying the row to delete? Is the WHERE clause in your DELETE statement referencing a key? Or is the DELETE doing a full table scan to find the one row that needs to be deleted?
    - Are there any triggers on your table?
    - Is this a parent table in a foreign key relationship? Is the parent key unindexed in any of the child tables? If you delete a row from a parent table, Oracle needs to make sure that there is no row in any child table that references the deleted key. If that requires a table scan of a child table, rather than a simple index lookup, that could explain the problem.
    As others have requested, a query plan and a trace of the session would help us narrow down whether any of the above options are actually the culprit or if the problem is more obscure than that.
    Justin

  • Delete the parent records and child table records at a time

    hi all;
    I am facing the pbm like to delete the all records in child table and corresponding records in parent table at a time. so I want to delete the all the records in child table and corresponding parent records in parent table by using single SQL query. plz help me
    Thanks in advance

    You want to use one single SQL statement to delete the child records in a table and the corresponding master records in the master table??
    That's not quite possible with a single SQL, of course unless you are talking about Oracle Forms, where you have a relation and set the delete behavior to Cascading, like said in the above posts.
    Tony

  • Getting error " Incomplete update due to error in single records"

    Dear All,
    We are loading data from DSO to Cube using full load and the load is failing giving an error message Collection in the source system ended and when checked the error message button it is showing as  " Incomplete update due to error in single records" . and also one more message "Messages (type E) for data records with record number 0
    Message no. RSM2714". Can any one tell us the reason for the failure of this load ? and how to resolve it ?.
    When we click on the help button of the error message it is displaying the message as below
    Incomplete update due to errors in single records --> Long text
    Message no. RSM2712
    Diagnosis
    In the update rules, one InfoSource record was used to create several records in the data target. These records must be handled in the same way to enable tracking into the PSA and the treatment of errors in individual records.
    In the previous case, one record was updated in this kind of group generated by update rules, whereas other records in the same group were rejected. If you updated the PSA data record again, the records that were already updated would be updated again. Duplicate records would appear in the data target and the data target would thus be inconsistent.
    System Response
    The data record with errors was highlighted in the PSA. However, no error request was generated.
    Procedure
    Delete the request in the data target and, after removing the error, update all records for the request to the data target again.
    Regards,
    JayaKrishna

    hi,
    Can you please check out the PSA error record and check this out in Source DSO as this load is for DSO -> Cube....
    Please correct it in PSA if this is not correct as per DSO ....prior correcting data in PSA pls delete the request from Cube.....then it will allow to correct or delete record in PSA and then further push data from PSA to Target Cube...
    If its correct as per DSO then run load in DSO sometime few records wrongly updated by  end user and they correct it by evening for Submission....So u will get the corrected record and then run manually further load to Cube...
    Hope this will help....
    Regards,
    Mahesh

  • MASS DELETION OF MATERIAL RECORDS

    hi frds,
    is is possible to delete all the material records at single trial (mass deletion of material records).is that any t-code for this.
    is any other way to do this.please advice in this regard.
    your advice is consisdered valuable.
    regards,
    G.V.SHIVAKKUMAR

    No, there is nothing that can do that.
    I know there is a transaction that is able to delete all FI data, but no such transaction available for MM.

  • How to store as single record data coming from different ods to cube

    Hi All,
            we have the scenario like .
    Same contract values are uploaded from 3 ods to cube.In the cube this information is stored as 3 different records.
    Is there any option having same contract no and same fiscal period values should be stored as single record in cube.
    Thanks in advance.
    Regards,
    Shradda.

    Hi Shradda,
    On Performance Side .....consider below points
    1. Indexes on Cube ( That delete indexes before load and create them after Load ).
    2. Aggregate Design ( Decision on Base Aggregates, roll up Hierarchy , BW Statistics etc ).
    3. Partition of InfoCube ( Basically decision on No. of Partition )
    4. Data Package Size ( Always try to have larger Data Package so that preaggreation will reduce the no. of Data Records ).
    Best is Service.sap.com on BI page u will find material for performance . THat will help you .
    To assign points on the left of screen u will get radio buttons for assigning points for each person who has responded .
    Regards,
    Vijay

  • Delete  over million records

    I want to delete over 1 million records from a user table. This table has 10 more relationship tables also.I tried cursor to loop through the records but I couldn't finish it and I had to kill the process.
    I have copied all user names to temp Table and I am planning to join with each table and delete.
    Do you think this approach would be the right one to delete these many records?

    Sometimes it is appropriate to use a where clause in export to extract the desired rows and tables, then recreate tables with appropriate storage parameters and import. Other times CTAS is appropriate. Other times plain old delete plus special undo. And there are other options like ETL software.
    Details determine appropriateness, including if this is a one-time thing, how long until that many records come back, time frames, scope and so forth. Row-by-row processing is seldom the right way, though that often is used in over-generalized schemes, and may be right if there are complicated business rules determining deletion. At times I've used all of the above in single projects like splitting out subsidiaries from an enterprise db or creating test schemata.

  • DB Adapter polling : Not deleting the read records

    Hi,
    I have a simple BPEL process to poll a database table to delete records after reading them.I tried testing by inserting a single record into the table.BPEL is simply creating new instance (as it is not deleting the read records).
    I am using fusion middleware version 11.1.1.3.0.
    Also i am not able to view flow trace.I see a row under flow trace but there is no link to open audit trail or flow page.How to enable this.
    thanks,
    ashok

    Hi Naresh,
    Here is the contents of jca file:
    <adapter-config name="readDB" adapter="Database Adapter" wsdlLocation="readDB.wsdl" xmlns="http://platform.integration.oracle/blocks/adapter/fw/metadata">
    <connection-factory location="eis/DB/ArbonneProd" UIConnectionName="ArbonneProd" adapterRef=""/>
    <endpoint-activation portType="readDB_ptt" operation="receive">
    <activation-spec className="oracle.tip.adapter.db.DBActivationSpec">
    <property name="DescriptorName" value="readDB.CustomersToOracle"/>
    <property name="QueryName" value="readDBSelect"/>
    <property name="MappingsMetaDataURL" value="readDB-or-mappings.xml"/>
    <property name="PollingStrategy" value="DeletePollingStrategy"/>
    <property name="PollingInterval" value="10"/>
    <property name="MaxRaiseSize" value="1"/>
    <property name="MaxTransactionSize" value="10"/>
    <property name="NumberOfThreads" value="1"/>
    <property name="ReturnSingleResultSet" value="false"/>
    </activation-spec>
    </endpoint-activation>
    </adapter-config>
    Under trace i see below record:
    Instance Type Usage State
    ReadDB of service:<instanceid> JCA Adapter Service Completed

  • Non Database single record block, SAVE message issue

    Hi,
    Please help me to resolve it,
    In Form I have single record block which is not based on table or view , I wrote Insert & update script in When-Button-press trigger for save button. It does update or save record but doesnt show any message which normally shows at the bottom of the form that 1 Rcord saved. How can I display that message?
    Thanks
    --Vijay

    Either u can give some conditions in save button and give procedure_alert('Record Saved Successfully..').. It depends upon how u give the condition...
    OR
    in when new form instance trigger, u would have gave :SYSTEM.MESSAGE_LEVEL := '20'... delete this code...then the builder itself will show all the messages including insert and all at bottom of window....

  • Deleting a customer record

    Dear Xperts,
    Can any one let me know, whether we can delete a customer master?
    I have duplicated a customer code using the T. Code XD01, by mistake but now i want that to delete from system, how do i do it ?
    I dont want to re-name.
    Thanks in advance.

    Hello,
    You may set a deletion flag in the customer master record using VD06 / XD06.
    If you want to delete a customer master data permenantly from the system, you need to think of archiving. It is not so simple in live system. You need to delete every single document, data which references that customer like invoices, orders, financial documents etc... If you don't do this, then your system will be inconsistent and will cause you problems if you try and view any documents which are linked to that customer .
    Prase

  • Is there any way to delete a single occurrence from a repeating event in Calendar?

    I've got an event that repeats every week...except for next week. Is there any way to delete a single occurrence, or do I just have to stop the repeating event the week before and restart it the week after?

    it depends on the system load as well as the number of records that ur present request is carrying.. if the number of records are huge then obviously the time of deletion will also takes longer time...
    The only way is to maintain the multiple Wp assigning to ur activity.. and thus the deletion will takes place quickly.. and this also needs to be taken into the consideration of the other loads as well..
    Thanks
    Hope this helps

Maybe you are looking for

  • How to populate a form from an xml file with multiple records

    I want to be able to create a single form that will add pages as needed based upon the number of records being imported from an xml file. I have an IRS form that does this exactly, but I do not know how to re-create it.  I entered data into the form,

  • Sharing an Bluetooth Internet GPRS connection in MacOS and Windows...

    Hallo! I sucsessfully set up an Bluetooth Internet GPRS connection in MacOS and my phone (SE W880i) added "MyName's Mac" record into its list of trusted devices. Then I loaded Windows XP SP2 on the same computer and tried to set up Bluetooth Internet

  • HT204053 how do i get icloud to work on my P C windows 8

    i was told i could get the icloud on here and play the games

  • Parallel processing in large_pool

    How can you set the parallel processes to use the large_pool instead of the shared_pool on an 11gR2 database? Pre 10g, parallel_automatic_tuning would set the large_pool for processing by paralel processes. Pparallel_automatic_tuning is deprecated si

  • External HD as device in iTunes

    The script I'm trying to write at the moment is triggered by a certain volume beeing mounted. I allready got that part. Now I want the mounted drive to be shown as a device in iTunes (like an iPod) Any suggestions?