cancel
Showing results for 
Search instead for 
Did you mean: 

Function module refresh

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

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

snehal_kendre
Active Contributor
0 Kudos

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){

}

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi Vinod,

May i know the difference between Invalidate() and validate().

You had asked me to validate RFC input and result nodes,but how effective would this be to use.

Anyways i shall try and let you know but before that may i know the difference please.

Thanks and regards,

Chandrashekar.

Former Member
0 Kudos

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

suresh_krishnamoorthy
Active Contributor
0 Kudos

Hi Chandra,

Try invalidating the Output root node structure after executing it should work:

wdContext.<Output root node structure>.invalidate();

Regards, Suresh KB