Google Search - Blog...........

ABAP - Fetch All The Database Table Entries Without Using T-Code SE11

This is for getting table entries of any table without going in to se11. In my testing server these is no data in some of the tables, due to which the we cant able to test the object efficiently. so client wants us to check the tables which are not having data . we cant go in to se11 and check every table which is empty . this is the coding for checking the table entries .



REPORT Zno_of_entries.



Data: entries type table of TAB512 with header line,

V_NUMBER TYPE SY-INDEX.



parameters: p_table like X030L-TABNAME.



CALL FUNCTION 'RFC_GET_TABLE_ENTRIES'

EXPORTING

table_name = p_table

IMPORTING

NUMBER_OF_ENTRIES = V_NUMBER

TABLES

entries = entries .





WRITE:/ 'no of entries in the table', p_table,' is:' ,V_NUMBER .





*--if the user wants to display the data in the table then

* go to this coding other wise no need .



Loop at entries.

Write: / entries+3(18).

endloop .

No comments:

Post a Comment