Hi,
I am trying to add data to table in RFC. For testing purpose i have hardcoded the value..
I am callin one RFC...it simply has only one node(table) to accept value.. and thus similarly one node for output..
I have put following code in init() method of view....
Ztest2 is my RFC name amd Ztest_table is table in R/3...
{
//@@begin wdDoInit()
Ztest2_Input input = new Ztest2_Input();
Ztest_Table tab;
for(int i=0; i<5;i++)
{
tab = new Ztest_Table();
tab.setTestname("a");
tab.setTestnumber(i+5);
input.addMytab(tab);
}
wdContext.nodeZtest2_Input().bind(input);
try
{
wdContext.currentZtest2_InputElement().modelObject().execute();
}
catch(Exception e)
{
}
wdContext.nodeOutput().invalidate();
//wdThis.wdGetSampleCompController().execute();
//@@end
}
Now in the layout i have included two table , where one is binded to input node myTab and other table to output node..
But on execution..the layout table display value..but the table which is binded to output node..does not shows value..
Thus due to which even table in RFC is not getting updated...
What am i doing wrong in above code..
can any one plzz help me on this..
Regard,
jigar OZa