on 07-12-2006 6:51 AM
Hi all,
I have a table for the lead selection of which I have to display the corresponding details of the row selected in the next window.
I have one BAPI which has two tables. I am using the receivable table to fbind with my portal table and populate it. The other table is details table in SAP which is again a response and is used to fill the next window.
Kindly advice me with some code how to resolve the isssue.
Regards
DK
Hi DK,
You can check the id which id related to both BAPI
For eg. ProductId is common for both BAPI.
int count=0;
//Previously selected id
String
selectid=wdContext.current<BapiNode>Element.getProductId();
IPrivate<ViewName>.I<BAPI1Output>node node1=currentContext().node<Bapi1Output>();
int len=wdContext.node<BApiOutput>().size();
for(int i=0;i<len;i++){
count=count+1;
//current table id
String currentvalue=String.valueOf(((IPrivate<ViewName>.I<BAPIOutput>Element)(wdContext.node<BAPIOutput>().getElementAt(i))).getProductId());
if(selectid.equals(currentvalue)){
node1.setLeadSelection(count);
}
//Do Others
}
Kind Regards
Mukesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
98 | |
11 | |
11 | |
10 | |
10 | |
8 | |
6 | |
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.