I am trying to change the “No.” in the posted sales invoice.
IF InvHead.GET(OldDocNo) THEN
I obviously do not understand the example in the Nav help.
I get the error “Too many key fields were specified, so Sales Invoice Header could not be retrieved. The number of fields in the primary key is 1.”
Does this mean I am not able to write a non-printing report and change a primary key or is my code rubbish?
Thanks in advance,