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