70: -- For unscheduled work orderless completion, we should create an entry
71: -- in wip_flow_schedules and wip_entities since that is needed for resource
72: -- transactions and material transactions.
73:
74: wip_flowUtil_priv.createFlowSchedule(p_txnTempID,
75: l_returnStatus);
76: if ( l_returnStatus <> fnd_api.g_ret_sts_success ) then
77: raise processing_exception;
78: end if;
107:
108:
109: -- Step 4:
110: -- Update the flow schedule
111: wip_flowUtil_priv.updateFlowSchedule(p_txnTempID,
112: l_returnStatus);
113: if ( l_returnStatus <> fnd_api.g_ret_sts_success ) then
114: raise processing_exception;
115: end if;
191: exception
192: when processing_exception then
193: x_returnStatus := fnd_api.g_ret_sts_error;
194: rollback to wip_cfmproc_s0;
195: wip_flowUtil_priv.setMmttError(p_txnTempID,
196: 'Processing Error');
197: if (l_logLevel <= wip_constants.trace_logging) then
198: wip_logger.exitPoint(p_procName => 'wip_cfmProc_priv.processTemp',
199: p_procReturnStatus => x_returnStatus,
202: end if;
203: when others then
204: x_returnStatus := fnd_api.g_ret_sts_unexp_error;
205: rollback to wip_cfmproc_s0;
206: wip_flowUtil_priv.setMmttError(p_txnTempID,
207: 'Unexpected Error');
208: if (l_logLevel <= wip_constants.trace_logging) then
209: wip_logger.exitPoint(p_procName => 'wip_cfmProc_priv.processTemp',
210: p_procReturnStatus => x_returnStatus,
253: --need to create the flow schedule, this also updates component records
254: --so they have the proper transaction_source_id
255: if(fnd_api.to_boolean(p_processInv)) then
256: --create the flow schedule from MTI
257: wip_flowUtil_priv.createFlowSchedule(p_txnInterfaceID => p_txnTmpID,
258: x_returnStatus => x_returnStatus,
259: x_wipEntityID => l_wipEntityID);
260: else
261: --create the flow schedule from MMTT
258: x_returnStatus => x_returnStatus,
259: x_wipEntityID => l_wipEntityID);
260: else
261: --create the flow schedule from MMTT
262: wip_flowUtil_priv.createFlowSchedule(p_txnTmpID => p_txnTmpID,
263: x_returnStatus => x_returnStatus,
264: x_wipEntityID => l_wipEntityID);
265: end if;
266: