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

data not refreshing

Hi Experts ,

In my web dynpro application, I have 2 components comp1 and comp2 . Comp2 is declared as used component in comp1 . I am executing one RFC in comp2. When I go to View1 in comp1 , I want to dispaly changed data .

Hence I am calling one RFC to display data in onPlugFrom_View2 . but I am not able to see changed data .

Thanks in advance

Dhanashree

Add a comment
10|10000 characters needed characters exceeded

Related questions

5 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Dec 13, 2005 at 05:38 AM

    Hi Dhanashree ,

    You can make use of ComponentInterfaceController to pass the data from one Comp to another.

    Create context @ComponentInterfaceController and do the context mapping correctly .

    Regards, Anilkumar

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 13, 2005 at 06:00 AM

    Hi ,

    Its not related to interface controller . Bapi which is changing data is diifernt and BAPI which is used to dispaly data is different . So in comp1 itself I am executing BAPI to display data . but is is not fetching updated data .

    Thanks ,

    Dhanashree

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Dhanashree,

      Try the following.

      1. Declare your component usage as "Manual" and not "Create on Demand".

      2. Depending on some condition, say on click of a button,create your component dynamically. the code will look something like this.

      if(wdThis.wdGetUsedPlanningPropertyCompComponentUsage().hasActiveComponent()){

      wdThis.wdGetUsedPlanningPropertyCompComponentUsage().deleteComponent();

      }

      wdThis.wdGetUsedPlanningPropertyCompComponentUsage().createComponent();

      Regards,

      Bala.

      Please consider rewarding suitable points to the answers on SDN.

  • Posted on Dec 13, 2005 at 11:00 AM

    Hi Dhanashree,

    Try invalidating the context before calling the RFC.

    That might help.

    Regards,

    Sangeeta

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 13, 2005 at 12:12 PM

    Just make me clear on this

    are you going from comp2 View 2 to comp1 view 1..

    Where u used onPlugFrom_View2..

    AD

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 13, 2005 at 02:38 PM

    Hi,

    1) Try to put all of yours BAPI into one Model.

    (keyword - transaction isolation)

    2) Try to use BAPI_TRANSACTION_COMMIT

    Add a comment
    10|10000 characters needed characters exceeded

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.