Description
Initialize a new record in class table tBudgetLinkAccDet.
Parameters
ic_ParentRowid | input | character | = tBudgetLinkAccDet.tc_ParentRowid |
BBudgetLinkAccDet | output | dataset | class dataset, containing only the newly initialized record |
oiReturnStatus | output | integer | error status |
program code (program/bbudgetlinkaccdet.p)
assign oiReturnStatus = -98.
empty temp-table t_sBudgetLinkAccDet.
empty temp-table t_sCustomTable0.
empty temp-table t_sCustomTable1.
empty temp-table t_sCustomTable2.
create tBudgetLinkAccDet.
assign tBudgetLinkAccDet.tc_Rowid = dynamic-function("GetNumberForNew":U in {&TARGETPROCEDURE})
tBudgetLinkAccDet.tc_Status = "N":U.
{ includes/bfcrun.i
&procedure = "StartPersistence"
¶meters = "output vh_persistence,
output viFcReturnSuper" }
if viFcReturnSuper <> 0
then do:
assign oiReturnStatus = viFcReturnSuper.
return.
end.
assign tBudgetLinkAccDet.BudgetLinkAccDet_ID = dynamic-function ("GetNextValue":U in vh_persistence,"ObjectNumber":U).
{ includes/bfcrun.i
&procedure = "InitialValues"
¶meters = "input 'BudgetLinkAccDet':U,
output oiReturnStatus" }
create t_sBudgetLinkAccDet.
raw-transfer tBudgetLinkAccDet to t_sBudgetLinkAccDet.