project QadFinancials > class BMfgMessage > method Createmsg_mstr

Description

Initialize a new record in class table tmsg_mstr.


Parameters


ic_ParentRowidinputcharacter= tmsg_mstr.tc_ParentRowid
BMfgMessageoutputdatasetclass dataset, containing only the newly initialized record
oiReturnStatusoutputintegererror status


program code (program/bmfgmessage.p)

    assign oiReturnStatus = -98.

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

    create t_smsg_mstr.
    raw-transfer tmsg_mstr to t_smsg_mstr.