on 04-02-2008 5:44 AM
Hi,
I developed many applications. Now i am developing one application where i get 5 tables as output. In that table only one field is there. Now i tried to show data from that table but i could not do that.
Can any one tell me is there createria for that table. Or i made mistake at elsewhere.
Please suggest me.
Regards,
Gurprit Bhatia
Closed
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Gurpit,
After u execute the BAPI, when u get the output as a table,
create 5 table UI elements and map it to the table UI elements.
After that copy all the values from the model node to the value node, the table gets populated automatically
Regards,
Poojith MV
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I am making one application in that i am passing emp no as input. There are 5 diffrent tables are coming as putput. All tables have only one field. These all fields are string type.
Regards,
Gurprit Bhatia
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ,
Try this.
After Executing the RFC you are getting the 5 model nodes in the output.
Output
|-----Output1attribute
|---Output2 attribute
|---Output3 attribute
|---Output4 attribute
|---Output5 attribute
assuming
TestDetails
|---attr1
|---attr2
|---attr3
|---attr4
|---attr5
node TestDetails is bound to your table.
for(int i=0;i<wdContext.nodeOutput().size();i++)
{
IPublicTestComp.ITestDetailsElement testDetails = wdContext.createTestDetailsElement();
testDetails.setAttr1(wdContext.nodeOutput1().getOutput1ElementAt(i).getAttribute());
testDetails.setAttr2(wdContext.nodeOutput2().getOutput2ElementAt(i).getAttribute());
testDetails.setAttr3(wdContext.nodeOutput3().getOutput3ElementAt(i).getAttribute());
testDetails.setAttr4(wdContext.node Output4().getOutput4ElementAt(i).getAttribute());
testDetails.setAttr5(wdContext.node Output5().getOutput5ElementAt(i).getAttribute());
wdContext.nodeTestDetails().addElement(testDetails);
}
or you can individually loop the output nodes and copy the output model node value to the value node that is bound to the table.
Regards,
Mithu
Edited by: Mithu Ghosh on Apr 2, 2008 7:33 AM
Hi,
Please elaborate "developing one application where i get 5 tables as output. In that table only one field is there. Now i tried to show data from that table but i could not do tha"
Regards,
Ganga.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
74 | |
10 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.