Description
Initialize a new record in class table tAPMatching.
Parameters
ic_ParentRowid | input | character | = tAPMatching.tc_ParentRowid |
BAPMatching | output | dataset | class dataset, containing only the newly initialized record |
oiReturnStatus | output | integer | error status |
program code (program/bapmatching.p)
assign oiReturnStatus = -98.
empty temp-table t_sAPMatching.
empty temp-table t_sAPMatchingLn.
empty temp-table t_sAPMatchingLnRevTax.
empty temp-table t_sAPMatchingLnTax.
empty temp-table t_sAPMatchingLnWHT.
empty temp-table t_sAPMatchingCost.
empty temp-table t_sAPMatchingCostSaf.
empty temp-table t_sCustomTable0.
empty temp-table t_sCustomTable1.
empty temp-table t_sCustomTable2.
create tAPMatching.
assign tAPMatching.tc_Rowid = dynamic-function("GetNumberForNew":U in {&TARGETPROCEDURE})
tAPMatching.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 tAPMatching.APMatching_ID = dynamic-function ("GetNextValue":U in vh_persistence,"ObjectNumber":U).
{ includes/bfcrun.i
&procedure = "InitialValues"
¶meters = "input 'APMatching':U,
output oiReturnStatus" }
create t_sAPMatching.
raw-transfer tAPMatching to t_sAPMatching.