Problems with Sales Invoice Header,Line

Helo!

I made a simple report to change an Invoice document number. ..

<on after get record>

IF "Document No." = 'PR4-0062' THEN
BEGIN
"Document No.":='PR4-00062';
MODIFY;
END;

This really simple piece of code worked perfectly in table like "Service Ledger Entry" or "G/L Entry", however the damn thing won't work for "Salse invoice Header" and "Sales invoice Line". If i run the report i allways get an error message saying that It could'd find a record with that specific document number in a specified line...

If anyone knows why this is happening, please help...

Thanx in advance,

lp prosen
Parents
No Data
Reply Children
No Data
Related
Recommended