Difference between before and after trigger

    Is there any difference between these two trigger  .
    If its there , then please tell when we should use before trigger and after trigger
   thanx
   young bro
   

BEFORE Triggers
BEFORE triggers run the trigger action before the triggering statement is run. This type of trigger is commonly used in the following situations:
When the trigger action determines whether the triggering statement should be allowed to complete. Using a BEFORE trigger for this purpose, you can eliminate unnecessary processing of the triggering statement and its eventual rollback in cases where an exception is raised in the trigger action.
To derive specific column values before completing a triggering INSERT or UPDATE statement.
AFTER Triggers
AFTER triggers run the trigger action after the triggering statement is run.
Trigger Type Combinations
Using the options listed previously, you can create four types of row and statement triggers:
BEFORE statement trigger
Before executing the triggering statement, the trigger action is run.
BEFORE row trigger
Before modifying each row affected by the triggering statement and before checking appropriate integrity constraints, the trigger action is run, if the trigger restriction was not violated.
AFTER statement trigger
After executing the triggering statement and applying any deferred integrity constraints, the trigger action is run.
AFTER row trigger
After modifying each row affected by the triggering statement and possibly applying appropriate integrity constraints, the trigger action is run for the current row provided the trigger restriction was not violated. Unlike BEFORE row triggers, AFTER row triggers lock rows.
You can have multiple triggers of the same type for the same statement for any given table. For example, you can have two BEFORE statement triggers for UPDATE statements on the employees table. Multiple triggers of the same type permit modular installation of applications that have triggers on the same tables. Also, Oracle materialized view logs use AFTER row triggers, so you can design your own AFTER row trigger in addition to the Oracle-defined AFTER row trigger.
You can create as many triggers of the preceding different types as you need for each type of DML statement, (INSERT, UPDATE, or DELETE).
S

