ERP/3.0/Developers Guide/Database Model/org.openbravo.model.mrp/MRP Run PurchaseLine
MRP_Run_PurchaseLine
- Name:MRP_Run_PurchaseLine
- Classname:MRPPurchasingRunLine
This table contains the following columns:
Name | Nullable | Data Type | Description
|
IsActive | No | CHAR (1) | 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. |
C_BPartner_ID | Yes | VARCHAR (32) | A Business Partner is anyone with whom you transact. This can include a customer, vendor, employee or any combination of these. |
AD_Client_ID | No | VARCHAR (32) | A Client is a company or a legal entity. You cannot share data between Clients. |
Iscompleted | Yes | CHAR (1) | Line completed |
Createdby | No | VARCHAR (32) | The Created By field indicates the user who created this record. |
Created | No | TIMESTAMP (7) | The Created field indicates the date that this record was created. |
Isfixed | No | CHAR (1) | Is fixed |
AD_Org_ID | No | VARCHAR (32) | An organization is a unit of your client or legal entity - examples are store, department. You can share data between organizations. |
Planneddate | No | TIMESTAMP (7) | Planned date of the transaction. |
Plannedorderdate | Yes | TIMESTAMP (7) | Planned date to order the transaction. |
M_Product_ID | Yes | VARCHAR (32) | Identifies an item which is either purchased or sold in this organization. |
MRP_Run_Purchaseline_ID | No | VARCHAR (32) | Identifies a line of the purchase planning processes. |
MRP_Run_Purchase_ID | No | VARCHAR (32) | Identifies a header of the purchase planning processes. |
Qty | No | DECIMAL | The Quantity indicates the number of a specific product or item for this document. |
Neededqty | No | DECIMAL | Quantity needed |
M_Requisitionline_ID | Yes | VARCHAR (32) | Identifies each product demand of a requisition. |
MRP_Salesforecastline_ID | Yes | VARCHAR (32) | Identifies an expected sale line. |
C_OrderLine_ID | Yes | VARCHAR (32) | A unique identifier and a reference to a sales order line (product). |
Cumqty | Yes | DECIMAL | Cumulate quantity. |
Inouttrxtype | No | VARCHAR (60) | Transaction types available for the MRP. |
Updated | No | TIMESTAMP (7) | The Updated field indicates the date that this record was updated. |
Updatedby | No | VARCHAR (32) | The Updated By field indicates the user who updated this record. |
MA_Workrequirement_ID | Yes | VARCHAR (32) | Indicates a work requirement. |
Columns
Active
- Physical column name: IsActive
- Property Name: active
- Reference: YesNo
- Default value: Y
Business Partner
- Physical column name: C_BPartner_ID
- Property Name: businessPartner
- Reference: Search
Foreign key column to C_BPartner table, (column: C_BPartner_ID)
Client
- Physical column name: AD_Client_ID
- Property Name: client
- Reference: TableDir
Foreign key column to AD_Client table, (column: AD_Client_ID)
It has a validation "AD_Client Security validation", with the following code
AD_Client.AD_Client_ID in (@#User_Client@)
Completed
- Physical column name: Iscompleted
- Property Name: completed
- Reference: YesNo
Created By
- Physical column name: Createdby
- Property Name: createdBy
- Reference: Search
Foreign key column to AD_User table, (column: AD_User_ID)
Creation Date
- Physical column name: Created
- Property Name: creationDate
- Reference: DateTime
- Default value: SYSDATE
Fixed
- Physical column name: Isfixed
- Property Name: fixed
- Reference: YesNo
- Default value: N
Organization
- Physical column name: AD_Org_ID
- Property Name: organization
- Reference: TableDir
Foreign key column to AD_Org table, (column: AD_Org_ID)
Planned Date
- Physical column name: Planneddate
- Property Name: plannedDate
- Reference: Date
Planned Order Date
- Physical column name: Plannedorderdate
- Property Name: plannedOrderDate
- Reference: Date
Product
- Physical column name: M_Product_ID
- Property Name: product
- Reference: Search
- This column is part of the table's identifier
Foreign key column to M_Product table, (column: M_Product_ID)
Purchase Plan Line
- Physical column name: MRP_Run_Purchaseline_ID
- Property Name: id
- Reference: ID
Purchasing Plan
- Physical column name: MRP_Run_Purchase_ID
- Property Name: purchasingPlan
- Reference: Search
- This column is part of the table's identifier
- This column is a child for a business object (is Parent)
Foreign key column to MRP_Run_Purchase table, (column: MRP_Run_Purchase_ID)
Quantity
- Physical column name: Qty
- Property Name: quantity
- Reference: Quantity
Required Quantity
- Physical column name: Neededqty
- Property Name: requiredQuantity
- Reference: Quantity
Requisition Line
- Physical column name: M_Requisitionline_ID
- Property Name: requisitionLine
- Reference: TableDir
- This column is part of the table's identifier
Foreign key column to M_RequisitionLine table, (column: M_Requisitionline_ID)
Sales Forecast Line
- Physical column name: MRP_Salesforecastline_ID
- Property Name: salesForecastLine
- Reference: TableDir
Foreign key column to MRP_SalesForecastLine table, (column: MRP_Salesforecastline_ID)
Sales Order Line
- Physical column name: C_OrderLine_ID
- Property Name: salesOrderLine
- Reference: OBUISEL_Selector Reference
Foreign key column to C_OrderLine table, (column: C_OrderLine_ID)
Total Movement Quantity
- Physical column name: Cumqty
- Property Name: totalMovementQuantity
- Reference: Quantity
Transaction Type
- Physical column name: Inouttrxtype
- Property Name: transactionType
- Reference: List
List values: In/out transaction types for planning
The allowed values for this list are:
- ST (Stock)
- MS (Minimum Stock): Minimum or security stock
- SO (Pending Sales Order)
- PO (Pending Purchase Order)
- WR (Pending Work Requirement)
- SF (Sales Forecast)
- MF (Material Requirement)
- UD (User defined)
- WP (Suggested Work Requirement)
- MP (Suggested Material Requirement)
- PP (Suggested Purchase Order)
Updated
- Physical column name: Updated
- Property Name: updated
- Reference: DateTime
- Default value: SYSDATE
Updated By
- Physical column name: Updatedby
- Property Name: updatedBy
- Reference: Search
Foreign key column to AD_User table, (column: AD_User_ID)
Work Requirement
- Physical column name: MA_Workrequirement_ID
- Property Name: workRequirement
- Reference: TableDir
Foreign key column to MA_WorkRequirement table, (column: MA_Workrequirement_ID)
Other Info
Indices
These are the indices for this table (for each index there is a list of all the columns included within it):
- MRP_RUN_PURHCLINE_PURCH_PROD Not Unique. Columns:
- MRP_RUN_PURCHASE_ID
- M_PRODUCT_ID
Check Constraints
These are the check constraints for this table:
- MRP_RUN_PURCHASELINE_ISACT_CHK: ISACTIVE IN ('Y', 'N')
- MRP_RUN_PURCHASELINE_ISFIX_CHK: ISFIXED IN ('Y', 'N')
![]() | Back to org.openbravo.model.mrp |