31:
32:
33: /**
34: *
Procedure:Insert_Plan_instance
35: * This procedure inserts data into the table WMS_OP_PLAN_INSTANCES.
32:
33: /**
34: *
Procedure:Insert_Plan_instance
35: * This procedure inserts data into the table WMS_OP_PLAN_INSTANCES.
38: * @param x_msg_count - Returns the Message Count
39: * @param x_msg_data - Returns Error Message
40: */
41: PROCEDURE insert_plan_instance
42: (p_insert_rec IN WMS_OP_PLAN_INSTANCES%ROWTYPE,
43: x_return_status OUT NOCOPY VARCHAR2,
44: x_msg_count OUT NOCOPY NUMBER,
45: x_msg_data OUT NOCOPY FND_NEW_MESSAGES.MESSAGE_TEXT%TYPE) IS
46:
56: END IF;
57:
58:
59: IF (l_debug=1) THEN
60: print_debug('Inserting Records into WMS_OP_PLAN_INSTANCES',l_module_name,9);
61: END IF;
62:
63: INSERT INTO WMS_OP_PLAN_INSTANCES
64: (OP_PLAN_INSTANCE_ID,
59: IF (l_debug=1) THEN
60: print_debug('Inserting Records into WMS_OP_PLAN_INSTANCES',l_module_name,9);
61: END IF;
62:
63: INSERT INTO WMS_OP_PLAN_INSTANCES
64: (OP_PLAN_INSTANCE_ID,
65: OPERATION_PLAN_ID,
66: ACTIVITY_TYPE_ID,
67: PLAN_TYPE_ID,
152:
153:
154: /**
155: *
Procedure:Update_Plan_instance
156: * This procedure updates data into the table WMS_OP_PLAN_INSTANCES.
153:
154: /**
155: *
Procedure:Update_Plan_instance
156: * This procedure updates data into the table WMS_OP_PLAN_INSTANCES.
159: * @param x_msg_count - Returns Message Count
160: * @param x_msg_data - Returns Error Message
161: */
162: PROCEDURE update_plan_instance
163: (p_update_rec IN WMS_OP_PLAN_INSTANCES%ROWTYPE,
164: x_return_status OUT NOCOPY VARCHAR2,
165: x_msg_count OUT NOCOPY NUMBER,
166: x_msg_data OUT NOCOPY FND_NEW_MESSAGES.MESSAGE_TEXT%TYPE) IS
167:
183: RAISE fnd_api.g_exc_error;
184: END IF;
185:
186: IF (l_debug=1) THEN
187: print_debug('Updating WMS_OP_PLAN_INSTANCES',l_module_name,3);
188: END IF;
189:
190: /*Updating WOPI*/
191: UPDATE WMS_OP_PLAN_INSTANCES
187: print_debug('Updating WMS_OP_PLAN_INSTANCES',l_module_name,3);
188: END IF;
189:
190: /*Updating WOPI*/
191: UPDATE WMS_OP_PLAN_INSTANCES
192: SET
193: OP_PLAN_INSTANCE_ID = decode(p_update_rec.OP_PLAN_INSTANCE_ID,G_MISS_NUM,NULL,NULL,OP_PLAN_INSTANCE_ID,p_update_rec.OP_PLAN_INSTANCE_ID),
194: OPERATION_PLAN_ID = decode(p_update_rec.OPERATION_PLAN_ID,G_MISS_NUM,NULL,NULL,OPERATION_PLAN_ID,p_update_rec.OPERATION_PLAN_ID),
195: ACTIVITY_TYPE_ID = decode(p_update_rec.ACTIVITY_TYPE_ID,G_MISS_NUM,NULL,NULL,ACTIVITY_TYPE_ID,p_update_rec.ACTIVITY_TYPE_ID),
257: END;
258:
259: /**
260: *
Procedure:Delete_Plan_instance
261: * This procedure inserts data into the table WMS_OP_PLAN_INSTANCES.
291: IF (l_debug=1) THEN
292: print_debug('Deleting Plan Instances','Delete_Plan_instance',9);
293: END IF;
294:
295: DELETE FROM WMS_OP_PLAN_INSTANCES
296: WHERE OP_PLAN_INSTANCE_ID = P_op_plan_instance_id;
297:
298: IF SQL%notfound THEN
299: IF (l_debug=1) THEN
456:
457:
458: /**
459: *
Procedure:Delete_Operation_instance
460: * This procedure deletes the data in the table WMS_OP_PLAN_INSTANCES.
528:
529:
530: /**
531: *
Procedure:Update_Operation_instance
532: * This procedure updates data into the table WMS_OP_PLAN_INSTANCES.
642: END;
643:
644: /**
645: *
Procedure:Archive_Plan_instance
646: * This procedure inserts data into the table WMS_OP_PLAN_INSTANCES.
686: print_debug('Archiving Plan Instances',l_module_name,9);
687: END IF;
688: l_progress:=20;
689:
690: INSERT INTO WMS_OP_PLAN_INSTANCES_HIST
691: (OP_PLAN_INSTANCE_ID,
692: OPERATION_PLAN_ID,
693: ACTIVITY_TYPE_ID,
694: PLAN_TYPE_ID,
754: ATTRIBUTE12,
755: ATTRIBUTE13,
756: ATTRIBUTE14,
757: ATTRIBUTE15
758: FROM WMS_OP_PLAN_INSTANCES
759: WHERE op_plan_instance_id=p_op_plan_instance_id);
760:
761: IF (l_debug=1) THEN
762: print_debug('Records inserted into WMS_OP_PLAN_INSTANCES_HISTORY '||SQL%ROWCOUNT,l_module_name,9);
758: FROM WMS_OP_PLAN_INSTANCES
759: WHERE op_plan_instance_id=p_op_plan_instance_id);
760:
761: IF (l_debug=1) THEN
762: print_debug('Records inserted into WMS_OP_PLAN_INSTANCES_HISTORY '||SQL%ROWCOUNT,l_module_name,9);
763: END IF;
764: l_progress:=30;
765:
766: INSERT INTO WMS_OP_OPERTN_INSTANCES_HIST
900:
901:
902: /**
903: *
Procedure:Complete_Plan_instance
904: * This procedure inserts data into the table WMS_OP_PLAN_INSTANCES.
940: print_debug('Updating the Plan status to completed',l_module_name,9);
941: END IF;
942:
943: /*Updating the Plan Status to Completed*/
944: UPDATE WMS_OP_PLAN_INSTANCES
945: SET status=WMS_GLOBALS.G_OP_INS_STAT_COMPLETED
946: WHERE op_plan_instance_id=p_op_plan_instance_id;
947:
948: