View source | Discuss this page | Page history | Printable version   

ERP 2.50:Developers Guide/Database Model/org.openbravo.model.procurement/M Requisition

ERP 2.50:Developers Guide/Database Model/org.openbravo.model.procurement




This table contains the headers of products demand. In the header it can be set a preferred vendor and/or price list. The requisitions are owned by an user of the ERP and have different statuses, each of them allowing different actions.In this window users manage only his own requisitions.

This table contains the following columns:

Name Nullable Data Type Description
M_Requisition_ID NVARCHAR2(32)null
AD_Client_ID NVARCHAR2(32)Client for this installation.
AD_Org_ID NVARCHAR2(32)Organizational entity within client
IsActive NCHAR(1)A flag indicating whether this record is available for use or de-activated.
Created NDATEThe date that this record is completed.
Createdby NVARCHAR2(32)User who created this records
Updated NDATEx not implemented
Updatedby NVARCHAR2(32)User who updated this records
Description YNVARCHAR2(255)A space to write additional related information.
DocumentNo NNVARCHAR2(30)An often automatically generated identifier for all documents.
C_BPartner_ID YVARCHAR2(32)Anyone who takes part in daily business operations by acting as a customer, employee, etc.
M_PriceList_ID YVARCHAR2(32)A catalog of selected items with prices defined generally or for a specific partner.
C_Currency_ID YVARCHAR2(32)An accepted medium of monetary exchange that may vary across countries.
Createpo NCHAR(1)null
DocStatus NVARCHAR2(60)The Document Status indicates the status of a document at this time.
DocAction NVARCHAR2(60)A means of changing the transaction status of the document.
Processed NCHAR(1)A confirmation that the associated documents or requests are processed.
AD_User_ID NVARCHAR2(32)null
Processing NCHAR(1)A request to process the respective document or task.

Other Info

Check constraints

These are the check constraints for this table:



These are the indexes for this table (for each index there is a list of all the columns included within it):





The ID identifies a unique requisition



Foreign key column to AD_Client table, (column: AD_Client_ID)



Foreign key column to AD_Org table, (column: AD_Org_ID)



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.


Creation Date

The Created field indicates the date that this record was created.


Created By

Foreign key column to AD_User table, (column: AD_User_ID)



The Updated field indicates the date that this record was updated.


Updated By

Foreign key column to AD_User table, (column: AD_User_ID)



A description is limited to 255 characters.


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).


Business Partner

Foreign key column to C_BPartner table, (column: C_BPartner_ID)

Callout: SL_Requisition_BPartner

This element is linked to a callout.

It is implemented by org.openbravo.erpCommon.ad_callouts.SL_Requisition_BPartner Java class.


Price List

Foreign key column to M_PriceList table, (column: M_PriceList_ID)

Validation Rule Purchase Pricelist: Purchase Pricelist. With the following code:




Foreign key column to C_Currency table, (column: C_Currency_ID)

Validation Rule C_Currency of PriceList: Sets the currency of the pricelist. With the following code:

C_Currency.C_Currency_ID IN (SELECT C_Currency_ID FROM M_Pricelist WHERE ISACTIVE='Y')


Create PO

Button to generate the corresponding purchase orders to fulfill the products demand.


Document Status

The Document Status indicates the status of a document at this time. To change the status of a document, use one of the buttons usually located at the bottom of the document window.

List values: All_Document Status

The allowed values for this list are:


Document Action

You find the current status in the Document Status field. The options are listed in a popup



The Processed checkbox indicates that a document has been processed.



Foreign key column to AD_User table, (column: AD_User_ID)


Process Now

When this field is set as 'Y' a process is being performed on this record.


Retrieved from ""

This page has been accessed 3,271 times. This page was last modified on 14 June 2011, at 11:04. Content is available under Creative Commons Attribution-ShareAlike 2.5 Spain License.