ERP/3.0/Developers Guide/Database Model/org.openbravo.model.mrp/MRP Run ProductionLine
MRP_Run_ProductionLine
- Name:MRP_Run_ProductionLine
- Classname:MRPProductionRunLine
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. |
AD_Client_ID | No | VARCHAR (32) | A Client is a company or a legal entity. You cannot share data between Clients. |
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 |
Isexploded | Yes | CHAR (1) | The line has been exploded. |
MRP_Run_Production_ID | No | VARCHAR (32) | Headers of the production planning processes. |
MRP_Run_Productionline_ID | No | VARCHAR (32) | Identifies a line of the production planning processes. |
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. |
Isplanned | Yes | CHAR (1) | Is planned. |
Planneddate | No | TIMESTAMP (7) | Planned date of the transaction. |
Plannedorderdate | Yes | TIMESTAMP (7) | Planned date to order the transaction. |
MA_Processplan_ID | Yes | VARCHAR (32) | Indicates a process plan. |
M_Product_ID | No | VARCHAR (32) | Identifies an item which is either purchased or sold in this organization. |
Qty | No | DECIMAL | The Quantity indicates the number of a specific product or item for this document. |
Recalculatestock | Yes | CHAR (1) | Process to recalculate the product quantities of the lines. |
Parent_ID | Yes | VARCHAR (32) | The Parent indicates the value used to represent a summary level or report to level for a record |
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
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@)
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
Inserted
- Physical column name: Isexploded
- Property Name: inserted
- Reference: YesNo
Manufacturing Plan
- Physical column name: MRP_Run_Production_ID
- Property Name: manufacturingPlan
- Reference: TableDir
- 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_Production table, (column: MRP_Run_Production_ID)
Manufacturing Plan Line
- Physical column name: MRP_Run_Productionline_ID
- Property Name: id
- Reference: ID
Organization
- Physical column name: AD_Org_ID
- Property Name: organization
- Reference: TableDir
Foreign key column to AD_Org table, (column: AD_Org_ID)
Planned
- Physical column name: Isplanned
- Property Name: planned
- Reference: YesNo
- Default value: N
Planned Date
- Physical column name: Planneddate
- Property Name: plannedDate
- Reference: Date
Planned Order Date
- Physical column name: Plannedorderdate
- Property Name: plannedOrderDate
- Reference: Date
Process Plan
- Physical column name: MA_Processplan_ID
- Property Name: processPlan
- Reference: TableDir
- This column is part of the table's identifier
Foreign key column to MA_ProcessPlan table, (column: MA_Processplan_ID)
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)
Quantity
- Physical column name: Qty
- Property Name: quantity
- Reference: Quantity
Recalculate Stock
- Physical column name: Recalculatestock
- Property Name: recalculateStock
- Reference: Button
Report Set
- Physical column name: Parent_ID
- Property Name: reportSet
- Reference: OBUISEL_Selector Reference
Foreign key column to MRP_Run_ProductionLine table, (column: MRP_Run_Productionline_ID)
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: TableDir
Foreign key column to C_OrderLine table, (column: C_OrderLine_ID)
It has a validation "Order Line type For Manufacturing Plan line", with the following code
td1.ISSOTRX=(SELECT CASE WHEN @INOUTTRXTYPE@='PO' OR @INOUTTRXTYPE@='PP' THEN 'N' WHEN @INOUTTRXTYPE@='SO' THEN 'Y' ELSE 'NA' END ) AND EXISTS (SELECT 1 FROM C_DocType WHERE td1.C_DocType_ID = C_DocType_ID AND (DOCSUBTYPESO <> 'OB' OR DOCSUBTYPESO IS NULL))
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_PRODUCTIONLINE_ID_PROD_ID Not Unique. Columns:
- MRP_RUN_PRODUCTION_ID
- M_PRODUCT_ID
- MRP_RUN_PRODUCTIONLINE_PARENT Not Unique. Columns:
- PARENT_ID
Check Constraints
These are the check constraints for this table:
- MRP_RUN_PRODUCTIONLINE_ISA_CHK: ISACTIVE IN ('Y', 'N')
- MRP_RUN_PRODUCTIONLINE_ISF_CHK: ISFIXED IN ('Y', 'N')
- MRP_RUN_PRODUCTIONLINE_ISP_CHK: ISPLANNED IN ('Y', 'N')
![]() | Back to org.openbravo.model.mrp |