project QadFinancials > class BSharedSetMerge > method MergeValidateFinish

Description

Method executed after real validation is completed.


Parameters


olIsCompatibleoutputlogicalIndication, whether two selected shared sets are compatible.
oiNumberOfRecordsToMergeoutputintegerNumber of records to be merged
tSharedSetMergeValResoutputtemp-tableResult of the validation
tSharedSetMergeValResDetoutputtemp-tableResult of the validation of the shared sets.
tSharedSetMergeValResMisoutputtemp-table
oiReturnStatusoutputintegerReturn status of the method.


Internal usage


unused


program code (program1/bsharedsetmerge.p)

/* =================================================================================================== */
/* Method      : MergetValidateFinish                                                                  */
/*               STEP_6                                                                                */
/* Desc        : This method is used to get validation result to UI                                    */
/* --------------------------------------------------------------------------------------------------- */
/* Params:  (O)  MasterSharedSetId       Id of master shared set                                       */
/*          (O)  RedundantSharedSetId    Id of redundant shared set                                    */
/*          (O)  IsCompatible            Value indicating, whether two shared sets can be merged       */
/*          (O)  SharedSetMergeValRes    Temporary table with overview of validation result            */ 
/*          (O)  SharedSetMergeValResDet Temporary table with details of validation result             */
/* =================================================================================================== */

assign oiReturnStatus = -98.

/* =================================================================================================== */
/* Check, whether both shared sets are compatible or not                                               */
/* =================================================================================================== */
if can-find(first tSharedSetMergeValRes where
                  (tSharedSetMergeValRes.tcInfoType = {&SHAREDSETMERGE-INFOTYPE-ERROR} or
                   tSharedSetMergeValRes.tcInfoType = {&SHAREDSETMERGE-INFOTYPE-MISS}) and
                  tSharedSetMergeValRes.tiInfoValue > 0)
then assign olIsCompatible = false.
else assign olIsCompatible = true.

/* =================================================================================================== */
/* Get number of records to be merged                                                                  */
/* =================================================================================================== */
find tSharedSetMergeValRes where
     tSharedSetMergeValRes.tcInfoType = {&SHAREDSETMERGE-INFOTYPE-TOTAL} no-error.
if available tSharedSetMergeValRes
then assign oiNumberOfRecordsToMerge = tSharedSetMergeValRes.tiInfoValue.

/* =================================================================================================== */
/* Return                                                                                              */
/* =================================================================================================== */
if oiReturnStatus = -98 then assign oiReturnStatus = 0.