title: 2 errors when trying to use RFCDestination.Repository.GetTableMetadata(string tablename)
body: <p>I know that you can get the data of a table in a SAP Server with the function <code>RFCDestination.Repository.GetTableMetadata(string tablename)</code>. 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.</p>
  
  <p>Existing table:</p>
  
  <pre><code>var x = dest.Repository.GetTableMetadata("TFTIT");
  </code></pre>
  
  <p>Error:</p>
  
  <blockquote>
    <p>SAP.Middleware.Connector.RfcInvalidStateException: "cannot find TABLE specified by TFTIT"</p>
  </blockquote>
  
  <p>Random tablename:</p>
  
  <pre><code>var x = dest.Repository.GetTableMetadata("Test123");
  </code></pre>
  
  <p>Error:</p>
  
  <blockquote>
    <p>SAP.Middleware.Connector.RfcInvalidStateException: "metadata for TableOnly TEST123 not available: NOT_FOUND: No active nametab exists for TEST123"</p>
  </blockquote>
  
  <p>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.</p>