project QadFinancials > class BMfgNumberRangeManagement > method Createnr_mstr

Description

Initialize a new record in class table tnr_mstr.


Parameters


ic_ParentRowidinputcharacter= tnr_mstr.tc_ParentRowid
BMfgNRMoutputdatasetclass dataset, containing only the newly initialized record
oiReturnStatusoutputintegererror status


program code (program/bmfgnrm.p)

    assign oiReturnStatus = -98.

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

    create t_snr_mstr.
    raw-transfer tnr_mstr to t_snr_mstr.