shaccpac
Technical User
- Sep 12, 2008
- 84
Hi
I am tring to change the Tax group of posted PO with macro given below
Dim POPORH As AccpacView
Dim a4wLink As AccpacDBLink
Set a4wLink = OpenDBLink(DBLINK_COMPANY, DBLINK_FLG_READWRITE)
a4wLink.OpenView "PO0620", POPORH
POPORH.Browse "PONUMBER=EITPL00000000000000001", True
POPORH.Fetch
POPORH.Fields("TAXGROUP") = "CAPITAL"
POPORH.Process
POPORH.Post
but it is returning error as
Attempt to change readonly field "Tax Group"
pls help
I am tring to change the Tax group of posted PO with macro given below
Dim POPORH As AccpacView
Dim a4wLink As AccpacDBLink
Set a4wLink = OpenDBLink(DBLINK_COMPANY, DBLINK_FLG_READWRITE)
a4wLink.OpenView "PO0620", POPORH
POPORH.Browse "PONUMBER=EITPL00000000000000001", True
POPORH.Fetch
POPORH.Fields("TAXGROUP") = "CAPITAL"
POPORH.Process
POPORH.Post
but it is returning error as
Attempt to change readonly field "Tax Group"
pls help