on 04-12-2010 7:41 AM
hi folks,
i am new to WD Java and have a very simple question.
after getting data back from a RFC-Call to R/3 backend i call
wdContext.nodeOutput().invalidate();
to have my result in the context node, but i never see the result in my context node after this call.
the funny thing is i have the result in my internal tables but when i try to get the data with a call like:
if (wdContext.nodeEs_Visibility().currentEs_VisibilityElement().getHead_V() == "01")
- where my node in Output is ES_Visibility and the Element is Head_V -
i don't get a result?
whats my fault behind that?
best regards oliver
hi
check this link
, you can find sample code for calling rfc and invalidations .
and also check the size of the output node for the RFC it is 0 , then is some problem with your code .
If possible porvide the code you have written for calling RFC .
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
i put the field which value i want to check into a text-field on the screen and i can see the value is set correctly by my bapi call, my only problem ist to chekc againt this values which i do with the following coding, here comes the total coding:
as you see below , the statement
if (wdContext.nodeEs_Visibility().currentEs_VisibilityElement().getHead_V() == "01")
does not work but when i bind this element to a text view i can see thet the field has 01 as value????
in wd abap these things are that easier gg.
best regards so far !!!!
public void read( java.lang.String kunnr )
{
//@@begin read()
IPrivateOrview.IVisElement element;
// element = wdContext.currentVisElement();
orview = new Z_Sd_Orview_Wd_0001_Input();
orview_out = new Z_Sd_Orview_Wd_0001_Output();
orview.setIv_Kunnr(kunnr);
wdContext.nodeOrview().bind(orview);
try {
wdContext
.nodeOrview()
.currentOrviewElement()
.modelObject()
.execute();
} catch (Exception ex) {
}
wdContext.nodeOutput().invalidate();
wdContext.nodeEs_Visibility().invalidate();
if (wdContext.nodeEs_Visibility().currentEs_VisibilityElement().getHead_V() == "01")
{
wdContext.currentContextElement().setHead_v(WDVisibility.NONE);
} else {
wdContext.currentContextElement().setHead_v(WDVisibility.VISIBLE);
}
//@@end
}
Dear Oliver,
After you make a request to the R/3 system, you need to invalidate the response node and not the output node.
Pls chk.
Regards,
Pappala.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
25 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.