Hi Ori,
I never worked with paymentDraft object before, just incomingPayment and outgoingPayment.
But now, I executed some tests and I received this error when I executed the following code:
Payments opDraft = (Payments)oCompany.GetBusinessObject(BoObjectTypes.oPaymentsDrafts); if (opDraft.GetByKey(1)) //hardcode key, just for test { opDraft.Remarks = "Teste"; if(opDraft.Update() != 0) { MessageBox.Show("Some errors occurs. Error: [" + companhia.GetLastErrorDescription() + "]"); } }
That is not allowed update for payment draft.
I use to test SAP 9.0 PL 11.
But by SAP B1 Client, I can update payment draft.