Ce r12 Bank Model Public API's
Ce r12 Bank Model Public API's
Creation Date: October 6, 2009 Last Updated: File URL: Version: Status: October 6, 2009 http://files.oraclecorp.com/ 1.1 Draft
Approver Name
Role
Date
This document is not a promise to deliver and may not be included as part of any contract.
1. Document Information
Date 14/08/2009
Version 1.0
Change Reference
1.2 Contributors
Contributor
Role
Position
1.3 Reviewers
Role
Document Status
Date Reviewed
Comments Incorporated
Document Information
Page ii of 62
Contents
1. Document Information ......................................................................................... ii
1.1 1.2 1.3 Change Record........................................................................................................................ii Contributors ............................................................................................................................ii Reviewers................................................................................................................................ii
2.
Introduction............................................................................................................5
2.1 2.2 Scope of the Document ........................................................................................................... 5 Basic Business Needs.............................................................................................................. 5
3. 4.
Integration with Trading Community Architecture (TCA) APIs .....................6 Major Features.......................................................................................................7
4.1 4.2 4.3 4.4 4.5 4.6 4.7 4.8 Setting Applications Context .................................................................................................. 7 Exception Handling and Results Messages............................................................................. 7 Return Status ........................................................................................................................... 7 Locking Mechanism................................................................................................................ 8 Standard IN or IN/OUT Parameters........................................................................................ 8 Standard OUT Parameters....................................................................................................... 8 Country-specific Validations .................................................................................................. 9 Document Layout.................................................................................................................... 9
5.
BANK APIs...........................................................................................................10
5.1 CE_BANK_PUB.create_bank .............................................................................................. 10 5.1.1 5.1.2 5.1.3 5.2 PL/SQL Procedure...................................................................................................... 10 Parameter Descriptions ............................................................................................... 11 UI Mappings ............................................................................................................... 13
CE_BANK_PUB.update_bank ............................................................................................. 14 5.2.1 5.2.2 5.2.3 PL/SQL Procedure...................................................................................................... 14 Parameter Descriptions ............................................................................................... 15 UI Mappings ............................................................................................................... 17
5.3
5.4
6.
CE_BANK_PUB.update_bank_branch ................................................................................ 26
Document Information
Page iii of 62
6.4
7.
CE_BANK_PUB.update_bank_acct..................................................................................... 43 7.3.1 7.3.2 7.3.3 PL/SQL Procedure...................................................................................................... 43 Parameter Descriptions ............................................................................................... 44 UI Mappings ............................................................................................................... 49
8.
CE_BANK_PUB.update_bank_acct_use ............................................................................. 57 8.3.1 8.3.2 8.3.3 PL/SQL Procedure...................................................................................................... 57 Parameter Descriptions ............................................................................................... 58 UI Mappings ............................................................................................................... 61
9.
Document Information
Page iv of 62
2. Introduction
Introduction
Page 5 of 62
Applications in the Oracle E-Business Suite use the TCA public APIs to insert and update entities in the TCA model. The following table illustrates the integration between TCA APIs and the Cash Management APIs. Please note that banks and bank branches are TCA parties in R12. Cash Management provides and interface through which these parties are created and updated. The tables which store the data are all TCA (HZ) tables.
Yes: Calls HZ_BANK_PUB.create_bank Yes: Calls HZ_BANK_PUB.update_bank No Yes: Calls HZ_BANK_PUB.update_bank. And in set_bank_end_date some of the cases call is made to HZ_BANK_PUB.update_bank_branch create_bank_branch Yes: Calls HZ_BANK_PUB.create_bank_branch update_bank_branch Yes: Calls HZ_BANK_PUB.update_bank_branch check_branch_exits No set_bank_branch_end_date Yes: Calls HZ_BANK_PUB.update_bank_branch create_bank_acct No update_bank_acct No create_bank_acct_use No update_bank_acct_use No
Integration with Trading Community Architecture (TCA) APIsOracle Confidential - For internal use only
Page 6 of 62
4. Major Features
Major Features
Page 7 of 62
For this reason, OBJECT_VERSION_NUMBER is a mandatory attribute for all update APIs. The locking mechanism works as follows: Whenever a new record is created, the value in the OBJECT_VERSION_NUMBER column is set to 1. Whenever a record is updated, the value in the OBJECT_VERSION_NUMBER column is reset to OBJECT_VERSION_NUMBER + 1. For records that existed in the HZ tables prior to introduction of this locking mechanism, the API sets the value in the column OBJECT_VERSION_NUMBER to null.
The x_msg_count variable contains the number of messages in the message list. If the count is one, then the x_msg_data variable holds the encoded message. These parameters have been referred to as Output-Standard API Parameters throughout the document
Major Features
Page 8 of 62
Each of these APIs is organized into API overview, PL/SQL procedure, Parameter descriptions and UI Mappings section. The Error key messages described in the Parameter descriptions section of the API have been expanded and message text is given at the end of the document.
Major Features
Page 9 of 62
5. BANK APIs
5.1 CE_BANK_PUB.create_bank
This API is used to create a bank. The create_bank API calls the HZ_BANK_PUB.create_bank API to create the bank as an Organization in the HZ_PARTIES table. On successful creation of bank, the API returns the bank party id along with the information/error messages. The API returns a null bank party id if the bank is not created. This API has 4 output and 34 input parameters in total. Based on the type, the following is the breakdown of the parameters: Input Standard API parameters: 1 Application parameters: 8 + 25 (descriptive flexfield record parameters)
BANK APIs
Page 10 of 62
Type IN
Reqd No
Default
Validation, Comments
p_country_code
IN
VARCHAR2
Yes
p_bank_name
IN
VARCHAR2
Yes
p_bank_number
IN
VARCHAR2
No
p_alternate_bank_name
IN
VARCHAR2
No
Allows API callers to request that the fnd_api.g API does initialization of the message _false list on their behalf. This is a 2 letter country code value as defined in the table FND_TERRITORIES for a particular country. Error: CE_API_REQUIRED_PARAM This is the Bank Name field. Validation: Mandatory attribute Error: CE_API_REQUIRED_PARAM This is the Bank number field, country specific validations are applied on this NULL field. Validations are applied based on the home country that is p_country_code. This field represents the alternate bank name. Country Specific Validations are NULL applicable on this field in particular for the Country Japan An alias or other name by which the bank is known. This is the Short name field of the Bank This field stores the description details of the bank Taxpayer identification number. Can be SSN or income taxpayer ID in US, fiscal code or NIF in Europe. Country Specific Validations are applicable on this field in particular for the Country Colombia Taxpayer registration number, also known as the VAT number.
p_short_bank_name
IN
VARCHAR2
No
NULL
p_description
IN
VARCHAR2
No
NULL
p_tax_payer_id
IN
VARCHAR2
No
NULL
p_tax_registration_number p_attribute_category p_attribute1 p_attribute2 p_attribute3 p_attribute4 p_attribute5 p_attribute6 p_attribute7 p_attribute8 p_attribute9 p_attribute10 p_attribute11 p_attribute12
IN IN IN IN IN IN IN IN IN IN IN IN IN IN
VARCHAR2 VARCHAR2 VARCHAR2 VARCHAR2 VARCHAR2 VARCHAR2 VARCHAR2 VARCHAR2 VARCHAR2 VARCHAR2 VARCHAR2 VARCHAR2 VARCHAR2 VARCHAR2
No No No No No No No No No No No No No No
NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
BANK APIs
Page 11 of 62
Parameter Name p_attribute13 p_attribute14 p_attribute15 p_attribute16 p_attribute17 p_attribute18 p_attribute19 p_attribute20 p_attribute21 p_attribute22 p_attribute23 p_attribute24 x_bank_id
Type IN IN IN IN IN IN IN IN IN IN IN IN OUT
Data Type VARCHAR2 VARCHAR2 VARCHAR2 VARCHAR2 VARCHAR2 VARCHAR2 VARCHAR2 VARCHAR2 VARCHAR2 VARCHAR2 VARCHAR2 VARCHAR2 NUMBER
Reqd No No No No No No No No No No No No
Default NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
Validation, Comments
x_return_status
OUT
VARCHAR2
x_msg_count x_msg_data
OUT OUT
NUMBER VARCHAR2
The bank party ID for the bank is returned on successful bank creation The return status of the API, informs the caller about the result of the operation or operations performed by the API Number of messages in the FND message stack If the count for x_msg_count is one, then the x_msg_data column holds the encoded message
Output Value The Bank party ID for the newly created bank along with x_return_status of FND_API.G_RET_STS_SUCCESS A null value for the Bank party ID. x_return_status of either FND_API.G_RET_STS_ERROR FND_API.G_RET_STS_UNEXP_ERROR
Note: The user can crosscheck if the bank is successfully created in the application or not by querying the bank details in ce_banks_v database view.
BANK APIs
Page 12 of 62
5.1.3 UI Mappings
The below screen-shot shows the mapping of create_bank API parameters with the UI fields of Create Bank: Bank Information Page.
BANK APIs
Page 13 of 62
5.2 CE_BANK_PUB.update_bank
This API is used to update a bank already existing in the application. The update_bank API calls the HZ_BANK_PUB.update_bank API to update the bank details of bank in the HZ_PARTIES table. On successful update of bank, the API returns the information/error messages. This API has 3 output, 35 input and 1 input/output parameters in total. Based on the type, the following is the breakdown of the parameters: Input Standard API parameters: 1 Application parameters: 9 + 25 (descriptive flexfield record parameters) Output Standard API parameters: 3 Application parameters: 0 Input/Output Standard API parameters: 1
5.2.1
PL/SQL Procedure
CE_BANK_PUB.update_bank ( p_init_msg_list, p_bank_id, p_bank_name , p_bank_number , p_alternate_bank_name , p_short_bank_name, p_description , p_tax_payer_id , p_tax_registration_number , p_attribute_category , p_attribute1 , p_attribute2 , p_attribute3 , p_attribute4 , p_attribute5 , p_attribute6 , p_attribute7 , p_attribute8 , p_attribute9 , p_attribute10 , p_attribute11 , p_attribute12 , p_attribute13 , p_attribute14 , p_attribute15 , p_attribute16 , p_attribute17 , p_attribute18 , p_attribute19 , p_attribute20 , p_attribute21 , p_attribute22 , p_attribute23 , p_attribute24, p_country_validate , p_object_version_number, x_return_status, x_msg_count, x_msg_data );
BANK APIs
Page 14 of 62
5.2.2
Parameter Descriptions
The existing values of bank details are retained for the non-required parameters if values are not passed for them.
Type IN
Reqd No
Default
Validation, Comments
p_bank_id
IN
NUMBER
Yes
p_bank_name
IN
VARCHAR2
Yes
p_bank_number
IN
VARCHAR2
No
p_alternate_bank_name
IN
VARCHAR2
No
p_short_bank_name
IN
VARCHAR2
No
Allows API callers to request that the fnd_api.g API does initialization of the message _false list on their behalf. Validation: Valid bank party_id from HZ_PARTIES table for the Bank to be updated. Comment: Pass the party_id from HZ_PARTIES record for the organization Error: CE_API_REQUIRED_PARAM This is the Bank Name field. Validation: Mandatory attribute Validation: Cannot be updated to null Error: CE_API_REQUIRED_PARAM This is the Bank number field, country specific validations are applied on this NULL field. Validations are applied based on the home country that is p_country_code. This field represents the alternate bank name. Country Specific Validations are NULL applicable on this field in particular for the Country Japan An alias or other name by which the bank is NULL known. This is the Short name field of the Bank NULL This field stores the description details of the bank Taxpayer identification number. Can be SSN or income taxpayer ID in US, fiscal code or NIF in Europe. Country Specific Validations are applicable on this field in particular for the Country Colombia Taxpayer registration number, also known as the VAT number. Validation: Validated against AR lookup type MONTH
p_description
IN
VARCHAR2
No
p_tax_payer_id
IN
VARCHAR2
No
NULL
p_tax_registration_number
IN
VARCHAR2
No
NULL
p_attribute_category p_attribute1 p_attribute2 p_attribute3 p_attribute4 p_attribute5 p_attribute6 p_attribute7 p_attribute8 p_attribute9
IN IN IN IN IN IN IN IN IN IN
VARCHAR2 VARCHAR2 VARCHAR2 VARCHAR2 VARCHAR2 VARCHAR2 VARCHAR2 VARCHAR2 VARCHAR2 VARCHAR2
No No No No No No No No No No
NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
BANK APIs
Page 15 of 62
Parameter Name p_attribute10 p_attribute11 p_attribute12 p_attribute13 p_attribute14 p_attribute15 p_attribute16 p_attribute17 p_attribute18 p_attribute19 p_attribute20 p_attribute21 p_attribute22 p_attribute23 p_attribute24
Type IN IN IN IN IN IN IN IN IN IN IN IN IN IN IN
Data Type VARCHAR2 VARCHAR2 VARCHAR2 VARCHAR2 VARCHAR2 VARCHAR2 VARCHAR2 VARCHAR2 VARCHAR2 VARCHAR2 VARCHAR2 VARCHAR2 VARCHAR2 VARCHAR2 VARCHAR2
Reqd No No No No No No No No No No No No No No No
Default NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
Validation, Comments
p_country_validate
IN
VARCHAR2
No
The country specific validation errors are reported only if this field is set to 'Y'. Validation: Mandatory attribute Validated against value in the database for the existing party record Comment: Pass the current object_version_number of the record from hz_parties Return new value after update The return status of the API, informs the caller about the result of the operation or operations performed by the API Number of messages in the FND message stack If the count for x_msg_count is one, then the x_msg_data column holds the encoded message
p_object_version_number
IN OUT
x_return_status
OUT
VARCHAR2
x_msg_count
OUT
NUMBER
x_msg_data
OUT
VARCHAR2
Output Value The incremented object version number along with x_return_status of FND_API.G_RET_STS_SUCCESS x_return_status of either FND_API.G_RET_STS_ERROR FND_API.G_RET_STS_UNEXP_ERROR
BANK APIs
Page 16 of 62
5.2.3 UI Mappings
The below screen-shot shows the mapping of update_bank API parameters with the UI fields of Update Bank: Bank Information Page.
BANK APIs
Page 17 of 62
5.3 CE_BANK_PUB.check_bank_exist
This procedure is used to find if a bank already exists in the system or not. If the bank is present then the Bank party ID is returned along with its end date. The bank search can be done either using the bank name field or the bank number field. The API works as listed below Case 1. If a value other than null is passed for p_bank_name field, API searches the bank based on its name without taking into account the bank number p_bank_number. In this case the p_bank_number field is not used anywhere. Case 2. If a null value is passed for the p_bank_name field, a. Then API checks for p_bank_number field, if the value for bank number field is not null then the bank is searched based on the bank number. b. If a null value is passed for p_bank_number field then null values are returned for the Bank ID. This API has 2 output and 3 input parameters in total. Based on the type, the following is the breakdown of the parameters: Input Standard API parameters: 0 Application parameters: 3 Output Standard API parameters: 0 Application parameters: 2
5.3.1
PL/SQL Procedure
CE_BANK_PUB.check_bank_exist( p_country_code, p_bank_name, p_bank_number, x_bank_id, x_end_date );
5.3.2
Parameter Descriptions
Parameter Name
Type
Data Type
Reqd
Default
Validation, Comments This is the Country Code for the country the bank belongs to. The code is as defined in the FND_TERRITORIES table This field represents the bank name which has to be searched This field represents the bank number which has to be searched Bank Party ID if bank exists, null if bank does not exist. End date of the bank.
p_country_code
IN
VARCHAR2
Yes
IN IN OUT OUT
BANK APIs
Page 18 of 62
Output Value The bank party id and end date for the given bank name/ bank number along with x_return_status of FND_API.G_RET_STS_SUCCESS X_return_status of either FND_API.G_RET_STS_ERROR or FND_API.G_RET_STS_UNEXP_ERROR
BANK APIs
Page 19 of 62
5.4 CE_BANK_PUB.set_bank_end_date
This API is used to set the end date of a bank of a bank already defined in the application. This API uses the HZ_BANK_PUB.update_bank public API to update the end date detail of the bank. This API has 3 output, 3 input and 1 input/output parameters in total. Based on the type, the following is the breakdown of the parameters: Input Standard API parameters: 1 Application parameters: 2 Output Standard API parameters: 3 Application parameters: 0 Input/Output Standard API parameters: 1
5.4.1
PL/SQL Procedure
CE_BANK_PUB.set_bank_end_date ( p_init_msg_list, p_bank_id, p_end_date, p_object_version_number, x_return_status, x_msg_count, x_msg_data );
Type IN
Reqd No
Default
Validation, Comments
Allows API callers to request that the fnd_api.g API does initialization of the message _false list on their behalf. Validation: Valid bank party_id from HZ_PARTIES table for the Bank to be updated. Comment: Pass the party_id from HZ_PARTIES record for the organization. Error: CE_API_REQUIRED_PARAM CE_API_NO_BANK New end date value. Pass the current object_version_number of the record from hz_parties Validation: Mandatory attribute Validated against value in the database for the existing party record Comment: Return new value after update
p_bank_id
IN
NUMBER
Yes
p_end_date
IN
DATE
Yes
p_object_version_number
IN OUT
NUMBER
Yes
BANK APIs
Page 20 of 62
Type OUT
Reqd Yes
Default
Validation, Comments The return status of the API, informs the caller about the result of the operation or operations performed by the API Number of messages in the FND message stack If the count for x_msg_count is one, then the x_msg_data column holds the encoded message
x_msg_count x_msg_data
OUT OUT
NUMBER VARCHAR2
Yes Yes
Output Value The incremented object version number along with x_return_status of FND_API.G_RET_STS_SUCCESS x_return_status of either FND_API.G_RET_STS_ERROR or FND_API.G_RET_STS_UNEXP_ERROR
BANK APIs
Page 21 of 62
6.1.1
PL/SQL Procedure
CE_BANK_PUB.create_bank_branch ( p_init_msg_list, p_bank_id, p_branch_name, p_branch_number, p_branch_type, p_alternate_branch_name, p_description, p_bic, p_eft_number, p_rfc_identifier, p_attribute_category, p_attribute1, p_attribute2, p_attribute3, p_attribute4, p_attribute5, p_attribute6, p_attribute7, p_attribute8, p_attribute9, p_attribute10, p_attribute11, p_attribute12, p_attribute13, p_attribute14, p_attribute15, p_attribute16, p_attribute17, p_attribute18, p_attribute19, p_attribute20, p_attribute21, p_attribute22, p_attribute23, p_attribute24, x_branch_id, x_return_status, x_msg_count, x_msg_data );
Page 22 of 62
6.1.2
Parameter Descriptions
Type IN
Reqd No
Default
Validation, Comments
Allows API callers to request that the API fnd_api.g does initialization of the message list on their _false behalf. The bank party id for which the bank branch has to be created. Validation: This is a mandatory parameter. Valid bank party id should be passed. Error: CE_API_REQUIRED_PARAM CE_API_NO_BANK This field represents the name of the branch. Validation: This is a mandatory parameter Error: CE_API_REQUIRED_PARAM This is the Branch number field, country specific validations are applied on this field. Validations are applied based on the country of the bank for which this bank branch is created This is branch type field. Validation: Validated against AR_LOOKUPS for lookup type 'BANK_BRANCH_TYPE'. Error: HZ_API_INVALID_PARTY_TYPE This field represents the alternate branch name. Country Specific Validations are applicable on this field in particular for the Country Japan This field stores the description details of the bank branch This field represents the EFT Swift Code. The number that identifier you as a user of electronic funds transfer service to your bank or clearing organization. This is the RFC identifier code of the bank branch. Validation: Validated against CE_LOOKUPS for lookup type 'RFC_IDENTIFIER'. Error: HZ_API_INVALID_LOOKUP
p_bank_id
IN
NUMBER
Yes
p_branch_name
IN
VARCHAR2
Yes
p_branch_number
IN
VARCHAR2
No
NULL
p_branch_type
IN
VARCHAR2
No
NULL
p_alternate_branch_name
IN
VARCHAR2
No
NULL
IN IN IN
No No No
p_rfc_identifier
IN
VARCHAR2
No
NULL
p_attribute_category p_attribute1 p_attribute2 p_attribute3 p_attribute4 p_attribute5 p_attribute6 p_attribute7 p_attribute8 p_attribute9 p_attribute10 p_attribute11
IN IN IN IN IN IN IN IN IN IN IN IN
VARCHAR2 VARCHAR2 VARCHAR2 VARCHAR2 VARCHAR2 VARCHAR2 VARCHAR2 VARCHAR2 VARCHAR2 VARCHAR2 VARCHAR2 VARCHAR2
No No No No No No No No No No No No
NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
Page 23 of 62
Parameter Name p_attribute12 p_attribute13 p_attribute14 p_attribute15 p_attribute16 p_attribute17 p_attribute18 p_attribute19 p_attribute20 p_attribute21 p_attribute22 p_attribute23 p_attribute24 x_branch_id
Type IN IN IN IN IN IN IN IN IN IN IN IN IN OUT
Data Type VARCHAR2 VARCHAR2 VARCHAR2 VARCHAR2 VARCHAR2 VARCHAR2 VARCHAR2 VARCHAR2 VARCHAR2 VARCHAR2 VARCHAR2 VARCHAR2 VARCHAR2 NUMBER
Reqd No No No No No No No No No No No No No
Default NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
Validation, Comments
The Party ID for the bank branch or the bank_branch_id is returned on successful bank branch creation The return status of the API, informs the caller about the result of the operation or operations performed by the API Number of messages in the FND message stack If the count for x_msg_count is one, then the x_msg_data column holds the encoded message
Note: The parameter values for create_bank_branch should pass the below check A unique combination of bank number, bank branch number, and country else the API gives the error HZ_BANK_NONUNIQUE_NUMBER. A unique combination of bank name and bank branch name else the API gives the error HZ_BANK_NONUNIQUE_NAME. The user can crosscheck if the bank branch is successfully created in the application or not by querying the bank branch details in ce_bank_branches_v database view.
Output Value The bank branch party ID for the newly created bank branch along with x_return_status of FND_API.G_RET_STS_SUCCESS A null value for the bank branch party ID. x_return_status of either FND_API.G_RET_STS_ERROR FND_API.G_RET_STS_UNEXP_ERROR
Page 24 of 62
6.1.3 UI Mappings The below screen-shot shows the mapping of create_bank_branch API parameters with the UI fields of Create Bank Branch: Bank Branch Information Page.
Page 25 of 62
6.2 CE_BANK_PUB.update_bank_branch
This API is used to update a bank branch already exising in the application. The update_bank _branchAPI calls the HZ_BANK_PUB.update_bank_branch API to update the bank details of bank in the HZ_PARTIES table. On successful update of bank branch, the API return the information /error messages. This API has 3 output, 36 input and 4 input/output parameters in total. Based on the type, the following is the breakdown of the parameters: Input Standard API parameters: 1 Application parameters: 10 + 25 (descriptive flexfield record parameters) Output Standard API parameters: 3 Application parameters: 0 Input/Output Standard API parameters: 4
Page 26 of 62
6.2.2
Parameter Descriptions
Type IN
Reqd No
Default
Validation, Comments
Allows API callers to request that the API fnd_api.g does initialization of the message list on their _false behalf. The bank branch party id for which the bank branch has to be updated. Validation: This is a mandatory parameter. Valid bank party id should be passed. Error: CE_API_REQUIRED_PARAM This field represents the name of the branch. Validation: This is a mandatory parameter Cannot be updated to null. Error: CE_API_REQUIRED_PARAM This is the Branch number field, country specific validations are applied on this field. Validations are applied based on the country of the bank for which this bank branch is created This is branch type field. Validation: Validated against AR_LOOKUPS for lookup type 'BANK_BRANCH_TYPE'. Error: HZ_API_INVALID_PARTY_TYPE This field represents the alternate branch name. Country Specific Validations are applicable on this field in particular for the Country Japan This field stores the description details of the bank branch This field represents the EFT Swift Code. The number that identifier you as a user of electronic funds transfer service to your bank or clearing organization. This is the RFC identifier code of the bank branch. Validation: Validated against CE_LOOKUPS for lookup type 'RFC_IDENTIFIER'. Error:HZ_API_INVALID_LOOKUP
p_branch_id
IN
NUMBER
Yes
p_branch_name
IN
VARCHAR2
Yes
p_branch_number
IN
VARCHAR2
No
NULL
p_branch_type
IN
VARCHAR2
No
NULL
p_alternate_branch_name
IN
VARCHAR2
No
NULL
IN IN IN
No No No
p_rfc_identifier
IN
VARCHAR2
No
NULL
IN IN IN IN IN IN IN IN IN
No No No No No No No No No
Page 27 of 62
Parameter Name p_attribute9 p_attribute10 p_attribute11 p_attribute12 p_attribute13 p_attribute14 p_attribute15 p_attribute16 p_attribute17 p_attribute18 p_attribute19 p_attribute20 p_attribute21 p_attribute22 p_attribute23 p_attribute24 p_country_validate
Type IN IN IN IN IN IN IN IN IN IN IN IN IN IN IN IN IN
Data Type VARCHAR2 VARCHAR2 VARCHAR2 VARCHAR2 VARCHAR2 VARCHAR2 VARCHAR2 VARCHAR2 VARCHAR2 VARCHAR2 VARCHAR2 VARCHAR2 VARCHAR2 VARCHAR2 VARCHAR2 VARCHAR2 VARCHAR2
Reqd No No No No No No No No No No No No No No No No No
Default NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL Y
Validation, Comments
The country specific validation errors are reported only if this field is set to 'Y'. Current object version number for the bank branch. The value for object_version_number column in the HZ_PARTIES table for the bank branch party id Current object version number for bank branch type code assignment i.e. the value for the column object_version_number in HZ_CODE_ASSIGNMENTS table for CLASS_CATEGORY 'BANK_BRANCH_TYPE' Current object version number for RFC code assignment i.e. the value for the column object_version_number in HZ_CODE_ASSIGNMENTS table for CLASS_CATEGORY 'RFC_IDENTIFIER' Current object version number for BIC(EFT) contact point i.e. the value for the column object_version_number in HZ_CONTACT_POINTS table for CONTACT_POINT_ID 'EFT' The return status of the API, informs the caller about the result of the operation or operations performed by the API Number of messages in the FND message stack If the count for x_msg_count is one, then the x_msg_data column holds the encoded message
p_bch_object_version_numb IN er OUT
NUMBER
p_typ_object_version_numb IN er OUT
NUMBER
p_rfc_object_version_numb IN er OUT
NUMBER
p_eft_object_version_numb er
IN OUT
NUMBER
Page 28 of 62
Note: The parameter values for update_bank_branch should also pass the below check as in create_bank_branch. But these check are made only when either of the branch name or branch number field is updated A unique combination of bank number, bank branch number, and country else the API gives the error HZ_BANK_NONUNIQUE_NUMBER. A unique combination of bank name and bank branch name else the API gives the error HZ_BANK_NONUNIQUE_NAME.
Output Value The incremented object version number along with x_return_status of FND_API.G_RET_STS_SUCCESS x_return_status of either FND_API.G_RET_STS_ERROR FND_API.G_RET_STS_UNEXP_ERROR
6.2.3 UI Mappings The below screen-shot shows the mapping of update_bank_branch API parameters with the UI fields of Update Bank Branch: Bank Branch Information Page.
Page 29 of 62
6.3 CE_BANK_PUB.check_branch_exist
This procedure is used to find if a bank branch already exists in the system or not for the passed input parameters. If the bank is present then the Bank branch party ID is returned along with its end date. The bank branch search can be done either using the bank branch name field or the bank branch number field. The API works as listed below Case 1. If a value other than null is passed for p_branch_name field, API searches the bank branch based on its name without taking into account the bank branch number p_branch_number. In this case the p_bank_number field is not used anywhere. Case 2. If a null value is passed for the p_branch_name field, a. Then API checks for p_branch_number field, if the value for bank branch number field is not null then the bank branch is searched based on the bank branch number. b. If a null value is passed for p_branch_number field then null values are returned for the Bank branch party ID. This API has 2 output and 3 input parameters in total. Based on the type, the following is the breakdown of the parameters: Input Standard API parameters: 0 Application parameters: 3 Output Standard API parameters: 0 Application parameters: 2
6.3.1
PL/SQL Procedure
CE_BANK_PUB.check_branch_exist( p_bank_id, p_branch_name, p_branch_number, x_branch_id, x_end_date );
Page 30 of 62
6.3.2
Parameter Descriptions
Default
Validation, Comments This is the bank party id for which the bank branch is being searched. This field represents the bank branch name which has to be searched This field represents the bank branch number which has to be searched Bank branch Party ID if bank branch exists, null if bank does not exist. End date of the bank branch.
Output Value The bank branch party id and end date for the given bank branch name/ bank branch number along with x_return_status of FND_API.G_RET_STS_SUCCESS X_return_status of either FND_API.G_RET_STS_ERROR or FND_API.G_RET_STS_UNEXP_ERROR
Page 31 of 62
6.4 CE_BANK_PUB.set_bank_branch_end_date
This API is used to set the end date of a bank branch already defined in the application. This API uses the HZ_BANK_PUB.update_bank_branch public API to update the end date detail of bank branch. This API has 3 output, 3 input and 1 input/output parameters in total. Based on the type, the following is the breakdown of the parameters: Input Standard API parameters: 1 Application parameters: 2 Output Standard API parameters: 3 Application parameters: 0 Input/Output Standard API parameters: 1
6.4.1
PL/SQL Procedure
CE_BANK_PUB.set_bank_branch_end_date ( p_init_msg_list, p_branch_id, p_end_date, p_object_version_number, x_return_status, x_msg_count, x_msg_data );
Page 32 of 62
Type IN
Reqd No
Default
Validation, Comments
p_branch_id
IN
NUMBER
Yes
p_end_date
IN
DATE
Yes
p_object_version_number
IN OUT
NUMBER
Yes
x_return_status
OUT
VARCHAR2
Yes
x_msg_count x_msg_data
OUT OUT
NUMBER VARCHAR2
Yes Yes
Allows API callers to request that the fnd_api.g API does initialization of the message _false list on their behalf. Validation: Valid bank branch party_id from HZ_PARTIES table for the Bank branch to be updated. Comment: Pass the party_id from HZ_PARTIES record for the organization. Error: CE_API_REQUIRED_PARAM CE_API_NO_BRANCH New end date value. Pass the current object_version_number of the record from hz_parties Validation: Mandatory attribute Validated against value in the database for the existing party record Comment: Return new value after update The return status of the API, informs the caller about the result of the operation or operations performed by the API Number of messages in the FND message stack If the count for x_msg_count is one, then the x_msg_data column holds the encoded message
Output Value The incremented object version number along with x_return_status of FND_API.G_RET_STS_SUCCESS x_return_status of either FND_API.G_RET_STS_ERROR or FND_API.G_RET_STS_UNEXP_ERROR
Page 33 of 62
Page 34 of 62
cashpool_min_receipt_amt cashpool_round_factor cashpool_round_rule attribute_category attribute1 attribute2 attribute3 attribute4 attribute5 attribute6 attribute7 attribute8 attribute9 attribute10 attribute11 attribute12 attribute13 attribute14 attribute15 xtr_bank_account_reference );
NUMBER, NUMBER(15), VARCHAR2(4), VARCHAR2(150), VARCHAR2(150), VARCHAR2(150), VARCHAR2(150), VARCHAR2(150), VARCHAR2(150), VARCHAR2(150), VARCHAR2(150), VARCHAR2(150), VARCHAR2(150), VARCHAR2(150), VARCHAR2(150), VARCHAR2(150), VARCHAR2(150), VARCHAR2(150), VARCHAR2(150), VARCHAR2(20)
7.2 CE_BANK_PUB.create_bank_acct
This API is used to create a bank account for the branch party id passed as an input parameter. The API uses the BankAcct_rec_type record to pass the input values. On successful creation of bank account, the API return the bank account id along with the information /error messages. The API returns a null bank account id if the bank branch is not created. This API has 4 output and 2 input parameters in total. Based on the type, the following is the breakdown of the parameters: Input Standard API parameters: 1 Application parameters: 1 Output Standard API parameters: 3 Application parameters: 1
Page 35 of 62
Type IN
Reqd No
Default
Validation, Comments
branch_id
IN
NUMBER
Yes
bank_id account_owner_party_id
IN IN
Allows API callers to request that the fnd_api.g API does initialization of the message _false list on their behalf. Represents the bank branch party id field for which the bank account is to be created. Validations: This is a mandatory parameter. The branch id should have a valid bank mapped to it. Also the branch id should have a branch number defined. Error: CE_API_REQUIRED_PARAM CE_API_NO_BANK CE_API_NO_BRANCH Represents the Bank Party Id field. The organization party id for the Bank Account Owner. This represents the Bank Account Owner organization id Error: CE_API_REQUIRED_PARAM This represents the Bank Account Classification field. The account can classification can be 'INTERNAL', 'SUBSIDIARY' Error: CE_API_REQUIRED_PARAM This the bank account name field that is the name with which the bank account will be created. Validations: This is a mandatory field. The bank account name should be unique within a bank branch. Error: CE_API_REQUIRED_PARAM CE_DUP_ACCT_NAME This the bank account number field that is the number with which the bank account will be created. Validations: This is a mandatory field. Country specific validations are applicable on this field. Error: CE_API_REQUIRED_PARAM This is a curency code value as defined in the table FND_CURRENCIES. Validation: Validates if the currency_code is valid in FND_CURRENCIES Error: CE_BA_INVALID_CURRENCY
account_owner_org_id
IN
NUMBER
Yes
account_classification
IN
VARCHAR2
Yes
bank_account_name
IN
VARCHAR2
Yes
bank_account_num
IN
VARCHAR2
Yes
currency
IN
VARCHAR2
Page 36 of 62
Parameter Name
Type
Data Type
Reqd
Default
Validation, Comments This field represents the International Bank Account Number (IBAN), which is an international standard that uniquely identifies a bank account number. Validations: Length should not exceed 34 characters. First 2 characters are letter and the next 2 characters are numbers. A modulus algorithm is used to certify if the entered IBAN number is correct or not Error: CE_INVALID_IBAN CE_INVALID_IBAN_FORMAT The field represents the check digit, which is used to validate the authenticity of bank account number according to country specific bank account validation. EFT requester identifier Represents the Account Reference field. Validation: Country specific validations are applicable on this field This represents the Multiple Currencies Allowed field. The valid values for this field are 'Y' and 'N'. Validation: The field can be updated to 'Y' only if the functional currency is equal to bank account currency Error: CE_BANK_MULTICURRENCY The alternate name for the bank account The short name for the bank account This field represents the Bank account type. Validations: Country specific validations are applicable on this field This field represents the Account Suffix which is an identifier for the bank Validations: Country specific validations are applicable on this field Description code 1 Description code 2 Represents the description field for the Bank Account This field represents the Agency Location Code. Validations: Length of this field should not be more than 8 characters and all the characters should be numeric. Error: CE_ALC_VALUE_TOO_LONG CE_ALC_NUMERIC_VALUE_ONLY Represents the Payables Account use flag. Valid values are 'Y' and 'N'. Represents the Receivables Account use flag. Valid values are 'Y' and 'N'.
iban
IN
VARCHAR2
check_digits eft_requester_id
IN IN
secondary_account_referenc IN e
multi_currency_allowed_fla IN g
VARCHAR2
IN IN IN
IN IN IN IN
agency_location_code
IN
VARCHAR2
ap_use_allowed_flag ar_use_allowed_flag
IN IN
VARCHAR2 VARCHAR2
Page 37 of 62
Type IN
Reqd
Default
Validation, Comments Represents the Treasury Account use flag. Valid values are 'Y' and 'N'. Represents the Payroll Account use flag. Valid values are 'Y' and 'N'. Represents the Multiple Currency Payments field. The valid values for this field are 'Y' and 'N' Represents the Multiple Currency Receipts field. The valid values for this field are 'Y' and 'N' Represents the zero payment allowed field. The valid values for this field are 'Y' and 'N' Represents the maximum outlay that is the largest currency outlay that can be allowed for a payment batch for this bank account. Represents the Maximum payment that is the lowest payment amount that is allowed in a payment batch for this bank account Represents the Minimum payment that is the lowest payment amount that is allowed in a payment batch for this bank account Represents the reconciliation tolerances as a percentage for Payments, Receipts, Treasury, Payroll, Cash Management Cashflow Represents the reconciliation tolerances as an amount for Payments, Receipts, Treasury, Payroll, Cash Management Cashflow Represents the start date if you want to limit the time during which this supplier site uses this bank account as the primary bank account for receiving electronic payments in the bank account currency. Represents the end date if you want to limit the time during which this supplier site uses this bank account as the primary bank account for receiving electronic payments in the bank account currency. Represents the alternate name for the bank account holder
pay_use_allowed_flag
IN
VARCHAR2
payment_multi_currency_fla IN g receipt_multi_currency_flag IN
VARCHAR2
VARCHAR2
zero_amount_allowed
IN
VARCHAR2
max_outlay
IN
NUMBER
max_check_amount
IN
NUMBER
min_check_amount ap_amount_tolerance ar_amount_tolerance xtr_amount_tolerance pay_amount_tolerance ce_amount_tolerance ap_percent_tolerance ar_percent_tolerance xtr_percent_tolerance pay_percent_tolerance ce_percent_tolerance
IN IN IN IN IN IN IN IN IN IN IN
NUMBER NUMBER NUMBER NUMBER NUMBER NUMBER NUMBER NUMBER NUMBER NUMBER NUMBER
start_date
IN
DATE
end_date
IN
DATE
account_holder_name_alt
IN
VARCHAR2
Page 38 of 62
Parameter Name
Type
Data Type
Reqd
Default
Validation, Comments Represents the Account Owner field which is name of the person or organization within your organization who is responsible for this account Represents the Cash Flow Display Order field Represents the Pooled Account field. The valid values for this field are 'Y' and 'N'. Represents the Minimum Target Balance that is the target balances which determine the minimum balance for bank account for Cash Management transactions that you include in your cash position Represents the Maximum Target Balance that is the target balances help which determine the maximum balance for bank account for Cash Management transactions that you include in your cash position This field represents the EFT (electronic funds transfer) user number field. Validations: Country specific validations are applicable on this field Represents the Account Number field in Masked format Represents the IBAN Number field in Masked format Interest schedule identifier. Defined in ce_interest_schedules.interest_schedule_ id Accounting flexfield identifier for the cash account of the bank account Accounting flexfield identifier for the cash clearing account Accounting flexfield identifier for the bank charges account Accounting flexfield identifier for the bank errors account Minimum payment amount for bank account if included in a cash pool Minimum receipt amount for bank account if included in a cash pool Rounding factor for the transfer amount during generation of a cash leveling proposal Rounding rule for the transfer amount during generation of a cash leveling proposal
account_holder_name
IN
VARCHAR2
cashflow_display_order pooled_flag
IN IN
NUMBER VARCHAR2
min_target_balance
IN
NUMBER
max_target_balance
IN
NUMBER
eft_user_num
IN
VARCHAR2
IN IN IN IN IN IN IN
VARCHAR2 VARCHAR2 NUMBER NUMBER NUMBER NUMBER NUMBER NUMBER NUMBER NUMBER
IN IN IN IN
Page 39 of 62
Parameter Name attribute3 attribute4 attribute5 attribute6 attribute7 attribute8 attribute9 attribute10 attribute11 attribute12 attribute13 attribute14 attribute15
Type IN IN IN IN IN IN IN IN IN IN IN IN IN
Data Type VARCHAR2 VARCHAR2 VARCHAR2 VARCHAR2 VARCHAR2 VARCHAR2 VARCHAR2 VARCHAR2 VARCHAR2 VARCHAR2 VARCHAR2 VARCHAR2 VARCHAR2 VARCHAR2
Reqd
Default
Validation, Comments
xtr_bank_account_reference IN
x_acct_id
OUT
NUMBER
Represents the bank account number reference for a branch of the Treasury bank. The bank account id for the bank account is returned on successful bank account creation The return status of the API, informs the caller about the result of the operation or operations performed by the API Number of messages in the FND message stack If the count for x_msg_count is one, then the x_msg_data column holds the encoded message
Note: The fields asset_code_combination_id, cash_clearing_ccid, bank_charges_ccid, bank_errors_ccid should be the value of column code_combination_id in the gl_code_combinations table for cash account, cash clearing account, bank charges account, bank errors account number respectively.
Output Value The bank account ID for the newly created bank account along with x_return_status of FND_API.G_RET_STS_SUCCESS A null value for the bank account ID. x_return_status of either FND_API.G_RET_STS_ERROR FND_API.G_RET_STS_UNEXP_ERROR
Page 40 of 62
7.2.3 UI Mappings
The below screen-shot shows the mapping of create_bank_acct API parameters with the UI fields of Create Bank Account Pages.
Page 41 of 62
Page 42 of 62
7.3 CE_BANK_PUB.update_bank_acct
This API is used to update a bank account details for bank account id passed as an input parameter. The API uses the BankAcct_rec_type record to pass the input values. On successful update of bank account, the API return the information /error messages. This API has 3 output, 2 input and 1 input/output parameters in total. Based on the type, the following is the breakdown of the parameters: Input Standard API parameters: 1 Application parameters: 1 Output Standard API parameters: 3 Application parameters: 0 Input/Output Standard API parameters: 1
Page 43 of 62
Type IN
Reqd No
Default
Validation, Comments
Allows API callers to request that the fnd_api.g API does initialization of the message _false list on their behalf. The bank Account id for the bank account that is to be updated Validation: This is a mandatory field and correct bank account id for the bank account to be updated should be given for this field Error: CE_API_REQUIRED_PARAM CE_API_NO_ACCOUNT Represents the bank branch party id field for the bank account. This field cannot be updated Represents the Bank Party Id field. This field is also protected against update The organization party id for the Bank Account Owner. This field is protected against update This represents the Bank Account Owner organization id. This field is protected against update This represents the Bank Account Classification field. The account can classification can be 'INTERNAL', 'SUBSIDIARY'. This field is protected against update, but a value has to be passed for this field failing which an error is thrown ERROR: CE_API_REQUIRED_PARAM This the bank account name field that is the name with which the bank account will be created. Validations: This is a mandatory field. The bank account name should be unique within a bank branch. Error: CE_API_REQUIRED_PARAM CE_DUP_ACCT_NAME
bank_account_id
IN
NUMBER
Yes
branch_id
IN
NUMBER
bank_id
IN
NUMBER
account_owner_party_id
IN
NUMBER
account_owner_org_id
IN
NUMBER
account_classification
IN
VARCHAR2
Yes
bank_account_name
IN
VARCHAR2
Yes
Page 44 of 62
Parameter Name
Type
Data Type
Reqd
Default
Validation, Comments This is the bank account number field that is the number with which the bank account will be created. Validations: This is a mandatory field. Country specific validations are applicable on this field. Error: CE_API_REQUIRED_PARAM This is a curency code value as defined in the table FND_CURRENCIES. This field is protected against update This field represents the International Bank Account Number (IBAN), which is an international standard that uniquely identifies a bank account number. Validations: Length should not exceed 34 characters. First 2 characters are letter and the next 2 characters are numbers. A modulus algorithm is used to certify if the entered IBAN number is correct or not Error: CE_INVALID_IBAN CE_INVALID_IBAN_FORMAT The field represents the check digit, which is used to validate the authenticity of bank account number according to country specific bank account validation. EFT requester identifier Represents the Account Reference field. Validation: Country specific validations are applicable on this field This represents the Multiple Currencies Allowed field. The valid values for this field are 'Y' and 'N'. Validation: The field can be updated to 'Y' only if the functional currency is equal to bank account currency Error: CE_BANK_MULTICURRENCY The alternate name for the bank account The short name for the bank account This field represents the Bank account type. Validations: Country specific validations are applicable on this field
bank_account_num
IN
VARCHAR2
Yes
currency
IN
VARCHAR2
iban
IN
VARCHAR2
check_digits
IN
VARCHAR2
eft_requester_id
IN
VARCHAR2
secondary_account_referenc IN e
VARCHAR2
multi_currency_allowed_fla IN g
VARCHAR2
alternate_acct_name short_account_name
IN IN
VARCHAR2 VARCHAR2
acct_type
IN
VARCHAR2
Page 45 of 62
Parameter Name
Type
Data Type
Reqd
Default
Validation, Comments This field represents the Account Suffix which is an identifier for the bank Validations: Country specific validations are applicable on this field Description code 1 Description code 2 Represents the description field for the Bank Account This field represents the Agency Location Code. Validations: Length of this field should not be more than 8 characters and all the characters should be numeric. Error: CE_ALC_VALUE_TOO_LONG CE_ALC_NUMERIC_VALUE_ONLY Represents the Payables Account use flag. Valid values are 'Y' and 'N'. The field can be updated to value 'Y' from 'N' but the reverse is not possible Represents the Receivables Account use flag. Valid values are 'Y' and 'N'. The field can be updated to value 'Y' from 'N' but the reverse is not possible Represents the Treasury Account use flag. Valid values are 'Y' and 'N'. The field can be updated to value 'Y' from 'N' but the reverse is not possible Represents the Payroll Account use flag. Valid values are 'Y' and 'N'. The field can be updated to value 'Y' from 'N' but the reverse is not possible Represents the Multiple Currency Payments field. The valid values for this field are 'Y' and 'N' Represents the Multiple Currency Receipts field. The valid values for this field are 'Y' and 'N' Represents the zero payment allowed field. The valid values for this field are 'Y' and 'N' Represents the maximum outlay that is the largest currency outlay that can be allowed for a payment batch for this bank account.
acct_suffix
IN
VARCHAR2
IN IN IN
agency_location_code
IN
VARCHAR2
ap_use_allowed_flag
IN
VARCHAR2
ar_use_allowed_flag
IN
VARCHAR2
xtr_use_allowed_flag
IN
VARCHAR2
pay_use_allowed_flag
IN
VARCHAR2
payment_multi_currency_fla IN g
VARCHAR2
receipt_multi_currency_flag IN
VARCHAR2
zero_amount_allowed
IN
VARCHAR2
max_outlay
IN
NUMBER
Page 46 of 62
Parameter Name
Type
Data Type
Reqd
Default
Validation, Comments Represents the Maximum payment that is the lowest payment amount that is allowed in a payment batch for this bank account Represents the Minimum payment that is the lowest payment amount that is allowed in a payment batch for this bank account Represents the reconciliation tolerances as a percentage for Payments, Receipts, Treasury, Payroll, Cash Management Cashflow. Cannot be updated to a null value Represents the reconciliation tolerances as an amount for Payments, Receipts, Treasury, Payroll, Cash Management Cashflow. Cannot be updated to a null value. Represents the start date if you want to limit the time during which this supplier site uses this bank account as the primary bank account for receiving electronic payments in the bank account currency. Represents the end date if you want to limit the time during which this supplier site uses this bank account as the primary bank account for receiving electronic payments in the bank account currency. Represents the alternate name for the bank account holder Represents the Account Owner field which is name of the person or organization within your organization who is responsible for this account Represents the Cash Flow Display Order field Represents the Pooled Account field. The valid values for this field are 'Y' and 'N'. Cannot be updated to a null value Represents the Minimum Target Balance that is the target balances which determine the minimum balance for bank account for Cash Management transactions that you include in your cash position
max_check_amount
IN
NUMBER
min_check_amount ap_amount_tolerance ar_amount_tolerance xtr_amount_tolerance pay_amount_tolerance ce_amount_tolerance ap_percent_tolerance ar_percent_tolerance xtr_percent_tolerance pay_percent_tolerance ce_percent_tolerance
IN IN IN IN IN IN IN IN IN IN IN
NUMBER NUMBER NUMBER NUMBER NUMBER NUMBER NUMBER NUMBER NUMBER NUMBER NUMBER
start_date
IN
DATE
end_date
IN
DATE
account_holder_name_alt
IN
VARCHAR2
account_holder_name
IN
VARCHAR2
cashflow_display_order
IN
NUMBER
pooled_flag
IN
VARCHAR2
min_target_balance
IN
NUMBER
Page 47 of 62
Parameter Name
Type
Data Type
Reqd
Default
Validation, Comments Represents the Maximum Target Balance that is the target balances help which determine the maximum balance for bank account for Cash Management transactions that you include in your cash position This field represents the EFT (electronic funds transfer) user number field. Validations: Country specific validations are applicable on this field Represents the Account Number field in Masked format Represents the IBAN Number field in Masked format Interest schedule identifier. Defined in ce_interest_schedules.interest_schedule_ id Accounting flexfield identifier for the cash account of the bank account. Cannot be updated to a null value. Accounting flexfield identifier for the cash clearing account Accounting flexfield identifier for the bank charges account Accounting flexfield identifier for the bank errors account Minimum payment amount for bank account if included in a cash pool Minimum receipt amount for bank account if included in a cash pool Rounding factor for the transfer amount during generation of a cash leveling proposal Rounding rule for the transfer amount during generation of a cash leveling proposal
max_target_balance
IN
NUMBER
eft_user_num
IN
VARCHAR2
masked_account_num masked_iban
IN IN
VARCHAR2 VARCHAR2
interest_schedule_id
IN
NUMBER
IN IN IN IN
cashpool_round_rule attribute_category attribute1 attribute2 attribute3 attribute4 attribute5 attribute6 attribute7 attribute8 attribute9 attribute10 attribute11 attribute12 attribute13 attribute14 attribute15
IN IN IN IN IN IN IN IN IN IN IN IN IN IN IN IN IN
VARCHAR2 VARCHAR2 VARCHAR2 VARCHAR2 VARCHAR2 VARCHAR2 VARCHAR2 VARCHAR2 VARCHAR2 VARCHAR2 VARCHAR2 VARCHAR2 VARCHAR2 VARCHAR2 VARCHAR2 VARCHAR2 VARCHAR2
Page 48 of 62
Parameter Name
Type
Reqd
Default
Validation, Comments Represents the bank account number reference for a branch of the Treasury bank. Current object version number for the bank account. This is a mandatory parameter. Error: CE_API_REQUIRED_PARAM CE_API_RECORD_CHANGED The return status of the API, informs the caller about the result of the operation or operations performed by the API Number of messages in the FND message stack If the count for x_msg_count is one, then the x_msg_data column holds the encoded message
xtr_bank_account_reference IN
p_object_version_number
IN OUT
NUMBER
Yes
Note: The fields asset_code_combination_id, cash_clearing_ccid, bank_charges_ccid, bank_errors_ccid should be the value of column code_combination_id in the gl_code_combinations table for cash account, cash clearing account, bank charges account, bank errors account number.
Output Value The incremented object version number along with x_return_status of FND_API.G_RET_STS_SUCCESS x_return_status of either FND_API.G_RET_STS_ERROR FND_API.G_RET_STS_UNEXP_ERROR
7.3.3 UI Mappings
Refer the UI Mappings section of create_bank_acct API. The parameter mapping is same as that except that some of the fields are locked against update as mentioned in the parameter description section 7.3.2.
Page 49 of 62
Page 50 of 62
br_remittance_ccid NUMBER(15), br_factor_ccid NUMBER(15), bank_interest_expense_ccid NUMBER(15), bank_interest_income_ccid NUMBER(15), xtr_asset_ccid NUMBER(15), ar_bank_charges_ccid NUMBER(15) );
8.2.1
PL/SQL Procedure
CE_BANK_PUB.create_bank_acct_use ( p_init_msg_list, p_acct_use_rec, x_acct_use_id, x_return_status, x_msg_count, x_msg_data );
8.2.2
Parameter Descriptions
Parameter Name
Type
Data Type
Reqd
Default
Validation, Comments
p_init_msg_list
IN
VARCHAR2
No
Allows API callers to request that the fnd_api.g API does initialization of the message _false list on their behalf. The bank account id for which the bank account use to be created Validations: This is a mandatory parameter and valid value of bank account id should be passed. Error: CE_API_REQUIRED_PARAM CE_BANK_ACCOUNT_ID_INVALID The field represents the Organization Type. The valid values for this are 'LE', 'OU', 'BG' and 'BGOU'. Validations: This is a mandatory parameter Error: CE_API_REQUIRED_PARAM
bank_account_id
IN
NUMBER
Yes
org_type
IN
VARCHAR2
Yes
Page 51 of 62
Type IN
Reqd
Default
Validation, Comments Flag to identify if the bank account use is primary. Valid values are 'Y' and 'N'. This field represents the Organization Id, if the organization type is not equal to 'LE', then this id is considered for all organization related validations. Validations: The combination of org_id and bank_account_id should be unique if the org_type is not equal to 'LE'. Error: CE_API_REQUIRED_PARAM CE_DUP_ACCT_ORG_ACCESS The field represents the Organization Party id for the organization id field
org_id
IN
NUMBER
Yes
org_party_id
IN
NUMBER
ap_use_enable_flag
IN
VARCHAR2
ar_use_enable_flag
IN
VARCHAR2
xtr_use_enable_flag
IN
VARCHAR2
These fields represent the account use flag for payments, receipts, treasury and payroll respectively. The valid values for these fields are 'Y' and 'N'. Validation: At least one of these 4 parameters should be set to 'Y'. Treasury account use can be set to 'Y' only when the organization is of type legal entity i.e 'LE'. Payroll account use can be set to 'Y' only when the organization is of type business group or both business group and operating unit i.e. 'BG' or 'BGOU'. Payables and/or receivables account uses can be set to 'Y' only when the organization is of type operating unit or both business group and operating unit i.e. 'OU' or 'BGOU' Error: CE_NO_ACCOUNT_USE CE_LE_ACCESS_ORG CE_BG_ACCESS_ORG CE_OU_ACCESS_ORG CE_BGOU_ACCESS_ORG
pay_use_enable_flag
IN
VARCHAR2
edisc_receivables_trx_id
IN
NUMBER
The field represents the Transaction id of Earned discounts activity. That is listed in in the ar_receivables_trx table for a valid transaction of type earned Discounts The field represents the Transaction id of Unearned discounts activity. That is listed in the ar_receivables_trx table for a valid transaction of type Unearned Discounts End Date
unedisc_receivables_trx_id
IN
NUMBER
end_date
IN
DATE
Page 52 of 62
Parameter Name
Type
Data Type
Reqd
Default
Validation, Comments Receivables activity identifier used for short term debt definition for transaction type of Bills Receivable Remittance. This field represents the Organization Id, if the organization type is equal to 'LE', then this id is considered for all organization related validations. Validations: The combination of legal_enity_id and bank_account_id should be unique if the org_type is equal to 'LE' Error: CE_API_REQUIRED_PARAM CE_DUP_ACCT_ORG_ACCESS Investment Limit for the bank account in Treasury Funding Limit for the bank account in Treasury Represents the payables default Settlement Account selection field. The valid values are 'Y' and N'. Validations: Only one account per currency and account use AP can be flagged 'Y' as the default settlement account for each LE or OU. Error: CE_AP_SETTLEMENT_EXIST_ORG Represents the treasury default Settlement Account selection field. The valid values are 'Y' and N'. Validations: Only one account per currency and account use XTR can be flagged 'Y' as the default settlement account for each LE or OU. Error: CE_XTR_SETTLEMENT_EXIST_OR G Payroll bank account identifier Pricing Model used in Treasury Flag to indicate if account is authorized for use in Treasury. Valid values for this field are 'Y' and 'N'. Null value is not allowed for this field Settlement script to be issued for the bank account in treasury Default Account per currency per LE in Treasury. Valid values for this field are 'Y' and 'N'. Null value is not allowed for this field. Portfolio Code associated to the bank account in Treasury
br_std_receivables_trx_id
IN
NUMBER
legal_entity_id
IN
NUMBER
Yes
investment_limit_code funding_limit_code
IN IN
VARCHAR2 VARCHAR2
ap_default_settlement_flag
IN
VARCHAR2
xtr_default_settlement_flag
IN
VARCHAR2
payroll_bank_account_id pricing_model
IN IN
NUMBER VARCHAR2
authorized_flag
IN
VARCHAR2
eft_script_name
IN
VARCHAR2
default_account_flag
IN
VARCHAR2
IN IN IN
Page 53 of 62
Parameter Name attribute2 attribute3 attribute4 attribute5 attribute6 attribute7 attribute8 attribute9 attribute10 attribute11 attribute12 attribute13 attribute14 attribute15
Type IN IN IN IN IN IN IN IN IN IN IN IN IN IN
Data Type VARCHAR2 VARCHAR2 VARCHAR2 VARCHAR2 VARCHAR2 VARCHAR2 VARCHAR2 VARCHAR2 VARCHAR2 VARCHAR2 VARCHAR2 VARCHAR2 VARCHAR2 VARCHAR2
Reqd
Default
Validation, Comments
asset_code_combination_id
IN
NUMBER
IN IN IN IN IN IN
IN IN IN IN IN IN IN IN IN
Accounting flexfield identifier for the cash account of the bank account. Validation: The field is madatory if the account use is Payables or Receivables Error: CE_API_CASH_CCID_REQUIRED Accounting flexfield identifier for the AP cash account Accounting flexfield identifier for the AR cash account Accounting flexfield identifier for the cash clearing account Accounting flexfield identifier for the bank charges account Accounting flexfield identifier for the bank errors account Accounting flexfield identifier for the account that posts the realized exchange rate gains Accounting flexfield identifier for the account that posts the realized exchange rate losses Accounting flexfield identifier for the on account account Accounting flexfield identifier for the unapplied account Accounting flexfield identifier for the unidentified account Accounting flexfield identifier for the factor account Accounting flexfield identifier for the receipt confirmation account Accounting flexfield identifier for the remittance account Accounting flexfield identifier for the AR short term deposit account Accounting flexfield identifier for the BR short term deposit account
Page 54 of 62
Type IN IN IN
Data Type NUMBER NUMBER NUMBER NUMBER NUMBER NUMBER NUMBER NUMBER
Reqd
Default
Validation, Comments Accounting flexfield identifier for the future dated payment account Accounting Flexfield identifier for the Bills Receivable Remittance Account Accounting Flexfield identifier for the Bills Receivable Factoring Account Accounting flexfield identifier for the bank interest expense account Accounting flexfield identifier for the bank interest income account Accounting flexfield identifier for the Treasury cash account Accounting Flexfield identifier for the Receivables Bank Charges Account The bank account use id for the bank account is returned on successful bank account use creation The return status of the API, informs the caller about the result of the operation or operations performed by the API Number of messages in the FND message stack If the count for x_msg_count is one, then the x_msg_data column holds the encoded message
Output Value The bank account use ID for the newly created bank account use Along with x_return_status of FND_API.G_RET_STS_SUCCESS A null value for the bank account use ID. x_return_status of either FND_API.G_RET_STS_ERROR FND_API.G_RET_STS_UNEXP_ERROR
Page 55 of 62
8.2.3 UI Mappings
The below screen-shot shows the mapping of create_bank_acct_use API parameters with the UI fields of Create Bank Account Pages
The screen-shot below gives the mapping of the payables account access option mapping to the API parameters.
Page 56 of 62
8.3 CE_BANK_PUB.update_bank_acct_use
This API is used to update a bank account use detail for a bank account use id passed as an input parameter. The API uses the BankAcct_use_rec_type record to pass the input values. On successful update of bank account use, the API return the information /error messages. This API has 3 output, 2 input and 2 input/output parameters in total. Based on the type, the following is the breakdown of the parameters: Input Standard API parameters: 1 Application parameters: 1 Output Standard API parameters: 3 Application parameters: 0 Input/Output Standard API parameters: 2
Page 57 of 62
Type IN
Reqd No
Default
Validation, Comments
bank_acct_use_id
IN
NUMBER
Yes
bank_account_id
IN
NUMBER
Allows API callers to request that the fnd_api.g API does initialization of the message _false list on their behalf. Represents the bank account use identifier that is to be updated. Validations: This is a mandatory field Error: CE_API_REQUIRED_PARAM CE_API_NO_ACCOUNT_USE The bank account id for which the bank account use to be created Validations: This is a mandatory parameter and valid value of bank account id should be passed. Error: CE_API_REQUIRED_PARAM CE_BANK_ACCOUNT_ID_INVALID The field represents the Organization Type. The valida values for this are 'LE', 'OU', 'BG' and 'BGOU'. This field is locked against update Flag to identify if the bank account use is primary. Valid values are 'Y' and 'N'. This field represents the Organization Id, if the organization type is not equal to 'LE', then this id is considered for all organization related validations. This field is locked against update The field represents the Organization Party id for the organization id field.This field is locked against update These fields represent the account use flag for payments, receipts, treasury and payroll respectively. The valid values for these fields are 'Y' and 'N'. Validation: At least one of these 4 parameters should be set to 'Y'. Treasury account use can be set to 'Y' only when the organization is of type legal entity i.e 'LE'. Payroll account use can be set to 'Y' only when the organization is of type business group or both business group and operating unit i.e. 'BG' or 'BGOU'. Payables and/or receivables account uses can be set to 'Y' only when the organization is of type operating unit or both business group and operating unit i.e. 'OU' or 'BGOU' Error: CE_NO_ACCOUNT_USE CE_LE_ACCESS_ORG CE_BG_ACCESS_ORG CE_OU_ACCESS_ORG CE_BGOU_ACCESS_ORG
org_type
IN
VARCHAR2
primary_flag
IN
VARCHAR2
org_id
IN
NUMBER
IN IN IN IN
pay_use_enable_flag
IN
VARCHAR2
Page 58 of 62
Parameter Name
Type
Data Type
Reqd
Default
Validation, Comments The field represents the Trasaction id of Earned discounts activity. That is listed in in the ar_receivables_trx table for a valid transaction of type earned Discounts The field represents the Trasaction id of Unearned discounts activity. That is listed in the ar_receivables_trx table for a valid transaction of type Unearned Discounts End Date Receivables activity identifier used for short term debt definition for transaction type of Bills Receivable Remittance. This field represents the Organization Id, if the organization type is equal to 'LE', then this id is considered for all organization related validations. This field is locked against update Investment Limit for the bank account in Treasury Funding Limit for the bank account in Treasury Represents the payables default Settlement Account selection field. The valid values are 'Y' and N'. Validations: Only one account per currency and account use AP can be flagged 'Y' as the default settlement account for each LE or OU. Error: CE_AP_SETTLEMENT_EXIST_ORG Represents the treasury default Settlement Account selection field. The valid values are 'Y' and N'. Validations: Only one account per currency and account use XTR can be flagged 'Y' as the default settlement account for each LE or OU. Error: CE_XTR_SETTLEMENT_EXIST_OR G Payroll bank account identifier Pricing Model used in Treasury Flag to indicate if account is authorized for use in Treasury. Valid values for this field are 'Y' and 'N'. Null value is not allowed for this field Settlement script to be issued for the bank account in treasury Default Account per currency per LE in Treasury. Valid values for this field are 'Y' and 'N'. Null value is not allowed for this field Portfolio Code associated to the bank account in Treasury
edisc_receivables_trx_id
IN
NUMBER
unedisc_receivables_trx_id
IN
NUMBER
end_date br_std_receivables_trx_id
IN IN
DATE NUMBER
legal_entity_id
IN
NUMBER
investment_limit_code funding_limit_code
IN IN
VARCHAR2 VARCHAR2
ap_default_settlement_flag
IN
VARCHAR2
xtr_default_settlement_flag
IN
VARCHAR2
IN IN IN
eft_script_name
IN
VARCHAR2
default_account_flag
IN
VARCHAR2
IN IN IN
Page 59 of 62
Parameter Name attribute2 attribute3 attribute4 attribute5 attribute6 attribute7 attribute8 attribute9 attribute10 attribute11 attribute12 attribute13 attribute14 attribute15
Type IN IN IN IN IN IN IN IN IN IN IN IN IN IN
Data Type VARCHAR2 VARCHAR2 VARCHAR2 VARCHAR2 VARCHAR2 VARCHAR2 VARCHAR2 VARCHAR2 VARCHAR2 VARCHAR2 VARCHAR2 VARCHAR2 VARCHAR2 VARCHAR2
Reqd
Default
Validation, Comments
asset_code_combination_id
IN
NUMBER
IN IN IN IN IN IN
loss_code_combination_id on_account_ccid unapplied_ccid unidentified_ccid factor_ccid receipt_clearing_ccid remittance_ccid ar_short_term_deposit_ccid br_short_term_deposit_ccid future_dated_payment_ccid br_remittance_ccid br_factor_ccid
IN IN IN IN IN IN IN IN IN IN IN IN
NUMBER NUMBER NUMBER NUMBER NUMBER NUMBER NUMBER NUMBER NUMBER NUMBER NUMBER NUMBER
Accounting flexfield identifier for the cash account of the bank account. Validation: The field is madatory if the account use is Payables or Receivables Error: CE_API_CASH_CCID_REQUIRED Accounting flexfield identifier for the AP cash account Accounting flexfield identifier for the AR cash account Accounting flexfield identifier for the cash clearing account Accounting flexfield identifier for the bank charges account Accounting flexfield identifier for the bank errors account Accounting flexfield identifier for the account that posts the realized exchange rate gains Accounting flexfield identifier for the account that posts the realized exchange rate losses Accounting flexfield identifier for the on account Accounting flexfield identifier for the unapplied account Accounting flexfield identifier for the unidentified account Accounting flexfield identifier for the factor account Accounting flexfield identifier for the receipt confirmation account Accounting flexfield identifier for the remittance account Accounting flexfield identifier for the AR short term deposit account Accounting flexfield identifier for the BR short term deposit account Accounting flexfield identifier for the future dated payment account Accounting Flexfield identifier for the Bills Receivable Remittance Account Accounting Flexfield identifier for the
Page 60 of 62
Parameter Name
Type
Reqd
Default
Validation, Comments Bills Receivable Factoring Account Accounting flexfield identifier for the bank interest expense account Accounting flexfield identifier for the bank interest income account Accounting flexfield identifier for the Treasury cash account Accounting Flexfield identifier for the Receivables Bank Charges Account Current object version number for the bank account uses. This is a mandatory parameter. Error: CE_API_REQUIRED_PARAM CE_API_RECORD_CHANGED Current object version number for the ce_gl_accounts_ccid. This is a mandatory parameter. Error: CE_API_REQUIRED_PARAM CE_API_RECORD_CHANGED The return status of the API, informs the caller about the result of the operation or operations performed by the API Number of messages in the FND message stack If the count for x_msg_count is one, then the x_msg_data column holds the encoded message
p_use_ovn
IN OUT
NUMBER
Yes
p_ccid_ovn
IN OUT
NUMBER
Yes
Output Value Incremented object version number for passed objects along with x_return_status of FND_API.G_RET_STS_SUCCESS x_return_status of either FND_API.G_RET_STS_ERROR FND_API.G_RET_STS_UNEXP_ERROR
8.3.3 UI Mappings
Refer the UI Mappings section of create_bank_acct_use API. The parameter mapping is same as that except that some of the fields are locked against update as mentioned in the parameter description section 8.3.2.
Page 61 of 62
Value for &COLUMN must be a value defined in lookup type &LOOKUP_TYPE. The party of party ID &PARTY_ID must be a &TYPE type of party. HZ_API_INVALID_PARTY_TYPE Please enter a &TYPE type of party. CE_API_NO_BANK You must select or create a bank. CE_API_REQUIRED_PARAM Required Parameter is missing CE_API_NO_BRANCH You must select or create a bank branch. CE_API_NO_ACCOUNT You must select or create a bank Account. CE_API_RECORD_CHANGED This record in table &TABLE cannot be locked as it has been updated by HZ_API_RECORD_CHANGED another user. Select treasury account use only when the access organization is legal CE_LE_ACCESS_ORG entity. Select payroll account use only when the access organization is business CE_BG_ACCESS_ORG group. Select payables and/or receivables account uses only when the access CE_OU_ACCESS_ORG organization is operating unit. Select payables/receivables/payroll account uses when the access CE_BGOU_ACCESS_ORG organization is both business group and operating unit. CE_DUP_ACCT_NAME This account name already exists for this bank branch. Please re-enter. CE_INVALID_IBAN The international bank account number (IBAN) entered is invalid. The IBAN entry is invalid. Valid entries for IBAN fields are numbers 0-9, CE_INVALID_IBAN_FORMAT uppercase letters A-Z, and no spaces. CE_BA_INVALID_CURRENCY Currency code is not valid. Please deselect the Multiple Currency option as it is not allowed because CE_BANK_MULTICURRENCY the Bank Account currency is not equal to the Ledger currency. CE_ALC_NUMERIC_VALUE_ONLY Enter only numeric value for Agency Location Code CE_ALC_VALUE_TOO_LONG The Agency Location Code value entered cannot be longer than 8 digits. CE_BANK_ACCOUNT_ID_INVALID The entered bank account id is invalid. The combinations of legal entity/Organization should be unique. Please reCE_DUP_ACCT_ORG_ACCESS enter CE_NO_ACCOUNT_USE Atleast one of the four account uses should be enabled. Only one account per currency and payables account use can be the default CE_AP_SETTLEMENT_EXIST_ORG settlement account for each LE or OU. Only one account per currency and treasury account use can be the default CE_XTR_SETTLEMENT_EXIST_ORG settlement account for each LE or OU. The selection of Payables or Receivables account uses mandates the entry CE_API_CASH_CCID_REQUIRED of Accounting flexfield identifier for the cash account.
Page 62 of 62