public bool Update(string po, string MOVETYPE, string txtField) { bool result = false; Logon logon = new Logon(); try { logon.Conncet(); Function function = new Function(); logon.SetFunction("ZRFC006"); logon.Field_SetValue("PURCHASEORDER", po); logon.Field_SetValue("ZRFCTYPE", "G"); logon.StartFunction(); this.ZMSG = logon.Retrun_String("ZMSG"); this.ZFLAG = logon.Retrun_String("ZFLAG"); this.POHEADER = logon.getStruct("POHEADER"); this.POITEM = logon.Return_Message("POITEM"); this.POACCOUNT = logon.Return_Message("POACCOUNT"); } finally { logon.dispose(); } if (this.POITEM.Rows.Count > 0) { result = true; } return(result); }