cancel
Showing results for 
Search instead for 
Did you mean: 

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

Former Member
0 Kudos

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");

Error:

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

Random tablename:

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

Error:

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.

Accepted Solutions (0)

Answers (1)

Answers (1)

david_burg
Participant
0 Kudos

Could it be that TFTIT table exists under a module such that it has a qualified name like /MODULEXYZ/TFTIT ?
Another possibility may be that the TFTIT table has not be released on the SAP ABAP end.