on 12-12-2008 9:45 AM
Hii,
I am executing an RFC which is to fetch some values.There are some conditions for which value is not fetched.Then
ResultNode.size() becomes 0. But after this situation arises, second time i call the 'fetch' method in my view, RFC is not executed.
Any clues why it is happening so ?
ResultNode : Model node containing the fetched values after RFC execution
try with invalidating that node
Thanks and Regards
shanto aloor
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Parama,
It seems your ResultNode is not getting refreshed after RFC call. Please try following approach to determine what is wrong.
1. Try running RFC in ABAP side with Transaction SE37 providing values that are not getting any results from Java side. If it works there, try following approach.
2. Invalidate the Resultnode after executing BAPI with following code.
wdContext.ResultNode().invalidate();
If these approaches do not work, please post your code here.
Vishwas.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
may be you can check the exception msg . by printing the exception message what error is coming in your try catch.also you can check by mapping the return parameter from bapi which includes the exception from R3 side. and you can also chk by mapping the err field which is output field....to know whats the prblm...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
You are sure that RFC is executed. ok There may be Situation for which ur not getting the size as zero.
1)May be the input parameter's you are passing are the wright one or not check with the Abap Team, whether u are passing the wright values.
2) Execute this RFC with the same values from R/3 System.
3) There may be another node(Say some node like xxx_Error ) Present in the same modal context, check this node size since this node contains the error received from RFC. If error is received then this node size will be greater than zero.You can ask about this node to Abap team whether they have included or not if any such error is received.
Regards
Prasad
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I had similar kind of problem with RFC. I had tried creating new instance of the RFC in each of the conditions. It worked for me fine. But I am not sure whether it is a good practise.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You may try to check the size of the node using a "If" condition
if(ResultNode.size() != 0)
Regards,
Padmalatha.K
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
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.