cancel
Showing results for 
Search instead for 
Did you mean: 

RFC - UI table as input. ( can't read ) help

Former Member
0 Kudos

Dear all,

I haf a UI table that binds to simple type ( 5 fields ) for user to key in data.Then the data will be use as input for the FM. For WoInvNum view,at the wdDoInit(),i haf the following codes

for (int i = 0; i < 5; i++) {

IPrivateWoInvNum.ITableElement tab= wdContext.nodeTable().createTableElement();

wdContext.nodeTable().addElement(tab);

}

den for the controllers,i haf

Bapi_Matphysinv_Create_Input input = new Bapi_Matphysinv_Create_Input();

Bapi_Physinv_Create_Items item = new Bapi_Physinv_Create_Items();

for(int i=0; i<wdContext.nodeTable().size();i++)

{

item.setMaterial(wdContext.nodeTable().getTableElementAt(i).getMatno());

input.addItems(item);

}

wdContext.nodeBapi_Matphysinv_Create_Input().bind(input);

But it seems i am getting error that it can't read the Matno and send to the FM...any idea? thanks

Accepted Solutions (1)

Accepted Solutions (1)

abhimanyu_lagishetti7
Active Contributor
0 Kudos

Hi

Try this

Bapi_Matphysinv_Create_Input input = new Bapi_Matphysinv_Create_Input();

<b>Bapi_Physinv_Create_Items item = null;</b>

for(int i=0; i<wdContext.nodeTable().size();i++)

{

<b>item = new Bapi_Physinv_Create_Items();</b>item.setMaterial(wdContext.nodeTable().getTableElementAt(i).getMatno());

input.addItems(item);

}

wdContext.nodeBapi_Matphysinv_Create_Input().bind(input);

Regards

Abhimanyu L

Former Member
0 Kudos

thanks! it works

Answers (0)