Fetch Invoice Construct ID
These function can be used to get the Invoice Construct Identifier and other corresponding below listed column/output values.
Invoice Contract identifier can be retrieved using Account Identifier i.e. ACCT_NBR. Using this identifier we look for BILLING ACCOUNT ID in Construct table.
ACCT_NBR is mandatory input while the other remaining input parameters are optional for this function.
Function:
FETCH(INV_CONSTRUCT[COLUMN_NAME,ACCT_NBR,ACCT_NBR_TYPE_CD,ACCT_ID,
TEMPLATE_PURPOSE_FLG,EFFT_START_DT,EFFT_END_DT,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 | |
ACCT_NBR | Account Identifier | Maintains External Account Numbers |
ACCT_NBR_TYPE_CD | Account Identifier Type | Maintains External Account Numbers |
ACCT_ID | Account ID | Maintains External Account Numbers |
TEMPLATE_PURPOSE_FLG | Template Purpose Flag | Construct Template |
EFFT_START_DT | Effective Start Date | Construct |
EFFT_END_DT | Effective End Date | Construct |
STATUS_FLG | Status Flag. By default its value will be ‘ACTV’. | Construct |
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 |
CONSTRUCT_ID | Construct ID | Construct |
TEMPLATE_PURPOSE_FLG | Template Purpose Flag | Construct Template |
EFFT_START_DT | Effective Start Date | Construct |
EFFT_END_DT | Effective End Date | Construct |
CONSTRUCT_DESC | Contract Description | Construct |
TYPE_FLG | Type Flag | Construct |
VERSION_NUM | Version Number | Construct |
BILLING_ACCT_ID | Contract Type | Construct Template |
STATUS_FLG | Status Flag | Construct |