Description
Initialize a new record in class table tmfc_ctrl.
Parameters
ic_ParentRowid | input | character | = tmfc_ctrl.tc_ParentRowid |
BMfgControlWorkTable | output | dataset | class dataset, containing only the newly initialized record |
oiReturnStatus | output | integer | error status |
program code (program/bmfgcontrolworktable.p)
assign oiReturnStatus = -98.
empty temp-table t_smfc_ctrl.
empty temp-table t_sCustomTable0.
empty temp-table t_sCustomTable1.
empty temp-table t_sCustomTable2.
create tmfc_ctrl.
assign tmfc_ctrl.tc_Rowid = dynamic-function("GetNumberForNew":U in {&TARGETPROCEDURE})
tmfc_ctrl.tc_Status = "N":U.
{ includes/bfcrun.i
&procedure = "InitialValues"
¶meters = "input 'mfc_ctrl':U,
output oiReturnStatus" }
create t_smfc_ctrl.
raw-transfer tmfc_ctrl to t_smfc_ctrl.