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