cancel
Showing results for 
Search instead for 
Did you mean: 

No Data Returned After Executing the Model

Former Member
0 Kudos
43

HI Everyone

I have created a ARFC2Model in NWDS 7.3. Followed the following link to create the model

http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/50f7192d-2808-2d10-189b-df3fa5f71abf

1) Imported the RFC and created ARFC2Model

2) Mapped the model nodes to component controller

3) written a method to execute the RFC in component controller The model gets successfully executed. There is no exception but still the data is not returned. I had put the debug point in RFC and it stops there.

input.execute(); wdComponentAPI.getMessageManager().reportSuccess("Value from backend " + input.getCt_Inco().size());

Here the size is returned as 0.

Could anyone please tell where could be the issue?

Regards Sonal Edited by: Sonal Mangla on Jan 7, 2012 1:00 AM

Edited by: Sonal Mangla on Jan 7, 2012 1:01 AM

Accepted Solutions (0)

Answers (2)

Answers (2)

junwu
Active Contributor
0 Kudos

1. check if the bapi did return data or not (abap side)

2 check if the bapi should return data or not with the parameter you filled.

Former Member
0 Kudos

Hi Arun and John

Thanks for your replies.

I checked the output node's size as well. Its 0 and also the bapi is returning the data . When I had put external debug point, it stopped and when I executed the bapi pressing F5, I could see the data is filled in the table which was returned.

Regards

Sonal

Former Member
0 Kudos

How can I test if the JCOs are fetching the data properly? Can there be issue with JCOs as well?

Regards

Sonal

p330068
Active Contributor
0 Kudos

Dear Sonal,

Please try to print the return code from RFC after execute.

Refer to the link might help : [Linking Remote Function Call to Web Dynpro|http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/761eba66-0401-0010-b982-d5f5bd9e8f90]

I think JCO is fine because you are able to execute the model.

Check the required paramter passing to RFC for execution and return values.



<RFC_Node>_Input input = new <RFC_Node>_Input(WDModelScopeType.APPLICATION_SCOPE);
wdContext.node<RFC_Node>_Input().bind(input);

// set parameter, check if need to create the object for setting.
input.set<attribute>(<custom values>);   	  

input.execute(); 
wdContext.node<RFC_Node>_Output().invalidate();

// check the size of the output node and error message node return from RFC

Hope it will helps.

Best Regards

Arun Jaiswal

Former Member
0 Kudos

Thanks Arun. I solved it yesterday. I missed writing the following line of code coz I just followed the guide provided by sap. It doesnt have the following peice of code so thought we no more need to bind the model node with RFC

object. wdContext.node_Input().bind(input);

But still you deserve some credit

Regards Sonal

Edited by: Sonal Mangla on Jan 8, 2012 6:18 PM

p330068
Active Contributor
0 Kudos

Dear Sonal,

I am glad to hear your issue has been resolved.

Thank you so much for the Credit

Best Regards

Arun Jaiswal

p330068
Active Contributor
0 Kudos

Dear Sonal,

Check the size of output/response node under input/request node (which you have used for executing the model)

Best Regards

Arun Jaiswal