cancel
Showing results for 
Search instead for 
Did you mean: 

how to get the size of a internal table in backend in web dynpro

Former Member
0 Kudos

hai all,

i need to get the values from backend to frontend.In webdynpro iam using jco codings instead of adaptive rfc.here i need to loop the table in backend and get the values.how to get the size of a table in r/3.

Thanks

Sharanya.R

Edited by: Sharanya R on Mar 3, 2008 11:14 AM

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Sharanya,

Describe table < internal table name > lines n.

In R/3 this statement will give the number of table rows of the internal table .n should be of data type i.

Eg : If the internal table has 3 records n will have the value of 3.

If you are using a RFC you can store n in an export parameter

and can retreive when it is needed.

Regards,

Charumathi.B

Former Member
0 Kudos

hai charu,

Thanks for the response.I have closed the issue as soon as i opened.

In front end i need to refer it as follows

for(int i=0;i<table_ref.getNumRows();i++)

{

wdComponentAPI.getMessageManager().reportSuccess(""+table_ref.getValue("VOLTAGE"));

table_ref.nextRow();

}

Thanks n Regards

Sharanya.R

Edited by: Sharanya R on Mar 3, 2008 12:09 PM

Answers (0)