project QadFinancials > class BAddressType > method MaintainByDataset

Description

This method will just call the method ApiStdMaintainTT.

PostCondition

After the execution of the method the records in the temp-tables are created/modified in the database. In case of a delete action (tc_status = 'D'), the records are removed from the database.


Parameters


icActioninputcharacterSAVE
SAVEDRAFT
DRAFT
VALIDATE
opPrimaryKeyoutputlongchar
opRowidoutputlongchar
oiDraftInstanceoutputinteger
oiReturnStatusoutputintegerReturn status of the method.


Internal usage


unused


program code (program1/baddresstype.p)

assign oiReturnStatus = -98.
    
    <M-1 run ApiStdMaintainTT
       (input  t_sAddressType (tApiAddressType), 
        input  icAction (icAction), 
        output opPrimaryKey (ocLstPrimKey), 
        output vcDummy (ocLstReturn), 
        output opRowid (ocLstRowid), 
        output viFcReturnSuper (oiReturnStatus)) in BAddressType>
    
    if viFcReturnSuper <> 0
    then do: 
        assign oiReturnStatus = viFcReturnSuper.
        if oiReturnStatus < 0 
        then return.
    end. /* if viFcReturnSuper <> 0 */
    
    if oiReturnStatus = -98 
    then assign oiReturnStatus = 0.