ERP/3.0/Developers Guide/Database Model/org.openbravo.model.common.interaction/R Request
R_Request
The Request Tab defines any Request submitted by a Business Partner.
The Request Tab defines any Request submitted by a Business Partner.
Shows all the requests of the partner selected.
- Name:Request
- Classname:Request
This table contains the following columns:
Name | Nullable | Data Type | Description |
R_Request_ID | N | VARCHAR2(32) | x not implemented |
AD_Client_ID | N | VARCHAR2(32) | Client for this installation. |
AD_Org_ID | N | VARCHAR2(32) | Organizational entity within client |
IsActive | N | CHAR(1) | A flag indicating whether this record is available for use or de-activated. |
Created | N | DATE | The date that this record is completed. |
CreatedBy | N | VARCHAR2(32) | User who created this records |
Updated | N | DATE | x not implemented |
UpdatedBy | N | VARCHAR2(32) | User who updated this records |
DocumentNo | N | NVARCHAR2(30) | An often automatically generated identifier for all documents. |
RequestAmt | N | NUMBER | Amount associated with this request |
Priority | N | VARCHAR2(60) | A defined level of importance or precedence. |
DueType | N | VARCHAR2(60) | A distinct due date characteristic used for processes. |
Summary | N | NVARCHAR2(2000) | A brief and comprehensive statement. |
IsEscalated | N | CHAR(1) | This request has been escalated |
DateLastAction | Y | DATE | The last specific time the action occurred. |
LastResult | Y | NVARCHAR2(2000) | A statement related to the result of the last interaction with a business partner. |
AD_User_ID | Y | VARCHAR2(32) | An acquaintance to reach for information related to the business partner. |
C_BPartner_ID | Y | VARCHAR2(32) | Anyone who takes part in daily business operations by acting as a customer, employee, etc. |
C_Campaign_ID | Y | VARCHAR2(32) | An advertising effort aimed at increasing sales. |
C_Order_ID | Y | VARCHAR2(32) | A unique and often automatically generated identifier for a sales order. |
C_Invoice_ID | Y | VARCHAR2(32) | A document listing products, quantities and prices, payment terms, etc. |
M_Product_ID | Y | VARCHAR2(32) | An item produced by a process. |
C_Project_ID | Y | VARCHAR2(32) | Identifier of a project defined within the Project & Service Management module. |
ActionType | Y | VARCHAR2(60) | x not implemented |
R_MailText_ID | Y | VARCHAR2(32) | A template used to organize and send mail using a standard format. |
MailSubject | Y | NVARCHAR2(60) | Subject of the mail message |
MailText | Y | NVARCHAR2(2000) | The text located in a mail document to be sent. |
Result | Y | NVARCHAR2(2000) | x not implemented |
NextAction | Y | VARCHAR2(60) | Next Action to be taken |
DateNextAction | Y | DATE | A specific time stating when the next step will be run. |
Processing | Y | CHAR(1) | null |
Processed | N | CHAR(1) | A confirmation that the associated documents or requests are processed. |
R_RequestType_ID | N | VARCHAR2(32) | x not implemented |
SalesRep_ID | N | VARCHAR2(32) | The person in charge of a document. |
IsSelfService | N | CHAR(1) | x not implemented |
C_Debt_Payment_ID | Y | VARCHAR2(32) | A obligation to pay or a right to collect for a specified item or service. |
Other Info
Check constraints
These are the check constraints for this table:
- R_REQUEST_ISACTIVE_CHK: ISACTIVE IN ('Y', 'N')
- R_REQUEST_ISESCALATED_CHK: ISESCALATED IN ('Y', 'N')
- R_REQUEST_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):
Non Unique
- R_REQUEST_BPARTNER
- R_REQUEST_USER
Unique
- R_REQUEST_KEY
Columns
Request
The Request identifies a unique request from a Business Partner or Prospect.
- Physical column name: R_Request_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)
Document No.
The document number is usually automatically generated by the system and determined by the document type of the document. If the document is not saved, the preliminary number is displayed in "<>". If the document type of your document has no automatic document sequence defined, the field will be empty when creating a new document. This is for documents which usually have an external number (like vendor invoice). If you leave the field empty, the system will generate a document number for you. The document sequence used for this fallback number is defined in the "Document Sequence" window with the name "DocumentNo_<TableName>", where TableName is the actual name of the table inside the database (e.g. C_Order).
- Physical column name: DocumentNo
- Property Name: documentNo
- Reference: String
- This column is part of the table's identifier
Request Amount
The Request Amount indicates any amount that is associated with this request. For example, a warranty amount or refund amount.
- Physical column name: RequestAmt
- Property Name: requestAmount
- Reference: Amount
Priority
The Priority indicates the importance of this request.
- Physical column name: Priority
- Property Name: priority
- Reference: List
- Default value: 5
List values: All_PriorityRule
The allowed values for this list are:
- 3 (High): High priority
- 5 (Medium): Medium Priority
- 7 (Low): Low priority
Due Date Type
The Due Type indicates if this request is Due, Overdue or Scheduled.
- Physical column name: DueType
- Property Name: dueDateType
- Reference: List
- Default value: 5
List values: R_Request Due Type
The allowed values for this list are:
- 3 (Overdue)
- 5 (Due)
- 7 (Scheduled)
Summary
The Summary allows free form text entry of a recap of this request.
- Physical column name: Summary
- Property Name: summary
- Reference: Text
Escalated
The Escalated checkbox indicates that this request has been escalated or raised in importance.
- Physical column name: IsEscalated
- Property Name: escalated
- Reference: YesNo
Last Action Date
The Date Last Action indicates that last time that the request was acted on.
- Physical column name: DateLastAction
- Property Name: lastActionDate
- Reference: DateTime
Last Contact Result
The Last Result identifies the result of the last contact made.
- Physical column name: LastResult
- Property Name: lastContactResult
- Reference: String
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@
Business Partner
- Physical column name: C_BPartner_ID
- Property Name: businessPartner
- Reference: Search
Foreign key column to C_BPartner table, (column: C_BPartner_ID)
Sales Campaign
- Physical column name: C_Campaign_ID
- Property Name: salesCampaign
- Reference: TableDir
Foreign key column to C_Campaign table, (column: C_Campaign_ID)
Sales Order
- Physical column name: C_Order_ID
- Property Name: salesOrder
- Reference: Search
Foreign key column to C_Order table, (column: C_Order_ID)
Invoice
- Physical column name: C_Invoice_ID
- Property Name: invoice
- Reference: Search
Foreign key column to C_Invoice table, (column: C_Invoice_ID)
Product
- Physical column name: M_Product_ID
- Property Name: product
- Reference: Search
Foreign key column to M_Product table, (column: M_Product_ID)
Project
- Physical column name: C_Project_ID
- Property Name: project
- Reference: TableDir
Foreign key column to C_Project table, (column: C_Project_ID)
Action Type
The Action Type indicates the method of action taken (Email, Call, Close)
- Physical column name: ActionType
- Property Name: actionType
- Reference: List
Callout: SL_Request_Action
This element is linked to a callout.
It is implemented by org.openbravo.erpCommon.ad_callouts.SL_Request_Action Java class.
List values: R_Request Action Type
The allowed values for this list are:
- A (Reminder)
- C (Call)
- E (EMail)
- I (Invoice)
- M (Mail)
- O (Order)
- Q (Offer/Quote)
- R (Credit)
- T (Transfer)
- X (Close)
Mail Template
- Physical column name: R_MailText_ID
- Property Name: mailTemplate
- Reference: TableDir
Foreign key column to R_MailText table, (column: R_MailText_ID)
Callout: SE_Request_CopyText
This element is linked to a callout.
It is implemented by org.openbravo.erpCommon.ad_callouts.SE_Request_CopyText Java class.
Mail Subject
Subject of the mail message
- Physical column name: MailSubject
- Property Name: mailSubject
- Reference: String
Mail Text
The Mail Text indicates the text used for mail messages.
- Physical column name: MailText
- Property Name: mailText
- Reference: Text
Result
The Result indicates the result of any action taken on this request.
- Physical column name: Result
- Property Name: result
- Reference: Text
Next action
The Next Action indicates the next action to be taken on this request.
- Physical column name: NextAction
- Property Name: nextAction
- Reference: List
- Default value: F
List values: R_Request Next Action
The allowed values for this list are:
- F (Follow up)
- N (None)
Next Action Date
The Date Next Action indicates the next scheduled date for an action to occur for this request.
- Physical column name: DateNextAction
- Property Name: nextActionDate
- Reference: Date
Process Requests
- 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
Request Type
- Physical column name: R_RequestType_ID
- Property Name: requestType
- Reference: TableDir
Foreign key column to R_RequestType table, (column: R_RequestType_ID)
Sales Representative
- Physical column name: SalesRep_ID
- Property Name: salesRepresentative
- Reference: Table
- Default value: @AD_User_ID@
Foreign key column to AD_User table, (column: AD_User_ID)
Reference Table AD_User - Internal With the following where clause:
(EXISTS (SELECT * FROM C_BPartner bp WHERE AD_User.C_BPartner_ID=bp.C_BPartner_ID AND (bp.IsEmployee='Y')) OR AD_User.C_BPartner_ID IS NULL)
Self-Service
Self-Service allows users to enter data or update their data. The flag indicates, that this record was entered or created via Self-Service or that the user can change it via the Self-Service functionality.
- Physical column name: IsSelfService
- Property Name: selfService
- Reference: YesNo
- Default value: N
Payment
- Physical column name: C_Debt_Payment_ID
- Property Name: payment
- Reference: Search
Foreign key column to C_Debt_Payment table, (column: C_Debt_Payment_ID)