Good morning fellow programmers,
I'm trying to read a table from a "distant" system in SAP (ABAP).
Using the RFC_READ_TABLE function returns the fields table properly, but not the data.
data: options type table of rfc_db_opt with header line.
data: fields type table of rfc_db_fld with header line.
data: data type table of tab512 with header line.
CALL FUNCTION 'RFC_READ_TABLE'
DESTINATION xxxx "" Name of rfc connection
EXPORTING
query_table = 'BUT100' ""Just for testing purposes""
TABLES
options = options "" contains filters etc.
fields = fields "" contains table structure
data = data "" contains data of table
loop at data.
write: data.
endloop. "" This doesn't show anything either.
if I run this code in the debugger, I get the table fields, but the data table is always empty.
I'm pretty new to ABAP, so i thought maybe someone here got an idea, why my data table is empty as result?
I've also tried different tables than BUT100 but it's always the same result.
Thank you very much in advance!
Best Regards and stay healthy! ;)
Nico