Hi experts,
I'm creating a button for you to make a goods receipt from a stock transfer, for which I'm mapping the transfer to use some fields in my merchandise receipt. The problem arises when trying to map (retrieve information) of the fields of the document related to sales order for this transfer, since I do not know how to access that matrix by clicking on the reference document button, if someone could guide me it would be great.I repeat that my problem is how to open through the SDK that panel or window with the matrix that contains the information I require to be able to do the mapping. Thank you for your support.

if (((EditText)oUserForm.Items.Item("U_SCO_UI_EM").Specific).String == "" &&
((EditText)oUserForm.Items.Item("U_SCO_UI_EME").Specific).String == "")
{
SAPbobsCOM.Documents ODocuments;
ODocuments = (SAPbobsCOM.Documents)SCOMaiden.SBOCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oInventoryGenEntry);
//Open DocumentRferences for to read the fiels that i need (¿?)
//SAPbobsCOM.Document_DocumentReferences ODocumentsRef;
//ODocumentsRef = (SAPbobsCOM.Document_DocumentReferences)SCOMaiden.SBOCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oInventoryGenEntry);
Button valor = (Button)oForm.Items.Item(docReferencia).Specific;
String valor1 = ((ComboBox)oUserForm1.Items.Item("5").Specific).Selected.Value;
//Button valor = (Button)oUserForm1.Items.Item(docReferencia).Specific;
string docnumber = ODocuments.DocumentReferences.ReferencedDocNumber.ToString();
string refObjType = ODocuments.DocumentReferences.ReferencedObjectType.ToString();
string fecha = ODocuments.DocumentReferences.IssueDate.ToString();
//end
//Read the Stock Transfer CardCode
EditText oEdit = (EditText)oForm.Items.Item(CardCode).Specific;
String cardCode = oEdit.String;