on 04-16-2008 7:42 AM
Hi all,
I have executed one function module.Its structure is
Z_ABC_Operation->OutPut_Operation->Return_Operation->Result->Operation
The code is
try
{
wdContext.currentZ_Copy_Operation_InputElement().modelObject().execute();
wdContext.nodeOutput_Copy_Operation().invalidate();
}
catch(exception e){
}
the problem here i am not getting actual results.Only first time i am getting correct output.
From next time onwards some of the messages from return are not getting refreshed.I am getting the old messages every time,but if i refresh the app i am getting the correct output
Regards
ChandraShekar
Hi
Please try the same code once after removing
wdContext.nodeOutput_Copy_Operation().invalidate();
As you said that you are not getting actual results.Only first time you are getting correct output.
Also try setting the lifespan view property of your view from properties tab to when_visible .
Mandeep Virk
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Chandrasheker,
To solve yor problem
bind the node again when you execute your method..
try
{
wdcontext.your model node.bind(your model node class);
wdContext.currentZ_Copy_Operation_InputElement().modelObject().execute();
and remove this.....
wdContext.nodeOutput_Copy_Operation().invalidate();
}
catch(exception e){
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello chandra,
The code that you described is right and it has to work properly.
Check the following things:
(1) validate your RFC input and result nodes.
(2) on button press; check that you have manually assign any value to the input parameter.
(3) In which control you have bind the result node. If you are not using Table, Try with that and see the outcome
(4) Still problem persists; check your RFC at R3 side.
Regards
Vinod V
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Chandra,
I didn't mean to use the validate method; Check that your import and export parameters as well as the nodes that bind to them are right as per your requirement.
I think we have only invalidate method, that is used with the RFC result node which updates the result node values according to the inputs that we give.
No other problem i find from your post.
Check according to the list.
Regards
Vinod V
Hi Chandra,
Try invalidating the Output root node structure after executing it should work:
wdContext.<Output root node structure>.invalidate();
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 |
---|---|
84 | |
24 | |
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.