Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PO Tax group update

Status
Not open for further replies.

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
 
You have to compose the PO views, record a macro while you change the tax group.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top