If you need to access the SAP Tables with the help the table name and column names, then you can use the RFC RFC_READ_TABLE. It also provides external access to R/3 tables with the help of remote function calls.
RFC requires following details:
table name (required parameter)
number of rows to skip (optional parameter)
maximum number of rows to be loaded (optional parameter)