Get_context_change_log retrieves no changes although turned on

Dear all,
Thank you for looking into this issue. We have a complex WD ABAP application with many views, embedded views, etc. In most of the views embedded in the main view we're calling in the wddoinit the context method enable_context_change_log to enable logging of the context changes (to determine if the user made any changes) like this:
WDDONIT
lr_context = wd_context->get_context( ).
lr_context->enable_context_change_log
Since this is such a complex application we need to react at any user action so in the method wddobeforeaction we're trying to see if there were changes and we want to set the dirty flag of the portal integration (so that when the user moves from the app in the portal, he still has a chance to save) like this:
WDDOBEFOREACTION
lr_context = wd_context->get_context( ).
lt_changes = lr_context->get_context_change_log( ).
if lt_changes is not initial ... etc.
When making a change in the UI element attached to the context and trying to move to a different view or to exit the app, the lt_changes is always initial in the case of this one view. If we check in debug the class behind the lr_context, we see that the attribute is_context_change_enabled is set to 'X'. So apparently there are no changes - but the context does contain the new value of the text field.
What I noticed is that even in the views where this works (because it does work in other views), when calling the context method enable_context_change_log we get (in debug) the exception cx_wdr_rr_exception.
After checking some OSS notes like
1397754  WDA: Dump because view usage does not exist 20.10.2009
1415096  WDA: The repository handle is no longer valid 04.12.2009
1420019  WDA: Dump in SAPLWDR_RUNTIME_REPOSITORY
I'm starting to be afraid that something happened in development that may have cause several WD problems and it may affect our application.
Do you have some opinions about this issue?
Do you know how I could find out who throws the mentioned exception? With system debugging I couldn't go deep enough to find out who throws it.
Thank you in advance,
Ioan Radulescu,
Sr. SAP HR Consultant @ Gavdi DE

Hi,
Please follow this approach,
1. Place the following code in the WDDOINIT method of the Component Controller
" this you have already done
* enable context change log
    data: context type ref to if_wd_context.
    context = wd_context->get_context( ).
    context->enable_context_change_log( ).
2. Create a new method 'GET_CHANGE_LOG' in the Component Controller's Methods Tab
" Create a Returning Parameter 'CHANGES'  type WDR_CONTEXT_CHANGE_LIST
method get_change_log .
    data: context type ref to if_wd_context.
    context = wd_context->get_context( ).
    changes = context->get_context_change_log( ).
endmethod.
3. Call the above method in WDDOBEFOREACTION as follows
DATA: l_ref_componentcontroller TYPE REF TO ig_componentcontroller .
    DATA: l_changes TYPE wdr_context_change_list.
    l_ref_componentcontroller =   wd_this->get_componentcontroller_ctr( ).
    l_changes = l_ref_componentcontroller->get_change_log( ).
"  l_changes will contain all the details of the changes made.
Hope this solves your issue.
Best Regards,
Radhika Vadher.

