Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

count the entries in internal table

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.

Tags:
Former Member

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question