How do I check the delete database table is successful?

After delete all the records from the database table, how do I check it is successful?  When do I need to 'commit'?  (after delete table or after insert new data?)
Thanks,
Helen

Hi,
  Check sy-subrc = 0..
  DELETE ZTABLE..OR INSERT ZTABLE...
  IF SY-SUBRC <> 0.
    MESSAGE E000 WITH 'DATABASE DELETE FAILED'.
  ELSE.
    COMMIT WORK...
  ENDIF.
Thanks,
Naren

Similar Messages

  • [HTML DB] How to use the existing database table?

    [HTML DB] How to use the existing database table?
    I installed Oracle 10g database in Computer A(Windows 2000), and I already create all the tables with data and the data size is about 300MB.
    In Computer B(Windows 2000), I installed HTML DB 1.6.
    How can I use /get the existing database table (in computer A) for HTML DB?
    Could anyone help me on this? I am newbie and I need some detail instructions. or Where can I find the examples.....
    Thanks

    Well I guess if you wish to retain that architecture, i.e. HTMLDB on one machine and your data on another, you will have to establish database links to access the data. Oracle documentation will describe how to achieve that.

  • How to speed up the deletion of 11million records from the table

    Hi,
    How to speed up the deletion of 11million records from the table.
    I need expiditious reply. Please do the needfull in advising
    Regards

    Please try to understand the question.Well it would help if you would answer some of the questions you have been asked as your question is not complete and clear and no matter how hard we try, we really need you to try and ask the question properly.
    So as previously asked
    Which simply supports the idea that we need:
    1) better definition of the business purpose (why)
    2) oracle version
    3) operating system
    4) hardware configuration
    to give a moderately accurate answer.
    I would like to add
    5) How many rows in total in the table to begin with.
    6) What is your delete statement
    7) Is this a one time operation or will it happen regularly
    8) Can you use partitioning.

  • How could I insert the deleted row into another table within a trigger?

    Hi,
    How could I insert the deleted row into another table within a trigger? The destination table has the same columns as the source table. Since the statements are in the trigger, it is not allowed to query the source table named 'test'. Thanks! The trigger is as follows, uncompleted:
    CREATE TRIGGER delete_trigger
    AFTER DELETE
    ON test
    FOR EACH ROW
    BEGIN
    -- How could I insert the deleted row into another table
    END delete_trigger;
    Message was edited by:
    user569548

    Hi,
    I'm not sure what's wrong there.
    I read the oracle docs about ANALYZE and ALL_TAB_COLUMNS, and did the following:
    ANALYZE TABLE my_tab VALIDATE STRUCTURE; //went ok.
    SELECT column_name
    FROM all_tab_columns
    WHERE table_name = 'my_tab'; //but no rows selected?
    This topic might not be what this thread should be about. Here I posted a new thread:
    How to get colum names of the newly created table?
    Thanks.
    Message was edited by:
    user569548

  • Check the Existance of  Table

    Hi,
    How to check the Existance of table, My require ment i have two tables lets say A And B, If table B does not exist then delete records in table A.
    Can any one tel me how to write a query.
    Thanks in Advance

    hi,
    whether your requirement is to check the existence of table B in the entire database or only in your schema.
    because:
    the user_tables contains the tables owned by the owner of the schema,
    and all_tables caontains the tables that can be access by you,
    and dba_tables contains all teh tables in your database.
    so based on your req query any one of the table and check as suggested earlier by others.
    and the 'tab' table also shows if there is any synonym with the table name as 'B'.
    so if you are going for 'tab' table then also specify the column "TABTYPE = 'TABLE' ".

  • How to insert data in to database table depends on Indicator

    Hi All,
    I am working on Idoc to JDBC scenario. I am collecting & bundling(Using BPM) all the idocs and inserting the data in to the different database tables. Up to now my scenario is working fine. Now the problem is before inserting the data I have to check one of the Table field. If the field indicator is u201CYESu201D then only I have to insert data otherwise I have to wait up to the indicator field needs to be changed. Once indicator is u201CYESu201D then I have to insert all the collected idocs in to the database tables.
             Can you please let me know how can I achieve this?
    Thanks & Regards,
    Purushotham

    Hi,
    There are two ways you can achieve this.
    1. Instead of directly calling SQL statements write a stored procedure on database which will have first select query and then based on its result fire the insert query.For processing any logic like this stored procedure is the best approach. You can call SP from your jdbc receiver channel
    2. By using a BPM. In this case you have to first fire a select query in the database and based on the response from database, fire the insert statement from bpm only. basically you will be having 2 send steps to database. One with Select statement and another with insert statement. You need to handle your logic in BPOM in this case.
    Hope this answers your question.
    Thanks
    Amit

  • How can i check the file  which is upload from  the server

    when upload the excel file from the server file to the internal table ,how can i check the data whether it accord with  the required condition .
    for example ,i want to upload the file which have the data whose type is pack, and it have three integer and  two decimal ,how can i check in my code.
    thanks,

    Hi Sichen,
    First upload the file, Then do ur validations and delete the records that doesn't satisfy ur requirements.
    Thanks,
    Vinod.

  • How do I check the oracle client version?

    Hi All,
         How do I check the oracle client version installed from the OS level. I do know my database version I need to check which client is being used. Is there a table where this information is stored.
    Thanks
    Shabna

    disp+work.exe -V will tell you which OCI version was used during compiling and linking.
    Oracle uses release independent DLL Names (Unix people would say Shared Libraries) and therefore the SAP Kernel will dynamically load any Oracle Client Version found in the standard DLL Load Path during startup.
    If you have more versions installed on your computer and you are not shure which one is loaded you can use Process Explorer (freeware, see www.sysinternals.com) to find out which one is loaded. If they belong to an Oracle_home (up to release 9.2) refere to Oracle Universal Installers Inventory information in order to find out which exact version is used.
    If an Oracle10 Instant Client is used, there is no corresponding Oracle_Home. In this case you can use Windows Explorer (right click on the  DLL -for example oci.dll), select properties, the Version Tab and File Version).
    But unfortunately Oracle is not updating the File Version every time they are patching something.
    An SAP ABAP Server Integrated Resource is the version information disp+work.exe -V is listing (evquivalent to SM51 - Release Information).
    <b>Datenbank Client Library : OCI_10201_SHARE (10.2.0.2.0)</b>
    OCI_10201_SHARE is telling us the compile/link environment, the number in brackets (only available starting with Oracle10) tells us the the result of an Oracle Client GetVersion call. Unfortunately this one does also not reflect the installed Minipatch version up to now.
    Here are some results on 10.2.0.2 Windows X86_64:
    SM51: Datenbank Client Library : OCI_10201_SHARE (10.2.0.2.0)
    Explorer (OCI.DLL located in the same directory as disp+work.exe):
       10.2.0.2.0 Patch2
    Explorer (oraociicus10.dll - the instant client implementation, this version is the one actual since mini patch 10.2.0.2.5 and it was definitely changed in 10.2.0.2.5):
       OraOCIICUS10.dll - 10.2.0.1.0
       oracore10.dll - 10.2.0.1.0 Production
       oranls10.dll - 10.2.0.1.0 Production
       orasnls10.dll - 10.2.0.1.0 Production
       oraunls10.dll - 10.2.0.1.0 Production
       oravsn10.dll - 10.2.0.1.0 Production
       oracommon10.dll - 10.2.0.1.0 Patch1
       orageneric10.dll - 10.2.0.2.0 Patch2
       oraclient10.dll - 10.2.0.2.0 Patch2
       orapls10.dll - 10.2.0.1.0 Patch1
       orasql10.dll - 10.2.0.1.0 Production
       oraxml10.dll - 10.1.0.2.0
       orahasgen10.dll - 10.2.0.1.0 Production
       oraocrutl10.dll - 10.2.0.1.0 Production
       oraocr10.dll - 10.2.0.1.0 Production
       oraocrb10.dll - 10.2.0.1.0 Production
       oranbeq10.dll - 10.2.0.1.0 Production
       orantcp10.dll - 10.2.0.1.0 Production
    oracommon10.dll from the rdbms server does report 10.2.0.2.0 Patch5 at the same time. compare it with the version information of oracommon10.dll included in oraociicus10.dll. Both patches are included in the same patchset (10.2.0.2.5).
    there are two possible conclusions about this:
    1. the version infomation is not very reliable.
    2. the Oracle Patch and Build environment is not very reliable
    Peter

  • I have two email accounts. It is only letting me check one. How can I check the other?

    I registered two different email accounts on my iPad mini. It's only letting me check one. How can I check the other one too?

    Congratuations on your new iPad!
    Since your device is so new, I can state categorically that this an issue with configuration. Delete the account that doesn't work, and enter the information anew.
    If you're still having problems, check that your email address and password are correct, and if possible, verify it by checking your ISP's settings.

  • How do I fix the itunes database?

    itunes gives me an error on every sync to my ATV.
    "Some of the items in the itunes library including, (16 podcasts) were not copied to the ATV because they could not be found."
    I know the podcasts are gone from both the mac and the ATV, how do I fix the itunes database?
    I have tried re downloading the podcasts and letting itunes delete them automatically after being watched, but i still get the error every time i sync. It is very annoying having to clear the error every sync.

    Re-creating the library described here:
    http://support.apple.com/kb/HT1451
    Make sure you sync with AppleTV first if you have purchases on there not synced back to iTunes yet.
    It will lose some settings eg connected AppleTV's, and possibly manually added metadata such as album art and text not automatically added on import or added after files imported - at least it did last time I did this.

  • I set up my new iPad, then deleted the Pages documents on my old iPad, but this had the effect of deleting them on my new iPad too because they are synced. How do I retrieve the deleted documents?

    I set up my new iPad, then deleted the Pages documents on my old iPad, but this had the effect of deleting them on my new iPad too because they are synced. How do I retrieve the deleted documents?

    Sorry no. That's how it works.
    Check if you still have an old backup and do a restore otherwise it's gone.

  • How to configure ActiveSync for a database table in IdM 7.0

    Hi All,
    Please suggest me the steps to configure ActiveSync in IdM 7.0.
    when i try it by resource-->activeSync wizard it gives
    "The ActiveSync Wizard has been deprecated in Identity Manager 7.0 in favor of using MetaView and the resource action "Edit Synchronization Policy". "
    how to configure ActiveSync for a database table.
    Thanx
    Shant

    Hi,
    You need to a script and run it on os level. Here is an example:-
    emcli relocate_targets -src_agent=agentmachine1.domain:3872
    -dest_agent=agentmachine2.domain:3872 -target_name=RACDB
    -target_type=oracle_database -copy_from_src -force=yes
    -changed_param=MachineName:agentmachine2.domain
    Regards
    Jomon
    Edited by: JohnJomon on Nov 17, 2011 2:27 PM

  • Hello! Want to programatically alter the Report.Database.Tables info

    Post Author: RobotSlave
    CA Forum: .NET
    Crystal Reports 2008    CFK0Y-KVURM2M-00UFAFF-N43MCrystal Reports 2008 for Visual StudioMicrosoft Visual Studio 2005Version 8.0.50727.762  (SP.050727-7600)Microsoft .NET FrameworkVersion 2.0.50727
    Installed Edition: Enterprise
    Microsoft Visual C# 2005   77718-007-4000003-41954Microsoft Visual C# 2005
    why? to save time thats why, I have a zillion reports that I have to point at a new database periodically, (and I have some time on my hands here at the ranch) so I decided to automate the process. I made a windows application with Visual Studio that opens the rpt files as objects using the crystaldicisions object object model thingy, pulls out the table logoninfo.connectioninfo stuff and sets it to a new location THEN when I try to set the report.database.tables back to my new modified version it says that the tables property is a readonly thingy. I can open and save, but I cant modify the part I want to... how can I alter the serverName and databaseName properties such that I can save the result?
    thank you!
    much love.

    Post Author: RobotSlave
    CA Forum: .NET
    I was making a new copy of the database.tables and then editing it then trying to set the whole reportdocument.database.tables = to my modified version, it was readonly so it didnt work. when I just iterate through the tables and set the properties on each one, it works just fine.

  • How can I check the serial number in WM?

    Dear Experts
    I have a question: how can I check the serial number in WM? Like I want to know which storage type a serial number exist in. Is there a report can show this information? Currently I only can check the serial number at storage location level.
    Please help. If there is no such a report, which table can I use for develpment?
    Thanks a lot!
    Tony

    Hi Tony,
    Unfortunatelly, you cannot manage serial numbers in bins with ERP WM. For this, you need to have a look to the new warehousing solution from SAP, I mean EWM (extended warehouse management) in SCM. There you can manage an see serial numbers in bins.
    Rgds,
    Philippe

  • How can I check  the current cost and budget in SAP?

    Dear experts,
         How can I check  the current cost and budget in SAP for the PR approval?
    Table:COEP, COBK, COSS COSP can not find below information:Tender_budget,Working_budget,reconciliation,Additional,Adjustment,variation
    Best regards,
    Merry

    Dear expert,
         I need below information:Project_id,Cost_code,Nature_code,Section_code,Work_type,Work_code,Cost_type,Suffix,item_desc,Tender_budget,Working_budget,reconciliation,Additional,Adjustment,variation
    Can you tell me which table and filed can find them?
    Many thanks.
    best regards,
    Merry

