title: How can I take DocEntry from UDO form of SAP B1 in SDK?
body: <p>How can I take DocEntry from UDO form of SAP B1 in SDK?</p>
  
  <p>I tried to take UDF, it works fine</p>
  
  <pre><code>Dim oForm As SAPbouiCOM.Form = SBO_Application.Forms.Item(SBO_Application.Forms.ActiveForm.UDFFormUID)
  Dim oDocEntry As SAPbouiCOM.EditText = CType(oForm.Items.Item("U_Member").Specific, SAPbouiCOM.EditText)
  Dim SelectedValueID As String = Convert.ToString(oDocEntry.Value)
  Dim ID As Integer = SelectedValueID
  </code></pre>
  
  <p>But if I replace U_Member with DocEntry like this</p>
  
  <pre><code>Dim oForm As SAPbouiCOM.Form = SBO_Application.Forms.Item(SBO_Application.Forms.ActiveForm.UDFFormUID)
  Dim oDocEntry As SAPbouiCOM.EditText = CType(oForm.Items.Item("DocEntry").Specific, SAPbouiCOM.EditText)
  Dim SelectedValueID As String = Convert.ToString(oDocEntry.Value)
  Dim ID As Integer = SelectedValueID
  </code></pre>
  
  <p>I get error message Add-on 9000012 failed with exception; Event Type:1</p>
  
  <p>How can I solve this issue?</p>
  
  <p>Please anyone can help me</p>