project QadFinancials > class BMfgPurchaseVoucherHist > method Createvph_hist

Description

Initialize a new record in class table tvph_hist.


Parameters


ic_ParentRowidinputcharacter= tvph_hist.tc_ParentRowid
BMfgPurchaseVoucherHistoutputdatasetclass dataset, containing only the newly initialized record
oiReturnStatusoutputintegererror status


program code (program/bmfgpurchasevoucherhist.p)

    assign oiReturnStatus = -98.

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

    create t_svph_hist.
    raw-transfer tvph_hist to t_svph_hist.