Similar Messages

  • I don't know the password for the SMTP account so as to mail photos.  How can I retrieve or change the password?

    I am unable to share photos from the Iphoto program because I don't know the password for the SMTP account.  How can I either retrieve or change that password?  Or is it one I already should know?

    Have you set the general preferences in iPhoto to email using iPhoto? Then change it to email using "Mail". This way iPhoto will use your regular Mail account.

  • I'm trying to retrieve or change my password for an OLD itunes account. I know longer have access to the email in question and Apple refuses to acknowledge my birthdate. What to do?

    I'm trying to retrieve or change my password for an OLD iTunes account. I no longer have access to the email account in question. Apple will not accept my birthdate. What to do?

    send an e-mail to the iTS customer service using this form, describe your problem and ask the folks there to help you sort it out.
    JGG

  • Retrieving latest changed date UDATE for Vendor.

    Hi All,
    I have a requirement to retrieve latest changed date UDATE field from CDHDR table based on company code wise??.
    As the vendor can be same for different company codes, I need to retrieve the company code wise latest changed date of vendor.
    Hope am clear.
    Currently am doing this 
    SELECT objectclas objectid tcode udate
        FROM cdhdr INTO  CORRESPONDING FIELDS OF TABLE it_cdhdr
        FOR ALL ENTRIES IN it_lfa2
        WHERE objectclas = 'KRED' AND
              objectid   = it_lfa2-objectid
        AND   change_ind = 'U'.
    SORT it_cdhdr BY objectid udate  DESCENDING.
    Its giving me the latest changed date. But I need latest changed date -company code wise?
    Any help is highly appreciated.
    Thanks & regards
    Himayat.

    Hi,
    Use function module CHANGEDOCUMENT_READ to get the details of CDHDR as well as CDPOS data. Records of table CDPOS where TABNAME = 'LFB1' will have the details related to changes in company-specific data.  Structure EDITPOS of above function module will give you detail information.
    Regards
    Vinod

  • Retrieving the Change Texts per Line Item (Purchase Order) - Very urgent

    Hi,
    How do you retrieve the Change Texts per Line Item (Purchase Order).
    Table T166T does not list these values per line item.
    Please help. This is very urgent & important.
    Best Regards,
    John

    if you are lookin out for change of item texts ...
    then use the function module ... READ_TEXT.
    and 2 tables r used ... STXH and TLINE ....
    double click on item data ...
    goto PO TEXT tab ....
    double click on text ...
    from menu ...
    goto header ... u'll get 4 fields that u need to consider ...
    TDID
    TDOBJECT
    TDHEAD
    TDNAME
    ALL THESE U'LL FIND IN  STXH
    ITEM TEXT is stored in TLINE
    Edited by: anjali rana on Mar 5, 2008 4:55 AM

  • HT1349 I have logged in to my iTunes account but forgot my security answers. How do I retrieve or change them?

    I have logged in to my iTunes account but forgot my security answers. How do I retrieve or change them?

    Look here.

  • Modification date changes although nothing changed

    Hi all,
    any time I open a document with pages the modification date changes although nothing was changed.
    This is not very logical and I don't like that behavior.
    I wonder if it is possible to avoid this.
    Any clues?
    Greetings, Ronald Hofmann

    Yes, of course, what else. Thank you.
    There is only one date shown at all.
    It shows when last opened and when last changed.
    But in my opinion it's not very important when it was last opened.
    Much more important is the information when the document was changed.

  • HT5312 I forgot my security question answers, how do I retrieve or change them?

    I forgot my security question answers, how can I retrieve or change them?

    If the email in that article you refer to doesn't help, contact Apple support at the appropriate number from http://support.apple.com/kb/HE57 and ask to speak with Account Security.

  • Retrieve or change password for sub account

    I need to retrieve or change the password for a sub account (my wife) Her computer died and am setting up her email on a new computer.

    gustav21286 wrote:
    I need to retrieve or change the password for a sub account (my wife) Her computer died and am setting up her email on a new computer.
    If you know the password to the sub, you can log into it and change the password the same way as you would change the password for the primary.
    If you do not know the current password, you can try the forgot password link. Apparently this link is not the same accross all pages, and some of the links don't play well with sub accounts. Go to http://webmail.verizon.net and use the Forgot Your Password? link from there. You will have to answer the secret question for this method.
    If you cannot remember the secret answer, you can call Tech Support and have them reset it for you. They will reset it to a random string of numbers and letters, which you can then reset to a personal password through the customer portal. Contrary to what Catemaco stated above, tech support does not have to set your permanent sub account password. Reset passwords are intended to be temporary measures.
    If a forum member gives an answer you like, give them the Kudos they deserve. If a member gives you the answer to your question, mark the answer as Accepted Solution so others can see the solution to the problem.
    "All knowledge is worth having."

  • Change or turn off comment highlighting

    Is it possible to change or turn off the highlighting behind the comments? The bright yellow is a bit much and I'd like to tone it down a bit. I found where I can change the color of the comment text and other text (Window - Preferences - ColdFusion - Editor Profiles - Editor - Colors), but there doesn't seem to be any setting for the background highlighting.

    Thanks Adam, that bug listing has a comment by Sean Smith that mentions exporting and manually hacking. He also has a blog post URL there, but I didn't follow it as it wasn't an actual link.
    It is pretty easy to find though. I opened the file in Notepad++ and found this line:
    <style background="rgb(255,255,153)" foreground="rgb(128,128,128)" id="WHITESPACE_TAG_COMMENT"/>
    That was based on my having already changed the text color from black to a medium gray. So the foreground is the text color and the background is the highlighting. I simply changed the background rgb values to (235,235,235) for a light gray.
    As a note to anyone else following this discussion, getting the rgb values is pretty easy by going into those preferences and clicking any color as though you are going to modify it. In the Color pop-up, click Define Custom Colors>> and use the spectrum in there to reveal the Red, Green, Blue values you want.
    Save that *.col file and Import it back via the Preferences page.

  • My 3g is stuck on a screen that only allows emergency calls, wont conect to itunes, doesnt change when turned off or plugged in, any ideas how to fix it?

    my 3g fell in toilet thursday, dried out and worked yesterday, now its stuck on a screen that says emergency call. wont connect to itunes, doesnt change when turned off or plugged in, any ideas

    If you are eligible for a discounted upgrade through your carrier, this would be a great time to consider it. The phone is most probably permanently damaged.

  • HT5312 under mail, contacts , calendars, Exchanges.  I have forgotten the password.  How do I retrieve or change?

    Uner mail, contacts, calenders.  Exchanges.  I have forgotten the password.  How do I retrieve or change this password?

    login here:
    https://appleid.apple.com/cgi-bin/WebObjects/MyAppleId.woa/
    using your Apple ID and password
    Add email address.
    apply
    you will receive email with a link to verify it - so please do.
    back in the apple ID webpanel
    make the new email address Primary
    apply
    remove the old email address
    and youare done

  • To retrieve SCC4 changes for a month

    Hi,
    We need to retrieve SCC4 changes for every month.
    For this, we will have to run program RSVTPROT for table T000. Since we need this data on 1st calendar day of every month, we are scheduling a monthly job for the same.
    We are facing problem while giving 'variant' for this job. Our requirement is that the report should run against a dynamic variant where the SCC4 changes for the past month is retrieved. While creating this variant we can give a particular time period only.
    Please advise.
    Is there any way we can create such a variant or we will have to schedule a job manually on every last day of the month with a new variant for that time period.

    You can use selection variables which dynamically calculate the FROM and TO dates based on the current data or an option such as "First day of the previous month" etc.
    I don't see any problem, except that this is not specifically security related. Perhaps a "Did not read the documentation forum" is needed for it...
    Cheers,
    Julius

  • How to create an Apple ID with a password that can't be retrieved or changed by user?

    Wondered if anyone knew if it's possible to create a hidden Apple ID where the password cannot be changed or retrieved on an iPhone?
    Thanks so much!

    You cannot retrieve the Apple ID password on an iPhone, unless it's saved into a Note or something.  Nowhere on an iPhone can you see the Apple ID password.  Only exception to this is (possibly) if you've logged into an Apple website with your Apple ID via Safari, and Safari saves the password, if you request it, and you can look at the saved passwords in Settings > Safari.

  • Program monitor changes size when Motion controls change. Turn this off please?

    Hi. I'm running Premiere Pro CC on a fairly new (~6 mo old) iMac with 16 GB ram, SSD, Mavericks, the works. Everything's been great so far.
    However, I'm having an issue whenever I use the Motion Effect Controls in the Program monitor/timeline. Any time I change a position or scale, the program monitor jumps from 16:9 to 4:3, and doesn't display any type of screen safe, so I have no idea where I'm actually placing/moving the item. This is a real bother, and it never was an issue before. Can I turn this off? Please help!

    I've never seen anything like that.  I don't know how you'd even make it start!

