ERP/2.50/Developers Guide/Database Model/org.openbravo.model.dataimport/I BPartner
I_BPartner
The import business partner is an interim table which is used when importing external data into the system
- Name:DataImportBusinessPartner
- Classname:BusinessPartner
This table contains the following columns:
Name | Nullable | Data Type | Description |
I_BPartner_ID | N | VARCHAR2(32) | null |
AD_Client_ID | Y | VARCHAR2(32) | Client for this installation. |
AD_Org_ID | Y | VARCHAR2(32) | Organizational entity within client |
IsActive | Y | CHAR(1) | A flag indicating whether this record is available for use or de-activated. |
Created | Y | DATE | The date that this record is completed. |
CreatedBy | Y | VARCHAR2(32) | User who created this records |
Updated | Y | DATE | x not implemented |
UpdatedBy | Y | VARCHAR2(32) | User who updated this records |
C_BPartner_ID | Y | VARCHAR2(32) | Anyone who takes part in daily business operations by acting as a customer, employee, etc. |
Value | Y | NVARCHAR2(40) | A fast method for finding a particular record. |
Name | Y | NVARCHAR2(60) | A non-unique identifier for a record/document often used as a search tool. |
Name2 | Y | NVARCHAR2(60) | Additional space to write the name of a business partner. |
Description | Y | NVARCHAR2(255) | A space to write additional related information. |
DUNS | Y | CHAR(11) | Dun & Bradstreet Number |
TaxID | Y | VARCHAR2(20) | The government defined unique number for assigning and paying taxes. |
NAICS | Y | CHAR(6) | Standard Industry Code or its successor NAIC - http://www.osha.gov/oshstats/sicser.html |
GroupValue | Y | NVARCHAR2(40) | Business Partner Group Key |
C_BP_Group_ID | Y | VARCHAR2(32) | A classification of business partners based on defined similarities. |
C_BPartner_Location_ID | Y | VARCHAR2(32) | The location of the selected business partner. |
Address1 | Y | NVARCHAR2(60) | A space to write the location of a business partner. |
Address2 | Y | NVARCHAR2(60) | A space to write the location of a business partner. |
Postal | Y | VARCHAR2(10) | A identification code used to help get items to a specific location. |
Postal_Add | Y | VARCHAR2(10) | Additional ZIP or Postal code |
City | Y | NVARCHAR2(60) | A populated defined area located within a larger area such as a state, province, or country. |
C_Region_ID | Y | VARCHAR2(32) | An area of a specific country. |
RegionName | Y | NVARCHAR2(60) | The name of an area in a specific country. |
C_Country_ID | Y | VARCHAR2(32) | A state or a nation. |
CountryCode | Y | CHAR(2) | The geographic country code for a country based on the ISO standard. |
Title | Y | NVARCHAR2(40) | A defined job, title, or ranking within a company. |
ContactName | Y | NVARCHAR2(60) | The name of the person to get in touch with. |
ContactDescription | Y | NVARCHAR2(255) | Description of Contact |
Comments | Y | NVARCHAR2(2000) | A space to write additional related information. |
Phone | Y | NVARCHAR2(40) | A telephone number for a specified business partner. |
Phone2 | Y | NVARCHAR2(40) | A second contact telephone number for a business partner. |
Fax | Y | NVARCHAR2(40) | A fax number for a specified business partner. |
Y | NVARCHAR2(40) | An email address for a specified business partner. | |
Password | Y | NVARCHAR2(20) | A secret code used to allow access to a specified window or tab. |
Birthday | Y | DATE | An anniversary of birth for a business partner. |
C_Greeting_ID | Y | VARCHAR2(32) | A description, often abbreviated, of how to address a business partner. |
BPContactGreeting | Y | NVARCHAR2(60) | Greeting for Business Partner Contact |
Processing | Y | CHAR(1) | A request to process the respective document or task. |
Processed | Y | CHAR(1) | A confirmation that the associated documents or requests are processed. |
AD_User_ID | Y | VARCHAR2(32) | An acquaintance to reach for information related to the business partner. |
I_ErrorMsg | Y | NVARCHAR2(2000) | A message that appears when errors occur during the importing process. |
I_IsImported | Y | CHAR(1) | A indication that the desired process has been completed successfully. |
Other Info
Check constraints
These are the check constraints for this table:
- I_BPARTNER_ISACTIVE_CHECK: ISACTIVE IN ('Y', 'N')
- I_BPARTNER_PROCESSED_CHK: PROCESSED IN ('Y', 'N')
Indexes
These are the indexes for this table (for each index there is a list of all the columns included within it):
Unique
- I_BPARTNER_KEY
Columns
Import Business Partner
The ID identifies a unique business partner to import
- Physical column name: I_BPartner_ID
- Property Name: id
- Reference: ID
Client
- Physical column name: AD_Client_ID
- Property Name: client
- Reference: TableDir
- Default value: @AD_CLIENT_ID@
Foreign key column to AD_Client table, (column: AD_Client_ID)
Validation Rule AD_Client Security validation: Clients with user access rights. With the following code:
AD_Client.AD_Client_ID IN (@#User_Client@)
Organization
- Physical column name: AD_Org_ID
- Property Name: organization
- Reference: TableDir
- Default value: @AD_Org_ID@
Foreign key column to AD_Org table, (column: AD_Org_ID)
Active
There are two methods of making records unavailable in the system: One is to delete the record, the other is to de-activate the record. A de-activated record is not available for selection, but available for reporting. There are two reasons for de-activating and not deleting records:
(1) The system requires the record for auditing purposes.
(2) The record is referenced by other records. E.g., you cannot delete a Business Partner, if there are existing invoices for it. By de-activating the Business Partner you prevent it from being used in future transactions.
- Physical column name: IsActive
- Property Name: active
- Reference: YesNo
Creation Date
The Created field indicates the date that this record was created.
- Physical column name: Created
- Property Name: creationDate
- Reference: DateTime
Created By
- Physical column name: CreatedBy
- Property Name: createdBy
- Reference: Search
Foreign key column to AD_User table, (column: AD_User_ID)
Updated
The Updated field indicates the date that this record was updated.
- Physical column name: Updated
- Property Name: updated
- Reference: DateTime
Updated By
- Physical column name: UpdatedBy
- Property Name: updatedBy
- Reference: Search
Foreign key column to AD_User table, (column: AD_User_ID)
Business Partner
- Physical column name: C_BPartner_ID
- Property Name: businessPartner
- Reference: Search
Foreign key column to C_BPartner table, (column: C_BPartner_ID)
Search Key
A search key allows for a fast method of finding a particular record. If you leave the search key empty, the system automatically creates a numeric number originating from a document sequence defined in the "Document Sequence" window. The sequence naming convention follows a rule "DocumentNo_TableName", where TableName is the actual name of the database table (e.g. C_Order).
Usually, company's internal identifiers for various records (products, customers, etc) are stored here.
- Physical column name: Value
- Property Name: searchKey
- Reference: String
- This column is part of the table's identifier
Name
A more descriptive identifier (that does need to be unique) of a record/document that is used as a default search option along with the search key (that is unique and mostly shorter). It is up to 60 characters in length.
- Physical column name: Name
- Property Name: name
- Reference: String
Name 2
Additional Name
- Physical column name: Name2
- Property Name: name2
- Reference: String
Description
A description is limited to 255 characters.
- Physical column name: Description
- Property Name: description
- Reference: String
D-U-N-S
Used for EDI - For details see www.dnb.com/dunsno/list.htm
- Physical column name: DUNS
- Property Name: dUNS
- Reference: String
Tax ID
The Tax ID field identifies the legal Identification number of this Entity.
- Physical column name: TaxID
- Property Name: taxID
- Reference: String
NAICS/SIC
The NAICS/SIC identifies either of these codes that may be applicable to this Business Partner.
- Physical column name: NAICS
- Property Name: nAICSSIC
- Reference: String
Group Key
The value of the business partner group. This value is the short name for the group. If before inserting it doesn't exists in the table C_BP_Group, it won't work
- Physical column name: GroupValue
- Property Name: groupKey
- Reference: String
Business Partner Category
- Physical column name: C_BP_Group_ID
- Property Name: businessPartnerCategory
- Reference: TableDir
Foreign key column to C_BP_Group table, (column: C_BP_Group_ID)
Partner Address
- Physical column name: C_BPartner_Location_ID
- Property Name: partnerAddress
- Reference: TableDir
Foreign key column to C_BPartner_Location table, (column: C_BPartner_Location_ID)
Address Line 1
The Address 1 identifies the address for an entity's location
- Physical column name: Address1
- Property Name: addressLine1
- Reference: String
Address Line 2
The Address 2 provides additional address information for an entity. It can be used for building location, apartment number or similar information.
- Physical column name: Address2
- Property Name: addressLine2
- Reference: String
Postal Code
The Postal Code field identifies the postal code for this entity's address.
- Physical column name: Postal
- Property Name: postalCode
- Reference: String
Postal add
The Additional ZIP or Postal Code identifies, if appropriate, any additional Postal Code information.
- Physical column name: Postal_Add
- Property Name: postalAdd
- Reference: String
City Name
The City identifies a unique City for this Country or Region.
- Physical column name: City
- Property Name: cityName
- Reference: String
Region
- Physical column name: C_Region_ID
- Property Name: region
- Reference: TableDir
Foreign key column to C_Region table, (column: C_Region_ID)
Validation Rule C_Region of Country: null. With the following code:
C_Region.C_Country_ID=@C_Country_ID@
Region Name
The Region Name defines the name that will print when this region is used in a document.
- Physical column name: RegionName
- Property Name: regionName
- Reference: String
Country
- Physical column name: C_Country_ID
- Property Name: country
- Reference: TableDir
Foreign key column to C_Country table, (column: C_Country_ID)
ISO Country Code
For details - http://www.din.de/gremien/nas/nabd/iso3166ma/codlstp1.html or - http://www.unece.org/trade/rec/rec03en.htm
- Physical column name: CountryCode
- Property Name: iSOCountryCode
- Reference: String
Position
The Title indicates the name that an entity is referred to as.
- Physical column name: Title
- Property Name: position
- Reference: String
Contact Name
Business Partner Contact Name
- Physical column name: ContactName
- Property Name: contactName
- Reference: String
Contact Description
Description of Contact
- Physical column name: ContactDescription
- Property Name: contactDescription
- Reference: String
Comments
The Comments field allows for free form entry of additional information.
- Physical column name: Comments
- Property Name: comments
- Reference: Text
Phone
The Phone field identifies a telephone number
- Physical column name: Phone
- Property Name: phone
- Reference: String
Alternative Phone
The 2nd Phone field identifies an alternate telephone number.
- Physical column name: Phone2
- Property Name: alternativePhone
- Reference: String
Fax
The Fax identifies a facsimile number for this Business Partner or Location
- Physical column name: Fax
- Property Name: fax
- Reference: String
The Email Address is the Electronic Mail ID for this User and should be fully qualified (e.g. joe.smith@company.com).
- Physical column name: Email
- Property Name: email
- Reference: String
Password
The Password indicates the Password for this User Id. Passwords are required to identify authorized users.
- Physical column name: Password
- Property Name: password
- Reference: String
Birthday
Birthday or Anniversary day
- Physical column name: Birthday
- Property Name: birthday
- Reference: Date
Greeting
- Physical column name: C_Greeting_ID
- Property Name: greeting
- Reference: TableDir
Foreign key column to C_Greeting table, (column: C_Greeting_ID)
BP Contact Greeting
Greeting for Business Partner Contact
- Physical column name: BPContactGreeting
- Property Name: bPContactGreeting
- Reference: String
Process Now
When this field is set as 'Y' a process is being performed on this record.
- Physical column name: Processing
- Property Name: processNow
- Reference: Button
Processed
The Processed checkbox indicates that a document has been processed.
- Physical column name: Processed
- Property Name: processed
- Reference: YesNo
User/Contact
- Physical column name: AD_User_ID
- Property Name: userContact
- Reference: TableDir
- Default value: -1
Foreign key column to AD_User table, (column: AD_User_ID)
Validation Rule AD_User C_BPartner User/Contacts: null. With the following code:
AD_User.C_BPartner_ID=@C_BPartner_ID@
Import Error Message
The Import Error Message displays any error messages generated during the import process.
- Physical column name: I_ErrorMsg
- Property Name: importErrorMessage
- Reference: String
Import Process Complete
The Imported check box indicates if this import has been processed.
- Physical column name: I_IsImported
- Property Name: importProcessComplete
- Reference: YesNo
- Default value: N