project BLF > class BReportSchedule > method CreateRptRequestInfo

Description

Initialize a new record in class table tRptRequestInfo.


Parameters


ic_ParentRowidinputcharacter= tRptRequestInfo.tc_ParentRowid
BReportScheduleoutputdatasetclass dataset, containing only the newly initialized record
oiReturnStatusoutputintegererror status


program code (program/breportschedule.p)

    assign oiReturnStatus = -98.

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

    create t_sRptRequestInfo.
    raw-transfer tRptRequestInfo to t_sRptRequestInfo.