Maybe you are looking for

  • What's a good gaming laptop?

    College student here, in dire need of a new laptop.  I dropped my old one and the screen cracked.  Plus it's rather old and slowly starting to die on me. So with that said, I need a laptop for school, but I also need it to be able to run WoW and LoL.

  • Check that at least one variable is set

    I have 10 variables/parameters and i want to ensure that at least one of those is not empty/null. What is the best way to check that? Example of parameters: p_item_category1 varchar2, p_item_category2 varchar2, p_item_category3 varchar2, p_item_categ

  • Editing a Feature Length Film... pointers?

    Hey Guys- I'm currently working on a film thats going to be about 60-70 minutes long, and before I started editing/logging footage, I needed to ask some advise. I've only ever edited small projects (less than 20 minutes), and while I'm pretty decent

  • Aperture 2 and Keywords

    Does anyone have any information regarding any changes or enhancements in the way that Aperture 2 handles keywords. Have there been any upgrades with this feature. For example, I have frequently wanted to be able to conduct an hierarchal keyword sear

  • HELP! My computer resets itself intermittently when I'm connected to the internet (WRT54G).

    Around 10/10/08 I began experiencing this problem where my computer will randomly reboot itself, while using the internet. As long as the wireless network adapter is unplugged, there is no problem. This is also happening to my roomate's computer who