Change handler handleRegisteredChange() method

I have create a validation in which number of tender deposit >= tender control list
I have override handleAddOrChange() method on deleting tender deposit list validation is fire before saving the data so due to which number of tender deposit list count is coming wrong.
For example if number of tender control is 2 and number of tender deposit is also 2.
On deleting one tender deposit list(now 2-1 = 1) and click on save button the number of teder deposit is coming 2.
Since validation is fire before saving data.
This type of child list validation is handle by handleRegisteredChange() method in change handler.
But this method is triggered only if it is called by BusinessEntity(DepositControl).registerChange(change); method.
But what is change parameter and how to make this parameter, I am not getting. So please if any body have idea regarding this. Below is the code--
* @ChangeHandler (entityName = depositControl)
public class CmDepositControl_CHandler extends AbstractChangeHandler<DepositControl>{
     private static final Logger logger = LoggerFactory.getLogger(CmDepositControl_CHandler.class);
     @Override
     public void handleAddOrChange(DepositControl dcEntity, DataTransferObject<DepositControl> prevDto) {
          // TODO Auto-generated method stub
          super.handleAddOrChange(dcEntity, prevDto);
          logger.info("[===] Inside handleAdd or Change");
          /*if(getOpenDepositControl(dcEntity) > 1)
               addError(CustomMessageRepository.oneOpenCashierControlAllowed());*/
          if(getTenderControls(dcEntity) > getTenderDeposits(dcEntity))
               addError(CustomMessageRepository.tndCtrlDepCtrlCompare());
          logger.info("[===] Complete");
          try {
               logger.info("[===] Before registerChange");
               dcEntity.registerChange(change); ///////// how to create this change parameter
          } catch (InstantiationException e) {
               // TODO Auto-generated catch block
               e.printStackTrace();
          } catch (IllegalAccessException e) {
               // TODO Auto-generated catch block
               e.printStackTrace();
Edited by: Atul Singh on Sep 4, 2012 10:38 PM

Hi
Whenever you change dep key in Asset Master,no need to pass any adjustment entries as system will recalculate the dep and will post adjustments in the next period dep run.
Please execute AFAR (recalculate dep), it will recalculate dep and will give you old value and new value diff . if any.
Then you can run your normal dep run , it will adjust all the differences in dep.
cheers
Mukta

Similar Messages

  • How to change System Input Method ?

    I tried to write multilingual program.
    I have system input method and specific input method code (lib/ext).
    How to change System Input Method from a code ?
    or
    How to handle an event when i chage system input method in the Windows.
    (My OS is Windows XP).
    I tried to do (for example):
    java.awt.im.InputContext ic = this. getInputContext ();
    ic.selectInputMethod(new Locale ("ru"));
    It doesn't help.

    up

  • Payment method declined.Please change your payment method

    Hello
    I have an iPad and an iPod,I am 15 years old so my uncle gave me his credit card,everything was awesome,I have been buying stuff free and paid for years and recently I have been receiving this problem "Payment method declined.Please change your payment method" .. Whenever I wan't to download an app either it is for money or free or even when I want to update an app that I have already downloaded a message saying "sign in required" I put my password again and the a message appears "there was a problem with the previous purchase,please update your payment information" I update the information and I am sure that the credit card is all good and filled,and I enter the information right even though the only bar empty was the Security code,anyway when I finish everything I tap done,but then it tells me "Payment method declined.Please change your payment method",I did everything,log out log in,waiting,trying over and over,but it didn't work,this problem happened a long time ago but unlikely it was fixed two days later,now I am facing this problem and I don't know how to fix it.I have seen lots of other threads that discuss this problem,but my problem is that I live in Jordan-Middle East,which is a problem because as one said was the solution is to change the credit to "none" and then return it back,I can't do that,because for some reason there is no "none" option in the page displayed,and for the other one who said to enter from store.apple.com and enter the billing information again,that won't work for me either because I can't find except "apple.com/us" >:(, I can't log in to my account in jordan while there's nothing but us app store on PC.
    For god's sake someone help me out,I am really ****** off of this,I can't find a way to even send an email to apple .. can anybody help? it will be appreciated a lot.. I want help fast,I can't change my account because I have already bought a lot of apps (with money) and I can't just let the money worth go away :/
    If anyone can help (not discuss and complain and tell me sorry) it will be very awesome,because I have no much more to do about this and now I am trying to reach for help
    Thank you.

    We are users like you. There is nothing we can do about the credit card. Call the credit card company and ask them why the purchases have been decined. They will know for sure and will be able to tell you. Wait, it is not your credit card. Who ever is the account holder will need to call the credit card company.

  • How I can change ma pay method in iTunes if I don't want to use my credit card?

    How I can change my pay method y iTunes if I don't want to use my credit card?

    The iTunes Store sometimes requires it even if the card wouldn't be charged; if it actually gets charged and you're not trying to gift the songs, ask the iTunes Store staff for assistance.
    (113277)

  • How to change the payment method of a subscription...

    Hello!
    I have just purchased a subscription in skype via credit card. Now I seek for a way to change the payment method from credit card to bank transfer.
    My problem here is, that when I go to the subscriptions page, I get the option to ''change payment method'', after which I get redirected to the payments page where I just can ''add a payment method''. This gives me the option to add a new credit card, which kind of fails the sense of changing the payment method at least for me.
    Am I overlooking something or can it really be possible that I am stuck with paying by credit card until I cancel my subscription?
    As a side info, I'm located in Finland, therefore I do only have access to Finnish banks (in case that makes any difference).
    I hope someone can help me solve this problem.
    Thanks in advance,
    Fahlyn
    Solved!
    Go to Solution.

    martinimartini wrote:
    I have the same problem. I used Pay Pal payment before but Pay Pal limited my account so I can only use Pay Pal until after 180 days according to their specific regulations. I also do not have any credit card. How am I supposed to pay for my Skype that I have been using since start of Skype. I really need outgoing calls.  Martin
    Hi,
    As I understand you have a restriction on your PayPal account, unfortunately this is something Skype can't help you with.
    But you can try alternative payment methods: www.skype.com/intl/en-us/prices/ways-to-pay/
    Another option is to let your friend set up Skype Manager account, purchase credit there and allocate it to you: https://support.skype.com/en-us/faq/FA10519/What-is-Skype-Manager-and-how-does-it-work
    Andre
    If answer was helpful please mark it with Kudos and if issue is resolved mark it with solution. This will help other users find this answer more easily. Thanks in advance!

  • After using PayPal for over a year to make in-app purchases, now I can't. I changed my payment method to credit card but still can't. Anyone have suggestions/info?

    I have been making in-app purchases with PayPal for over a year. Now I cannot. I changed my payment method to Credit card, but still can't. I can purchase music in itunes but no game purchases. My ID was disabled after a paypal dispute but after an entire evening on the phone with support and security, that was resolved. Any suggestions? If I have to spend more time on the phone with support, I will. But I would rather not.

    Not clear what you mean by iTunes help. You can contact iTunes support by:
    Apple - Support - iTunes - Contact Us

  • Change the Payment Method at header level in Sales order document.

    Hi Experts,
    I have a doubt and a problem; I want to change the Payment Method at the header level however that is not possible never at header level is the same even either I chose other when I was creating the sales order document or I tried to change after that. The system allows changing the Payment Method but when I display the document after that the change is not done always is the same payment method. Maybe it is defined at customer or sales organization level.
    At item level it is possible change the payment method with any problem.
    Thank you and best regards.

    Dear Alberto
    Payment Terms can be changed both at header level and at item level in sale order.
    thanks
    G. Lakshmipathi

  • Mass change of Payment Method for Vendor

    Is there any way to do mass change of Payment Method for Vendor (trx. XK02) without ABAP? Need to change 1500 vendors.

    HI
    You can use transaction code MASS and object LFA1 to mass change the payment method.
    Once entering you can select table LFB1 and do mass change based on some filter parameters.
    Anand

  • How to change my payment methode o none

    My visa card is declined and i want to change my payment method to none ......without using another visa card cause i can't...
    i need help,
    thanks...

    None for payment
    After establishing the Credit Card account (bought things from iTune or App Store), you can remove the credit card information by editing your payment info, choosing "None".
    http://i1224.photobucket.com/albums/ee374/Diavonex/3251ae4b9345e8a0551a15d5cad4b 5a9_zps1c6950c2.jpg

  • F110 Configaration - Manually change the payment method.

    Hi Experts ,
    Below is my requirement
    In Txn FBZP.
    1. Use 'Payment method in country' to create a new payment method 'P' as copy of
        payment method 'C'.
    2. Use 'Payment method in company code' to add method 'P' to 3010 ( Company
         code). The only difference between 'C' and 'P'  should  be the SAPScript check
         form.
    3. Create a proposal with payment method 'C'.  in Txn F110, Manually change the
        payment method to 'P'.
    Here my question is how to change the payment method from "C" to "P" manually.
    Thnx & Regds ,
    Rajasekhar.P

    Hi
    Run the Proposal...after that go to the Edit proposal and using the reallocate button and change payment method manually..
    VVR

  • Change of Valuation Method

    Dear All
    Is it possible to Change the valuation method from FIFO to LIFO or Moving Average Price, when the Stocks are available in factory

    Standard to MAP and vice versa are very well explained in the document provided by Ramana on page 31. Thanks Ramana!
    As far as the FIFO and LIFO valuation are concerned, the system continues to maintain in standard or MAP, as setup by the price control indicator, S or V. What the system does is, at the period end, finds what would be the value of the closing stock, if FIFO or LIFO is method is followed. It is only relevant to valuation of closing inventory. <b>It is for information purpose</b>, but still if you want to value the inventory on FIFO or LIFO basis, then <b>you can set up the update indicator</b>. If it is done so, then the value proposed by LIFO/FIFO analysis is updated, <b>as if it were a price change.</b>
    In OMWE you can <b>parallely maintain both LIFO and FIFO</b> active.

  • Latest change of payment method

    Skype has changed its payment method to credit card ... Thats bad .... Please revert back

    For that youo need to open the acceptance system for configuration using transaction code SCC4.
    Contact your BASIS team to perform the same.
    Please ensure that for production, all changes should go via proper channel of DEV- TEST - PRD route.
    Regards,
    Gaurav

  • Setting filterFunction on ArrayCollection acting as provider for DDL--and change handler not firing?

    Hi All,
    I've got a Spark DropDownList (I'm on Flex SDK 4.0, Flash Builder 4).
    That DropDownList has an ArrayCollection as its dataProvider property, and in response to user gestures, I change the filterFunction on the ArrayCollection (and call ArrayCollection.refresh()) to update the list of items in the DropDownList.  This works fine.
    However, what I wasn't expecting was that neither my change event handler, nor my valueCommit event handler gets called when the selected item in the DropDownList changes due to the filterFunction filtering out items from the ArrayCollection.
    In other words, let's say I have items A, B, and C in ArrayCollection (and thus, also as items in my DropDownList).  Item A is currently selected, but I then set the ArrayCollection.filterFunction to something, and call ArrayCollection.refresh().  Items A and B are filtered out by the filterFunction, and it disappears from the DropDownList, causing item C (the next available item after A and B) to be selected.  But, even though the selected item has changed, neither my change handler nor my valueCommit handler get called.
    I know the handlers are working, because the change handler gets called when the user selects a new item from the DropDownList, and the valueCommit handler gets called when the selectedIndex is changed programmatically in code, as expected.
    Is this a known issue?  Is there an event I can listen to so I can know when the selected item has changed in this circumstance?
      -Josh

    I'm not on a beta.  I'll try post a short test case as soon as I am able, but I'm in the final week before a major project deadline and as a result I've got to stay pretty focused on that :-)

  • Recalculation of dep by change in depreciation methods from wdv to slm

    Dear all,
    advice me as per indian accounting standard. I am in great need for this solution.
    my scenerio
    we are on ECC 5.0.
    As per the standards if an organization change its depreciation method e.g from WDV to SLM or vise versa, system should recalculate the depreciation for all assets from first acquisition date. i am trying to explain the situation the following example:-
    first acquisiton in assets X - 4/1/2000 for 50,00,000/-
    dep method - WDV CALCULATED @ 13.91
    both PLANT -1, PLANT-2 are in the same company code 1000.
    in PLANT -1 - WDV METHOD
    in PLANT-2 - SLM METHOD are used
    up to 05.11.2007 the asset X is in PLANT -1 & dep is calculating @ 13.91 on WDV method.
    on 06.11.2007 the asset X is transferred from PLANT -1 to PLANT-2 in which SLM METHOD @ 4.75%
    is used.
    present scenario
    Depreciation is calculated up to november (8th period) of current year @ 13.91 on WDV method.
    on this situation system should recalculate the past depreciation from 04.01.2000 as per SLM method and post the surplus in dec'08. i.e, reduce the depreciation amount in the current year.
    is above situation is possible in SAP. if yes please explain in detail. if not then what is the best possible way to meet this requirement.
    Thanks & regards,
    Sandeep

    Yes Sandeep, Change the Depr key (Depr method). Run AFAR to see whether the system recalculates the Depr for atleast the current FY, if not for the previous FY's.
    Now Manually calculate the Difference in depr till last FY (WDV Depr minus SLM Depr) and post the difference amount thru ABZU transaction.
    Check to which account the ABZU post the excess depr.  You can post a rectification entry for the excess depr posted thru ABZU, if you want to transfer it from the existing account to the new account, for accounting purpose.
    Please follow these steps in an order & revert in case you still have any questions.

  • HT1918 I can not  change my payment method. My payment mothod said 'None' but I would like to change to visa type

    I can not  change my payment method. My payment mothod said 'None' but I would like to change to visa type. I did change actually but it said my credit card doesn't match with bank's information even I live in US and use Wells Fargo Bank.

    Have you contacted iTunes Support (these are user-to-user forums) ? If not then you can do so via this link and ask them why the message is appearing (we won't know why) : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption

Maybe you are looking for

  • Authenticating a User against UNIX LDAP

    I recently submitted a post to determine how to authenticate a user against the Windows Active Directory. Is this also possible with UNIX? Is the code syntax basically the same? Thanks in advance.

  • Line Color and color shadow in smartform with release 46c

    Hi, we have a sap system release 46c. We are developing a smartform, the smartform have a template with multiple box,lines and columns. We want that the lines will be in one color and some of the box will be filled with a color. Is possible have colo

  • How to go to a particular link found in inspect element?

    Hello, I was using inspect element to find a link on a particular site and I found it but I was wondering how do I get the page to scroll to that link and highlight it for me with out having to scroll manually or does it not work like that?

  • Best way to move Mail, Contacts, and Calendars

    I'm adding an additional server to my network to distribute some of my services and I would like to move the mail, contacts, and calendar services to this new server. It will be a ML machine running 10.8.5 with Server 2.2.1. I have these services alr

  • Changing sap icons

    Does anyone know how do I change a sap icon ?? for example if I want to change the icon of WORD to another view how do I do it ?? Regards, Menachem Roth