src-db/database/model/functions/MRP_PROCESSPLAN.xml
changeset 1605 8a0fe0193bef
parent 756 ae11e4610537
child 6701 690d2af86089
equal deleted inserted replaced
1604:a1c518e6ed93 1605:8a0fe0193bef
     1 <?xml version="1.0"?>
     1 <?xml version="1.0"?>
     2   <database name="FUNCTION MRP_PROCESSPLAN">
     2   <database name="FUNCTION MRP_PROCESSPLAN">
     3     <function name="MRP_PROCESSPLAN" type="NULL">
     3     <function name="MRP_PROCESSPLAN" type="NULL">
     4       <parameter name="p_user_id" type="NUMERIC" mode="in">
     4       <parameter name="p_user_id" type="VARCHAR" mode="in">
     5         <default/>
     5         <default/>
     6       </parameter>
     6       </parameter>
     7       <parameter name="p_org_id" type="NUMERIC" mode="in">
     7       <parameter name="p_org_id" type="VARCHAR" mode="in">
     8         <default/>
     8         <default/>
     9       </parameter>
     9       </parameter>
    10       <parameter name="p_client_id" type="NUMERIC" mode="in">
    10       <parameter name="p_client_id" type="VARCHAR" mode="in">
    11         <default/>
    11         <default/>
    12       </parameter>
    12       </parameter>
    13       <parameter name="p_run_id" type="NUMERIC" mode="in">
    13       <parameter name="p_run_id" type="VARCHAR" mode="in">
    14         <default/>
    14         <default/>
    15       </parameter>
    15       </parameter>
    16       <parameter name="p_planner_id" type="NUMERIC" mode="in">
    16       <parameter name="p_planner_id" type="VARCHAR" mode="in">
    17         <default/>
    17         <default/>
    18       </parameter>
    18       </parameter>
    19       <parameter name="p_timehorizon" type="NUMERIC" mode="in">
    19       <parameter name="p_timehorizon" type="NUMERIC" mode="in">
    20         <default/>
    20         <default/>
    21       </parameter>
    21       </parameter>
    46   v_Message VARCHAR2(2000):='';
    46   v_Message VARCHAR2(2000):='';
    47   v_Result NUMBER:=1; -- 0=failure
    47   v_Result NUMBER:=1; -- 0=failure
    48 
    48 
    49   v_Count NUMBER;
    49   v_Count NUMBER;
    50   v_Count_Aux NUMBER;
    50   v_Count_Aux NUMBER;
    51   v_Aux_ID NUMBER;
    51   v_Aux_ID VARCHAR2(32);
    52   v_planned CHAR(1) := 'N';
    52   v_planned CHAR(1) := 'N';
    53 
    53 
    54   FINISH_PROCESS BOOLEAN DEFAULT FALSE;
    54   FINISH_PROCESS BOOLEAN DEFAULT FALSE;
    55   --  Parameter
    55   --  Parameter
    56   TYPE RECORD IS REF CURSOR;
    56   TYPE RECORD IS REF CURSOR;