Skip to Content
0
Former Member
May 31, 2006 at 09:43 PM

execute BAPI for different input values and dispaly data in a table

32 Views

Hi all,

I have a specific problem about executing BAPI multiple times for different input values and didplay result in a table.

I am using the code similar to the following logic.

Bapi_Mydata_Input in = new Bapi_Mydata_Input();

wdContext.nodeBapi_Mydata_Input().bind(in);

String in = wdContext.currentperdataElement.getnumber();

in.setDestination_From(10)

wdThis.wdGetMydataComponentController().executeBapi_Mydata_Input();

in.setDestination_From(20)

wdThis.wdGetMydataComponentController().executeBapi_Mydata_Input();

in.setDestination_From(30)

wdThis.wdGetMydataComponentController().executeBapi_Mydata_Input();

And I want to display the data in a single table. I want the result in a table for Bapi execution based on input parameters passed 10,20 30.

But I am getting the table data only for the input parameter 30.I mean its actually display the data in table only for the last input parameter.

So May I ask you all if you know the solution for this problem.PLease advise me with some tips .or sample code is very much appreciated.I promise to award points to the right answer/nice advises.

Regards

Maruti

Thank you in advance.