简体   繁体   中英

Update posted transaction using SageDataObject220

I am trying to update a field inside a posted transaction.

This is what I have:

    Dim oWS As SageDataObject220.WorkSpace
    Dim SD As SageDataObject220.SplitData = oWS.CreateObject("SPLITDATA")
    SD.Open(SageDataObject220.OpenMode.sdoWrite)

    SD.FindFirst("TRAN_NUMBER", CInt("575031"))
    SD.Read(SD.RecordNumber())
    SD.Fields.Item("Details").Value = "575031 test"
    SD.Write(SD.RecordNumber())
    oWS.Disconnect()

I can locate the transaction, but trying to update the Details value does not work. It appears to be read only and only comparable.

Any suggestions?

读取事务编号后,需要先关闭SplitData对象。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM