Sales Order Entry chaning the Schedule From VBScrip

SOLVED

Hello every one,

I`m trying to change the Schedule in Sales Order Entry .The strange thing is that im able to get the value of the field(TaxSchedule) but not to set new one

strTaxSchedule = ""

If oBusObj.EditState>0 Then

retVal = oBusObj.GetValue("TaxSchedule", strTaxSchedule)

oSession.AsObject(oSession.UI).MessageBox "", strTaxSchedule

retVal = oBusObj.SetValue("TaxSchedule", "CA")

retVal = oBusObj.Write()

retVal = oBusObj.GetValue("TaxSchedule", strTaxSchedule)

oSession.AsObject(oSession.UI).MessageBox "", strTaxSchedule

End If