project QadFinancials > class BMfgComment > method Createcmt_det

Description

Initialize a new record in class table tcmt_det.


Parameters


ic_ParentRowidinputcharacter= tcmt_det.tc_ParentRowid
BMfgCommentoutputdatasetclass dataset, containing only the newly initialized record
oiReturnStatusoutputintegererror status


program code (program/bmfgcomment.p)

    assign oiReturnStatus = -98.

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

    create t_scmt_det.
    raw-transfer tcmt_det to t_scmt_det.