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