project QadFinancials > class BDebtorShipTo > method CreateDebtorShiptoContact

Description

Initialize a new record in class table tDebtorShiptoContact.


Parameters


ic_ParentRowidinputcharacter= tDebtorShiptoContact.tc_ParentRowid
BDebtorShipTooutputdatasetclass dataset, containing only the newly initialized record
oiReturnStatusoutputintegererror status


program code (program/bdebtorshipto.p)

    assign oiReturnStatus = -98.

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

    create t_sDebtorShiptoContact.
    raw-transfer tDebtorShiptoContact to t_sDebtorShiptoContact.