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