Description
Pre validation method.
Parameters
| oiReturnStatus | output | integer | Return status of the method. |
Internal usage
QadFinancials
program code (program1/bfrwcolumngroup.p)
/* ====================================================================== */
/* Backwards compatibility : fill new mandatory field when not filled yet */
/* ====================================================================== */
for each t_sFRWColDet :
if t_sFRWColDet.FRWColDetIsHideFuturePeriod = ?
then assign t_sFRWColDet.FRWColDetIsHideFuturePeriod = false.
if t_sFRWColDet.FRWColDetIsRedNegative = ?
then assign t_sFRWColDet.FRWColDetIsRedNegative = false.
if t_sFRWColDet.FRWColDetIsZeroSuppress = ?
then assign t_sFRWColDet.FRWColDetIsZeroSuppress = false.
if t_sFRWColDet.FRWColDetColumnType = ?
then assign t_sFRWColDet.FRWColDetColumnType = {&FRWCOLDETCOLUMNTYPE-ACTUAL}.
end. /* for each t_sFRWColDet */
/* ======================================================================================= */
/* Check if a column group with the same name already exists. */
/* ======================================================================================= */
<M-27 run ValidateComponentPreCreate (output viFcReturnSuper (oiReturnStatus)) in BFRWColumnGroup>
if viFcReturnSuper < 0 or viFcReturnSuper > 0 and oiReturnStatus = 0 then assign oiReturnStatus = viFcReturnSuper.
/* ======================================================================================= */
/* Check the combinations of the column type, amount type and unit type. */
/* ======================================================================================= */
<M-51 run ValidateComponentPreColumnType (output viFcReturnSuper (oiReturnStatus)) in BFRWColumnGroup>
if viFcReturnSuper < 0 or viFcReturnSuper > 0 and oiReturnStatus = 0 then assign oiReturnStatus = viFcReturnSuper.
/* ======================================================================================= */
/* Check the combinations of the measure type, amount type and unit type. */
/* ======================================================================================= */
<M-4 run ValidateComponentPreMeasureType (output viFcReturnSuper (oiReturnStatus)) in BFRWColumnGroup>
if viFcReturnSuper < 0 or viFcReturnSuper > 0 and oiReturnStatus = 0 then assign oiReturnStatus = viFcReturnSuper.
/* ======================================================================================= */
/* Change sequence of the Column Det records to avoid errors during validation. */
/* ======================================================================================= */
<M-87 run ValidateComponentPreResequence (output viFcReturnSuper (oiReturnStatus)) in BFRWColumnGroup>
if viFcReturnSuper < 0 or viFcReturnSuper > 0 and oiReturnStatus = 0 then assign oiReturnStatus = viFcReturnSuper.
if viFcReturnSuper < 0 then return.
/* ======================================================================================= */
/* FRW Analysis Code - because unique combination is compound from Report Chart and */
/* analysis code, we have to manually retrieve FRWAnalysis_ID */
/* ======================================================================================= */
<M-97 run ValidateComponentPreAnCode (output viFcReturnSuper (oiReturnStatus)) in BFRWColumnGroup>
if viFcReturnSuper < 0 or viFcReturnSuper > 0 and oiReturnStatus = 0 then assign oiReturnStatus = viFcReturnSuper.
if viFcReturnSuper < 0 then return.