on 01-17-2007 10:43 AM
Hi,
I have a webdynpro screen with GetData and UpdateData button. On clicking getdata i am calling getData bapi. After changing the value on click of UpdateData button i call updateData bapi. The changes are reflecting in R/3. Now when i click GetData again, i am getting old data not the updated one. But if i refresh the page and click the button i am getting new data. We are invalidating output node after executing bapi.
Some how BAPI data is not getting refreshed unless we refresh the screen. Any help.
regards,
Sujesh
before calling the modelobject.execute() method you might have <b>bind</b> the bapi input node to new input node.<br>
and the object to which you have binded will be declared in gobal declaration section.That is why the data is not refreshed without opening a browser again,.<br>
1. Define that node to a place where you have called the bind() method.(just one line up before calling the bind method-- may be in init method or on the action of button.)
*DO not declare in Global declration. inside bein others and end others<br>
2. Do not forget to invalidate output node aftercalling execute method.
<br>
It will solve your problem.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi sujesh,
is your layout directly showing the model data on the screen or populating it into a value node?
Regards,
Gopi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
sujesh,
Make sure that:
1. You first calling GetData BAPI
2. You are invalidation output node of GetData BAPI only afterwards.
Seems that [1] is missing
Valery Silaev
SaM Solutions
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.