web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

Restrict Reverse Transaction

(0) ShareShare
ReportReport
Posted on by

i need to restrict reverse transaction entry in General Ledger Entries.

Thanks for support

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Rashed Profile Picture
    3,765 on at

    You can do that through security.  When you do a reverse transaction,  NAV creates a record in Reversal Entry. Table 179.     Change the permission for the user so that they cannot insert into this table.  

  • Suggested answer
    Maneesha Profile Picture
    5,891 on at

    Dear Nav User123 ,

    Its Simple , You have 2 ways to do it Security , Permission Set

    check relevant users and make security or remove those permission for the user who wants to remove(from those user's permission set)  

  • Verified answer
    Amol Salvi Profile Picture
    18,698 on at

    You can achieve this by doing small customization

    In User Setup add field 'Allow Reverse Transaction' as boolean datatype.

    Write a code on reverse transaction action if above field in true then allow for reverse or give error

    UserSetup.SETFILTER(UserSetup."User ID",'=%1',USERID);

    IF UserSetup.FindFirst then begin

     IF NOT "Allow Reverse Transaction" THEN

       ERROR('You are not authorized to perform reverse transaction')

     ELSE BEGIN  

        CLEAR(ReversalEntry);

       IF Reversed THEN

         ReversalEntry.AlreadyReversedEntry(TABLECAPTION,"Entry No.");

       IF "Journal Batch Name" = '' THEN

         ReversalEntry.TestFieldError;

       TESTFIELD("Transaction No.");

        ReversalEntry.ReverseTransaction("Transaction No.")

     END;  

    END;

    Hope this helps

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans