on 05-31-2010 10:25 AM
Hi Experts,
We tried implementing a requirement to clear off the standard address fields that we were populating in contacts screen , on clearing off of the account field by system.
For this, we used method DO_PREPARE_OUTPUT of class
ZLBP_ADDR_STANDARDADDRES_IMPL.
In this method, we are initializing(clearing off) the address fieldslike STREET, HOUSE_NO etc...during the next BOL modify call,
the method CL_BUIL_ADDRESS->MODIFY is called and here, we see that
above address fields have changed and hence the API BUPA_ADDRESS_CHANGE
is called and duplicates are again determined and added to the
collection. This happens everytime when the Contact screen is loaded
even if address details are not actually changed.
So when the next BOL modify is triggered (either during press of Enter
or change in other address fields) the duplicate result gets invalidatedand hence this exception of data incosistency.
If we bypass these statements , then this exception of data incosistency
does not occur.
Any alternatvie methods or approaches to achieve the same would be highly appreciated.
Thanks
Swapna Viswanathan.
Solved myself.This thread remains closed.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Method do_prepare_output will be triggered whenever the page is reloaded i.e whenever a server event takes place. Thats why your code gets executed everytime. You can insert your code in any particular event method or implement some validation in do_prepare_output and then clear the address fields only if the validation succeeds.
Regards,
Arun
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.