Compare previous value and new value on Campaign Save

Hi All,
I create a campaign. I need some exit ( badi etc.) which is called before saving the campaign and after saving the campaign. My main intention is to compare the previous value and the new value.
Thanks in advance,
Raviraj

Yes, you would have to write code that specifically compared each column. And update that code when the column list changed. Of course, you could always write code that generated your triggers for you based on the column definitions.
On the other hand, I would tend to suggest that if you need an audit history, you want to store the whole row. Otherwise, the queries necessary to parse your audit table get to be hideously complicated and people spend a lot of time trying to reconstruct the state of a row at a particular point in time, often introducing errors.
If you need an audit history, I would also tend to look into Oracle's auditing features or something like Workspace Manager that automatically tracks a version history for rows. Both of those are built into the database, which tends to make them a lot easier to deal with than a custom trigger solution.
Justin

Similar Messages

  • How to fetch  old  and  new value  from of a   field(non-key)  from LOGDATA

    Hello SDNers,
    i  m fecthing LOgdata  from  dbtlog table[in  our  case  the  log  is  not  getting  Updated  in CDHDR  and CDPOS table]
    i  m  using  the  same  logic  as  it  is  used  in  RSVTPROT
    but  the  problem  is
    "  IT  is  fetching  OLD  and  NEW VALUE  after  Update from same  field LOGDATA  of  dbtlog  table BUT  when i  used  same  logic  it  is  FEtching  only  OLD  VALUEs,
    CAN  U  GUYS  PLS  TELL  ME  HOW TO FECTH  OLD  VALUE  and  NEW  VALUE  of a PArticular  field(non-key field, fecthing  key  field  is  not an  issue) From LOGDATA  field  of DBTLOG.
    thx  a  lot  in advance
    Regards
    Kuldeep

    Hi,
    May be this link is useful to you.

  • OIM 11g API to retrieve old and new values

    Hi
    In Self Service profile, when I modify user data, OIM is triggering an approval workflow. Our requirement is to use API which should retrieve old value and new value of the attribute when the request has been raised.
    We tried to use getTargetEntities() but it is retrieving only new values. Is there any other API which can do the needful?
    Thanks

    Use this :
    HashMap<String , Serializable> eventDataMap = new HashMap<String , Serializable>();
    eventDataMap.putAll(orchestration.getInterEventData());
    HashMap currentUserState = new HashMap(); //HashMap that contains old values
    HashMap newUserState = new HashMap(); //HashMap that contains new values
    currentUserState.putAll(((User) eventDataMap.get(CURRENT_USER)).getAttributes());
    newUserState.putAll(((User) eventDataMap.get(NEW_USER_STATE)).getAttributes());

  • How to get warning by using the previous value of the column and new value

    Hi all,
    Suppose the column A has the true and when I click on button which also sets the value of the column as true I should dispaly warning that column a is already true.How can I achieve this.How to store the original value of the column and then check wirth the new value.
    Thanks in advance.

    You dont have to store the value anywhere
    You can do this from setMethod of EOImpl.java
    eg:
    void setAttributeXXX(String Value)
    // value contains new value
    // getAttributeXXX() contains oldValue
    if (value.equals(getAttributeXXX()))
    // Verify value is > 0 if (value.compareTo(0) <= 0)
    throw new OAAttrValException(OAException.TYP_ENTITY_OBJECT, // indicates EO source
    getEntityDef().getFullName(), // entity name
    getPrimaryKey(), // entity primary key
    "AttributeXXX", // attribute Name
    value, // bad attribute value
    "AK", // nessage application short name
    "FWK_TBX_T_EMP_SALARY_REQUIRED"); // message name
    setAttributeInternal(AttributeXXX, value);
    --Prasanna                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • How can I compare the actual and expected values in Unit testing when they are XML files?

    I have created a unit test for a method in VS 2008. My expected value and actual value are XMLs. Therefore though the output is same as I expect it gives an error as I am doing string comparison now. How can I compare these 2 XMLs in expected output and
    actual output format in Unit Testing?
    mayooran99

    In unit test, when you want to validate XML files, you feed them into the class / struct that you want to feed the XML into and compare the values there (You don't just feed it in XMLReader and feed it line by line, right? But if it really is, that's how
    you should also test it in unit tests).
    In short, how you'd use the XML in your code, that's how you should test it in unit test.

  • Can anybody tell me how to extract sales value and cost value for an materi

    dear all,
    Can anybody tell me how to extract sales value and cost value for an material sold .
    All the values of cost value and sale values are getting  stored in bseg-wrbtr field .
    How to identify them uniquely.
    Or there is another way to find the sale and cost values.
    Regards
    Mave

    Hi Mave!
    Normally there is no condition change, when something is sold.
    But sales price depends on sales conditions (not only price, but also surcharges, discounts, taxes - if customized).
    Nevertheless, after selling you have a invoice document, where correct values <i>should</i> be stored (see VBRP fields mentioned above). If here is a problem, then customizing of price determination is in question, not a programming of user-exits with MARD selection for costs (or some other tries to get a price).
    When you specify your requirements more in detail, you might get better answers - but currently only general hints are possible ('see in invioce / G/L accounts').
    Regards,
    Christian

  • APC Value and Plan Value for an Asset.

    HI Gurus,
                      I am developing a report where I have to display the APC value and Plan value of an Asset.Can anyone pls give an insight how to find this for the Asset.

    Hi,
    why don´t you use the logical database ADA which most of the FI-AA standard reports do? The logical database is a service to get this information without developing all the READ information and translation by yourself, especially when talking about mid-year-reporting, consistence checks, etc..
    If you decide to use ADA, then the events GET ANLA0, GET ANLAV and GET ANLCV are from interest for you for information about APC and planned/posted depreciation value.
    Regards,
    Markus

  • Excise Value and Freight value should be add to material cost in the depot

    Hi,
    Can any one help me on my scenario?
    We have depot concept my client requirement is excise Value and Freight value should be add to material cost (inventories at depot) in the depot
    Thanks & Regards
    KMR

    Hi All,
       In Depot Sale. This are the Excise Duty Passed on to the Customer BED, AED ECS, SHECS, Other then that its added to the material cost. Define a Pricing procedure for value added to the material cost in both Procurement & Sales base your problem will be solved.
    Regards,
    Pherasath

  • ABAP program to neutralize  0Unit value and 0quantity value

    Hi all,
    I'm not expert in ABAP, and i would like implement a small abap program (routine)in my cube.
    I would like neutralize the 0UNIT value and 0QUANTITY value only when 0VTYPE = 1 or 2 :
    <b>in other words, if 0vtype = 1 or 4 then 0unit = space and 0quantity = 0
    b]
    Can you tell me please <b>how and where</b> write the ABAP program please ?
    Message was edited by:
            Pontoise Pontoise
    Message was edited by:
            Pontoise Pontoise

    Hi,
    I amnt able to understand your requirement. But the code for which you asked is simple.
    If 0vtype = 1 or 0vtype = ' '.
    0unit = space.
    0quantity = 0.
    endif.
    Regards
    Aneesh.

  • Report on OA target value and net value

    Hi all,
    Is there any standard report that can list out the target value and net value of a number of OA?  The values are similar to ME33K -> Header -> Statistics -> General.  Thanks.

    Thanks all. I had found the answer.  It should be transaction ME3L, change layout to select "Released value" and mark the column to show total value.

  • Net value and assesable value

    Dear Experts,
    In Import pricing procedure we different pricing condition like
    1.PACKING AND FORWARDING
    2. SUPPLIER INSURANCE
    3. OCCAN/ AIR FRIGHT  CHARGES
    4.IMPORT INSURANCE
    5. LANDING CHARGES
    to obtain  NET VALUE  which are pricing condiion value has to added
    Please tell me what is difference between  Net VALUE and  ASSESABLE VALUE,
    THIS

    Hi,
    Net value is basic material price with includes all delivery cost & fright.
    Asseable value is
    Basic price (% of material value)  depent on product & chapter ID. (Custom will provide abetment for product)
    Fright (Import)
    Insurence cost
    Landing cost 1%
    SAM
    Edited by: Saminathan Gopalan on Jun 9, 2010 4:19 PM

  • Urgent! Display lookup value and return value at the same time.

    We are using pop up lov.
    How can we display lookup value and return value at the same time. let me claer..
    Our lov query is like fallowing
    select dname, deptno from dept
    we want to return deptno column into a database bind text item and dname column into a display item (look up)
    can we do it (we need to do)
    thanks for your help.

    We did it .
    But pop up key lov (display description return value ) property doesn't appear for tabular forms item.
    (Report Attributes pages Tabular Form Element section display As property list)
    can we set or not.
    Thank you.

  • Integer values and decimal values in weblient UI - Display mode

    Hello,
    i have developed an custom assignmentblock with some custom fields.
    Some of this fields are integer values and text values.
    Some other fields are decimal values.
    I face the issue that this decimal values are in display mode  right-aligned all other fields are left-aligned.
    In edit mode all values are right-alligned.
    How can i change this behaviour? All values left-alligned in display mode!
    Otherwise this looks strange.
    Thank you
    Kind regards
    Manfred

    Hi,
    Decimal values will be displayed right-aligned. To change that you need to modify the GET_M method.
    In get_m method, you have to change the attr datatype to string.
    Data: attr type string.
    Data: dref type ref to data.
    Get reference of attr into dref.
    Regards,
    Arun
    Edited by: Arun Kumar on May 14, 2010 3:03 PM

  • FIND OUT GAPS IN TAX TO COMPARE  IN OLD AND NEW FOR BUDGETARY PURPOSE.

    CAN I HAVE EXPALINARY DOC WITH EX BUSINESS PROCESS. SPECIFICALLY TO
    FIND OUT GAPS IN TAX TO COMPARE  IN OLD AND NEW FOR BUDGETARY PURPOSE.
    THANKQ FOR IMMIDIATE RESPONSE
    Annie

    You can use DBMS_LOB.COMPARE

  • TS3212 how do I download my previous songs and new songs to my ipod

    How do I download my previous songs and new song from Itunes to my ipod

    lbcasey wrote:
    How do I download my music from the Itunes website to my Ipod? 
    LB casey, By "website," are you thinking of the iCloud, which enables the re-downloading of your previous purchases from the iTunes Store?  Please see the following documents:
    iTunes 11 for Windows: Download previous purchases from the iTunes Store
    http://support.apple.com/kb/PH12491
    iTunes 11 for Mac: Download previous purchases from the iTunes Store
    http://support.apple.com/kb/PH12283

Maybe you are looking for