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 :
Finance | Project Operations, Human Resources, ...
Answered

eConnect routine to get next bank transaction number

(0) ShareShare
ReportReport
Posted on by 75,852 Moderator

When you to Transactions->Financials->Bank Transactions and change the type to Withdrawals the Number field will go to DAJ00000NNNN. It gets this number from the Bank Reconciliation setup screen. Is there an eConnect procedure to get that number? In the taBRBankTransactionHeader node there is a field called CMTrxNum. I need a way to get that number.

Categories:
I have the same question (0)
  • Verified answer
    Lucas Reuss Profile Picture
    on at

    Hello Richard,

    Thank you for your post.  When importing in Withdrawals, you would want to set up the taBRBankTransactionHeaderPre proc to call the NXTNUM in the CM40100 table and use that for the CMTrxNum in the main procedure.

    Once you set up the logic to use the number there, you should have a value for your next number.

    Let me know if that helps!

    Thank you,

  • Lucas Reuss Profile Picture
    on at

    Hello Richard,

    Another note on this.  When you use the Pre proc to pull the next value, you will want to increment the value at the same time to keep the system from running into duplicates.

    Regards,

  • Richard Wheeler Profile Picture
    75,852 Moderator on at

    You folks are best. That was going to be my next guess but I wanted to be sure that I would not be doing the incrementing twice.  I owe you another cup of coffee.

  • Richard Wheeler Profile Picture
    75,852 Moderator on at

    I used these two statements to get the next transaction number and to get the next sequence number. So I do two updates. The first is to update the bank transaction number and the second is to set the BACHNUMB using the SY01000.NTRXSNUM. I found that this batch number will be used when naming the resulting GL batch. So I also update this number.

    SELECT @CMTRXNUM = 'DAJ'+REPLICATE('0',(8-LEN(CONVERT(CHAR(10),NXTNUM))))+ CONVERT(CHAR(10),NXTNUM) FROM CM40100

    SELECT @BACHNUMB = TRIM(TRXSRCPX) + REPLICATE('0',(8-LEN(CONVERT(CHAR(10),NTRXSNUM))))+ CONVERT(CHAR(10),NTRXSNUM) FROM SY01000 WHERE SERIES=2 AND TRXSRCPX='CMTRX'

  • Lucas Reuss Profile Picture
    on at

    Hello Richard,

    Happy to help!  Hopefully the rest works out smoothly for you.

    Regards,

  • Richard Wheeler Profile Picture
    75,852 Moderator on at

    Everything is working perfectly now thanks to your help. The client wants to see these transactions in both the checkbook and the ledger since these are payroll transactions that come directly out of their payroll checkbook account.

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Abhilash Warrier Profile Picture

Abhilash Warrier 669 Super User 2025 Season 2

#2
André Arnaud de Calavon Profile Picture

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

#3
Martin Dráb Profile Picture

Martin Dráb 384 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans