Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

How do i post a bank transaction after reconciliation through code in vb.net?

(0) ShareShare
ReportReport
Posted on by

Hi, I am able to insert bank transactions to tables using econnect. However, I am not able to post this through code. I saw the example listed below, but where can I find the dlls to get to this function. Any help would be greatly appreciated thanks.

I try to create a bank transaction entry by dexterity and post it by code.
When I search in GP SDK files I found a function called
AutoPostWithDistributions in Bank Reconciliation Module SDK. The prerequisite
for it is an object from CMBank Structure beside an BankDistObj.Anonymous
Table. These a copy from my code:

in 'Checkbook ID' ChkBKID;
inout CMDoc CMDocStruct;
inout anonymous file CM_Distribution_TEMP;

local integer nStatus;

set CMDocStruct:'Checkbook ID' to ChkBKID;
set CMDocStruct:'CM Doc Type' to 3;
set CMDocStruct:'CM Doc Date' to 'User Date' of globals;
set CMDocStruct:'GL Posting Date' to sysdate();

nStatus = AutoPostWithDistributions(CMDocStruct, file CM_Distribution_TEMP)
of form CM_BankTrxObj;

When it try to compile my code, it result an error:
“Unknown identifier CMDocStruct:'CM Doc Type’”
“Unknown identifier CMDocStruct:'CM Doc Date'”
“Unknown identifier CMDocStruct:'GL Posting Date'”

*This post is locked for comments

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

Jainam Kothari – Community Spotlight

We are honored to recognize Jainam Kothari as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard >

Featured topics

Product updates

Dynamics 365 release plans