project QadFinancials > class BMfgCreditTerms > method Createct_mstr

Description

Initialize a new record in class table tct_mstr.


Parameters


ic_ParentRowidinputcharacter= tct_mstr.tc_ParentRowid
BMfgCreditTermsoutputdatasetclass dataset, containing only the newly initialized record
oiReturnStatusoutputintegererror status


program code (program/bmfgcreditterms.p)

    assign oiReturnStatus = -98.

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

    create t_sct_mstr.
    raw-transfer tct_mstr to t_sct_mstr.