Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics GP (Archived)

Create a Bank Transaction and Post it by Dexterity

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

  • Mariano Gomez Profile Picture
    Mariano Gomez 26,225 on at
    RE: Create a Bank Transaction and Post it by Dexterity

    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.

  • Suggested answer
    Mariano Gomez Profile Picture
    Mariano Gomez 26,225 on at
    RE: Create a Bank Transaction and Post it by Dexterity

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

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Create a Bank Transaction and Post it by Dexterity

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

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans