ttsbegin;

:
:
ledgerJournalTrans.insert();


if (error)
{
    throw Error("Error during update of the transaction.....");
}


ttscommit;

PS: You should not use the command ttsabort, as it will not
terminate the current method. Throw will give an exception which
will behandled by the exception handler in Axapta.

Best regards,
Bj�rn M�ller Pedersen
Thy Data Center Development A/S

--- In [EMAIL PROTECTED], "gonzalo_edo" <[EMAIL PROTECTED]>
wrote:
> If I used the method insert() of a table (LedgerjournalName by
> example), can I rollback the record inserted using
ttsbegin/ttscommit;
>
> I mean, If I'm doing something (I have TTSBEGIN at the beginning
of
> the statement) and after the insert() method I have an error can I
> rollback the changes, actually before of the TTSCOMMIT.
>
> Or can I use other way of do this??
>
>
> Best Regards.



Yahoo! Groups Sponsor
ADVERTISEMENT
click here


Yahoo! Groups Links

Reply via email to