[Home] [Help]
The following lines contain the word 'select', 'insert', 'update' or 'delete':
select MSC_E1APS_UTIL.MSC_E1APS_ODIScenarioExecute(scrName,'001','',WSURL) into ReturnStr from dual;
select instr(ReturnStr,'#') into StartIndex from dual;
select substr(ReturnStr,StartIndex+1,1800) into ErrMessage from dual;
select instr(ReturnStr,'#') into StartIndex from dual;
select substr(ReturnStr,0,StartIndex-1) into SessionNum from dual;
select substr(ReturnStr,StartIndex+1,1800) into ErrMessage from dual;
select MSC_E1APS_UTIL.MSC_E1APS_ODIScenarioExecute(arrScr(i),'001','',WSURL) into ReturnStr from dual;
select instr(ReturnStr,'#') into StartIndex from dual;
select substr(ReturnStr,StartIndex+1,1800) into ErrMessage from dual;
select instr(ReturnStr,'#') into StartIndex from dual;
select substr(ReturnStr,0,StartIndex-1) into SessionNum from dual;
select substr(ReturnStr,StartIndex+1,1800) into ErrMessage from dual;
sql_cnd := 'select INSTR('''||ws_prf||''','''||srch_str||''') from dual';
updateFlag NUMBER(2) ; /* Bug#9757888 To Update TP_SITE_CODE */
select instance_code into l_instance_code from msc_apps_instances
where instance_id = parInstanceID;
-- Items will also be run after ATP Rules whenever ATP Rules is selected to update ATP Rule ID in system_items
-- set parameters for items to Yes
/*Dependency Check for ATP Rules */
IF parItems = MSC_UTIL.SYS_YES THEN
locAtpRule := MSC_UTIL.SYS_YES;
select MSC_E1APS_UTIL.MSC_E1APS_ODIInitialize(WSURL,parBaseDate) into ReturnStr from dual;
select instr(ReturnStr,'#') into StartIndex from dual;
select substr(ReturnStr,StartIndex+1,1800) into ErrMessage from dual;
select instr(ReturnStr,'#') into StartIndex from dual;
select substr(ReturnStr,StartIndex+1,1800) into ErrMessage from dual;
DELETE FROM MSC_ST_PRICE_LIST;
MSC_UTIL.LOG_MSG(MSC_UTIL.G_LVL_FATAL_ERR,'No Rows Deleted from MSC_ST_PRICE_LIST');
MSC_UTIL.LOG_MSG(MSC_UTIL.G_LVL_FATAL_ERR,'Rows Deleted from MSC_ST_PRICE_LIST');
SELECT INSTANCE_CODE into parInstanceCode FROM MSC_APPS_INSTANCES
WHERE INSTANCE_ID = parInstanceId;
DELETE FROM MSC_ST_CALENDARS
WHERE SR_INSTANCE_CODE like parInstanceCode AND PROCESS_FLAG =1;
MSC_UTIL.LOG_MSG(MSC_UTIL.G_LVL_FATAL_ERR,'No Rows deleted from MSC_ST_CALENDARS');
-- Bug#9842448 Stage05 to Update TP_SITE_CODE
MSC_UTIL.MSC_DEBUG('Updating TP_SITE_CODE with LOCATION');
updateFlag:= MSC_UTIL.SYS_NO;
setreq_success:=fnd_submit.submit_program('MSC','MSCE1TPSITECODE','Stage05', parInstanceID,updateFlag);
-- Bug#9842448 Stage90 to Update TP_SITE_CODE
MSC_UTIL.MSC_DEBUG('Updating TP_SITE_CODE with BILL_TO OR SHIP_TO');
updateFlag:= MSC_UTIL.SYS_YES;
setreq_success:=fnd_submit.submit_program('MSC','MSCE1TPSITECODE','Stage90', parInstanceID,updateFlag);