Maybe you are looking for

  • Media Encoder crashes when exporting from Premiere Pro

    Media Encoder crashes when exporting from Premiere Pro. I am queueing multiple files for export and Media Encoder will crash. The computer system has 32GB of RAM and the videos export fine in Premiere, but that requires exporting each one individuall

  • E-Mails in IPad and iPhone without content and sender "This E-Mail has no content"

    Often I get E-Mails listet without content and no sender "This E-Mail hasn't got any content" I can't get rid of the ghost, only by  total restarts. . Why does this happen and how can Iavoid this?  Klaus

  • Disk crash on Mac mini from 2009, 160GB

    Are there any particular type of disk I need to fit in the Mac mini? Are there any difficulties changing the disk or do I need to send it to support? Does the controller support SSD?

  • Account: All pages appear Blank, Nav Bar only displays - (Ref: CE-1694)

    Status: Investigating Affects: Some Users Description:  Some members have reported logging in to Tagged and seeing blank pages throughout their account, with only the Nav Bar at the top of their account visible. We've verified this issue on some acco

  • Windows 8.1 drivers MF4800 series

    I just purchased a 4880 to replace perfectly workable older machine, 4150, because Canon never put out Win 8 drivers that worked well for scanning on that machine. Understandable, i guess, as it was fairly old. The 4880 was working great in Win 8 env