project BLF > class BSODCategoryExclusion > method CreateSODExclusion

Description

Initialize a new record in class table tSODExclusion.


Parameters


ic_ParentRowidinputcharacter= tSODExclusion.tc_ParentRowid
BSODCategoryExclusionoutputdatasetclass dataset, containing only the newly initialized record
oiReturnStatusoutputintegererror status


program code (program/bsodcategoryexclusion.p)

    assign oiReturnStatus = -98.

    empty temp-table t_sSODExclusion.
    empty temp-table t_sCustomTable0.
    empty temp-table t_sCustomTable1.
    empty temp-table t_sCustomTable2.
    create tSODExclusion.
    assign tSODExclusion.tc_Rowid  = dynamic-function("GetNumberForNew":U in {&TARGETPROCEDURE})
           tSODExclusion.tc_Status = "N":U.
    { includes/bfcrun.i
      &procedure  = "InitialValues"
      &parameters = "input 'SODExclusion':U,
                     output oiReturnStatus" }

    create t_sSODExclusion.
    raw-transfer tSODExclusion to t_sSODExclusion.