Description
Add code here to initialize the calculated fields of a 'new' record (= a record that must be created in the application database) in a class temp-table.
Parameters
| icTableName | input | character | Name of the database table of which a record is created in the class temp-table. |
| oiReturnStatus | output | integer | |
Internal usage
unused
program code (program/bexpenseglmatrix.p)
<ANCESTOR-CODE>
case icTableName:
when "ExpenseGLMatrix":U
then do:
/* set the shared set id that is linked to the currency company */
<Q-1 run LookupSharedSetForCompany (all) (Read) (NoCache)
(input viCompanyId, (CompanyId)
input 'GL':U, (SharedSetType)
output dataset tqSharedSetForCompany) in BCompany >
find first tqSharedSetForCompany
no-lock no-error.
if available tqSharedSetForCompany
then assign tExpenseGLMatrix.SharedSet_ID = tqSharedSetForCompany.tiSharedSet_ID.
end.
end case.