Hi all,
i have this code in credit debit note in order entry transactions module but when i try to execute red record error occurred please help
OECRD1headerFields.FieldByName("DRIVENBYUI").Value = "1" ' Driven by UI
OECRD1header.Cancel()
OECRD1header.Init()
OECRD1headerFields.FieldByName("INVNUMBER").Value = "IN0000000000002" ' Invoice Number
temp = OECRD1header.Exists
OECRD1headerFields.FieldByName("OECOMMAND").PutWithoutVerification("4") ' Process Comman
OECRD1header.Process()
OECRD1header.Insert()
OECRD1header.Read()
i have this code in credit debit note in order entry transactions module but when i try to execute red record error occurred please help
OECRD1headerFields.FieldByName("DRIVENBYUI").Value = "1" ' Driven by UI
OECRD1header.Cancel()
OECRD1header.Init()
OECRD1headerFields.FieldByName("INVNUMBER").Value = "IN0000000000002" ' Invoice Number
temp = OECRD1header.Exists
OECRD1headerFields.FieldByName("OECOMMAND").PutWithoutVerification("4") ' Process Comman
OECRD1header.Process()
OECRD1header.Insert()
OECRD1header.Read()