[Home] [Help]
849: -- init global variables
850: g_ErrorCode := '';
851:
852:
853: -- delete records from MSC_PLAN_BUCKETS table for the given PlanId, if any
854: BEGIN
855: DELETE FROM MSC_PLAN_BUCKETS WHERE PLAN_ID=PlanIdVar;
856: EXCEPTION WHEN others THEN
857: NULL; -- do nothing
851:
852:
853: -- delete records from MSC_PLAN_BUCKETS table for the given PlanId, if any
854: BEGIN
855: DELETE FROM MSC_PLAN_BUCKETS WHERE PLAN_ID=PlanIdVar;
856: EXCEPTION WHEN others THEN
857: NULL; -- do nothing
858: END;
859:
858: END;
859:
860: BEGIN
861: -- CODE GOES HERE
862: INSERT INTO MSC_PLAN_BUCKETS (PLAN_ID,
863: ORGANIZATION_ID,
864: SR_INSTANCE_ID,
865: BUCKET_INDEX,
866: CURR_FLAG,