project QadFinancials > class BMfgServiceRepairOrder > method Createsro_mstr

Description

Initialize a new record in class table tsro_mstr.


Parameters


ic_ParentRowidinputcharacter= tsro_mstr.tc_ParentRowid
BMfgServiceRepairOrderoutputdatasetclass dataset, containing only the newly initialized record
oiReturnStatusoutputintegererror status


program code (program/bmfgservicerepairorder.p)

    assign oiReturnStatus = -98.

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

    create t_ssro_mstr.
    raw-transfer tsro_mstr to t_ssro_mstr.