Similar Messages

  • How Can I Blink Between Before and After in Liquify?

    I think I've done this before (in prior versions), but I'm drawing a blank...  Is there a quick way to blink between before and after results in Liquify?
    Thanks.
    -Noel

    There are several ways i can think of
    1. Alt click on the cancel button and the Ctrl+Z
    2. Hit the Restore All button then Crtl+Z
    3. If you have the advanced options showing you could use Show Backdrop and then toggle the Show Image

  • Price difference between PO and after GR

    Hi Experts,
    we have an issue in price after the goods receipt. PO item price for 1PCE is 10EUR. After goods receipt the price is updated in order history as 490EUR at amount in local currency.
    GR has been done thourgh inbound delivery and no chance of entering amount in local currency during GR.
    Can anyone please tell why it was happend and resolution to make the price equal.
    Reagrds
    Gowri Sankar

    Hi,
    if it is not causing by the IR, can it be possible as below scenario?
    1. the currency is wrongly maintain for converting between vendor and company currency?
        - first check the material document for how many PC have been GR, if GR qty is correct, check the accounting document for the currency used to convert from vendor curr to company currency.
    , you can also check the currency in the table "TCURR"
    2. If GR have more than PO Qty, then you can check the PO Item details --> Delivery tab, see whether there is any over delivery tolerant set or unlimited overdelivery..
    Hopefully my thinking dont confuse and misleading you ^^

  • Difference between Before aggregation and After aggregation

    Hello ,
       Can any one tell me what is d difference between Before and after aggregation of calculated key figure?
          Thanks,
    Aparna

    Before aggregation calculates the data before summarizing the final results while after aggregation, it will summarize the result first before it calculates.
    Assume:
    Customer#----
    Orders
    10000----
    10
    10001----
    20
    10000----
    30
    if you want to count the number of customers before aggregates and after aggregates gives you different result.
    Before aggregates will give you
    Customer#----
    Count
    10000----
    2
    10001----
    1
    After Aggregates will give you
    Customer#----
    Count
    100000----
    1
    100001----
    1
    Customer might not be a good example but the concept remains the same for others.
    thanks.
    Wond

  • Difference between Before INSERT and After INSERT trigger?

    What is difference between Before INSERT and After INSERT triggers? Can anyone give me a simple example from SCOTT schema for both of these triggers.

    The documentation gives a good explanation have you looked at....
    http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14251/adfns_triggers.htm#sthref1175

  • Do we have a way to get the differences between xtext model before and after partial parse?

    Do we have a way to get the differences between xtext model before and after partial parse?
    As an example i have file contains 4 lines, xtext parsed this file and generated its model, then i made small modification in line number 3, so xtext partially parsed the file and generated another model.
    The question is could we get the nodes that has been deleted from the model?
    could we get the new nodes added to the model?
    could we get the differences between the two models?

    Workflow {
    bean = StandaloneSetup {
    scanClassPath = true
    platformUri = "${runtimeProject}/.."
    // The following two lines can be removed, if Xbase is not used.
    registerGeneratedEPackage = "org.eclipse.xtext.xbase.XbasePackage"
    registerGenModelFile = "platform:/resource/org.eclipse.xtext.xbase/model/Xbase.genmodel"
    component = ParseXextModel{
    //Load the xtext model and keep the reference of the inmem model
    component = DirectoryCleaner {
    directory = "${runtimeProject}/src-gen"
    component = DirectoryCleaner {
    directory = "${runtimeProject}/model/generated"
    component = DirectoryCleaner {
    directory = "${runtimeProject}.ui/src-gen"
    component = DirectoryCleaner {
    directory = "${runtimeProject}.tests/src-gen"
    component = Generator {
    pathRtProject = runtimeProject
    pathUiProject = "${runtimeProject}.ui"
    pathTestProject = "${runtimeProject}.tests"
    projectNameRt = projectName
    projectNameUi = "${projectName}.ui"
    encoding = encoding
    language = auto-inject {
    uri = grammarURI
    // Java API to access grammar elements (required by several other fragments)
    fragment = grammarAccess.GrammarAccessFragment auto-inject {}
    // provides a compare view
    fragment = compare.CompareFragment auto-inject {}
    component = ParseXextModel{
    //Load the xtext model again and keep the reference of the inmem model
    component = CompareModel {
    //Implement this using EMF Comapre to see the differnces between 2 models
    }

  • What is the difference between SWF and F4V in the context of Streaming or progressive Download?

    Hello everybody,
    I am absolutely a beginner in working with Captivate and furthermore my technological know how is not that good.
    So, I have problems to understand if the export formats SWF and F4V are both capable to be published in the Internet as streaming video and as progressive Download? Well so, I do not really understand the difference between streaming and progessive download either?
    Furthermore I was asking myself if this issue depends on how I imported flash videos (there are these two options) in my Captivate project during the production phase?
    I would be very thankful for some helping information!
    Greetings,
    Mareike the beginner

    Welcome to our community
    I'm not certain I fully understand the differences myself, but will toss out what I believe to be true about the formats. Hopefully, if I'm incorrect in my bellief, someone with more definitive knowledge will chime in.
    It was explained to me a couple of years back and is my understanding that "streaming" only applies to a video based format such as F4V, FLV and it doesn't apply to SWF. With SWF, you may specify a preload value. So when the SWF transmits from the web server to the PC, a certain percentage has to be received before play begins. But that's not streaming. It's preloading.
    For streaming to occur, the web server establishes a communication channel between the server and the destination PC. This channel is monitored to see what speed is in use. Only enough information is then transmitted to be comfortable at that speed. If the speed improves during the connection, the server serves data at a faster rate. If the connection degrades, the information transmitted is also scaled back so as to accommodate the lower speed.
    With SWF, after it has all been downloaded, a savvy user is able to poke around in their temporary internet files and save the SWF for play later. With streaming, this isn't possible because as the stream is viewed, it evaporates from memory.
    Seriously hoping others will chime in here to confirm or deny this.
    Cheers... Rick
    Helpful and Handy Links
    Begin learning Captivate 5 moments from now! $29.95
    Captivate Wish Form/Bug Reporting Form
    Adobe Certified Captivate Training
    SorcererStone Blog
    Captivate eBooks

  • Difference Between Shutdown and Close Database

    Hi all,
    Let say I want to start the instance of database with the following processes :
    1. STARTUP MOUNT
    2. ALTER DATABASE OPEN
    With two commands above, now the database is open. Then, I want to close the database with command :
    3. ALTER DATABASE CLOSE
    After this, I want to reopen the database again by using this :
    4. ALTER DATABASE OPEN
    I know that it will produce an error because when the database is opened and closed, its lifetime has already ended, so we must shutdown it first.
    My questions are :
    1. What's the difference between CLOSE and SHUTDOWN ? Suppose in the case above, I want to close the database. Why don't I just type SHUTDOWN ? Why is it necessary for me to use command CLOSE instead of SHUTDOWN ?
    2. What are the conditions of database when I CLOSE database, also, what are the conditions of database when I SHUTDOWN database ? I want to know more detail because I have tried to find in google, but now satisfying result
    Thanks before
    Edited by: cycon on Nov 8, 2010 9:00 AM

    alter database close;this you can execute only from OPEN status
    when ever you close the database it will go to mount status here you cannot open the database again, you need to clean sutdown and need to startup.
    alter database open;ths you can execute only on MOUNT status, it will takes you to mount --> open status.
    Thanks

  • Difference between VAT AND EXCISE DUTIES

    HI ginius
    can any body give the difference between vat and excise duties

    VAT  is value added tax.  a tax levied by the government at the time of sales earlier it was LST ( local sales tax ) this is livied by the state goverments.
    ok...example  .like if colgae is manufacturing toothpaste and yu are buying it ... so at the time of buying ap[art from the price of material you are payin the vat also.
    but wher as excise duty is concerend it is levied by the central excise departments
    it is lived on colgate company after it manufactured the product even before selling the toothpaste colgate should pay excise to central excise dept on toothpaste becasue it manufactured it in india ( ofcourse it again collects frm the customer by hiking price )
    and excise is calulate don advolrem basis whcih is approx 16% on base price.

  • Difference between logical and virtual terms

    Hello,
    This is not purely oracle question; but in documentation so many times we find 2 terms:
    A. Logical
    B.Virtual.
    So what is the principle difference between logical and virtual? As I know physical is that which I can see and touch; while logical/virtual is that is imaginary. We say tablespace is logical not virtual; while Java Virtual Machine; not Java Logical Machine. So I want to know; what is the principle difference; why two words for an imaginary thing. Before posting question; I searched in google as “Difference between virtual and logical” but I couldn’t found the answer.
    Please quote your comments.
    Thanks & Kind Regards
    Girish Sharma

    Girish,
    I wont say that I am correcting you as this is like that half glass full/empty thing.May be what I see is half empty , you would see the same as half full.
    Well now coming to the explanation.I am saying honestly , I got more confused after reading your definitions.What do you mean by saing that tablespace is not virtual.I see it as purely virtual.We don't say it as virtual tablespace or logical tablespace but it is actualy logical/virtual, having no existance but just the definition right?
    How can you say that the size of virtual is larger than logcial?The size of tablespace is actualy the sum total of size of datafiles.So it actualy becomes very larger right?Much larger than JVM which is of few megs only.
    The point 3 totally knocked me out.I have no idea what you said.
    Ok I tell you this.Just remember the definition that Hans gave already.If you ask me than its the best definition that we can have. Just remember this and if some one asks you more further than give them your point 3 definition and tell them understand this ;-).Please don'tmind I am just kidding. Its just semantics.Don't get lost into it.You will find many people using both the terms interchangibly. So its ok.I shall stick with Hans's defintion,simple and concise.There are lot more other topics to dig upon in oracle.I can mail you lots of them.Spend time on those.Don't think that I am demotivating you.I understand you asked only because you have a doubt.But we got a good resolution of it and beyond that, its not of much use to dig it atleast not in the technial terms.
    Cheers
    Aman....
    PS:Are you on oraclecommunity.net?

  • Difference between BBP_GET_STATUS_2 and CLEAN_REQREQ_UP reports

    Could someone explain in simple way what is the difference between BBP_GET_STATUS_2 and CLEAN_REQREQ_UP reports? I have read the differences in standard documentation but it is a little confusing.
    Thanks!
    Regards,
    Madhur

    Hi
    CLEAN_REQREQ_UP (Cleaner Job)
    You can use this function for document types Shopping cart, (Local) Purchase Order, Confirmation, and Invoice to trigger a synchronization with the associated documents in the back-end system. The system checks whether and how the (follow-on) documents were posted in the back end, and updates the object link and references, as well as the document status.
    A job (background processing) is generated for the program CLEAN_REQREQ_UP. When this is run, the system queries a database table containing the transfer information of the documents to the back end. The entries are checked with the data of the respective back-end systems. If the back-end transfer is successful, the respective entries are deleted and the prerequisites for further processing are created.
    BBP_GET_STATUS2 (Status Job)
    The status job was created by SAP to update the EBP system with data such as purchase requisition number, purchase order number, goods received or invoices recorded manually in R/3, etc. The report should not be run on a frequent basis at short intervals unless the order count from EBP to R/3 is not that high. Otherwise, a recommended interval for running the report is approximately every hour. Basically the schedule times depend on your business requirements.
    Until this job runs, the user will not see the number of the backend document created in R/3 for a particular shopping cart in the history tab of the check status transaction.
    Some more information :
    Go to:
    SPRO->IMG->Integration with Other SAP components->Advanced Planning and
    Optimization->basic Settings for the Data Transfer->Change Transfer->
    change Transfer for Transaction Data->Active Online Transfer using BTE
    Here you should maintain the application 'SRMNTY' with active flag.
    Once this customizing is enabled, whenever a follow-on document
    (either confirmation or invoice) for an extended classic PO is created
    in the backend R/3 system, the R/3 system communicates to the SRM system
    by creating an entry in the table BBP_DOCUMENT_TAB for this PO.
    The item level of the SRM PO has fields to store the actual quantity
    and values entered for the corresponding confirmations and invoices.
    After that, run the reports CLEAN_REQREQ_UP and BBP_GET_STATUS_2.
    When the report CLEAN_REQREQ_UP runs this will update the
    PO with statistical information. With the latest information in
    BBP_PDIGP table (statistical information) the query should work fine.
    Summer

  • Differences between BDC and LSMW

    Hello SAP Gurus,
    Kindly let me know the various differences between BDC and LSMW.
    Also, please tell me the STEPS of the CUT-OVER PLANNING (Shifting of Data from the Legacy System to the SAP System). Here, the "Data" means which data? Please explain in details.
    Looking for your early feedback.
    Regards,
    Kaushik.

    Hi,
    BDC- It is Batch data communication. Its used for data conversion from legacy system to SAP system. Only technical people can do it. Tcode is SHDB.
    LSMW- It is legacy system migration workbench. Its also used for data conversion from legacy system to SAP system. But it is role of functional consultant. 
    There are 14 steps in LSMW. As soon as you complete the one step, automatically it will go to next step.
    In general you can use LSMW. But if you want to transfer more than 40,000 data, then it is not possible in LSMW. That time you can take help of BDC.
    Cutover strategy depends upon how the organizations design their data load strategies. Normally, you decide the sequence of Data loads for Configuration  settings, Master data, Transaction data which follows whom and then you make a copy of the system as a  Production system a day before and after checking the successful data loads, you go-live 100% or partial again  depending upon organizational setup and policies.
    Cutover planning is highly site specific. There's no thumb rule. The stock data as on the date of going live should be correctly entered. But stock being a highly dynamic quantity, the strategy for loading should be crystal clear. Then you have to load all the back dated transaction on the stock. Some stock comes into your plant/storage location as return and some stock is actually delivered to your customer through sales orders of various kinds. 
    Please refer this link,
    [PP Cut over activity|http://www.sap-img.com/production/pp-questions-answers.htm]
    Regards,
    R.Brahmankar

  • Key Configuration differences between SAP and ORACLE Financials

    Hello,
    After spending good 7 years in SAP related projects recently I started working in ORACLE Applications. I used to be an ORACLE programmer years back. To my surprise the same <b><u>ORACLE Forms</u></b> are still very much the heart of the ORACLE UI.
    Then I thought what will be the key differences between ORACLE and SAP in terms of configuration elements. While I know a bunch of configuraion items in SAP , I am not sure about the same in ORACLE world. I am not even sure some of the configuration items that are available in SAP exists in ORACLE.
    Does anyone know both sides of the coin ? The terminology and design ?
    SAP has
    Client,Company code, Business area, Functional Area, GL, Posting Key, Document Type.
    I am trying to get the details of the equivalents of these in ORACLE.
    Does anyone know it ?
    For e.g , when you post to <b>AP</b> or <b>AR</b> in <b>SAP</b> , <b>GL</b> is updated  automatically. In <b>ORACLE</b> you post to a <b>AP Book</b> or <b>AR Book</b> then Run a batch to move them to <b><u>GL Book</u></b>.
    ORACLE uses SQLLoader to load data . You can write a PL SQL and update the tables directly, which is not the case in SAP. For dataloads and conversions, SAP uses BDC's ( though XI can be used but its slow).For ORACLE its the good old SQL and PlSQL combo.
    What are the equivalents of the configuration elements in ORACLE world ?
    Also what are the major differences between these two in terms of designing a financial system.
    Does any one know ?

    Genie,
    I agree that a case is made on how well these two ERPs solve the day to day tasks before a company chooses one of these two. But my question is aimed at finance to begin with. You are going to need a general ledger for any company or government regardless of ERP. And how well you can drive the ledger to map your business is the key here.
    The way ledger is built is around a business area ,company or country and is very tighly designed in SAP. I would like to know if there is any equivalent of the configuration items in ORACLE. I am more interested in terminology of ORACLE.
    For example ,
    <u><b><u><b>SAP ====> ORACLE</b></u>
    <u><b>GL ==> Book In ORACLE</b></u>
    <b><u>Document Number ===> Invoice Number</u></b>
    <b><u>Posting Period in SAP ==> Posting period In ORACLE</b></u></u></b>
    Most of the terms are finance terms , so they are common ( eg. an account number is an account number in ORACLE and SAP ) between two systems. I am interested in any specific thing that is available in ORACLE but not in SAP and  vice verse.
    thanks for the link you have provided.
    Its very useful.

  • Difference between open_form and start_form

    difference between open_form and start_form?

    hi,
    Any driver program must contain Open_Form, Close_Form and Write_Form. Other function modules are optional.
    OPEN_FORM: This function module opens layout set printing. One must call this function module before he uses any of other layout set function modules like Write_Form, Start_Form, Control_Form etc., You need specify a layout set name in the export parameters of this function module. If nothing is passed to Open_Form then one should use Start_Form function module to open layout set before starting the output. The layout set opened by Open_Form should be closed by Close_Form function module, other wise output doesn’t appear. We can use any number of Open_Form, Close_Form functions in one single program. But Close_Form must be there for every Open_Form in the program.
    Some of the important export parameters we have to pass to Open_Form function module.
    Form: Enter the Layout set name here, which then controls the output formatting. If nothing is specified then we must use Start_Form for opening layout set.
    Language: Layout sets are Language dependent. Enter the desired language here. If the entered layout set is not in that language, then the function tries to open the Form entered in its original language. The default value is SY-LANGU.
    Device: SAP Script can format a text on different device types. The device can be ‘PRINTER’ or ‘TELEX’, ‘TELEFAX’, ’ABAP’ and ‘SCREEN’.
    Dialog: Use parameter DIALOG to determine whether to display a dialog box before printing, in which the user can set several spool parameters for print formatting. Possible values: SPACE displays no print parameter screen. 'X' display print parameter screen. Default value: 'X'
    Options: Use parameter OPTIONS to set several options for print formatting. The parameter has the structure ITCPO. The user can change some of the defined settings on the print control screen. The default value for Options is ‘ ‘. We will discuss about ITCPO structure in detail later.
    Other Export, Import and Exceptions are self-explanatory.
    Start_Form: In-between the function modules OPEN_FORM and CLOSE_FORM, we can use different layout sets. This allows us to combine several different layout sets into one print output. However, we can combine only those layout sets that have the same page format. To switch layout sets, use the function module START_FORM. If another layout set is still open, we must close it first using END_FORM. If we specify no layout set name when calling START_FORM, the system restarts the last open layout set. If after OPEN_FORM no layout set was activated yet, the system leaves the function module with the exception UNUSED. Some of the important export parameters for this function module are
    Form: The parameter contains the name of the layout set you want to use for printing. If you specify no layout set here, the system restarts the last active layout set.
    Language: Layout sets are language-dependent. Enter the desired language here. If the layout set does not exist in this language, the system tries to call the layout set in its original language. If the parameter LANGUAGE is empty, the system uses the language of the last active layout set.
    Startpage: Usually, SAP script starts with the page specified as start page in the layout set definition. If we want to start output with another layout set page, enter the name of the desired layout set page here. If the desired page is not defined, the system uses the start page defined in the layout set.
    Program: To replace program symbols, SAP script must know which active program contains the work areas for the values to be passed. If we omit the parameter, the system searches for the field values in the program that was specified in the parameter OPTIONS (field TDPROGRAM) of OPEN_FORM. If we enter a program name, the system replaces the program symbols with the values from this program up to the next END_FORM.
    Exceptions and other Export, Import parameters are self-explanatory.
    Regards
    Kiran Sure

  • Plastic Surgery Before and Afters... best program?

    Hi guys,
    I am brand new to graphic designing or anything related to it!
    I'm currently looking to do side by side before and after pictures for my office. Sometimes the pictures differ in color or contrast or need to be cropped. Sometimes a patient requests that their eyes  or a tattoo be hidden (with black bars).
    What program(s) would you guys suggest? Photoshop? Illustrator? Other programs??
    I just got a brand new Mac so please help me!
    PS. PSdesigner= plastic surgery designer

    Be aware that a there is a difference between a video that consists of a slideshow, and what DVDs consider a slideshow.
    If you want a DVD slideshow, then I suggest taking a look at one of the Lord of the Rings Extended Release DVDs. On the two extra discs with each movie there are plenty of DVD slideshows. With a DVD slideshow you can go forward or back through the slideshow. You can stay on any slide as long as you like. A slide can contain audio. Audio cannot carry over from one slide to another. There is no transitions from one slide to another.
    What I suspect is that you want a video that acts like a slideshow. In that case, do not use the slideshows in DVD SP at all. Create your video outside of DVD SP, then just place it in a Track and treat it as any other video.
    That being said, do you want a lot of control over how the video slideshow is created, or do you want a program that will do most of the work for you at the expense of not having absolute control over how things are put together? If you want full control then create your video slideshow in FCP/Motion. If you want a program that will do a lot of the work for you, then you should look into iPhoto. It can create some pretty spectacular slideshows very easily, but you will not have the full control you have with FCP.

Maybe you are looking for

  • SQL Expression Question

    To the forum members In the Crystal Formula Editor, under Print State, there is a function called Previous.  This compares the contents of the current field to the previous one.  Is there a similar function in the SQL Expression Editor.  I'm trying t

  • Windows 2008 Server Enterprise R2 x64 and Perc 4/dc SCSI driver issue

    Hello all, this is the first time posting so please forgive me if this has been posted here before.  I did try to search this issue but zero returns. OK, I have a Dell PowerEdge 2900.  I have just put a fresh install of MS Windows 2008 ENT. Server x6

  • Oracle oci8 driver problem

    Hello ! I work with Weblogic 701, oracle 9.2.0.1 database, oracle 9.2.0.2 client, and oracle jdbc drivers classes12.zip When I connect with the oci8 (not the thin) driver and try to execute the application, I get this error : java.lang.UnsatisfiedLin

  • HP 6110 All-in-one no longer prints...print jobs sit in queue

    My printer worked fine last week and now I went to print somethign and it just sits in queue.  I tried uninstalling/reinstalling the drivers, running the HP Diagnostic (which says everything seems fine) but nothing prints.   Any ideas on how to get t

  • Work Flows in REFX

    Dear Friends, I need the details of Work Flows in REFX Module. Could you please share with me? Thanks in advance. Kind Regards, V.Elangovan