193:
194: /* Changes for Optional Scrap */
195: x_statement := 15;
196: temp_wip_entity_id := rec_wip_entity.wip_entity_id;
197: x_est_scrap_acct_flag := WSMPUTIL.WSM_ESA_ENABLED(rec_wip_entity.wip_entity_id, x_err_num, x_err_msg);
198: IF (x_est_scrap_acct_flag = 0) THEN
199: RAISE WSM_ESA_PKG_ERROR;
200: END IF;
201:
1183:
1184: FOR rec_wip_entity IN c_wip_entity LOOP
1185:
1186: /* Changes for Optional Scrap */
1187: x_est_scrap_acct_flag := WSMPUTIL.WSM_ESA_ENABLED(rec_wip_entity.wip_entity_id,
1188: x_err_num,x_err_msg);
1189:
1190: IF (x_est_scrap_acct_flag = 0) THEN
1191: RAISE WSM_ESA_PKG_ERROR;
1632:
1633: FOR rec_wip_entity IN c_wip_entity LOOP
1634: /* Changes for Optional Scrap */
1635: l_stmt_num := 10;
1636: x_est_scrap_acct_flag := WSMPUTIL.WSM_ESA_ENABLED(rec_wip_entity.wip_entity_id,
1637: x_err_num, x_err_msg);
1638:
1639: IF (x_est_scrap_acct_flag = 0) THEN
1640: RAISE WSM_ESA_PKG_ERROR;
1844: For opseq_rec IN opseq_cur
1845: LOOP
1846:
1847: l_stmt_num := 15;
1848: x_est_scrap_acct_flag := WSMPUTIL.WSM_ESA_ENABLED(opseq_rec.WIP_ENTITY,
1849: l_err_num, l_err_msg);
1850:
1851: /* Update operation cost in WOY only if ESA is enabled */
1852: IF x_est_scrap_acct_flag = 1 THEN