Skip to Content

2 errors when trying to use RFCDestination.Repository.GetTableMetadata(string tablename)

I know that you can get the data of a table in a SAP Server with the function RFCDestination.Repository.GetTableMetadata(string tablename). Unfortunately I get an error when I try to execute the command. The weird thing is when I give a exisiting table I get a different error when I try something random as a tablename.

Existing table:

<code>var x = dest.Repository.GetTableMetadata("TFTIT");


SAP.Middleware.Connector.RfcInvalidStateException: "cannot find TABLE specified by TFTIT"

Random tablename:

<code>var x = dest.Repository.GetTableMetadata("Test123");


SAP.Middleware.Connector.RfcInvalidStateException: "metadata for TableOnly TEST123 not available: NOT_FOUND: No active nametab exists for TEST123"

I know there is a way to get the data of a table with the help of a function module but I need to use the GetTableMetadata function.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

0 Answers