cancel
Showing results for 
Search instead for 
Did you mean: 

Getting less records in TABLE

Former Member
0 Kudos

Hi All,

I am executing a BAPI function module in webdynpros.

My RFC is returning table with 2 records of data.

also i mapped all the feilds to my TABLE in webdynpro( view).

But i am getting only one record.

checking no of recods code is:

int s=wdContext.nodeTb_Po_Details().size();

Please suggest me why i am getting only one row of record.

Thanks,

Ravi

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Ravi,

Bind the table that is sent from r/3 to ur modelnode in the init method of ur controller.

Try this:

If Z_BAPI_Po_Details is ur bapi and BapiPODetails is r/3 table:

init() method of controller:

Z__BAPI_Po_Details input = new Z_BAPI_Po_Details();

wdContext.nodeTb_Po_Details().bind(input);

<if u have this table as import parameters>

input.setPo__(new BapiPODetails());

wdContext.nodeTb_Po_Details().bind(new BapiPODetails());

onActionDisplay() (action for get details):

wdContext.nodeTb_Po_Details().currentTb_Po_DetailsNodeElement().modelObject().execute();

Regards,

Aparna .P

Former Member
0 Kudos

Hi ,

try to do your application once again.

Suppose u want to display material list.

bapi :Z_Matnr.

After importing this u get the Z_Matnr_Input

u can implement this code in your view.

In your View init method.u can write the code like this.

Z_Matnr_Input input = Z_Matnr_Input();

wdContext.node<Z_Matnr_Input>.bind(input);

Do u have any input params send here.

input.set<param>(1);

input.set<param1>(2);

Otherwise u do not have params.

wdContext.current< Z_Matnr_Input()>.modelObject().execute();

<b>Check this currect out put node as invalidate.

I think this might be the problem.</b>

wdContext.node<OutPutNode>.invalidate();

This will help.

Thanks

Lohi.