modifing the table values from code units

hi all…

i want to modify the blocked field values through code unit based on sales …

can u explain with code

The solution is here:

use GET to get your record.

modify field (not validate).

use MODIFY on your record.

This is very simple, so if you’ll need more detailed examples, then I think you rather go back to study mode and read up on Dynamics NAV C/AL programming, before starting this. You should never update fields which are otherwise blocked by the system, unless you know 100% what the effects of such a change is.

Have you check any standard codeunit???