Skip to Content
author's profile photo Former Member
Former Member

component usages: context not updated...anything like dynp_read_values?...

Hi .

I have Comp A which uses Comp B ... Comp B is used across several applications. Comp B has a context node N which has external mapping (ticked).

In a view V1 of Comp A, view container is used to display the view V2 of Comp B which contains the Context node N.

When user enters a value in a field in the view V2 (this is done through View V1), the context of comp A doesnot automatically get updated.. I also have a button in V1 which opens a popup, when the user clicks CLOSE on popup, the values in V1 change to the original values. eg: Initial value is 'SAP' , user changes the value to 'SAP1' but after clicking the button and closing the popup, the initial value 'SAP' is displayed again.. I need SAP1 to be visible..

Can anyone tell me how this can be achieved..

In Classic Dynpro f.m dynp_read_values could be used to read screen field values even without trigerring PAI...Is there something similar in WDABAP which allows me to read the screen field values.

I am thinking of reading the screen field values and updating the context in the WDDOBEFOREACTION() method of the view..

Please let me know how this can be achieved

Edited by: sk123456 on Sep 12, 2010 3:29 PM

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Sep 13, 2010 at 05:26 AM

    hi,

    Do external mapping from the interface controler of Component B which used in component A .Now the same node is available in component A.Use this context for the field used in the pop up.Data will get updated .

    Regards,

    Madhu

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      The answer is right, the context gets automatically updated. There was code in my modifyview method to repopulate the initial values everytime.. I changed this to be only valid for First_time

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.