# Additional Fields Maintenance

This topic provides the systematic instructions on Additional Fields Maintenance.

This screen is used to maintain the additional fields for a transaction screen.

To process this screen, type Additional Fields Maintenance in the Menu Item Search located at the left corner of the application toolbar and select the appropriate screen.

Follow the below steps:

1. From Home screen, click Core Maintenance. Under Core Maintenance, click Additional Fields Maintenance.
2. The Additional Fields Maintenance screen is displayed.

   Figure 6-1 Additional Fields Maintenance

   Description of "Figure 6-1 Additional Fields Maintenance"
3. Specify the details in the Additional Fields Maintenance screen.

   For more information on fields, refer table Field Description – Additional Field Maintenance.

   Table 6-1 Additional Field Maintenance - Field Description

   Field | Description
   --- | ---
   Component Name | Specify the data segment name as component name. Note:By default, the value fsgbu-ob-cmndsadditional-fields is displayed, which is the Common Core Data Segment that displays the maintained additional fields. It will fetch the corresponding maintained record for Additional Fields by querying with uiKey = DataSegmentName @ ProductCode.
   Product Code | Specify the function code as product code.
   Product Name | Displays the product name of the specified product code.
   Description | Displays the description as Additional Fields.
   Application ID | Displays the Application ID.
   + icon | Click this icon to add a new row.
   – icon | Click this icon to delete a row, which is already added.
   Construct Additional Fields MetaData | Specify the fields.
   Select | Check this box to select a row.
   Field ID | Specify the Field ID.
   Field Label | Specify the field label.
   Category | Specify the category.
   Field Type | Specify the field type.
   Edit | Select if a value needs to be inputted in the additional field.
   Mandatory | Select if the input value is mandatory in the additional field.
   Construct Validation MetaData | Specify the fields.
   Select | Check this box to select a row.
   Validation Name | Specify the validation name.
   Validation Template to Use | Specify the template to be used for validation.
   Custom Error Message | Specify the custom error message to be displayed.
   Edit Arguments | Select if arguments needs to be edited in the additional field.

4. Click Save to add the additional field in the maintenance work table (CMC_TW_ADDT_ATTR_MASTER).

   Note:

   Once it is approved, the data will persist in the master table. Currently, Mobile Number and Date are added as additional fields. In addition,the validation is added for Date.
5. Sign in with different user ID since maker will not be able to approve the records with the same user ID.

   Figure 6-2 Additional Fields Maintenance Records

   Description of "Figure 6-2 Additional Fields Maintenance Records"
6. Map the new data segment for the function code. Make sure that the data is present in CMC_TM_SCREEN_DS_MAPPING.

   Note:

   Once the additional fields are added for a particular function code, a separate data segment will be enabled in the transaction screen for Additional Fields.
7. Click Submit, to save the transaction data of additional fields to the CMC_TB_ADDT_ATTR_DATA.
   In addition, the following actions have been performed from service side:
   - Fetch record through inter-service call to additional attributes service in common transaction with record ID.
   - Append the field data to the main payload for the ejlogging.

       {
                 "data": {
                  "addDtls": {
                    "signatureVerifyIndicator": "Y",
                    "hostStatus": null,
                    "hostMultiTripId": null,
                    "txnBranchCcy": "GBP",
                    "txnBranchDate": "2020-03-25T18:30:00.000+0000",
                    "txnType": "C",
                    "cashInOutIndicator": "I",
                    "ejLoggingRequired": null,
                    "ejTxnAmtMapping": "TO",
                    "ejTxnCcyMapping": "TO",
                    "adviceName": null,
                    "orchestratorId": null,
                    "rsp": null,
                    "isReversal": "N",
                    "isAdvice": "N",
                    "reversalButton": "N",
                    "ignoreApproval": false,
                    "ignoreWarning": false,
                    "isExternal": false
               },
               "txnDtls": {
                    "functionCode": "1401",
                    "txnBranchCode": null,
                    "txnBranchCcy": null,
                    "txnBranchDate": null,
                    "requestStatus": "COMPLETED",
                    "assignmentMode": null,
                    "txnId": "f6b36a91-889d-4505-aac0-d7b98484d098",
                    "txnRefNumber": "989124345493245",
                    "tellerSeqNumber": null,
                    "overrideConfirmFlag": null,
                    "supervisorId": null,
                    "onlineOfflineTxn": null,
                    "userComments": null,
                    "authoriserComments": null,
                    "eventCode": null,
                    "accountType": "UBS"
               },
               "dataPayload": {
                    "datasegment": null,
                    "fromAccountAmt": 100,
                    "fromAccountCcy": "GBP",
                    "toAccountCcy": "GBP",
                    "beneficiaryName": null,
                    "beneficiaryAddress1": null,
                    "beneficiaryAddress2": null,
                    "beneficiaryAddress3": null,
                    "beneficiaryAddress4": null,
                    "identificationType": null,
                    "identificationNumber": null,
                    "exchangeRate": 1,
                    "recievedAccount
                     Ccy": null,
                    "recievedAccount
                     Amt": null,
                    "totalCharges":
                     null,
                    "cashAmount":
                     100,
                    "netAccountCcy": null,
                    "netAccountAmt": null,
                    "narrative": "Cash Deposit",
                    "txnControllerRefNo": null,
                    "recordId": "f6b36a91-889d-4505-aac0-
                     d7b98484d098", "cashAmtCcy": null,
                    "cashAmt":
                     null,
                    "chequeDate": null,
                    "chequeNumber": null,
                    "eventCode": null,
                    "ejId": null,
                    "emailId": null,
                    "fromAccountBranch": "000",
                    "fromAccountNumber": null,
                    "mobileNumber": null,
                    "orginalExchangeRate": null,
                    "payee": null,
                    "productCode": null,
                    "reversalDate": null,
                    "stationId": null,
                    "toAccountBranch": "000",
                    "toAccountNumber": "00000008010010",
                    "toAccountAmt": 100,
                    "txnBranchCode": "000",
                    "functionCode": null,
                    "txnCustomer": null,
                    "tellerId": null,
                    "txnDate": 1585161000000,
                    "txnRefNumber": "9892566557744",
                    "txnSeqNumber": null,
                    "uniqueIdentifierNumber": null,
                    "uniqueIdentifierType": null,
                    "userRefNumber": null,
                    "valueDate": null,
                    "versionNumber": null,
                    "referenceNumber": null,
                    "createdBy": null,
                    "createdTs": null,
                    "updatedBy": null,
                    "updatedTs": null,
                    "demDtls": [],
                    "fxInDemDtls": null,
                    "fxOutDemDtls": null,
                    "prcDtls": [],
                    "addDtls": null,
                    "txnDtls": null,
                    "overrideDtls": null,
                    "batchTableDetails": null,
                    "cmcAddlFields": [
               {
                    "id": "OTH_passprt",
                    "label": "Passport No",
                    "type": "TEXT",
                    "value": "43243"
               },
               {
                    "id": "UDF_aadhar",
                    "label": "Aadhar",
                    "type": "TEXT",
                    "value": "1243"
               },
               {
                    "id": "TMIS_toDate",
                    "label": "To Date",
                    "type": "DATE",
                    "value": ""
               },
               {
                    "id": "TMIS_fromDate",
                    "label": "From Date",
                    "type": "DATE",
                    "value": ""
               }
               },
                    "extDetails": null,
                    "warDtls": [],
                    "authoriserDtls": []
               },
                    "errors": null,
                    "warnings": null,
                    "informations": null,
                    "authorizations": null,
                    "paging": ""
               }