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

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

Vendor undo settlement update records

(0) ShareShare
ReportReport
Posted on by

Hi all,

A vendor transaction is selected and user cliecks on undo settlement .

A new form will open which will show all the open the transaction and user can select/ mark those record and click on reverse button. User can select or unselect multiple records
What I want to do is when i click on REverse button and below code is getting called.
VendTrans::reverseTransact(vendTableCaller, null, parmSettlePostingType, parmSettlePostingDate))

My requirement is to create a COC for the reverseTransact method of vendtrans table and update the records associated to only those records which were marked as true.

I need to find a way to select those records.

Thanks,

VP

I have the same question (0)
  • André Arnaud de Calavon Profile Picture
    299,576 Super User 2025 Season 2 on at
    RE: Vendor undo settlement update records

    Hi VP,

    Can you share the business requirement. What is the functional process you want to support here? Probably you can extend another method within this process where there is already a loop initiated and you have each record individually.

  • Community Member Profile Picture
    on at
    RE: Vendor undo settlement update records

    The requirement is that for the given marked records i need to select the transaction type payment and then check the journal lines associated to that line via the voucher number .

    once i get the journal lines I will have to select a custom field on the journal lines which is related to some master and that master will have to be updated once the settlement is done.

    thanks,

  • Verified answer
    André Arnaud de Calavon Profile Picture
    299,576 Super User 2025 Season 2 on at
    RE: Vendor undo settlement update records

    Hi Vikas,

    If you reverse engineer the coding, you can follow what other classes and methods are used. In this scenario, the 'VendTrans::reverseTransact' method is initiating a class 'CustVendReversePosting' and the calls the method 'updateNow' from this class, sending the vendor record or the current active vendor transactions. In this class, it will find all related marked transactions via the table 'SpecTrans'. In this loop, you can check if there are additional methods called which can be extended. I noticed a call to a method 'initForNewReversal'. You can check if this is a method which can be extended with help of COC.

  • Community Member Profile Picture
    on at
    RE: Vendor undo settlement update records

    Hi Andre,

    I highly appreciate your efforts to debug and check the code behind the process and helping the community members.

    I have created a coc in the VendTrans::reverseTransact' as it needs to be ran only for the vendors section.

    I will mark your answer as an answer.

    Thanks a lot

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 783

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 715 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 519 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans