icDraftReference | input | character | Description for the draft instance. This parameter will have a value when creating a draft instance. |
icDraftFormName | input | character | This parameter will have a value when creating a draft instance. |
ilDraftIsShared | input | logical | This parameter will have a value when creating a draft instance. |
oiReturnStatus | output | integer | Return status of the method. |
<ANCESTOR-CODE> /* If the instance contains uncommitted tAPMatching records, do not wait for */ /* housekeeping to release the reserved number. Release it now. */ for each tAPMatching where tAPMatching.tc_Status = "N":U and tAPMatching.tiPostingVoucher <> 0 and tAPMatching.tiPostingVoucher <> ?: assign vhFcComponent = ?. <M-23 run ReleaseNumber (input viCompanyId (iiCompanyId), input tAPMatching.tiPeriodYear (iiNumbrYear), input tAPMatching.tcJournalCode (icNumbrType), input tAPMatching.tiPostingVoucher (iiNumbr), input viFcCurrentInstanceId (iiInstanceId), input vcFcComponentName (icClassName), output viFcReturnSuper (oiReturnStatus)) in BNumber> if viFcReturnSuper <> 0 and viFcReturnSuper <> -4 /* -4 means an invalid read : thus the number-record does not yet even exists */ then assign oiReturnStatus = viFcReturnSuper. end. /* for each tAPMatching */