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 .
Here you can find examples and sample programs related to ABAP Report Programs, ALV Grid/List Programs, BDC, HR ABAP, Function Modules, BAPIs, BADIs, Smartforms, SapScripts, etc.
Google Search - Blog...........
Showing posts with label abap fm RFC_GET_TABLE_ENTRIES. Show all posts
Showing posts with label abap fm RFC_GET_TABLE_ENTRIES. Show all posts
Subscribe to:
Posts (Atom)