Get a sequence number assignment
This Funprog is used to get the sequence number assignment for a given document.
Funprog LECTCA(ACTX, MODULE, CPY, LEG, DOC_INDEX, SEQ_CODE, SEQ_ISMANUAL, MESSAGE) | |
---|---|
Value Instance ACTX | Context |
Value Integer MODULE | Module value (as given by the local menu #14) |
Value Char CPY | Company code |
Value Char LEG | Legislation code |
Value Integer DOC_INDEX | Document index (as defined in the document assignment table) |
Variable Char SEQ_CODE | Sequence code to be used |
Variable Integer SEQ_MAN | Returns [V]CST_AYES if a manual sequence number assignment is possible, [V]CST_ANO otherwise |
Variable Char MESSAGE | Error message (blank if no error) |
Notes:
* If the counter assignment cannot be found, the function returns [V]CST_AFALSE
, otherwise it returns [V]CST_ATRUE
.