cancel
Showing results for 
Search instead for 
Did you mean: 

Display a counter

Former Member
0 Kudos

How can I dispaly the total number of records that is in my internal table in the form?

Accepted Solutions (1)

Accepted Solutions (1)

former_member533584
Contributor
0 Kudos

hi,

use <b>describe table itab lines w_line.</b>

before calling write form.

print the same variable in script &w_line&

regards,

ananth.

Former Member
0 Kudos

Thank you all ..... but i wanted to know how can i use in the form ..... ananth did what you suggested but it is not working

former_member181962
Active Contributor
0 Kudos

Hi Shaheen,

That is the way to do it(Ananth's).

Make sure you are doing it in the correct text element.

If you are calling the write form with text element 'MAIN1', then yo umust have populated the V_lines using the describe statement before the call to the write form.

Can you show your coding?

Regards,

Ravi

Former Member
0 Kudos

hello...........

did u get more information in that thread..

basic RULE is to close the thread when u get the answer , and give the points to the person who gave the answer..

i think you forgot the Basics...

Answers (6)

Answers (6)

Former Member
0 Kudos

data: g_lin typ i.

describe table itab lines g_lin.

g_lin contains the no.of records in itab.

Former Member
0 Kudos

data: g_lin typ i.

describe table itab lines g_lin.

g_lin contains the no.of records in itab.

Former Member
0 Kudos

yes as prabu told u have to use the DESCRIBE command to know number of records in an internal table.


V_LINES TYPE SY-TABIX.
DESCRIBE TABLE IT_TAB LINE V_LINES.

Please Close this thread.. when u r problem is solved. Reward all Helpful answers

Regards

Naresh Reddy K

Former Member
0 Kudos

hi,

do this way...

data : v_lines type i.

describle table itab lines v_lines.

you can even use <b>SY-TFILL</b> variable

REgards,

Santosh

former_member181962
Active Contributor
0 Kudos

YU can use the Describe statement to find the numberof lines in the itab.

describe table itab lines v_lines. "V_lines wil have the number of records in the itab.

Regards,

Ravi

Former Member
0 Kudos

make use of keyword DESCRIBE

press F1 in ABAP editor on that keyword

and pass the same value to Form.

Regards

Prabhu