cancel
Showing results for 
Search instead for 
Did you mean: 

How to resolve the lead selection problem for a table

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

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