BCC Custom Delete Asset

Hi all,
I am using Oracle Commerce 11.0 in a B2B project and I have this requirement: When a user try to remove an Organization from BCC, I have to do some checks before it.
So, I tried to search some FormHandler at viewmapping, and found OrganizationFormHandler and RepositoryAssetService.
At OrganizationFormHandler, I found the handleDelete and pre/post delete methods. So I wrote my custom code and changed the component class property.
But when I tried to remove and organization at BCC, it seems like this isn't the correct form handler. So I tried to see RepositoryAssetService, but it don't have handleDelete or any other remove/delete method.
Anyone knows which is the correct component to override?
Thanks in advance.

in the entityImpl:
public void remove() {
brDeleteAllowed();
super.remove();
public void brDeleteAllowed() {
String query =
"select count(*) from SCHEMA.TABLE table where table.FK_ID=?";
PreparedStatement stmt =
getDBTransaction().createPreparedStatement(query, 1);
try {
stmt.setInt(1, this.getPk().intValue());
ResultSet rs = stmt.executeQuery();
if (rs.next()) {
int val = rs.getInt(0);
if (val != 0) {
throw new JboException("This row's primary key is references as a foreign key by another table.");
} catch (SQLException e) {
throw new JboException(e.getMessage());
let me know if that doesn't make sense. basically, you are just executing the query to find out whether or not you can delete the row prior to violoating the database constraint.

Similar Messages

  • Customer Deletion flag

    Hi Gurus,
    How to delete multiple customers (its not specified from 1 to 10 like, its like customer no: 2, 4,8,10,13,17,89,99,110 like)in one go, In XD06 we can enter only one customer number. I tried T. Code: MASS also, but could not find the solution.
    please help me ASAP.
    Thanks in advance.
    Regards,
    Vamsi P.

    Hi Vamsi,
    The CATT is primarly a testing tool and can also be used for mass upload of data. The CATT works as if an user is updating the values one by one.
    The procedure to upload the data using CATT is done in four steps
    a) Creating the CATT Test Case & Recording the sample data input
    b) Download of source data file
    c) Modify the source data file
    d) Upload the data from source file
    I have explained the procedure step by step and do note the following explanation is specific to your problem
    Creation of CATT Test Case:
    1)Go to TCODE [SCAT]
    2)Create a Test Case by entering a name and clicking the TCD button in application tool bar
    3)Enter the TCODE you want to execute [XD06]
    4)Enter the customer number, company code and sales area data.
    5) Select the required deletion flag and/or deletion blocks
    6)Click on Save
    7)End Recording
    8)Click on Save and save as local object
    9)Press Exit button and save changes while exiting.
    Now we have created a recording for deleting a customer with a sample data.
    Ensure while recording the transaction you do not get an warning or error messages else you might have to redo the recordng.
    Download of source data file
    1)In the [SCAT] screen select your test case and click on change
    2)Click on choose button in the application tool bar
    3)Click on field list in the application tool bar
    4)Double click on the customer number and change the parameter name as &CUSTNO. Any field starting with & would be treated as an input field from a file. If you have to execute the customer deletion across multiple Sales Area you need to do the same for the Sales Area fields too
    5)Remove the default value
    6)Press Exit and save the test case
    7)In the SCAT screen select your test case and in the menu bar Goto -> Variant -> Export Default
    8)You would get a text file.
    Now you have downloaded a source data file
    Modify the source data file
    1)Open the text file in Excel and load the remaining data
    2)Remove the fourth line which starts with three asterisks
    3)Below the customer number heading (&CUSTNO) load all the customers for which the deletion flag has to be set
    4)Save the file as Text Delimiter
    Now the data to be uploaded as been prepared.
    Upload the data from source file
    1)Go to [SCAT], select the test case and press F8
    2)Select the processing mode as background
    3)Chose variant as external from file
    4)Click on choose and select the path of the text file
    5)Press F8 for the remaing records to be updated
    After execution press Enter to see the log. Any line highlighted in Red is an Error for which you need to do further analysis to find out the error reason.
    Hope this helps.
    Regards
    Nadarajah Pratheb

  • Tcode for customer deletion

    Hi,
    What is the Tcode for customer deletion and what is the process, like VD01 for create customer and VD02 for update customer.
    What is the Icon we use for update like ICON_DELETE for deletion.
    Thanks,
    Veni.

    Hi,
    You can mark a customer for Deletion and not physically delete it from the database for business continuity purposes.
    Go to VD02 and enter the customer you want to delete.
    Then Click on Extras->Deletion Flags.
    Then it will take you to a screen with various options for Deletion.
    Select the option Deletion Flags->All Areas to delete all data.
    I hope this reply helps.
    Thanks,
    Priyabrata Samanta
    Edited by: Priyabrata Samanta on Jan 25, 2008 4:27 AM

  • Table or FM for finding customer deleted date - Distribtn channel specific

    Hi All,
    I need your help in getting table name or any function module which will give the customer delete date.
    I can not use CDHDR table since it only gives the customer number.( Same customer can exist in different distribution channel and i want to know the specific date on which specific distribution channel customer is deleted).
    Note: Deleted date is not available in KNA1 or KNVV.
    Any pointers will be rewarded.
    Thank You.
    Regards,
    Sheeba

    Hi,
    Call FM CHANGEDOCUMENT_READ with parameters
    OBJECTCLASS = 'DEBI'  &
    OBJECTID    = <CUSTOMERID>.
    Output structure EDITPOS will have change document data of all
    customer related tables.
    Regards
    Vinod

  • Function Module for blocking, unblocking and deleting assets

    Hi,
    Are there function modules available for blocking,unblocking and deleting assets in SAP.
    Can I user 'BAPI_FIXEDASSET_CHANGE' for the same?
    Thanks in adavnce,
    Laxman

    Hey,
    I tried by putting the values of company code,asset number,subnumber, transaction type as 'A' and passing the value of INLA-XSPEB as 'X' in FM ASSET_MASTERRECORD_MAINTENANCE to block the asset but it is not working. I am trying many other things. Can you suggest what are the mandatory fields that need to be passed for the asset to be blocked.
    As there are lot of parameters in this FM, I am little confused. Is there a proper documentation available somewhere to understand the flow.
    Thanks in advance for the help.
    Laxman Pai.

  • I have an iPhone 3gs, operating on iOS 6.  For some reason, I'm unable to custom delete individual photos from my photo library....

    I have an iPhone 3gs, operating on iOS 6.  For some reason, I'm unable to custom delete individual photos from my photo library.  When I select the Edit button to do so, I'm only given the 2 options of "Share" and "Add To". My Camera Roll does everything the way I wish my Photo Library would.  Can anyone help?

    Only photos in the Camera Roll can be deleted.  The rest of the photos got there by synching to your computer.  You get them off the same way.
    http://manuals.info.apple.com/en_US/iphone_user_guide.pdf

  • How to delete assets in MUSE especially photos in slideshow - keeps making a copy on preview this

    How to delete assets in MUSE especially photos in slideshow - keeps making a copy onevery  preview this is so wrong - really worried this profgram sucks

    thumbnails can be deleted in the MUSE S/Show window - this seems to delete all instances of photo in the slideshow. However the slideshow widget needs improvment keep submitting to Adobe request for features and included a pause button!! 
    The Layers Tab did not work for me?

  • Records of Deleted Assets

    Hi,
    We have deleted some assets in AS06.  Where can I view records of these deleted assets?  A listing would be preferred, if not, does anybody knows the table name?
    Thanks!

    Hi,
    no. When you delete an asset you confirm this by choosing the radio-button "physically delete asset" in AS06. What would be the sense to keep the asset in the data storage if you choose to delete it?
    If you wanna keep the info, you can retire the asset or set a deactivation date into the master record manually. Then the asset is kept and not deleted.
    You cannot conculde that missing asset numbers are the (AS06-) deleted assets in case you use the standard archiving functions. Archiving also (under given prerequisites) deletes assets from database after they are transfered to the archive.
    Regards,
    Markus

  • Deleting assets from one CCN

    Hi,
    I have created thru CATT script assets under various asset classes ( we follow a sequence)
    The first asset (say 84200000-0) carries value in it and i retired it .
    and trying to delete it either through AS06 or thruough program RATSTDEL.But i am unsuccessful in deleting it. Any clues will be of great use
    thanks

    Hi,
    you can only delete assets when company code is not productive
    (T001-XPROD = 'X' and T093-xanueb = 0)
    than you can use tcode OABL
    A.

  • How to see Deleted Asset Records

    Hi,
    From where we can see the deleted Asset Records means on which date asset has been deleted.
    Regards..

    Hi,
    Procedure to see the deleted asset records:-
    Fixed Assets >Information System >Reports on Asset Accounting >Asset Balances >Balance Lists >Asset Balances >S_ALR_87011964
    Go to Dynamic Selection >Administrative Data and select Mark for Deletion. Give input criteria as X and run the report.
    Thanks,
    Panneer

  • How to delete assets in OER

    Hello ,
    I would appreciate if someone can reply for how can i delete assets in OER?
    thanks,
    Bhuvi

    Hi user10660374 ,
    Thanks for your reply and i got to find out how to delete it. But , when i go back to OER home page and search for that deleted artefact it returns result with those names again. But, when i try to download it says, this file is no more available.
    I would like the user of OER to know straight away at search level rather than taking them till downloading file to know that file is deleted.
    Is this cache problem and will refresh after 24 hrs?.
    Regards,
    bhuvi

  • Delete Asset Master

    If we delete an asset records, is all asset information removed from the SAP tables and can we reuse the asset number
    Please let me know ANLA table will have this Info.
    Regards
    Chaitu

    The only way to delete assets with values are when they complete deactived (No values on the asset) is using archiving.
    When you are in a develop/ test system there is an option to delete (reset)  all the asset for a company but never do this in a production system. It delete only the assets and not the postings!

  • Reverse AS06: Delete asset

    Hi all,
    Is there any way to come back on a AS06 (delete asset).
    Thank you for your help,
    Best Regards,
    Julien

    thank you but my question was more :is it possible to cancel an AS06.
    our case: we deleted one asset with transaction AS06.
    the problem was that some projects in PS were using this asset. Now it is impossible to update some fields of the project. So we would like to restore asset datas.
    Regards,
    julien

  • Customer deletion

    HI
    I would like to know how to manage deletion of customer or material.
    I would like to report only on active customer/material. i saw that in the extraction flow there is a field deletion but i made a test with a customer in R/3 i delete it with transaction VD06 and the flag is always empty. so i don't know how to retrieve this information.
    The objective is to create a report on the master data but only active.
    Thanks
    Cyril Leredde

    Hi
    Thanks for the reply.
    The problem is i try to find how to identify it. WHen users use VD06 what is the consequence?  is the deleteion flag updated or not ? if not how this field is updated ?
    Thanks
    Cyril

  • How to delete asset in Oracle R12 in a status "posted"

    Hi all,
    We upload about a lot(about 10 000) assets from mass addition template and run post mass addition. All the assets are all in the status "posted" and we just realized that we uploaded in the wrong period.
    How can we delete all those assets.Please help with the steps.
    Thanks

    hello
    please read the full document here:
    Fixed Assets Mass Additions White Paper [ID 111097.1]
    Delete Mass Additions is part of the “Clean Up” process that is supplied by
    Oracle Assets. When reviewing your mass additions lines, you can place
    lines that should not become assets in the DELETE queue. The Delete
    Mass Additions program will take the following mass additions and place
    them in the interim table FA_DELETED_MASS_ADDITIONS and delete
    them from the FA_MASS_ADDITIONS table.
    · Mass additions in the SPLIT queue for which you have already posted
    the child mass addition lines created by the split.
    · Mass additions in the POSTED queue that have already become assets.
    · Mass additions in the DELETE queue.
    i'll be grateful if inform me about the results.
    bests

Maybe you are looking for

  • Poor - slow performance on Windows network

    Since upgrading to Tiger have experienced overall degradation in performance. Am on company's windows network. Have experienced safari alerts indicating "lost network connection". Also have extremely slow FTP (using Fetch 4.5)... transfers at 20 kps

  • Are there any self-service tools that enable business users to insert, update, and delete data in SQL Server without using SSMS?

    Our IT department spends way too much time maintaining simple reference tables that could easily be maintained by business users, if they had some simple tools that gave them limited access to only the tables they need.  Looking for something other t

  • Saving user input for later use ! How ?

    Hi ! I wrote a simple program called GPA Calculator. In the program, the user chooses the lessons he takes and he enters his grades on those lessons and the computer calculates his GPA. It was a simple task to do thanks to swing class. But the proble

  • Can't view portions of adobe website

    I'm running Win 7 (64-bit), IE 10 and the latest Flash player (11.7.700.224). When trying to download purchased software from within my account (and another section as well) I get an error page telling me "Your browser (Internet Explorer 4 or earlier

  • Photoshop CC upgrade from CS6

    I am a single-member app. Why does my Photoshop still say CS6 after the update to CC version?