title: Retrieve texts from a sales order by using RFC_READ_TEXT
body: <p>I'm using SAP .NET Connector 3.0 to read data from SAP(R/3). I need to get some header texts from sales orders:
  <img src="https://i.stack.imgur.com/SMrJ9.png" alt="enter image description here"></p>
  
  <p>A lot of information I found regarding READ_TEXT function which can be used for this purpose.
  Here you can find some <strong><a href="http://my.theobald-software.com/index.php?/Knowledgebase/Article/View/39/26/retrieve-texts-from-a-sales-order-by-using-rfc_read_text" rel="nofollow noreferrer">sample</a></strong> how to do it by using ERPConnect.
  I'm trying to do the same and I have following function which returns IRfcTable:</p>
  
  <pre><code>static IRfcTable ReadFunction(string destName, int rowCount)
          {
              // get the destination
              RfcDestination dest = RfcDestinationManager.GetDestination(destName);
  
              IRfcFunction func = dest.Repository.CreateFunction("RFC_READ_TEXT");
  
              IRfcTable table = func.GetTable("TEXT_LINES");
              table.Insert();
              table.Insert();
              table.Insert();
              table.Insert();
              table[0].SetValue("TDOBJECT", "VBBK");
              table[1].SetValue("TDNAME", "3147856016");
              table[2].SetValue("TDID", "Z019");
              table[3].SetValue("TDSPRAS", "PL");
              func.Invoke(dest);
              return table;
          }
  </code></pre>
  
  <p><code>VBBK</code> - means header objects, <code>3147856016</code> - sales order number, <code>Z019</code> - ID for EDI Supplier text field, <code>PL</code> - language.
  As a result I'm retrieving some data, but field TDLINE is blank:  </p>
  
  <p><img src="https://i.stack.imgur.com/XLCED.png" alt="enter image description here"><br>
  According to example this field should contain text.<br>
  Probably some parameters are incorrect. <strong><a href="http://scn.sap.com/thread/738776" rel="nofollow noreferrer">Here</a></strong> is a good post where I found how to obtain TDID parameter for each text field.<br>
  What I'm doing wrong?  </p>
  
  <p><strong>UPDATE:</strong> According to <code>vwegert</code> answer below, code has been changed like:</p>
  
  <pre><code>        IRfcTable table = func.GetTable("TEXT_LINES");
          table.Insert();
          table[0].SetValue("TDOBJECT", "VBBK");
          table[0].SetValue("TDNAME", "3147856016");
          table[0].SetValue("TDID", "Z019");
          table[0].SetValue("TDSPRAS", "PL");
          func.Invoke(dest);
          return table;
  </code></pre>
  
  <p>Now parameters are correct. But <code>TDLINE</code> is still empty. Result:<br>
  <img src="https://i.stack.imgur.com/YcBMW.png" alt="enter image description here"></p>