Fetch Contract

These function can be used to get the Contract ID, Contract Type and other corresponding below listed column values.

Contract identifier can be retrieved using the Contract and Account relationship. Account identifier can be retrieved for either the given PER_​ID_​NBR i.e. with reference to the defined relationship between Person and Account in “Account Person Relationship” table or ACCT_​NBR i.e. with reference to the relationship defined in the “Maintains External Account Numbers” table.

Either of the inputs PER_​ID_​NBR or ACCT_​NBR is mandatory input for this function.

Function:

FETCH(SA[COLUMN_NAME,PER_ID_NBR,ID_TYPE_CD,ACCT_REL_TYPE_CD,ACCT_NBR,
ACCT_NBR_TYPE_CD,SA_TYPE_CD,DIVISION,ACCT_USAGE_FLG,PRIM_SW,SET_OPERATION])

Expected list of input field/column values:

Input Parameter Description Table Description
COLUMN_​NAME Column name to be mapped from the returned RESULTSET. i.e. OUTPUT field name
PER_​ID_​NBR Person Id Number Person Identifier
ID_​TYPE_​CD Person Identifier Type Person Identifier
ACCT_​REL_​TYPE_​CD Account Relationship Type Account Person Relationship
ACCT_​NBR Account Identifier Maintains External Account Numbers
ACCT_​NBR_​TYPE_​CD Account Identifier Type Maintains External Account Numbers
SA_​TYPE_​CD Contract Type SA (Service Agreement)
DIVISION Division Account
ACCT_​USAGE_​FLG Account Usage Account
PRIM_​SW Primary ID switch Person Identifier
SET_​OPERATION

This is a BOOLEAN value.

If TRUE - Reset operation configured at service level.

If FALSE - Validate the fetch function output i.e. Throws error if returns NULL or multiple records.

If NULL – Will do nothing but only throw an error if function return multiple records.

List of output field/column values:

Output Parameter Description Table Description
ACCT_​ID Account ID Account
CIS_​DIVISION Division of an Account Account
CURRENCY_​CD Currency Code of an Account Account
PER_​ID Person ID (Returned only when PER_​ID_​NBR is passed as an function input) Person Identifier
SA_​ID Contract ID SA (Service Agreement)
ACCT_​REL_​TYPE_​CD Account Relationship Type (Returned only when PER_​ID_​NBR is passed as an function input) Account Person Relationship
ACCT_​NBR_​TYPE_​CD Account Identifier Type Maintains External Account Numbers
SA_​TYPE_​CD Contract Type SA (Service Agreement)
ACCT_​USAGE_​FLG Account Usage Account
VERSION Version Account