cancel
Showing results for 
Search instead for 
Did you mean: 

How add Data in Model Node for use in RFC?

Former Member
0 Kudos

I wanna Execute a RFC and must fill the Model Node how can add data to this

<a href="http://img175.imageshack.us/my.php?image=modelnodepu7.jpg" target="_blank"><img src="http://img175.imageshack.us/img175/696/modelnodepu7.th.jpg" border="0" alt="Free Image Hosting at www.ImageShack.us"; /></a>i want to add data but i have the following error

<a href="http://img392.imageshack.us/my.php?image=errorrv6.jpg" target="_blank"><img src="http://img392.imageshack.us/img392/6769/errorrv6.th.jpg" border="0" alt="Free Image Hosting at www.ImageShack.us"; /></a>

How can i make this ?

Message was edited by:

Paola Groppo

Accepted Solutions (1)

Accepted Solutions (1)

joachimvanpraet
Active Participant
0 Kudos

Hello,

You don't have to fill the table in the outputNode.

I think you have to map your data again and use the table in the inputnode.

then you can create data with something like this:

Zhr_rfc_Pce_Get_App_Detail_Input bapiInput = new Zhr_rfc_Pce_Get_App_Detail_Input();

wdContext.nodeZhr_rfc_Pce_Get_App_Detail_Input.bind(bapiInput);

Much easier is using the wizard for service controller.

<a href="http://help.sap.com/saphelp_nw04s/helpdata/en/ce/a212403dbedd5fe10000000a155106/frameset.htm">Service Controller Wizard</a>

kind regards,

Joachim

Former Member
0 Kudos

Any idea how i can add dato to Model Node

I make this but i have error in run

int n = wdContext.nodeT_rfc().size();

int v_index;

IPrivateComparisonSearchView.IT_EvaluationElement T_Evaluation;

T_Evaluation = null;

IPrivateComparisonSearchView.IT_EvaluationElement

v_struc_1 = wdContext.createT_EvaluationElement(new Zshr_Pce_Evaluation_Sel());

wdContext.nodeT_Evaluation().validate();

for (v_index = 0; v_index < n; v_index++) {

// error !!!

v_struc_1.setAppraisal_Id("3123123");

wdContext.nodeT_Evaluation().addElement(v_struc_1);

}

Message was edited by:

Paola Groppo

i must fill the table but is a parameter of the rfc and must add data before to execute

<a href="http://img517.imageshack.us/my.php?image=errorxp8.jpg" target="_blank"><img src="http://img517.imageshack.us/img517/2783/errorxp8.th.jpg" border="0" alt="Free Image Hosting at www.ImageShack.us"; /></a>

Message was edited by:

Paola Groppo

Former Member
0 Kudos

I make the following step but the output table is empty

int n = wdContext.nodeT_rfc().size();

int v_index;

IPrivateComparisonSearchView.IT_EvaluationElement T_Evaluation;

Zhr_Rfc_Pce_Get_App_Detail_Input v_struc = new Zhr_Rfc_Pce_Get_App_Detail_Input();

wdContext.nodeZhr_Rfc_Pce_Get_App_Detail_Input().bind(v_struc);

for (v_index = 0; v_index < n; v_index++) {

Zshr_Pce_Evaluation_Sel v_struc1 = new Zshr_Pce_Evaluation_Sel();

v_struc1.setAppraisal_Id("xxx");

v_struc1.setUname("xxx");

wdContext.currentZhr_Rfc_Pce_Get_App_Detail_InputElement().modelObject().addT_Evaluation(v_struc1);

}

int x = wdContext.nodeT_Evaluation().size();

wdContext.nodeT_Evaluation().invalidate();

WELL I CAN FIND THE SOLUTION

Answers (1)

Answers (1)

Former Member
0 Kudos

I cant find the solution