title: SAP.Middleware.Connector.RfcInvalidStateException: "cannot find TABLE specified by DD01L"
body: <p>I wanted to use the SAP .NET Connector to get some data from an SAP Server but unfortunately im running into this error with my code:</p>
  
  <blockquote>
    <p>SAP.Middleware.Connector.RfcInvalidStateException: "cannot find TABLE specified by DD01L"</p>
  </blockquote>
  
  <p>This is the part of the code thats not working:</p>
  
  <pre><code>RfcStructureMetadata lineType = destination.Repository.GetTableMetadata("DD01L").LineType;
  String[] colS = new string[lineType.FieldCount];
  
  for (int i = 0; i &lt; colS.Length; i++)
  {
      colS[i] = lineType[i].Name;
      Console.WriteLine("%s\n", colS[i]);
  }
  </code></pre>