2008 Sep 22 11:44 PM
Hi ,
I want to count the entries nd updated in the same internal table or other internal table
Thanks,
Asha
REPORT ZCOUNT.
TYPES: BEGIN OF i_ekko,
cbox TYPE c,
text(15) TYPE c,
ln_AA TYPE i,
ln_wr TYPE i,
ln_rj TYPE i,
END OF i_ekko.
DATA: it_ekko TYPE STANDARD TABLE OF i_ekko INITIAL SIZE 0,
wa_ekko TYPE i_ekko.
wa_ekko-cbox = 'X'.
wa_ekko-text = 'APPROVED'.
APPEND wa_ekko TO it_ekko.
wa_ekko-cbox = 'X'.
wa_ekko-text = 'WARNING'.
APPEND wa_ekko TO it_ekko.
wa_ekko-cbox = 'X'.
wa_ekko-text = 'REJECTED'.
APPEND wa_ekko TO it_ekko.
wa_ekko-cbox = 'X'.
wa_ekko-text = 'APPROVED'.
APPEND wa_ekko TO it_ekko.
wa_ekko-cbox = 'X'.
wa_ekko-text = 'WARNING'.
APPEND wa_ekko TO it_ekko.
wa_ekko-cbox = 'X'.
wa_ekko-text = 'REJECTED'.
APPEND wa_ekko TO it_ekko.
wa_ekko-cbox = 'X'.
wa_ekko-text = 'WARNING'.
APPEND wa_ekko TO it_ekko.
wa_ekko-cbox = 'X'.
wa_ekko-text = 'WARNING'.
APPEND wa_ekko TO it_ekko.
wa_ekko-cbox = 'X'.
wa_ekko-text = 'REJECTED'.
APPEND wa_ekko TO it_ekko.
LOOP AT IT_EKKO INTO WA_EKKO.
ENDLOOP.
2008 Sep 23 5:50 AM
Hi,
Use the follwing statement.
data lines type i.
DESCRIBE TABLE it_ekko LINES lines.
WRITE:/ lines.
or
DESCRIBE TABLE it_ekko.
WRITE:/ sy-tfill.
Regards,
Amit
2008 Sep 22 11:49 PM
Hi,
You can use the syntax DESCRIBE TABLE..
DESCRIBE TABLE itab.
WRITE: / 'Number of rows', SY-TFILL.
Thanks
Naren
2008 Sep 23 1:04 AM
Hi asha,
Use the below syntax to find the number of internal table records.
DATA: G_LIN TYPE I.
DESCRIBE TABLE IT_EKKO LINES G_LIN.
G_LIN contains number of lines in internal table IT_EKKO.
Regards,
KK
2008 Sep 23 4:13 AM
hi
use this statement
describe table itab line lin occurs ini kind knd.
2008 Sep 23 5:07 AM
2008 Sep 23 5:11 AM
Hi Asha,
Use DESCRIBE and SY-TFILL .
SY-TFILL gives the number of records in the internal table.
DESCRIBE TABLE t_itab.
Write: SY-TFILL.
Regards,
Chandra Sekhar
2008 Sep 23 5:22 AM
just copy paste the below code :
TYPES: BEGIN OF i_ekko,
cbox TYPE c,
text(15) TYPE c,
ln_AA TYPE i,
ln_wr TYPE i,
ln_rj TYPE i,
END OF i_ekko.
DATA: it_ekko TYPE STANDARD TABLE OF i_ekko INITIAL SIZE 0,
wa_ekko TYPE i_ekko.
wa_ekko-cbox = 'X'.
wa_ekko-text = 'APPROVED'.
APPEND wa_ekko TO it_ekko.
wa_ekko-cbox = 'X'.
wa_ekko-text = 'WARNING'.
APPEND wa_ekko TO it_ekko.
wa_ekko-cbox = 'X'.
wa_ekko-text = 'REJECTED'.
APPEND wa_ekko TO it_ekko.
wa_ekko-cbox = 'X'.
wa_ekko-text = 'APPROVED'.
APPEND wa_ekko TO it_ekko.
wa_ekko-cbox = 'X'.
wa_ekko-text = 'WARNING'.
APPEND wa_ekko TO it_ekko.
wa_ekko-cbox = 'X'.
wa_ekko-text = 'REJECTED'.
APPEND wa_ekko TO it_ekko.
wa_ekko-cbox = 'X'.
wa_ekko-text = 'WARNING'.
APPEND wa_ekko TO it_ekko.
wa_ekko-cbox = 'X'.
wa_ekko-text = 'WARNING'.
APPEND wa_ekko TO it_ekko.
wa_ekko-cbox = 'X'.
wa_ekko-text = 'REJECTED'.
APPEND wa_ekko TO it_ekko.
describe table it_ekko.
write sy-tfill.
2008 Sep 23 5:50 AM
Hi,
Use the follwing statement.
data lines type i.
DESCRIBE TABLE it_ekko LINES lines.
WRITE:/ lines.
or
DESCRIBE TABLE it_ekko.
WRITE:/ sy-tfill.
Regards,
Amit
2008 Sep 23 6:57 PM