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