Skip to Content
0
Former Member
Jun 25, 2009 at 11:18 AM

Populate data in table through RFc

54 Views

HI,

I have imported one RFC from backend and in that RFC i have 2 structures.In first structure i have 6 colmuns and in second strucutre i have 8 colomuns and one common column is there for comparing the data.i wrote this logic

Structure s1, s2

Table node tablenode

for( loop s1){

IPrivateXXXXview.itablenode nodeElement = wdContext.createTablenodeElement();

wdContext.node.addElement(nodeElement);

nodeElement.setAtr1(s1.getattr1());

nodeElement.setAtr2(s1.getattr2());

...

..

nodeElement.setAtr6(s1.getattr6());

for(loop s2){

if(s1.id == s2.id){

nodeElement.setAtr1(s2.getattr1());

nodeElement.setAtr2(s2.getattr2());

...

..

nodeElement.setAtr6(s2.getattr6());

}

}

}

the values from first structure are populating fine in table but the values from second struture are not populating the correct values in the same table.Only one value is populating from structure in all rows.

Can anybody give me clue in this issue.

In first strucuture i have 16 records and in second structure i have 10 records.

Regards,

Prasad