cancel
Showing results for 
Search instead for 
Did you mean: 

data not refreshing

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

Hi,

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

(keyword - transaction isolation)

2) Try to use BAPI_TRANSACTION_COMMIT

Former Member
0 Kudos

Just make me clear on this

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

Where u used onPlugFrom_View2..

AD

former_member335005
Participant
0 Kudos

Hi Dhanashree,

Try invalidating the context before calling the RFC.

That might help.

Regards,

Sangeeta

Former Member
0 Kudos

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

Former Member
0 Kudos

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.

Former Member
0 Kudos

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