29:
30: l_expire_notify_date DATE ;
31: l_wf_start_date DATE ;
32:
33: l_item_no ic_item_mst.item_no%TYPE ;
34: l_item_desc1 ic_item_mst.item_desc1%TYPE ;
35: l_dualum_ind ic_item_mst.dualum_ind%TYPE ;
36: l_item_um ic_item_mst.item_um%TYPE ;
37: l_item_um2 ic_item_mst.item_um2%TYPE ;
30: l_expire_notify_date DATE ;
31: l_wf_start_date DATE ;
32:
33: l_item_no ic_item_mst.item_no%TYPE ;
34: l_item_desc1 ic_item_mst.item_desc1%TYPE ;
35: l_dualum_ind ic_item_mst.dualum_ind%TYPE ;
36: l_item_um ic_item_mst.item_um%TYPE ;
37: l_item_um2 ic_item_mst.item_um2%TYPE ;
38: c_whse_item_id ic_item_mst.whse_item_id%TYPE;
31: l_wf_start_date DATE ;
32:
33: l_item_no ic_item_mst.item_no%TYPE ;
34: l_item_desc1 ic_item_mst.item_desc1%TYPE ;
35: l_dualum_ind ic_item_mst.dualum_ind%TYPE ;
36: l_item_um ic_item_mst.item_um%TYPE ;
37: l_item_um2 ic_item_mst.item_um2%TYPE ;
38: c_whse_item_id ic_item_mst.whse_item_id%TYPE;
39: c_item_id ic_item_mst.item_id%TYPE;
32:
33: l_item_no ic_item_mst.item_no%TYPE ;
34: l_item_desc1 ic_item_mst.item_desc1%TYPE ;
35: l_dualum_ind ic_item_mst.dualum_ind%TYPE ;
36: l_item_um ic_item_mst.item_um%TYPE ;
37: l_item_um2 ic_item_mst.item_um2%TYPE ;
38: c_whse_item_id ic_item_mst.whse_item_id%TYPE;
39: c_item_id ic_item_mst.item_id%TYPE;
40:
33: l_item_no ic_item_mst.item_no%TYPE ;
34: l_item_desc1 ic_item_mst.item_desc1%TYPE ;
35: l_dualum_ind ic_item_mst.dualum_ind%TYPE ;
36: l_item_um ic_item_mst.item_um%TYPE ;
37: l_item_um2 ic_item_mst.item_um2%TYPE ;
38: c_whse_item_id ic_item_mst.whse_item_id%TYPE;
39: c_item_id ic_item_mst.item_id%TYPE;
40:
41: l_errname VARCHAR2(30);
34: l_item_desc1 ic_item_mst.item_desc1%TYPE ;
35: l_dualum_ind ic_item_mst.dualum_ind%TYPE ;
36: l_item_um ic_item_mst.item_um%TYPE ;
37: l_item_um2 ic_item_mst.item_um2%TYPE ;
38: c_whse_item_id ic_item_mst.whse_item_id%TYPE;
39: c_item_id ic_item_mst.item_id%TYPE;
40:
41: l_errname VARCHAR2(30);
42: l_errmsg VARCHAR2(2000);
35: l_dualum_ind ic_item_mst.dualum_ind%TYPE ;
36: l_item_um ic_item_mst.item_um%TYPE ;
37: l_item_um2 ic_item_mst.item_um2%TYPE ;
38: c_whse_item_id ic_item_mst.whse_item_id%TYPE;
39: c_item_id ic_item_mst.item_id%TYPE;
40:
41: l_errname VARCHAR2(30);
42: l_errmsg VARCHAR2(2000);
43:
66: WHERE item_id = c_item_id);
67:
68: CURSOR c_whse_item(c_item_id NUMBER) is
69: ( SELECT whse_item_id
70: FROM ic_item_mst
71: WHERE item_id = c_item_id);
72:
73: BEGIN
74: /* set the workflow start date to date now */
82:
83:
84: SELECT item_no , item_desc1 , item_um ,item_um2 , dualum_ind
85: INTO l_item_no ,l_item_desc1 , l_item_um , l_item_um2 , l_dualum_ind
86: FROM ic_item_mst
87: WHERE item_id = p_item_id ;
88:
89: /*BEGIN BUG#2134597 Praveen Reddy*/
90: /*Check if the workflow data exists and remove the same for the itemtype and itemkey