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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

Create a Bank Transaction and Post it by Dexterity

(0) ShareShare
ReportReport
Posted on by 70

Hi there,

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'”

I see the structure of the CMDoc structure in SDK, but I don’t see anything wrong.

Any suggestions, I will a appreciate.

Best regards,

Ramy Mady

*This post is locked for comments

I have the same question (0)
  • Community Member Profile Picture
    on at

    Where did you get the dll for those functions and classes in the bank rec module?

  • Suggested answer
    MG-16101311-0 Profile Picture
    26,225 on at

    That would be 'CMDocStruc:CMDocType', 'CMDocStruct:CMDocDate', and 'CMDocStruc:GL Posting Date'

  • MG-16101311-0 Profile Picture
    26,225 on at

    Remy is doing a Dexterity integration. We can call native Microsoft Dynamics GP functions and procedures from Dex (no DLL). If you need to call this from a VB application, I suspect you can go the route of using Continuum to do some pass-through sanScript, or you could build a Visual Studio Tools (VST) integrating application. However, with the latter, you may still have an issue in calling the posting routine since it uses a composite field, which is not supported in VST. You can also add the Continuum library as a reference to a VST application and use pass-through sanScript as well.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > 🔒一 Microsoft Dynamics GP (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans