Database access: Which method do you recommend to access the SAP database?
The most flexible method is to install the function module /guixt/dbselect. For installation files and examples see

If it is not possible to install new function modules in your system you may use the SAP standard function RFC_READ_TABLE instead.