Archieve doc for Sales Quote Before Make Order - Issue !!!

pskannaapskannaa Member Posts: 138
Hi,

My requirement is before converting 'Quote to Order' , i need to take the archieve of the Quote. What i did that...

'Make Order' onPush() trigger i called up the 'Archeive Doc' code unit(system cu) and then called up the 'Make Order' Code unit.

Code:

ArchiveManagement.ArchiveSalesDocument(Rec);
CurrForm.UPDATE(FALSE);
CODEUNIT.RUN(83,Rec);

................

Error:
the following c/al function is used to a limited degree during write transaction (because one or more transaction will be locked)

form.runmodel() is not allowed........
codeunit.run() is not allowed.....
...
..
use commite functin to save the changes before call......


suggestion plz.

Regards,
Psk

Comments

  • pskannaapskannaa Member Posts: 138
    Hey I hv solved.

    put 'commit' statement.(i don't knw the reason....)
Sign In or Register to comment.