on 11-30-2006 8:49 AM
Hi,
I call a BAPI through webdynpro which delivers a huge table as a result.
Since I do not need this data later in the application I am trying to invalidate it without success. The size of this output table remains the same.
This model node is emptied and filled with new data only when I call the BAPI again. Is there anyway to empty the BAPI output table as it is memory consuming?
Regards
MK
hi
After calling your BAPI write this code.
wdContext.nodeBapi.modelobject.inavlidate();
Regards
Nidhideep
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
After execution of bapi:
<b>wdContext.nodeBapi().invalidate();</b>
This invalidates ur complete node. If u wanna execute it once again on action u need to intialize it again.
If u wanna invalidate only output node, u can do this:
<b>wdContext.nodeBapi().nodeBapiOutput().invalidate();</b>
Regards,
Aparna .P
Invalidating model node force filling this node by data taken from model
And empting individual elements is time wasting process (you have to use loop).
you can try to adapt next code:
modelObj = wdContext.current_..>_InputElement().modelObject();
if (modelObj .getOutput() != null) {
modelObj.getOutput().getE_Elements().clear();
}
E_Elements here node which you mapped on iwdtable.
-
And in general if use Adaptive RFC model its a quite clever thing) For example if u have in R3 table with 40000 rows and execute BAPI using ARFC than ARFC will retrieve NOT ALL of 40000 rows at once but only needed to be displayed on UI.
Hi Meesum,
I think i understood your problem. You had binded your table directly to result node BAPI. Invalidate will always refresh the node but result data will be there always.
What is return type of result node ?. list, Abstract list, etc check in the models. when ever you want to empty the table and...if its list mean do like this
List records = new ArrayList();
wdContext.node<result node which u bind to the table>().bind(records );
Regards, Suresh KB
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.