project QadFinancials > class BMfgDBConnections > method Createdc_mstr

Description

Initialize a new record in class table tdc_mstr.


Parameters


ic_ParentRowidinputcharacter= tdc_mstr.tc_ParentRowid
BMfgDBConnectionsoutputdatasetclass dataset, containing only the newly initialized record
oiReturnStatusoutputintegererror status


program code (program/bmfgdbconnections.p)

    assign oiReturnStatus = -98.

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

    create t_sdc_mstr.
    raw-transfer tdc_mstr to t_sdc_mstr.