DBA Data[Home] [Help]

APPS.MSC_CL_PRE_PROCESS dependencies on MSC_ST_UTIL

Line 20: v_my_company VARCHAR2(1000) := MSC_ST_UTIL.GET_MY_COMPANY;

16: --v_debug BOOLEAN := FALSE;
17: v_req_data varchar2(10);
18: v_cal_build boolean := False;
19: v_MSC_CONFIGURATION VARCHAR2(10) := nvl(fnd_profile.value('MSC_X_CONFIGURATION'), 1);
20: v_my_company VARCHAR2(1000) := MSC_ST_UTIL.GET_MY_COMPANY;
21:
22:
23: -- User Environment --
24: -- v_current_date DATE := sysdate;

Line 2911: MSC_ST_UTIL.v_instance_type := v_instance_type;

2907: v_pipe_mw := 'MSC_CL_PRE_MW'||TO_CHAR(p_instance_id);
2908: v_pipe_status := 'MSC_CL_PRE_ST'||TO_CHAR(p_instance_id);
2909: v_instance_id := p_instance_id;
2910:
2911: MSC_ST_UTIL.v_instance_type := v_instance_type;
2912: MSC_ST_UTIL.v_instance_id := v_instance_id;
2913:
2914: -------------- Get current ERROR_ID from MSC_ERRORS ---
2915: -- SELECT max(ERROR_ID) INTO v_error_no_begin FROM MSC_ERRORS;

Line 2912: MSC_ST_UTIL.v_instance_id := v_instance_id;

2908: v_pipe_status := 'MSC_CL_PRE_ST'||TO_CHAR(p_instance_id);
2909: v_instance_id := p_instance_id;
2910:
2911: MSC_ST_UTIL.v_instance_type := v_instance_type;
2912: MSC_ST_UTIL.v_instance_id := v_instance_id;
2913:
2914: -------------- Get current ERROR_ID from MSC_ERRORS ---
2915: -- SELECT max(ERROR_ID) INTO v_error_no_begin FROM MSC_ERRORS;
2916:

Line 3272: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

3268: AND modeled_supplier_site_code IS NOT NULL
3269: AND process_flag = G_VALID
3270: AND partner_type = G_ORGANIZATION;
3271:
3272: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
3273: (p_app_short_name => 'MSC',
3274: p_error_code => 'MSC_PP_INVALID_VALUE',
3275: p_message_text => lv_message_text,
3276: p_error_text => lv_error_text,

Line 3317: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

3313: AND master_organization_code IS NOT NULL
3314: AND process_flag = G_VALID
3315: AND partner_type = G_ORGANIZATION;
3316:
3317: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
3318: (p_app_short_name => 'MSC',
3319: p_error_code => 'MSC_PP_INVALID_VALUE',
3320: p_message_text => lv_message_text,
3321: p_error_text => lv_error_text,

Line 3605: lv_status := MSC_ST_UTIL.LOG_ERROR

3601: USING v_instance_code,
3602: p_calendar_code;
3603:
3604:
3605: lv_status := MSC_ST_UTIL.LOG_ERROR
3606: (p_table_name => p_table_name,
3607: p_instance_code => v_instance_code,
3608: p_row => p_column_names,
3609: p_severity => G_SEV_ERROR,

Line 3890: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

3886: v_cal_build := False;
3887:
3888: --Added to fix the bug#2748859
3889: --Getting the error message text
3890: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
3891: (p_app_short_name => 'MSC',
3892: p_error_code => 'MSC_PP_DUP_REC_FOR_XML',
3893: p_message_text => lv_message_text,
3894: p_error_text => lv_error_text);

Line 3916: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

3912: AND mc1.sr_instance_code = v_instance_code
3913: AND NVL(mc1.message_id,NULL_VALUE) <> NULL_VALUE;
3914:
3915:
3916: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
3917: (p_app_short_name => 'MSC',
3918: p_error_code => 'MSC_PP_DUP_REC_FOR_BATCH_LOAD',
3919: p_message_text => lv_message_text,
3920: p_error_text => lv_error_text);

Line 4003: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

3999: IF (rec1.calendar_code IS NULL OR
4000: rec1.calendar_start_date IS NULL OR
4001: rec1.calendar_end_date IS NULL) THEN
4002:
4003: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
4004: (p_app_short_name => 'MSC',
4005: p_error_code => 'MSC_PP_COL_VAL_NULL',
4006: p_message_text => lv_message_text,
4007: p_error_text => lv_error_text,

Line 4021: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

4017: RAISE ex_critical_err;
4018:
4019: ELSIF rec1.deleted_flag = SYS_YES THEN
4020:
4021: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
4022: (p_app_short_name => 'MSC',
4023: p_error_code => 'MSC_PP_NO_DELETION',
4024: p_message_text => lv_message_text,
4025: p_error_text => lv_error_text,

Line 4038: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

4034: ELSIF (rec1.week_start_day NOT IN(1,2) OR
4035: rec1.quarterly_calendar_type NOT IN(1,2,3,4) OR
4036: NVL(rec1.overwrite_flag,'N') NOT IN('Y','N')) THEN
4037:
4038: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
4039: (p_app_short_name => 'MSC',
4040: p_error_code => 'MSC_PP_INVALID_VALUE',
4041: p_message_text => lv_message_text,
4042: p_error_text => lv_error_text,

Line 4055: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

4051: RAISE ex_critical_err;
4052:
4053: ELSIF rec1.calendar_end_date <= rec1.calendar_start_date THEN
4054:
4055: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
4056: (p_app_short_name => 'MSC',
4057: p_error_code => 'MSC_PP_END_GT_ST_DATE',
4058: p_message_text => lv_message_text,
4059: p_error_text => lv_error_text);

Line 4088: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

4084: v_instance_id;
4085:
4086: IF lv_rec_no > 0 THEN
4087:
4088: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
4089: (p_app_short_name => 'MSC',
4090: p_error_code => 'MSC_PP_CAL_ALREADY_EXISTS',
4091: p_message_text => lv_message_text,
4092: p_error_text => lv_error_text);

Line 4125: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

4121: v_instance_id;
4122:
4123: IF NVL(rec1.overwrite_flag,'N') = 'N' THEN
4124:
4125: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
4126: (p_app_short_name => 'MSC',
4127: p_error_code => 'MSC_PP_CAL_ALREADY_EXISTS',
4128: p_message_text => lv_message_text,
4129: p_error_text => lv_error_text);

Line 4140: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

4136: ELSIF NVL(rec1.overwrite_flag,'N') = 'Y' AND
4137: (rec1.calendar_start_date > lv_calendar_start_date OR
4138: rec1.calendar_end_date < lv_calendar_end_date) THEN
4139:
4140: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
4141: (p_app_short_name => 'MSC',
4142: p_error_code => 'MSC_PP_CAL_PERIOD_INVALID',
4143: p_message_text => lv_message_text,
4144: p_error_text => lv_error_text);

Line 4157: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

4153: EXCEPTION
4154: WHEN no_data_found THEN
4155: IF NVL(rec1.overwrite_flag,'N') = 'Y' THEN
4156:
4157: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
4158: (p_app_short_name => 'MSC',
4159: p_error_code => 'MSC_PP_CAL_UPDATE_NOT_ALLOWED',
4160: p_message_text => lv_message_text,
4161: p_error_text => lv_error_text);

Line 4195: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

4191: v_instance_code;
4192:
4193: IF lv_rec_no =1 THEN
4194:
4195: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
4196: (p_app_short_name => 'MSC',
4197: p_error_code => 'MSC_PP_SHIFT_NOT_EXIST',
4198: p_message_text => lv_message_text,
4199: p_error_text => lv_error_text);

Line 4211: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

4207: WHEN no_data_found THEN
4208: NULL;
4209:
4210: WHEN too_many_rows THEN
4211: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
4212: (p_app_short_name => 'MSC',
4213: p_error_code => 'MSC_PP_SHIFT_NOT_EXIST',
4214: p_message_text => lv_message_text,
4215: p_error_text => lv_error_text);

Line 4242: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

4238: USING rec1.calendar_code,
4239: v_instance_code;
4240:
4241: IF lv_rec_no <= 0 THEN
4242: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
4243: (p_app_short_name => 'MSC',
4244: p_error_code => 'MSC_PP_WORKDAY_PAT_INVALID',
4245: p_message_text => lv_message_text,
4246: p_error_text => lv_error_text);

Line 4274: lv_return := MSC_ST_UTIL.LOG_ERROR

4270: ||' AND sr_instance_code = '||''''||v_instance_code ||'''';
4271:
4272: --Logging a warning for those records where the deleted_flag value
4273: --is other than Yes/No.
4274: lv_return := MSC_ST_UTIL.LOG_ERROR
4275: (p_table_name => 'MSC_ST_CALENDARS',
4276: p_instance_code => v_instance_code,
4277: p_row => lv_column_names,
4278: p_severity => G_SEV_WARNING,

Line 4335: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

4331: WHERE rowid = rec2.rowid;
4332:
4333: IF rec2.deleted_flag = SYS_YES THEN
4334:
4335: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
4336: (p_app_short_name => 'MSC',
4337: p_error_code => 'MSC_PP_NO_DELETION',
4338: p_message_text => lv_message_text,
4339: p_error_text => lv_error_text,

Line 4351: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

4347:
4348: ELSIF (rec2.days_on < 0 OR
4349: rec2.days_off < 0) THEN
4350:
4351: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
4352: (p_app_short_name => 'MSC',
4353: p_error_code => 'MSC_PP_CONV_RT_NEG',
4354: p_message_text => lv_message_text,
4355: p_error_text => lv_error_text,

Line 4368: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

4364: END IF;
4365:
4366: IF rec2.deleted_flag NOT IN(1,2) THEN
4367:
4368: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
4369: (p_app_short_name => 'MSC',
4370: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
4371: p_message_text => lv_message_text,
4372: p_error_text => lv_error_text,

Line 4382: lv_return := MSC_ST_UTIL.LOG_ERROR

4378: lv_where_str := ' AND st_transaction_id = '||lv_transaction_id;
4379:
4380: --Logging a warning for those records where the deleted_flag value
4381: --is other than Yes/No.
4382: lv_return := MSC_ST_UTIL.LOG_ERROR
4383: (p_table_name => 'MSC_ST_WORKDAY_PATTERNS',
4384: p_instance_code => v_instance_code,
4385: p_row => lv_column_names,
4386: p_severity => G_SEV_WARNING,

Line 4509: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

4505:
4506: IF (rec3.shift_name IS NULL OR
4507: rec3.shift_num IS NULL) THEN
4508:
4509: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
4510: (p_app_short_name => 'MSC',
4511: p_error_code => 'MSC_PP_COL_VAL_NULL',
4512: p_message_text => lv_message_text,
4513: p_error_text => lv_error_text,

Line 4520: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

4516: RAISE ex_critical_err;
4517:
4518: ELSIF rec3.deleted_flag = SYS_YES THEN
4519:
4520: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
4521: (p_app_short_name => 'MSC',
4522: p_error_code => 'MSC_PP_NO_DELETION',
4523: p_message_text => lv_message_text,
4524: p_error_text => lv_error_text,

Line 4536: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

4532:
4533: END IF;
4534:
4535: IF rec3.deleted_flag NOT IN(1,2) THEN
4536: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
4537: (p_app_short_name => 'MSC',
4538: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
4539: p_message_text => lv_message_text,
4540: p_error_text => lv_error_text,

Line 4550: lv_return := MSC_ST_UTIL.LOG_ERROR

4546: lv_where_str := ' AND st_transaction_id = '||lv_transaction_id;
4547:
4548: --Logging a warning for those records where the deleted_flag value
4549: --is other than Yes/No.
4550: lv_return := MSC_ST_UTIL.LOG_ERROR
4551: (p_table_name => 'MSC_ST_SHIFT_TIMES',
4552: p_instance_code => v_instance_code,
4553: p_row => lv_column_names,
4554: p_severity => G_SEV_WARNING,

Line 4629: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

4625: lv_transaction_id;
4626:
4627: EXCEPTION
4628: WHEN NO_DATA_FOUND THEN
4629: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
4630: (p_app_short_name => 'MSC',
4631: p_error_code => 'MSC_PP_SHIFT_TIME_OVERLAP',
4632: p_message_text => lv_message_text,
4633: p_error_text => lv_error_text);

Line 4660: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

4656: --validation for the table msc_st_Calendar_exceptions.
4657: --Added to fix the bug#2748859
4658:
4659: --Getting the error message text
4660: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
4661: (p_app_short_name => 'MSC',
4662: p_error_code => 'MSC_PP_DUP_REC_FOR_XML',
4663: p_message_text => lv_message_text,
4664: p_error_text => lv_error_text);

Line 4688: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

4684: AND mc1.sr_instance_code = v_instance_code
4685: AND NVL(mc1.message_id,NULL_VALUE) <> NULL_VALUE;
4686:
4687:
4688: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
4689: (p_app_short_name => 'MSC',
4690: p_error_code => 'MSC_PP_DUP_REC_FOR_BATCH_LOAD',
4691: p_message_text => lv_message_text,
4692: p_error_text => lv_error_text);

Line 4750: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

4746: created_by = v_current_user
4747: WHERE rowid = rec4.rowid;
4748:
4749: IF rec4.deleted_flag = SYS_YES THEN
4750: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
4751: (p_app_short_name => 'MSC',
4752: p_error_code => 'MSC_PP_NO_DELETION',
4753: p_message_text => lv_message_text,
4754: p_error_text => lv_error_text,

Line 4765: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

4761: RAISE ex_critical_err;
4762:
4763: ELSIF rec4.exception_date IS NULL THEN
4764:
4765: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
4766: (p_app_short_name => 'MSC',
4767: p_error_code => 'MSC_PP_COL_VAL_NULL',
4768: p_message_text => lv_message_text,
4769: p_error_text => lv_error_text,

Line 4780: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

4776: RAISE ex_critical_err;
4777:
4778: ELSIF (rec4.exception_date < rec1.calendar_start_date OR
4779: rec4.exception_date > rec1.calendar_end_date) THEN
4780: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
4781: (p_app_short_name => 'MSC',
4782: p_error_code => 'MSC_PP_EXCEP_DATE_INVALID',
4783: p_message_text => lv_message_text,
4784: p_error_text => lv_error_text);

Line 4792: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

4788: END IF;
4789: RAISE ex_critical_err;
4790:
4791: ELSIF rec4.exception_type NOT IN(1,2) THEN
4792: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
4793: (p_app_short_name => 'MSC',
4794: p_error_code => 'MSC_PP_INVALID_VALUE',
4795: p_message_text => lv_message_text,
4796: p_error_text => lv_error_text,

Line 4820: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

4816: EXECUTE IMMEDIATE lv_sql_stmt
4817: USING lv_transaction_id;
4818:
4819: IF SQL%NOTFOUND THEN
4820: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
4821: (p_app_short_name => 'MSC',
4822: p_error_code => 'MSC_PP_INVALID_VALUE',
4823: p_message_text => lv_message_text,
4824: p_error_text => lv_error_text,

Line 4847: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

4843:
4844: END IF;
4845:
4846: IF rec4.deleted_flag NOT IN(1,2) THEN
4847: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
4848: (p_app_short_name => 'MSC',
4849: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
4850: p_message_text => lv_message_text,
4851: p_error_text => lv_error_text,

Line 4861: lv_return := MSC_ST_UTIL.LOG_ERROR

4857: lv_where_str := ' AND st_transaction_id = '||lv_transaction_id;
4858:
4859: --Logging a warning for those records where the deleted_flag value
4860: --is other than Yes/No.
4861: lv_return := MSC_ST_UTIL.LOG_ERROR
4862: (p_table_name => 'MSC_ST_CALENDAR_EXCEPTIONS',
4863: p_instance_code => v_instance_code,
4864: p_row => lv_column_names,
4865: p_severity => G_SEV_WARNING,

Line 4897: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

4893: --validation for the table msc_st_shift_exceptions.
4894: --Added to fix the bug#2748859
4895:
4896: --Getting the error message text
4897: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
4898: (p_app_short_name => 'MSC',
4899: p_error_code => 'MSC_PP_DUP_REC_FOR_XML',
4900: p_message_text => lv_message_text,
4901: p_error_text => lv_error_text);

Line 4927: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

4923: AND mc1.sr_instance_code = v_instance_code
4924: AND NVL(mc1.message_id,NULL_VALUE) <> NULL_VALUE;
4925:
4926:
4927: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
4928: (p_app_short_name => 'MSC',
4929: p_error_code => 'MSC_PP_DUP_REC_FOR_BATCH_LOAD',
4930: p_message_text => lv_message_text,
4931: p_error_text => lv_error_text);

Line 4992: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

4988: created_by = v_current_user
4989: WHERE rowid = rec5.rowid;
4990:
4991: IF rec5.deleted_flag = SYS_YES THEN
4992: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
4993: (p_app_short_name => 'MSC',
4994: p_error_code => 'MSC_PP_NO_DELETION',
4995: p_message_text => lv_message_text,
4996: p_error_text => lv_error_text,

Line 5006: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

5002: END IF;
5003: RAISE ex_critical_err;
5004:
5005: ELSIF rec5.exception_date IS NULL THEN
5006: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
5007: (p_app_short_name => 'MSC',
5008: p_error_code => 'MSC_PP_COL_VAL_NULL',
5009: p_message_text => lv_message_text,
5010: p_error_text => lv_error_text,

Line 5021: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

5017: RAISE ex_critical_err;
5018:
5019: ELSIF (rec5.exception_date < rec1.calendar_start_date OR
5020: rec5.exception_date > rec1.calendar_end_date) THEN
5021: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
5022: (p_app_short_name => 'MSC',
5023: p_error_code => 'MSC_PP_EXCEP_DATE_INVALID',
5024: p_message_text => lv_message_text,
5025: p_error_text => lv_error_text);

Line 5033: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

5029: END IF;
5030: RAISE ex_critical_err;
5031:
5032: ELSIF rec5.exception_type NOT IN(1,2) THEN
5033: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
5034: (p_app_short_name => 'MSC',
5035: p_error_code => 'MSC_PP_INVALID_VALUE',
5036: p_message_text => lv_message_text,
5037: p_error_text => lv_error_text,

Line 5047: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

5043: END IF;
5044: RAISE ex_critical_err;
5045:
5046: ELSIF rec5.shift_name IS NULL THEN
5047: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
5048: (p_app_short_name => 'MSC',
5049: p_error_code => 'MSC_PP_COL_VAL_NULL',
5050: p_message_text => lv_message_text,
5051: p_error_text => lv_error_text,

Line 5076: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

5072: EXECUTE IMMEDIATE lv_sql_stmt
5073: USING lv_transaction_id;
5074:
5075: IF SQL%NOTFOUND THEN
5076: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
5077: (p_app_short_name => 'MSC',
5078: p_error_code => 'MSC_PP_INVALID_VALUE',
5079: p_message_text => lv_message_text,
5080: p_error_text => lv_error_text,

Line 5103: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

5099:
5100: END IF;
5101:
5102: IF rec5.deleted_flag NOT IN(1,2) THEN
5103: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
5104: (p_app_short_name => 'MSC',
5105: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
5106: p_message_text => lv_message_text,
5107: p_error_text => lv_error_text,

Line 5117: lv_return := MSC_ST_UTIL.LOG_ERROR

5113: lv_where_str := ' AND st_transaction_id = '||lv_transaction_id;
5114:
5115: --Logging a warning for those records where the deleted_flag value
5116: --is other than Yes/No.
5117: lv_return := MSC_ST_UTIL.LOG_ERROR
5118: (p_table_name => 'MSC_ST_SHIFT_EXCEPTIONS',
5119: p_instance_code => v_instance_code,
5120: p_row => lv_column_names,
5121: p_severity => G_SEV_WARNING,

Line 5151: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG

5147: END LOOP;
5148:
5149: lv_where_str :=
5150: ' AND calendar_code = '||''''||rec1.calendar_code||'''';
5151: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG
5152: (p_table_name => 'MSC_ST_CALENDARS',
5153: p_instance_id => v_instance_id,
5154: p_instance_code => v_instance_code,
5155: p_process_flag => G_VALID,

Line 5164: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG

5160: IF lv_return <> 0 THEN
5161: RAISE ex_logging_err;
5162: END IF;
5163:
5164: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG
5165: (p_table_name => 'MSC_ST_WORKDAY_PATTERNS',
5166: p_instance_id => v_instance_id,
5167: p_instance_code => v_instance_code,
5168: p_process_flag => G_VALID,

Line 5178: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG

5174: RAISE ex_logging_err;
5175: END IF;
5176:
5177:
5178: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG
5179: (p_table_name => 'MSC_ST_CALENDAR_SHIFTS',
5180: p_instance_id => v_instance_id,
5181: p_instance_code => v_instance_code,
5182: p_process_flag => G_VALID,

Line 5191: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG

5187: IF lv_return <> 0 THEN
5188: RAISE ex_logging_err;
5189: END IF;
5190:
5191: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG
5192: (p_table_name => 'MSC_ST_SHIFT_TIMES',
5193: p_instance_id => v_instance_id,
5194: p_instance_code => v_instance_code,
5195: p_process_flag => G_VALID,

Line 5204: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG

5200: IF lv_return <> 0 THEN
5201: RAISE ex_logging_err;
5202: END IF;
5203:
5204: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG
5205: (p_table_name => 'MSC_ST_CALENDAR_EXCEPTIONS',
5206: p_instance_id => v_instance_id,
5207: p_instance_code => v_instance_code,
5208: p_process_flag => G_VALID,

Line 5217: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG

5213: IF lv_return <> 0 THEN
5214: RAISE ex_logging_err;
5215: END IF;
5216:
5217: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG
5218: (p_table_name => 'MSC_ST_SHIFT_EXCEPTIONS',
5219: p_instance_id => v_instance_id,
5220: p_instance_code => v_instance_code,
5221: p_process_flag => G_VALID,

Line 5736: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

5732: AND batch_id = p_batch_id;
5733:
5734: BEGIN
5735:
5736: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
5737: (p_app_short_name => 'MSC',
5738: p_error_code => 'MSC_PP_DUP_REC_FOR_BATCH_LOAD',
5739: p_message_text => lv_message_text,
5740: p_error_text => lv_error_text);

Line 5858: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

5854: created_by = v_current_user
5855: WHERE rowid = lb_rowid(j);
5856:
5857:
5858: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
5859: (p_app_short_name => 'MSC',
5860: p_error_code => 'MSC_PP_NO_DELETION',
5861: p_message_text => lv_message_text,
5862: p_error_text => lv_error_text,

Line 5886: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

5882: USING lv_batch_id,
5883: v_instance_code;
5884:
5885:
5886: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
5887: (p_app_short_name => 'MSC',
5888: p_error_code => 'MSC_PP_COL_VAL_NULL',
5889: p_message_text => lv_message_text,
5890: p_error_text => lv_error_text,

Line 5921: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

5917: USING lv_batch_id,
5918: v_instance_code;
5919:
5920:
5921: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
5922: (p_app_short_name => 'MSC',
5923: p_error_code => 'MSC_PP_NO_UPDATION',
5924: p_message_text => lv_message_text,
5925: p_error_text => lv_error_text,

Line 5947: msc_st_util.log_message(lv_sql_stmt);

5943: ||' FROM msc_demand_classes msd'
5944: ||' WHERE mstd.demand_class = msd.demand_class'
5945: ||' AND msd.sr_instance_id = :v_instance_id)';
5946: IF V_DEBUG THEN
5947: msc_st_util.log_message(lv_sql_stmt);
5948: END IF;
5949:
5950: EXECUTE IMMEDIATE lv_sql_stmt
5951: USING lv_batch_id,

Line 5956: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

5952: v_instance_code,
5953: v_instance_id; */
5954:
5955:
5956: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
5957: (p_app_short_name => 'MSC',
5958: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
5959: p_message_text => lv_message_text,
5960: p_error_text => lv_error_text,

Line 5976: lv_return := MSC_ST_UTIL.LOG_ERROR

5972:
5973: lv_where_str := ' AND NVL(deleted_flag,'||NULL_VALUE||') '
5974: ||' NOT IN(1,2)';
5975:
5976: lv_return := MSC_ST_UTIL.LOG_ERROR
5977: (p_table_name => 'MSC_ST_DEMAND_CLASSES',
5978: p_instance_code => v_instance_code,
5979: p_row => lv_column_names,
5980: p_severity => G_SEV_WARNING,

Line 5993: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

5989: IF lv_return <> 0 THEN
5990: RAISE ex_logging_err;
5991: END IF;
5992:
5993: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
5994: (p_app_short_name => 'MSC',
5995: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
5996: p_message_text => lv_message_text,
5997: p_error_text => lv_error_text,

Line 6013: lv_return := MSC_ST_UTIL.LOG_ERROR

6009:
6010: lv_where_str := ' AND NVL(enabled_flag,'||NULL_VALUE||') '
6011: ||' NOT IN(1,2)';
6012:
6013: lv_return := MSC_ST_UTIL.LOG_ERROR
6014: (p_table_name => 'MSC_ST_DEMAND_CLASSES',
6015: p_instance_code => v_instance_code,
6016: p_row => lv_column_names,
6017: p_severity => G_SEV_WARNING,

Line 6030: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

6026: IF lv_return <> 0 THEN
6027: RAISE ex_logging_err;
6028: END IF;
6029:
6030: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
6031: (p_app_short_name => 'MSC',
6032: p_error_code => 'MSC_PP_INVALID_VALUE',
6033: p_message_text => lv_message_text,
6034: p_error_text => lv_error_text,

Line 6081: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG

6077: END IF;
6078:
6079:
6080: -- Set the process flag as Valid and populate instance_id
6081: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG
6082: (p_table_name => 'MSC_ST_DEMAND_CLASSES',
6083: p_instance_id => v_instance_id,
6084: p_instance_code => v_instance_code,
6085: p_process_flag => G_VALID,

Line 6097: lv_return := MSC_ST_UTIL.LOG_ERROR

6093:
6094: -- At the end calling the LOG_ERROR for logging all
6095: -- errored out records.
6096:
6097: lv_return := MSC_ST_UTIL.LOG_ERROR
6098: (p_table_name => 'MSC_ST_DEMAND_CLASSES',
6099: p_instance_code => v_instance_code,
6100: p_row => lv_column_names,
6101: p_severity => G_SEV_ERROR,

Line 6145: msc_st_util.log_message(lv_sql_stmt);

6141: ||' AND mstd.sr_instance_code = :v_instance_code'
6142: ||' AND mstd.process_flag = '||G_VALID ;
6143:
6144: IF V_DEBUG THEN
6145: msc_st_util.log_message(lv_sql_stmt);
6146: END IF;
6147:
6148: EXECUTE IMMEDIATE lv_sql_stmt
6149: USING lv_batch_id,

Line 6426: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

6422: GROUP BY location_code;
6423:
6424: BEGIN
6425:
6426: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
6427: (p_app_short_name => 'MSC',
6428: p_error_code => 'MSC_PP_DUP_REC_FOR_BATCH_LOAD',
6429: p_message_text => lv_message_text,
6430: p_error_text => lv_error_text);

Line 6525: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

6521: USING v_instance_code;
6522:
6523:
6524:
6525: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
6526: (p_app_short_name => 'MSC',
6527: p_error_code => 'MSC_PP_DUP_REC_FOR_XML',
6528: p_message_text => lv_message_text,
6529: p_error_text => lv_error_text);

Line 6664: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

6660: creation_date = v_current_date,
6661: created_by = v_current_user
6662: WHERE rowid = lb_rowid(j);
6663:
6664: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
6665: (p_app_short_name => 'MSC',
6666: p_error_code => 'MSC_PP_NO_DELETION',
6667: p_message_text => lv_message_text,
6668: p_error_text => lv_error_text,

Line 6691: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

6687: EXECUTE IMMEDIATE lv_sql_stmt
6688: USING lv_batch_id,
6689: v_instance_code;
6690:
6691: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
6692: (p_app_short_name => 'MSC',
6693: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
6694: p_message_text => lv_message_text,
6695: p_error_text => lv_error_text,

Line 6711: lv_return := MSC_ST_UTIL.LOG_ERROR

6707:
6708: lv_where_str := ' AND NVL(deleted_flag,'||NULL_VALUE||') '
6709: ||' NOT IN(1,2)';
6710:
6711: lv_return := MSC_ST_UTIL.LOG_ERROR
6712: (p_table_name => 'MSC_ST_TRADING_PARTNERS',
6713: p_instance_code => v_instance_code,
6714: p_row => lv_column_names,
6715: p_severity => G_SEV_WARNING,

Line 6728: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

6724: IF lv_return <> 0 THEN
6725: RAISE ex_logging_err;
6726: END IF;
6727:
6728: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
6729: (p_app_short_name => 'MSC',
6730: p_error_code => 'MSC_PP_COL_VAL_NULL',
6731: p_message_text => lv_message_text,
6732: p_error_text => lv_error_text,

Line 6760: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

6756: USING lv_batch_id,
6757: v_instance_code;
6758:
6759:
6760: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
6761: (p_app_short_name => 'MSC',
6762: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
6763: p_message_text => lv_message_text,
6764: p_error_text => lv_error_text,

Line 6791: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

6787: USING v_instance_code,
6788: lv_batch_id;
6789:
6790:
6791: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
6792: (p_app_short_name => 'MSC',
6793: p_error_code => 'MSC_PP_COL_VAL_NULL',
6794: p_message_text => lv_message_text,
6795: p_error_text => lv_error_text,

Line 6825: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

6821: lv_batch_id;
6822:
6823: --- changes for SRP
6824:
6825: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
6826: (p_app_short_name => 'MSC',
6827: p_error_code => 'MSC_PP_INVALID_VALUE',
6828: p_message_text => lv_message_text,
6829: p_error_text => lv_error_text,

Line 6876: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

6872: -- unless these belong to this company - to allow updation
6873: -- Bypass this check if it is SCE Standalone
6874:
6875: IF v_MSC_CONFIGURATION <> 3 THEN
6876: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
6877: (p_app_short_name => 'MSC',
6878: p_error_code => 'MSC_PP_INVALID_VALUE',
6879: p_message_text => lv_message_text,
6880: p_error_text => lv_error_text,

Line 6909: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

6905: AND nvl(mlis.char2, NULL_CHAR) = nvl(mstp.company_name,NULL_CHAR));
6906: END IF;
6907:
6908:
6909: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
6910: (p_app_short_name => 'MSC',
6911: p_error_code => 'MSC_PP_COL_VAL_NULL',
6912: p_message_text => lv_message_text,
6913: p_error_text => lv_error_text,

Line 6959: msc_st_util.log_message(lv_sql_stmt);

6955: ||' AND batch_id = :lv_batch_id'
6956: ||' AND process_flag = '||G_IN_PROCESS;
6957:
6958: IF V_DEBUG THEN
6959: msc_st_util.log_message(lv_sql_stmt);
6960: END IF;
6961: EXECUTE IMMEDIATE lv_sql_stmt
6962: USING v_instance_code,
6963: lv_batch_id; */

Line 6965: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

6961: EXECUTE IMMEDIATE lv_sql_stmt
6962: USING v_instance_code,
6963: lv_batch_id; */
6964:
6965: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
6966: (p_app_short_name => 'MSC',
6967: p_error_code => 'MSC_PP_COL_REF_NOT_EXIST',
6968: p_message_text => lv_message_text,
6969: p_error_text => lv_error_text,

Line 7004: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

7000: USING v_instance_id,
7001: v_instance_code,
7002: lv_batch_id;
7003:
7004: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
7005: (p_app_short_name => 'MSC',
7006: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
7007: p_message_text => lv_message_text,
7008: p_error_text => lv_error_text,

Line 7021: lv_return := MSC_ST_UTIL.LOG_ERROR

7017: lv_where_str :=
7018: ' AND calendar_exception_set_id <> -1 '
7019: ||' AND partner_type = '||G_ORGANIZATION ;
7020:
7021: lv_return := MSC_ST_UTIL.LOG_ERROR
7022: (p_table_name => 'MSC_ST_TRADING_PARTNERS',
7023: p_instance_code => v_instance_code,
7024: p_row => lv_column_names,
7025: p_severity => G_SEV_WARNING,

Line 7039: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

7035: RAISE ex_logging_err;
7036: END IF;
7037:
7038:
7039: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
7040: (p_app_short_name => 'MSC',
7041: p_error_code => 'MSC_PP_COL_REF_NOT_EXIST',
7042: p_message_text => lv_message_text,
7043: p_error_text => lv_error_text,

Line 7087: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

7083: USING v_instance_id,
7084: v_instance_code,
7085: lv_batch_id;
7086:
7087: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
7088: (p_app_short_name => 'MSC',
7089: p_error_code => 'MSC_PP_COL_REF_NOT_EXIST',
7090: p_message_text => lv_message_text,
7091: p_error_text => lv_error_text,

Line 7134: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

7130: v_instance_code,
7131: lv_batch_id;
7132:
7133:
7134: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
7135: (p_app_short_name => 'MSC',
7136: p_error_code => 'MSC_PP_INVALID_VALUE',
7137: p_message_text => lv_message_text,
7138: p_error_text => lv_error_text,

Line 7146: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

7142: IF lv_return <> 0 THEN
7143: RAISE ex_logging_err;
7144: END IF;
7145:
7146: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
7147: (p_app_short_name => 'MSC',
7148: p_error_code => 'MSC_PP_INVALID_VALUE',
7149: p_message_text => lv_message_text,
7150: p_error_text => lv_error_text,

Line 7163: MSC_ST_UTIL.VALIDATE_DMD_CLASS(p_table_name => 'MSC_ST_TRADING_PARTNERS',

7159: -- Validate Demand Class, if value provided it should exists
7160: -- in ODS or staging table
7161:
7162: lv_return :=
7163: MSC_ST_UTIL.VALIDATE_DMD_CLASS(p_table_name => 'MSC_ST_TRADING_PARTNERS',
7164: p_dmd_class_column => 'DEFAULT_DEMAND_CLASS',
7165: p_instance_id => v_instance_id,
7166: p_instance_code => v_instance_code,
7167: p_severity => G_SEV3_ERROR,

Line 7179: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

7175: end if;
7176:
7177:
7178: IF v_sce_installed THEN
7179: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
7180: (p_app_short_name => 'MSC',
7181: p_error_code => 'MSC_PP_INVALID_VALUE',
7182: p_message_text => lv_message_text,
7183: p_error_text => lv_error_text,

Line 7192: lv_return := MSC_ST_UTIL.DERIVE_COMPANY_ID

7188: RAISE ex_logging_err;
7189: END IF;
7190:
7191: --Derive company_id
7192: lv_return := MSC_ST_UTIL.DERIVE_COMPANY_ID
7193: (p_table_name => 'MSC_ST_TRADING_PARTNERS',
7194: p_company_name => 'COMPANY_NAME',
7195: p_company_id => 'COMPANY_ID',
7196: p_instance_code => v_instance_code,

Line 7243: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

7239: AND mscu.batch_id = lv_batch_id;
7240:
7241: -- Set the message
7242:
7243: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
7244: (p_app_short_name => 'MSC',
7245: p_error_code => 'MSC_PP_INVALID_VALUE',
7246: p_message_text => lv_message_text,
7247: p_error_text => lv_error_text,

Line 7266: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

7262:
7263: END IF;
7264: */
7265:
7266: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
7267: (p_app_short_name => 'MSC',
7268: p_error_code => 'MSC_PP_INVALID_VALUE',
7269: p_message_text => lv_message_text,
7270: p_error_text => lv_error_text,

Line 7279: lv_return :=msc_st_util.derive_partner_org_id

7275: RAISE ex_logging_err;
7276: END IF;
7277:
7278: -- Derive source_org_id
7279: lv_return :=msc_st_util.derive_partner_org_id
7280: (p_table_name => 'MSC_ST_TRADING_PARTNERS',
7281: p_org_partner_name => 'SOURCE_ORG_CODE',
7282: p_org_partner_id => 'SOURCE_ORG_ID',
7283: p_instance_code => v_instance_code,

Line 7297: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

7293: END IF;
7294: END IF; --v_msc_installed
7295:
7296: -- ssurendr - bug 2647423: check for partner name - org code mismatch with respect to ODS - begin.
7297: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
7298: (p_app_short_name => 'MSC',
7299: p_error_code => 'MSC_PP_INVALID_VALUE',
7300: p_message_text => lv_message_text,
7301: p_error_text => lv_error_text,

Line 7366: lv_return :=msc_st_util.derive_partner_org_id

7362: lv_batch_id;
7363: -- ssurendr - bug 2647423: check for partner name - org code mismatch with respect to ODS - end.
7364:
7365: -- Derive sr_tp_id(Organization)
7366: lv_return :=msc_st_util.derive_partner_org_id
7367: (p_table_name => 'MSC_ST_TRADING_PARTNERS',
7368: p_org_partner_name => 'ORGANIZATION_CODE',
7369: p_org_partner_id => 'SR_TP_ID',
7370: p_instance_code => v_instance_code,

Line 7381: lv_return :=msc_st_util.derive_partner_org_id

7377: RAISE ex_logging_err;
7378: END IF;
7379:
7380: -- Derive sr_tp_id(Customer)
7381: lv_return :=msc_st_util.derive_partner_org_id
7382: (p_table_name => 'MSC_ST_TRADING_PARTNERS',
7383: p_org_partner_name => 'PARTNER_NAME',
7384: p_org_partner_id => 'SR_TP_ID',
7385: p_instance_code => v_instance_code,

Line 7396: lv_return :=msc_st_util.derive_partner_org_id

7392: RAISE ex_logging_err;
7393: END IF;
7394:
7395: -- Derive sr_tp_id(Supplier).
7396: lv_return :=msc_st_util.derive_partner_org_id
7397: (p_table_name => 'MSC_ST_TRADING_PARTNERS',
7398: p_org_partner_name => 'PARTNER_NAME',
7399: p_org_partner_id => 'SR_TP_ID',
7400: p_instance_code => v_instance_code,

Line 7411: lv_return :=msc_st_util.derive_partner_org_id

7407: RAISE ex_logging_err;
7408: END IF;
7409:
7410: -- Derive sr_tp_id(Carrier).
7411: lv_return :=msc_st_util.derive_partner_org_id
7412: (p_table_name => 'MSC_ST_TRADING_PARTNERS',
7413: p_org_partner_name => 'PARTNER_NAME',
7414: p_org_partner_id => 'SR_TP_ID',
7415: p_instance_code => v_instance_code,

Line 7426: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

7422: RAISE ex_logging_err;
7423: END IF;
7424:
7425:
7426: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
7427: (p_app_short_name => 'MSC',
7428: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
7429: p_message_text => lv_message_text,
7430: p_error_text => lv_error_text,

Line 7447: lv_return := MSC_ST_UTIL.LOG_ERROR

7443: lv_where_str := ' AND NVL(INHERIT_OC_OP_SEQ_NUM,'||NULL_VALUE||') '
7444: ||' NOT IN(1,2)'
7445: ||' AND partner_type = '||G_ORGANIZATION ;
7446:
7447: lv_return := MSC_ST_UTIL.LOG_ERROR
7448: (p_table_name => 'MSC_ST_TRADING_PARTNERS',
7449: p_instance_code => v_instance_code,
7450: p_row => lv_column_names,
7451: p_severity => G_SEV_WARNING,

Line 7544: msc_st_util.log_message(lv_sql_stmt);

7540: ||' AND batch_id = :lv_batch_id'
7541: ||' AND process_flag = '||G_IN_PROCESS;
7542:
7543: IF V_DEBUG THEN
7544: msc_st_util.log_message(lv_sql_stmt);
7545: END IF;
7546: EXECUTE IMMEDIATE lv_sql_stmt
7547: USING v_instance_code,
7548: lv_batch_id; */

Line 7551: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG

7547: USING v_instance_code,
7548: lv_batch_id; */
7549:
7550: -- Set the process flag as Valid and populate instance_id
7551: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG
7552: (p_table_name => 'MSC_ST_TRADING_PARTNERS',
7553: p_instance_id => v_instance_id,
7554: p_instance_code => v_instance_code,
7555: p_process_flag => G_VALID,

Line 7567: lv_return := MSC_ST_UTIL.LOG_ERROR

7563:
7564: -- At the end calling the LOG_ERROR for logging all
7565: -- errored out records.
7566:
7567: lv_return := MSC_ST_UTIL.LOG_ERROR
7568: (p_table_name => 'MSC_ST_TRADING_PARTNERS',
7569: p_instance_code => v_instance_code,
7570: p_row => lv_column_names,
7571: p_severity => G_SEV_ERROR,

Line 7611: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

7607: END LOOP;
7608:
7609: --Validation for MSC_ST_TRADING_PARTNER_SITES
7610:
7611: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
7612: (p_app_short_name => 'MSC',
7613: p_error_code => 'MSC_PP_DUP_REC_FOR_BATCH_LOAD',
7614: p_message_text => lv_message_text,
7615: p_error_text => lv_error_text);

Line 7645: msc_st_util.log_message(lv_sql_stmt);

7641: ||' AND mstp1.sr_instance_code = :v_instance_code '
7642: ||' AND NVL(mstp1.message_id,'||NULL_VALUE||') = '||NULL_VALUE;
7643:
7644: IF V_DEBUG THEN
7645: msc_st_util.log_message(lv_sql_stmt);
7646: END IF;
7647:
7648: EXECUTE IMMEDIATE lv_sql_stmt
7649: USING v_instance_code;

Line 7713: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

7709:
7710:
7711: EXECUTE IMMEDIATE lv_sql_stmt
7712: USING v_instance_code;
7713: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
7714: (p_app_short_name => 'MSC',
7715: p_error_code => 'MSC_PP_DUP_REC_FOR_XML',
7716: p_message_text => lv_message_text,
7717: p_error_text => lv_error_text);

Line 7806: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

7802: creation_date = v_current_date,
7803: created_by = v_current_user
7804: WHERE rowid = lb_rowid(j);
7805:
7806: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
7807: (p_app_short_name => 'MSC',
7808: p_error_code => 'MSC_PP_NO_DELETION',
7809: p_message_text => lv_message_text,
7810: p_error_text => lv_error_text,

Line 7838: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

7834: USING lv_batch_id,
7835: v_instance_code;
7836:
7837:
7838: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
7839: (p_app_short_name => 'MSC',
7840: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
7841: p_message_text => lv_message_text,
7842: p_error_text => lv_error_text,

Line 7858: lv_return := MSC_ST_UTIL.LOG_ERROR

7854:
7855: lv_where_str := ' AND NVL(deleted_flag,'||NULL_VALUE||') '
7856: ||' NOT IN(1,2)';
7857:
7858: lv_return := MSC_ST_UTIL.LOG_ERROR
7859: (p_table_name => 'MSC_ST_TRADING_PARTNER_SITES',
7860: p_instance_code => v_instance_code,
7861: p_row => lv_column_names,
7862: p_severity => G_SEV_WARNING,

Line 7876: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

7872: IF lv_return <> 0 THEN
7873: RAISE ex_logging_err;
7874: END IF;
7875:
7876: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
7877: (p_app_short_name => 'MSC',
7878: p_error_code => 'MSC_PP_INVALID_VALUE',
7879: p_message_text => lv_message_text,
7880: p_error_text => lv_error_text,

Line 7911: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

7907: -- ODP changes , error out the record if only DP is installed
7908: -- then only partner_type = 2 (customer ) should come in
7909:
7910: IF (NOT v_install_msc) THEN
7911: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
7912: (p_app_short_name => 'MSC',
7913: p_error_code => 'MSC_PP_INVALID_VALUE',
7914: p_message_text => lv_message_text,
7915: p_error_text => lv_error_text,

Line 7945: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

7941: END IF ; --v_msc_install
7942:
7943:
7944:
7945: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
7946: (p_app_short_name => 'MSC',
7947: p_error_code => 'MSC_PP_COL_VAL_NULL',
7948: p_message_text => lv_message_text,
7949: p_error_text => lv_error_text,

Line 7982: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

7978: USING v_instance_code,
7979: lv_batch_id;
7980:
7981: IF (v_install_msc) THEN
7982: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
7983: (p_app_short_name => 'MSC',
7984: p_error_code => 'MSC_PP_COL_VAL_NULL',
7985: p_message_text => lv_message_text,
7986: p_error_text => lv_error_text,

Line 8018: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

8014: EXECUTE IMMEDIATE lv_sql_stmt
8015: USING v_instance_code,
8016: lv_batch_id;
8017:
8018: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
8019: (p_app_short_name => 'MSC',
8020: p_error_code => 'MSC_PP_INVALID_VALUE',
8021: p_message_text => lv_message_text,
8022: p_error_text => lv_error_text,

Line 8031: lv_return :=msc_st_util.derive_partner_org_id

8027: RAISE ex_logging_err;
8028: END IF;
8029:
8030: -- Update sr_tp_id(customer)
8031: lv_return :=msc_st_util.derive_partner_org_id
8032: (p_table_name =>'MSC_ST_TRADING_PARTNER_SITES',
8033: p_org_partner_name =>'PARTNER_NAME',
8034: p_org_partner_id =>'SR_TP_ID',
8035: p_instance_code => v_instance_code,

Line 8046: lv_return :=msc_st_util.derive_partner_org_id

8042: RAISE ex_logging_err;
8043: END IF;
8044:
8045: -- Update sr_tp_id(Organization)
8046: lv_return :=msc_st_util.derive_partner_org_id
8047: (p_table_name => 'MSC_ST_TRADING_PARTNER_SITES',
8048: p_org_partner_name => 'PARTNER_NAME',
8049: p_org_partner_id => 'SR_TP_ID',
8050: p_instance_code => v_instance_code,

Line 8062: lv_return :=msc_st_util.derive_partner_org_id

8058: END IF;
8059: END IF ; --v_install_msc
8060:
8061: -- Update sr_tp_id(supplier)
8062: lv_return :=msc_st_util.derive_partner_org_id
8063: (p_table_name =>'MSC_ST_TRADING_PARTNER_SITES',
8064: p_org_partner_name =>'PARTNER_NAME',
8065: p_org_partner_id =>'SR_TP_ID',
8066: p_instance_code => v_instance_code,

Line 8096: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

8092: EXECUTE IMMEDIATE lv_sql_stmt
8093: USING lv_batch_id,
8094: v_instance_code;
8095:
8096: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
8097: (p_app_short_name => 'MSC',
8098: p_error_code => 'MSC_PP_INVALID_VALUE',
8099: p_message_text => lv_message_text,
8100: p_error_text => lv_error_text,

Line 8109: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_SITE_ID

8105: RAISE ex_logging_err;
8106: END IF;
8107:
8108: -- Update sr_tp_site_id(Vendor)
8109: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_SITE_ID
8110: (p_table_name => 'MSC_ST_TRADING_PARTNER_SITES',
8111: p_partner_name => 'PARTNER_NAME',
8112: p_partner_site_code => 'TP_SITE_CODE',
8113: p_partner_site_id => 'SR_TP_SITE_ID',

Line 8127: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_SITE_ID

8123: END IF;
8124:
8125: IF(v_install_msc) THEN
8126: -- Update sr_tp_site_id(Customer)
8127: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_SITE_ID
8128: (p_table_name => 'MSC_ST_TRADING_PARTNER_SITES',
8129: p_partner_name => 'PARTNER_NAME',
8130: p_partner_site_code => 'TP_SITE_CODE',
8131: p_partner_site_id => 'SR_TP_SITE_ID',

Line 8190: msc_st_util.log_message(lv_sql_stmt);

8186: ||' WHERE mls.entity_name = ''LOCATION_ID'' '
8187: ||' AND mls.instance_id = :v_instance_id' ;
8188:
8189: IF V_DEBUG THEN
8190: msc_st_util.log_message(lv_sql_stmt);
8191: END IF;
8192:
8193: EXECUTE IMMEDIATE lv_sql_stmt
8194: USING lv_batch_id,

Line 8361: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG

8357:
8358:
8359:
8360: -- Set the process flag as Valid and poulate instance_id
8361: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG
8362: (p_table_name => 'MSC_ST_TRADING_PARTNER_SITES',
8363: p_instance_id => v_instance_id,
8364: p_instance_code => v_instance_code,
8365: p_process_flag => G_VALID,

Line 8376: lv_return := MSC_ST_UTIL.LOG_ERROR

8372: END IF;
8373:
8374: -- At the end calling the LOG_ERROR for logging all errored out records
8375:
8376: lv_return := MSC_ST_UTIL.LOG_ERROR
8377: (p_table_name => 'MSC_ST_TRADING_PARTNER_SITES',
8378: p_instance_code => v_instance_code,
8379: p_row => lv_column_names,
8380: p_severity => G_SEV_ERROR,

Line 8422: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

8418:
8419: --Validation for MSC_ST_SUB_INVENTORIES
8420:
8421:
8422: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
8423: (p_app_short_name => 'MSC',
8424: p_error_code => 'MSC_PP_DUP_REC_FOR_BATCH_LOAD',
8425: p_message_text => lv_message_text,
8426: p_error_text => lv_error_text);

Line 8459: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

8455: EXECUTE IMMEDIATE lv_sql_stmt
8456: USING v_instance_code;
8457:
8458:
8459: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
8460: (p_app_short_name => 'MSC',
8461: p_error_code => 'MSC_PP_DUP_REC_FOR_XML',
8462: p_message_text => lv_message_text,
8463: p_error_text => lv_error_text);

Line 8552: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

8548: created_by = v_current_user
8549: WHERE rowid = lb_rowid(j);
8550:
8551:
8552: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
8553: (p_app_short_name => 'MSC',
8554: p_error_code => 'MSC_PP_NO_DELETION',
8555: p_message_text => lv_message_text,
8556: p_error_text => lv_error_text,

Line 8583: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

8579: EXECUTE IMMEDIATE lv_sql_stmt
8580: USING lv_batch_id,
8581: v_instance_code;
8582:
8583: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
8584: (p_app_short_name => 'MSC',
8585: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
8586: p_message_text => lv_message_text,
8587: p_error_text => lv_error_text,

Line 8603: lv_return := MSC_ST_UTIL.LOG_ERROR

8599:
8600: lv_where_str := ' AND NVL(deleted_flag,'||NULL_VALUE||') '
8601: ||' NOT IN(1,2)';
8602:
8603: lv_return := MSC_ST_UTIL.LOG_ERROR
8604: (p_table_name => 'MSC_ST_SUB_INVENTORIES',
8605: p_instance_code => v_instance_code,
8606: p_row => lv_column_names,
8607: p_severity => G_SEV_WARNING,

Line 8620: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

8616: IF lv_return <> 0 THEN
8617: RAISE ex_logging_err;
8618: END IF;
8619:
8620: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
8621: (p_app_short_name => 'MSC',
8622: p_error_code => 'MSC_PP_COL_VAL_NULL',
8623: p_message_text => lv_message_text,
8624: p_error_text => lv_error_text,

Line 8651: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

8647: EXECUTE IMMEDIATE lv_sql_stmt
8648: USING v_instance_code,
8649: lv_batch_id;
8650:
8651: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
8652: (p_app_short_name => 'MSC',
8653: p_error_code => 'MSC_PP_INVALID_VALUE',
8654: p_message_text => lv_message_text,
8655: p_error_text => lv_error_text,

Line 8664: lv_return := msc_st_util.derive_partner_org_id

8660: RAISE ex_logging_err;
8661: END IF;
8662:
8663: -- Update organization_id
8664: lv_return := msc_st_util.derive_partner_org_id
8665: (p_table_name => 'MSC_ST_SUB_INVENTORIES',
8666: p_org_partner_name => 'ORGANIZATION_CODE',
8667: p_org_partner_id => 'ORGANIZATION_ID',
8668: p_instance_code => v_instance_code,

Line 8681: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

8677: if(lv_return <> 0) then
8678: RAISE ex_logging_err;
8679: end if;
8680:
8681: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
8682: (p_app_short_name => 'MSC',
8683: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
8684: p_message_text => lv_message_text,
8685: p_error_text => lv_error_text,

Line 8697: lv_return := MSC_ST_UTIL.LOG_ERROR

8693: END IF;
8694:
8695: -- Default netting_type as 2 if NOT IN (1,2)
8696: lv_where_str := ' AND nvl(netting_type,'||NULL_VALUE||') NOT IN (1,2)';
8697: lv_return := MSC_ST_UTIL.LOG_ERROR
8698: (p_table_name => 'MSC_ST_SUB_INVENTORIES',
8699: p_instance_code => v_instance_code,
8700: p_row => lv_column_names,
8701: p_severity => G_SEV_WARNING,

Line 8728: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG

8724: RAISE ex_logging_err;
8725: END IF;
8726:
8727: -- Set the processf flag as Valid and poulate instance_id
8728: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG
8729: (p_table_name => 'MSC_ST_SUB_INVENTORIES',
8730: p_instance_id => v_instance_id,
8731: p_instance_code => v_instance_code,
8732: p_process_flag => G_VALID,

Line 8743: lv_return := MSC_ST_UTIL.LOG_ERROR

8739: END IF;
8740:
8741: -- At the end calling the LOG_ERROR for logging all errored out records
8742:
8743: lv_return := MSC_ST_UTIL.LOG_ERROR
8744: (p_table_name =>'MSC_ST_SUB_INVENTORIES',
8745: p_instance_code =>v_instance_code,
8746: p_row =>lv_column_names,
8747: p_severity =>G_SEV_ERROR,

Line 8760: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

8756: COMMIT;
8757: END LOOP;
8758:
8759:
8760: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
8761: (p_app_short_name => 'MSC',
8762: p_error_code => 'MSC_PP_DUP_REC_FOR_BATCH_LOAD',
8763: p_message_text => lv_message_text,
8764: p_error_text => lv_error_text);

Line 8806: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

8802: EXECUTE IMMEDIATE lv_sql_stmt
8803: USING v_instance_code;
8804:
8805:
8806: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
8807: (p_app_short_name => 'MSC',
8808: p_error_code => 'MSC_PP_DUP_REC_FOR_XML',
8809: p_message_text => lv_message_text,
8810: p_error_text => lv_error_text);

Line 8895: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

8891: creation_date = v_current_date,
8892: created_by = v_current_user
8893: WHERE rowid = lb_rowid(j);
8894:
8895: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
8896: (p_app_short_name => 'MSC',
8897: p_error_code => 'MSC_PP_NO_DELETION',
8898: p_message_text => lv_message_text,
8899: p_error_text => lv_error_text,

Line 8922: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

8918: USING lv_batch_id,
8919: v_instance_code;
8920:
8921:
8922: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
8923: (p_app_short_name => 'MSC',
8924: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
8925: p_message_text => lv_message_text,
8926: p_error_text => lv_error_text,

Line 8942: lv_return := MSC_ST_UTIL.LOG_ERROR

8938:
8939: lv_where_str := ' AND NVL(deleted_flag,'||NULL_VALUE||') '
8940: ||' NOT IN(1,2)';
8941:
8942: lv_return := MSC_ST_UTIL.LOG_ERROR
8943: (p_table_name => 'MSC_ST_LOCATION_ASSOCIATIONS',
8944: p_instance_code => v_instance_code,
8945: p_row => lv_column_names,
8946: p_severity => G_SEV_WARNING,

Line 8959: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

8955: IF lv_return <> 0 THEN
8956: RAISE ex_logging_err;
8957: END IF;
8958:
8959: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
8960: (p_app_short_name => 'MSC',
8961: p_error_code => 'MSC_PP_COL_VAL_NULL',
8962: p_message_text => lv_message_text,
8963: p_error_text => lv_error_text,

Line 8995: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

8991: USING lv_batch_id,
8992: v_instance_code;
8993:
8994:
8995: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
8996: (p_app_short_name => 'MSC',
8997: p_error_code => 'MSC_PP_INVALID_VALUE',
8998: p_message_text => lv_message_text,
8999: p_error_text => lv_error_text,

Line 9024: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

9020: EXECUTE IMMEDIATE lv_sql_stmt
9021: USING v_instance_code,
9022: lv_batch_id;
9023:
9024: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
9025: (p_app_short_name => 'MSC',
9026: p_error_code => 'MSC_PP_INVALID_VALUE',
9027: p_message_text => lv_message_text,
9028: p_error_text => lv_error_text,

Line 9037: lv_return :=msc_st_util.derive_partner_org_id

9033: RAISE ex_logging_err;
9034: END IF;
9035:
9036: -- Update organization_id
9037: lv_return :=msc_st_util.derive_partner_org_id
9038: (p_table_name =>'MSC_ST_LOCATION_ASSOCIATIONS',
9039: p_org_partner_name =>'ORGANIZATION_CODE',
9040: p_org_partner_id =>'ORGANIZATION_ID',
9041: p_instance_code => v_instance_code,

Line 9074: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

9070:
9071:
9072:
9073:
9074: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
9075: (p_app_short_name => 'MSC',
9076: p_error_code => 'MSC_PP_INVALID_VALUE',
9077: p_message_text => lv_message_text,
9078: p_error_text => lv_error_text,

Line 9087: lv_return :=msc_st_util.derive_partner_org_id

9083: RAISE ex_logging_err;
9084: END IF;
9085:
9086: -- Update sr_tp_id(customer)
9087: lv_return :=msc_st_util.derive_partner_org_id
9088: (p_table_name =>'MSC_ST_LOCATION_ASSOCIATIONS',
9089: p_org_partner_name =>'PARTNER_NAME',
9090: p_org_partner_id =>'SR_TP_ID',
9091: p_instance_code => v_instance_code,

Line 9102: lv_return :=msc_st_util.derive_partner_org_id

9098: RAISE ex_logging_err;
9099: END IF;
9100:
9101: -- Update sr_tp_id(supplier)
9102: lv_return :=msc_st_util.derive_partner_org_id
9103: (p_table_name =>'MSC_ST_LOCATION_ASSOCIATIONS',
9104: p_org_partner_name =>'PARTNER_NAME',
9105: p_org_partner_id =>'SR_TP_ID',
9106: p_instance_code => v_instance_code,

Line 9119: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

9115: RAISE ex_logging_err;
9116: END IF;
9117:
9118:
9119: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
9120: (p_app_short_name => 'MSC',
9121: p_error_code => 'MSC_PP_INVALID_VALUE',
9122: p_message_text => lv_message_text,
9123: p_error_text => lv_error_text,

Line 9132: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_SITE_ID

9128: RAISE ex_logging_err;
9129: END IF;
9130:
9131: -- Derive sr_tp_site_id(Customer)
9132: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_SITE_ID
9133: (p_table_name => 'MSC_ST_LOCATION_ASSOCIATIONS',
9134: p_partner_name => 'PARTNER_NAME',
9135: p_partner_site_code => 'TP_SITE_CODE',
9136: p_partner_site_id => 'SR_TP_SITE_ID',

Line 9151: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_SITE_ID

9147: RAISE ex_logging_err;
9148: END IF;
9149:
9150: -- Derive sr_tp_site_id(Supplier)
9151: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_SITE_ID
9152: (p_table_name => 'MSC_ST_LOCATION_ASSOCIATIONS',
9153: p_partner_name => 'PARTNER_NAME',
9154: p_partner_site_code => 'TP_SITE_CODE',
9155: p_partner_site_id => 'SR_TP_SITE_ID',

Line 9191: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

9187: USING lv_batch_id,
9188: v_instance_code;
9189:
9190: /*
9191: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
9192: (p_app_short_name => 'MSC',
9193: p_error_code => 'MSC_PP_INVALID_VALUE',
9194: p_message_text => lv_message_text,
9195: p_error_text => lv_error_text,

Line 9215: msc_st_util.log_message(lv_sql_stmt);

9211: ||' AND process_flag = '||G_IN_PROCESS
9212: ||' AND sr_instance_code = :v_instance_code';
9213:
9214: IF V_DEBUG THEN
9215: msc_st_util.log_message(lv_sql_stmt);
9216: END IF;
9217: EXECUTE IMMEDIATE lv_sql_stmt
9218: USING lv_batch_id,
9219: v_instance_code;

Line 9331: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG

9327: v_instance_code;
9328:
9329:
9330: -- Set the process flag as Valid and populate instance_id
9331: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG
9332: (p_table_name => 'MSC_ST_LOCATION_ASSOCIATIONS',
9333: p_instance_id => v_instance_id,
9334: p_instance_code => v_instance_code,
9335: p_process_flag => G_VALID,

Line 9346: lv_return := MSC_ST_UTIL.LOG_ERROR

9342: END IF;
9343:
9344: -- At the end calling the LOG_ERROR for logging all
9345: -- errored out records.
9346: lv_return := MSC_ST_UTIL.LOG_ERROR
9347: (p_table_name => 'MSC_ST_LOCATION_ASSOCIATIONS',
9348: p_instance_code => v_instance_code,
9349: p_row => lv_column_names,
9350: p_severity => G_SEV_ERROR,

Line 9364: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

9360: COMMIT;
9361: END LOOP;
9362:
9363:
9364: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
9365: (p_app_short_name => 'MSC',
9366: p_error_code => 'MSC_PP_DUP_REC_FOR_BATCH_LOAD',
9367: p_message_text => lv_message_text,
9368: p_error_text => lv_error_text);

Line 9408: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

9404: EXECUTE IMMEDIATE lv_sql_stmt
9405: USING v_instance_code;
9406:
9407:
9408: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
9409: (p_app_short_name => 'MSC',
9410: p_error_code => 'MSC_PP_DUP_REC_FOR_XML',
9411: p_message_text => lv_message_text,
9412: p_error_text => lv_error_text);

Line 9499: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

9495: created_by = v_current_user
9496: WHERE rowid = lb_rowid(j);
9497:
9498: /*
9499: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
9500: (p_app_short_name => 'MSC',
9501: p_error_code => 'MSC_PP_NO_DELETION',
9502: p_message_text => lv_message_text,
9503: p_error_text => lv_error_text,

Line 9519: msc_st_util.log_message(lv_sql_stmt);

9515: ||' AND batch_id = :lv_batch_id'
9516: ||' AND sr_instance_code = :v_instance_code';
9517:
9518: IF V_DEBUG THEN
9519: msc_st_util.log_message(lv_sql_stmt);
9520: END IF;
9521:
9522: EXECUTE IMMEDIATE lv_sql_stmt
9523: USING lv_batch_id,

Line 9529: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

9525:
9526: */
9527:
9528:
9529: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
9530: (p_app_short_name => 'MSC',
9531: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
9532: p_message_text => lv_message_text,
9533: p_error_text => lv_error_text,

Line 9549: lv_return := MSC_ST_UTIL.LOG_ERROR

9545:
9546: lv_where_str := ' AND NVL(deleted_flag,'||NULL_VALUE||') '
9547: ||' NOT IN(1,2)';
9548:
9549: lv_return := MSC_ST_UTIL.LOG_ERROR
9550: (p_table_name => 'MSC_ST_PARTNER_CONTACTS',
9551: p_instance_code => v_instance_code,
9552: p_row => lv_column_names,
9553: p_severity => G_SEV_WARNING,

Line 9566: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

9562: IF lv_return <> 0 THEN
9563: RAISE ex_logging_err;
9564: END IF;
9565:
9566: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
9567: (p_app_short_name => 'MSC',
9568: p_error_code => 'MSC_PP_COL_VAL_NULL',
9569: p_message_text => lv_message_text,
9570: p_error_text => lv_error_text,

Line 9604: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

9600: USING lv_batch_id,
9601: v_instance_code;
9602:
9603:
9604: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
9605: (p_app_short_name => 'MSC',
9606: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
9607: p_message_text => lv_message_text,
9608: p_error_text => lv_error_text,

Line 9633: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

9629: EXECUTE IMMEDIATE lv_sql_stmt
9630: USING v_instance_code,
9631: lv_batch_id;
9632:
9633: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
9634: (p_app_short_name => 'MSC',
9635: p_error_code => 'MSC_PP_INVALID_VALUE',
9636: p_message_text => lv_message_text,
9637: p_error_text => lv_error_text,

Line 9646: lv_return :=msc_st_util.derive_partner_org_id

9642: RAISE ex_logging_err;
9643: END IF;
9644:
9645: -- Update sr_tp_id(customer)
9646: lv_return :=msc_st_util.derive_partner_org_id
9647: (p_table_name =>'MSC_ST_PARTNER_CONTACTS',
9648: p_org_partner_name =>'PARTNER_NAME',
9649: p_org_partner_id =>'PARTNER_ID',
9650: p_instance_code => v_instance_code,

Line 9661: lv_return :=msc_st_util.derive_partner_org_id

9657: RAISE ex_logging_err;
9658: END IF;
9659:
9660: -- Update sr_tp_id(supplier)
9661: lv_return :=msc_st_util.derive_partner_org_id
9662: (p_table_name =>'MSC_ST_PARTNER_CONTACTS',
9663: p_org_partner_name =>'PARTNER_NAME',
9664: p_org_partner_id =>'PARTNER_ID',
9665: p_instance_code => v_instance_code,

Line 9677: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

9673: IF lv_return <> 0 THEN
9674: RAISE ex_logging_err;
9675: END IF;
9676:
9677: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
9678: (p_app_short_name => 'MSC',
9679: p_error_code => 'MSC_PP_INVALID_VALUE',
9680: p_message_text => lv_message_text,
9681: p_error_text => lv_error_text,

Line 9690: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_SITE_ID

9686: RAISE ex_logging_err;
9687: END IF;
9688:
9689: -- Derive sr_tp_site_id(Customer)
9690: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_SITE_ID
9691: (p_table_name => 'MSC_ST_PARTNER_CONTACTS',
9692: p_partner_name => 'PARTNER_NAME',
9693: p_partner_site_code => 'TP_SITE_CODE',
9694: p_partner_site_id => 'PARTNER_SITE_ID',

Line 9707: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_SITE_ID

9703: RAISE ex_logging_err;
9704: END IF;
9705:
9706: -- Derive sr_tp_site_id(Supplier)
9707: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_SITE_ID
9708: (p_table_name => 'MSC_ST_PARTNER_CONTACTS',
9709: p_partner_name => 'PARTNER_NAME',
9710: p_partner_site_code => 'TP_SITE_CODE',
9711: p_partner_site_id => 'PARTNER_SITE_ID',

Line 9739: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG

9735: RAISE ex_logging_err;
9736: END IF;
9737:
9738: -- Set the process flag as Valid and populate instance_id
9739: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG
9740: (p_table_name => 'MSC_ST_PARTNER_CONTACTS',
9741: p_instance_id => v_instance_id,
9742: p_instance_code => v_instance_code,
9743: p_process_flag => G_VALID,

Line 9754: lv_return := MSC_ST_UTIL.LOG_ERROR

9750: END IF;
9751:
9752: -- At the end calling the LOG_ERROR for logging all
9753: -- errored out records.
9754: lv_return := MSC_ST_UTIL.LOG_ERROR
9755: (p_table_name => 'MSC_ST_PARTNER_CONTACTS',
9756: p_instance_code => v_instance_code,
9757: p_row => lv_column_names,
9758: p_severity => G_SEV_ERROR,

Line 9774: lv_return := MSC_ST_util.GET_ERROR_MESSAGE

9770:
9771:
9772: --Validation for GROUPS IS
9773:
9774: lv_return := MSC_ST_util.GET_ERROR_MESSAGE
9775: (p_app_short_name => 'MSC',
9776: p_error_code => 'MSC_PP_DUP_REC_FOR_XML',
9777: p_message_text => lv_message_text,
9778: p_error_text => lv_error_text);

Line 9805: lv_return := MSC_ST_util.GET_ERROR_MESSAGE

9801:
9802: EXECUTE IMMEDIATE lv_sql_stmt
9803: USING v_instance_code;
9804:
9805: lv_return := MSC_ST_util.GET_ERROR_MESSAGE
9806: (p_app_short_name => 'MSC',
9807: p_error_code => 'MSC_PP_DUP_REC_FOR_BATCH_LOAD',
9808: p_message_text => lv_message_text,
9809: p_error_text => lv_error_text);

Line 9910: lv_return := MSC_ST_util.GET_ERROR_MESSAGE

9906: created_by = v_current_user
9907: WHERE rowid = lb_rowid(j);
9908:
9909: -- Set the message
9910: lv_return := MSC_ST_util.GET_ERROR_MESSAGE
9911: (p_app_short_name => 'MSC',
9912: p_error_code => 'MSC_PP_NO_DELETION',
9913: p_message_text => lv_message_text,
9914: p_error_text => lv_error_text,

Line 9940: lv_return := MSC_ST_util.GET_ERROR_MESSAGE

9936: EXECUTE IMMEDIATE lv_sql_stmt USING lv_batch_id,v_instance_code;
9937:
9938: -- Set the message for deleted flag
9939:
9940: lv_return := MSC_ST_util.GET_ERROR_MESSAGE
9941: (p_app_short_name => 'MSC',
9942: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
9943: p_message_text => lv_message_text,
9944: p_error_text => lv_error_text,

Line 9960: lv_return := MSC_ST_util.LOG_ERROR

9956:
9957: lv_where_str :=
9958: ' AND NVL(deleted_flag,'||NULL_VALUE||') NOT IN(1,2)';
9959:
9960: lv_return := MSC_ST_util.LOG_ERROR
9961: (p_table_name => 'MSC_ST_GROUPS',
9962: p_instance_code => v_instance_code,
9963: p_row => lv_column_names,
9964: p_severity => G_SEV_WARNING,

Line 9979: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

9975: END IF;
9976:
9977: -- Set the error message for invalid group type
9978:
9979: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
9980: (p_app_short_name => 'MSC',
9981: p_error_code => 'MSC_PP_INVALID_VALUE',
9982: p_message_text => lv_message_text,
9983: p_error_text => lv_error_text,

Line 10018: MSC_ST_util.GET_ERROR_MESSAGE (p_app_short_name => 'MSC',

10014: -- 3.Contact Doc URL
10015: -- 4.Group Owner Id.
10016:
10017: lv_return :=
10018: MSC_ST_util.GET_ERROR_MESSAGE (p_app_short_name => 'MSC',
10019: p_error_code => 'MSC_PP_COL_VAL_NULL',
10020: p_message_text => lv_message_text,
10021: p_error_text => lv_error_text,
10022: p_token1 => 'COLUMN_NAME',

Line 10056: lv_return := MSC_ST_util.GET_ERROR_MESSAGE

10052: v_instance_code;
10053:
10054: -- Set the error message for DISABLE_DATE should be greater than EFFECTIVE_DATE
10055:
10056: lv_return := MSC_ST_util.GET_ERROR_MESSAGE
10057: (p_app_short_name => 'MSC',
10058: p_error_code => 'MSC_PP_END_GT_ST_DATE',
10059: p_message_text => lv_message_text,
10060: p_error_text => lv_error_text);

Line 10110: lv_return := MSC_ST_util.GET_ERROR_MESSAGE

10106:
10107:
10108: -- Error out the invalid Contact User Name
10109:
10110: lv_return := MSC_ST_util.GET_ERROR_MESSAGE
10111: (p_app_short_name => 'MSC',
10112: p_error_code => 'MSC_PP_INVALID_VALUE',
10113: p_message_text => lv_message_text,
10114: p_error_text => lv_error_text,

Line 10144: lv_return := MSC_ST_util.DERIVE_GROUP_ID

10140: v_instance_code;
10141:
10142: --DERIVE GROUP_ID
10143:
10144: lv_return := MSC_ST_util.DERIVE_GROUP_ID
10145: (p_table_name =>'MSC_ST_GROUPS',
10146: p_grp_col_name => 'GROUP_NAME',
10147: p_grp_col_id => 'GROUP_ID',
10148: p_instance_code => v_instance_code,

Line 10162: IF NOT MSC_ST_util.IS_OPERATOR(lv_user_id) THEN

10158: END IF;
10159:
10160: select fnd_global.user_id into lv_user_id from dual;
10161:
10162: IF NOT MSC_ST_util.IS_OPERATOR(lv_user_id) THEN
10163: lv_return := MSC_ST_util.GET_ERROR_MESSAGE
10164: (p_app_short_name => 'MSC',
10165: p_error_code => 'MSC_PP_INVALID_VALUE',
10166: p_message_text => lv_message_text,

Line 10163: lv_return := MSC_ST_util.GET_ERROR_MESSAGE

10159:
10160: select fnd_global.user_id into lv_user_id from dual;
10161:
10162: IF NOT MSC_ST_util.IS_OPERATOR(lv_user_id) THEN
10163: lv_return := MSC_ST_util.GET_ERROR_MESSAGE
10164: (p_app_short_name => 'MSC',
10165: p_error_code => 'MSC_PP_INVALID_VALUE',
10166: p_message_text => lv_message_text,
10167: p_error_text => lv_error_text,

Line 10257: lv_return := MSC_ST_util.SET_PROCESS_FLAG

10253:
10254:
10255: -- Set the process flag as Valid and derive sr_instance_id
10256:
10257: lv_return := MSC_ST_util.SET_PROCESS_FLAG
10258: (p_table_name => 'MSC_ST_GROUPS',
10259: p_instance_id => v_instance_id,
10260: p_instance_code => v_instance_code,
10261: p_process_flag => G_VALID,

Line 10272: lv_return := MSC_ST_util.LOG_ERROR

10268: END IF;
10269:
10270: -- Inserting all the errored out records into MSC_ERRORS
10271:
10272: lv_return := MSC_ST_util.LOG_ERROR
10273: (p_table_name => 'MSC_ST_GROUPS',
10274: p_instance_code => v_instance_code,
10275: p_row => lv_column_names,
10276: p_severity => G_SEV_ERROR,

Line 10440: lv_return := MSC_ST_util.GET_ERROR_MESSAGE

10436: END LOOP;
10437:
10438: --Validation for GROUP COMPANIES IS
10439:
10440: lv_return := MSC_ST_util.GET_ERROR_MESSAGE
10441: (p_app_short_name => 'MSC',
10442: p_error_code => 'MSC_PP_DUP_REC_FOR_XML',
10443: p_message_text => lv_message_text,
10444: p_error_text => lv_error_text);

Line 10472: lv_return := MSC_ST_util.GET_ERROR_MESSAGE

10468:
10469: EXECUTE IMMEDIATE lv_sql_stmt
10470: USING v_instance_code;
10471:
10472: lv_return := MSC_ST_util.GET_ERROR_MESSAGE
10473: (p_app_short_name => 'MSC',
10474: p_error_code => 'MSC_PP_DUP_REC_FOR_BATCH_LOAD',
10475: p_message_text => lv_message_text,
10476: p_error_text => lv_error_text);

Line 10578: lv_return := MSC_ST_util.GET_ERROR_MESSAGE

10574:
10575:
10576: -- Set the message for no deletion is allowed.
10577:
10578: lv_return := MSC_ST_util.GET_ERROR_MESSAGE
10579: (p_app_short_name => 'MSC',
10580: p_error_code => 'MSC_PP_NO_DELETION',
10581: p_message_text => lv_message_text,
10582: p_error_text => lv_error_text,

Line 10608: lv_return := MSC_ST_util.GET_ERROR_MESSAGE

10604: EXECUTE IMMEDIATE lv_sql_stmt USING lv_batch_id,v_instance_code;
10605:
10606: -- Set the message for deleted flag
10607:
10608: lv_return := MSC_ST_util.GET_ERROR_MESSAGE
10609: (p_app_short_name => 'MSC',
10610: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
10611: p_message_text => lv_message_text,
10612: p_error_text => lv_error_text,

Line 10628: lv_return := MSC_ST_util.LOG_ERROR

10624:
10625: lv_where_str :=
10626: ' AND NVL(deleted_flag,'||NULL_VALUE||') NOT IN(1,2)';
10627:
10628: lv_return := MSC_ST_util.LOG_ERROR
10629: (p_table_name => 'MSC_ST_GROUP_COMPANIES',
10630: p_instance_code => v_instance_code,
10631: p_row => lv_column_names,
10632: p_severity => G_SEV_WARNING,

Line 10647: MSC_ST_util.GET_ERROR_MESSAGE (p_app_short_name => 'MSC',

10643: END IF;
10644:
10645: -- Effective Date is a mandatory column in MSC_GROUP_COMPANIES , set error message
10646: lv_return :=
10647: MSC_ST_util.GET_ERROR_MESSAGE (p_app_short_name => 'MSC',
10648: p_error_code => 'MSC_PP_COL_VAL_NULL',
10649: p_message_text => lv_message_text,
10650: p_error_text => lv_error_text,
10651: p_token1 => 'COLUMN_NAME',

Line 10679: lv_return := MSC_ST_util.GET_ERROR_MESSAGE

10675: v_instance_code;
10676:
10677: -- Set the error message for DISABLE_DATE should be greater than EFFECTIVE_DATE
10678:
10679: lv_return := MSC_ST_util.GET_ERROR_MESSAGE
10680: (p_app_short_name => 'MSC',
10681: p_error_code => 'MSC_PP_END_GT_ST_DATE',
10682: p_message_text => lv_message_text,
10683: p_error_text => lv_error_text);

Line 10711: lv_return := MSC_ST_util.GET_ERROR_MESSAGE

10707: v_instance_code;
10708:
10709: --DERIVE GROUP_ID
10710:
10711: lv_return := MSC_ST_util.GET_ERROR_MESSAGE
10712: (p_app_short_name => 'MSC',
10713: p_error_code => 'MSC_PP_INVALID_VALUE',
10714: p_message_text => lv_message_text,
10715: p_error_text => lv_error_text,

Line 10720: lv_return := MSC_ST_util.DERIVE_GROUP_ID

10716: p_token1 => 'COLUMN_NAME',
10717: p_token_value1 => 'GROUP_NAME');
10718:
10719:
10720: lv_return := MSC_ST_util.DERIVE_GROUP_ID
10721: (p_table_name =>'MSC_ST_GROUP_COMPANIES',
10722: p_grp_col_name => 'GROUP_NAME',
10723: p_grp_col_id => 'GROUP_ID',
10724: p_instance_code => v_instance_code,

Line 10742: lv_return := MSC_ST_util.GET_ERROR_MESSAGE

10738: -- Only group owner or operator can update
10739:
10740: select fnd_global.user_id into lv_user_id from dual;
10741:
10742: lv_return := MSC_ST_util.GET_ERROR_MESSAGE
10743: (p_app_short_name => 'MSC',
10744: p_error_code => 'MSC_PP_INVALID_VALUE',
10745: p_message_text => lv_message_text,
10746: p_error_text => lv_error_text,

Line 10756: IF NOT MSC_ST_util.IS_OPERATOR(lv_user_id) THEN

10752: END IF;
10753:
10754: -- changes
10755:
10756: IF NOT MSC_ST_util.IS_OPERATOR(lv_user_id) THEN
10757:
10758: v_sql_stmt := 76;
10759: lv_sql_stmt :=
10760: 'UPDATE msc_st_group_companies msg'

Line 10806: lv_return := MSC_ST_util.GET_ERROR_MESSAGE

10802: lv_batch_id;
10803:
10804: -- Error out the invalid company Name
10805:
10806: lv_return := MSC_ST_util.GET_ERROR_MESSAGE
10807: (p_app_short_name => 'MSC',
10808: p_error_code => 'MSC_PP_INVALID_VALUE',
10809: p_message_text => lv_message_text,
10810: p_error_text => lv_error_text,

Line 10839: lv_return := MSC_ST_util.GET_ERROR_MESSAGE

10835: v_instance_code;
10836:
10837: -- Error out the invalid Contact User Name
10838:
10839: lv_return := MSC_ST_util.GET_ERROR_MESSAGE
10840: (p_app_short_name => 'MSC',
10841: p_error_code => 'MSC_PP_INVALID_VALUE',
10842: p_message_text => lv_message_text,
10843: p_error_text => lv_error_text,

Line 10863: lv_return := MSC_ST_util.GET_ERROR_MESSAGE

10859: ||' AND batch_id = :lv_batch_id'
10860: ||' AND sr_instance_code = :v_instance_code'
10861: ||' AND process_flag = '||G_IN_PROCESS;
10862:
10863: lv_return := MSC_ST_util.GET_ERROR_MESSAGE
10864: (p_app_short_name => 'MSC',
10865: p_error_code => 'MSC_PP_COL_REF_NOT_EXIST',
10866: p_message_text => lv_message_text,
10867: p_error_text => lv_error_text,

Line 10917: lv_return := MSC_ST_util.SET_PROCESS_FLAG

10913: END IF;
10914:
10915: -- Set the process flag as Valid and derive sr_instance_id
10916:
10917: lv_return := MSC_ST_util.SET_PROCESS_FLAG
10918: (p_table_name => 'MSC_ST_GROUP_COMPANIES',
10919: p_instance_id => v_instance_id,
10920: p_instance_code => v_instance_code,
10921: p_process_flag => G_VALID,

Line 10932: lv_return := MSC_ST_util.LOG_ERROR

10928: END IF;
10929:
10930: -- Inserting all the errored out records into MSC_ERRORS
10931:
10932: lv_return := MSC_ST_util.LOG_ERROR
10933: (p_table_name => 'MSC_ST_GROUP_COMPANIES',
10934: p_instance_code => v_instance_code,
10935: p_row => lv_column_names,
10936: p_severity => G_SEV_ERROR,

Line 11133: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

11129: AND sr_instance_code = v_instance_code;
11130:
11131: BEGIN
11132:
11133: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
11134: (p_app_short_name => 'MSC',
11135: p_error_code => 'MSC_PP_DUP_REC_FOR_XML',
11136: p_message_text => lv_message_text,
11137: p_error_text => lv_error_text);

Line 11182: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

11178:
11179: EXECUTE IMMEDIATE lv_sql_stmt
11180: USING v_instance_code;
11181:
11182: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
11183: (p_app_short_name => 'MSC',
11184: p_error_code => 'MSC_PP_DUP_REC_FOR_BATCH_LOAD',
11185: p_message_text => lv_message_text,
11186: p_error_text => lv_error_text);

Line 11285: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

11281: WHERE rowid = lb_rowid(j);
11282:
11283: -- set the error message
11284:
11285: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
11286: (p_app_short_name => 'MSC',
11287: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
11288: p_message_text => lv_message_text,
11289: p_error_text => lv_error_text,

Line 11304: lv_return := MSC_ST_UTIL.LOG_ERROR

11300: ' AND NVL(deleted_flag,'||NULL_VALUE||') '
11301: ||' NOT IN(1,2)';
11302: --Log a warning for those records where the deleted_flag has a value other
11303: --than SYS_NO
11304: lv_return := MSC_ST_UTIL.LOG_ERROR
11305: (p_table_name => 'MSC_ST_CALENDAR_ASSIGNMENTS',
11306: p_instance_code => v_instance_code,
11307: p_row => lv_column_names,
11308: p_severity => G_SEV_WARNING,

Line 11321: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

11317: IF lv_return <> 0 THEN
11318: RAISE ex_logging_err;
11319: END IF;
11320:
11321: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
11322: (p_app_short_name => 'MSC',
11323: p_error_code => 'MSC_PP_INVALID_VALUE',
11324: p_message_text => lv_message_text,
11325: p_error_text => lv_error_text,

Line 11351: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

11347: USING lv_batch_id,
11348: v_instance_code;
11349:
11350:
11351: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
11352: (p_app_short_name => 'MSC',
11353: p_error_code => 'MSC_PP_INVALID_VALUE',
11354: p_message_text => lv_message_text,
11355: p_error_text => lv_error_text,

Line 11383: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

11379: USING lv_batch_id,
11380: v_instance_code;
11381:
11382:
11383: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
11384: (p_app_short_name => 'MSC',
11385: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
11386: p_message_text => lv_message_text,
11387: p_error_text => lv_error_text,

Line 11412: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

11408: EXECUTE IMMEDIATE lv_sql_stmt
11409: USING v_instance_code,
11410: lv_batch_id;
11411:
11412: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
11413: (p_app_short_name => 'MSC',
11414: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
11415: p_message_text => lv_message_text,
11416: p_error_text => lv_error_text,

Line 11442: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

11438: USING v_instance_code,
11439: lv_batch_id;
11440:
11441:
11442: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
11443: (p_app_short_name => 'MSC',
11444: p_error_code => 'MSC_PP_COL_VAL_NULL',
11445: p_message_text => lv_message_text,
11446: p_error_text => lv_error_text,

Line 11477: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

11473: -- We need to check correct association_type is attached to that particular record.
11474: -- For example if association_type is CARRIER_VENDOR_SITE, then for that particular record partner_name, partner_site_code and carrier_code should not be null
11475:
11476:
11477: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
11478: (p_app_short_name => 'MSC',
11479: p_error_code => 'MSC_PP_INVAL_ASSO_COMB',
11480: p_message_text => lv_message_text,
11481: p_error_text => lv_error_text,

Line 11515: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

11511: lv_batch_id;
11512:
11513:
11514:
11515: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
11516: (p_app_short_name => 'MSC',
11517: p_error_code => 'MSC_PP_INVAL_ASSO_COMB',
11518: p_message_text => lv_message_text,
11519: p_error_text => lv_error_text,

Line 11550: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

11546: USING v_instance_code,
11547: lv_batch_id;
11548:
11549:
11550: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
11551: (p_app_short_name => 'MSC',
11552: p_error_code => 'MSC_PP_INVAL_ASSO_COMB',
11553: p_message_text => lv_message_text,
11554: p_error_text => lv_error_text,

Line 11584: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

11580: USING v_instance_code,
11581: lv_batch_id;
11582:
11583:
11584: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
11585: (p_app_short_name => 'MSC',
11586: p_error_code => 'MSC_PP_INVAL_ASSO_COMB',
11587: p_message_text => lv_message_text,
11588: p_error_text => lv_error_text,

Line 11618: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

11614: USING v_instance_code,
11615: lv_batch_id;
11616:
11617:
11618: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
11619: (p_app_short_name => 'MSC',
11620: p_error_code => 'MSC_PP_INVAL_ASSO_COMB',
11621: p_message_text => lv_message_text,
11622: p_error_text => lv_error_text,

Line 11657: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

11653: lv_batch_id;
11654:
11655:
11656:
11657: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
11658: (p_app_short_name => 'MSC',
11659: p_error_code => 'MSC_PP_COL_REF_NOT_EXIST',
11660: p_message_text => lv_message_text,
11661: p_error_text => lv_error_text,

Line 11695: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

11691:
11692:
11693: -- Derive partner_id (supplier)
11694:
11695: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
11696: (p_app_short_name => 'MSC',
11697: p_error_code => 'MSC_PP_INVALID_VALUE',
11698: p_message_text => lv_message_text,
11699: p_error_text => lv_error_text,

Line 11707: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID

11703: IF lv_return <> 0 THEN
11704: RAISE ex_logging_err;
11705: END IF;
11706:
11707: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID
11708: (p_table_name => 'MSC_ST_CALENDAR_ASSIGNMENTS',
11709: p_org_partner_name => 'PARTNER_NAME',
11710: p_org_partner_id => 'PARTNER_ID',
11711: p_instance_code => v_instance_code,

Line 11726: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

11722: END IF;
11723:
11724: -- Derive partner_id (Customer)
11725:
11726: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
11727: (p_app_short_name => 'MSC',
11728: p_error_code => 'MSC_PP_INVALID_VALUE',
11729: p_message_text => lv_message_text,
11730: p_error_text => lv_error_text,

Line 11738: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID

11734: IF lv_return <> 0 THEN
11735: RAISE ex_logging_err;
11736: END IF;
11737:
11738: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID
11739: (p_table_name => 'MSC_ST_CALENDAR_ASSIGNMENTS',
11740: p_org_partner_name => 'PARTNER_NAME',
11741: p_org_partner_id => 'PARTNER_ID',
11742: p_instance_code => v_instance_code,

Line 11755: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

11751: IF lv_return <> 0 THEN
11752: RAISE ex_logging_err;
11753: END IF;
11754:
11755: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
11756: (p_app_short_name => 'MSC',
11757: p_error_code => 'MSC_PP_INVALID_VALUE',
11758: p_message_text => lv_message_text,
11759: p_error_text => lv_error_text,

Line 11768: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID

11764: RAISE ex_logging_err;
11765: END IF;
11766:
11767: --Derive Organization_id
11768: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID
11769: (p_table_name => 'MSC_ST_CALENDAR_ASSIGNMENTS',
11770: p_org_partner_name => 'ORGANIZATION_CODE',
11771: p_org_partner_id => 'ORGANIZATION_ID',
11772: p_instance_code => v_instance_code,

Line 11787: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

11783: END IF;
11784:
11785: -- Derive carrier_partner_id (Carrier)
11786:
11787: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
11788: (p_app_short_name => 'MSC',
11789: p_error_code => 'MSC_PP_INVALID_VALUE',
11790: p_message_text => lv_message_text,
11791: p_error_text => lv_error_text,

Line 11799: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID

11795: IF lv_return <> 0 THEN
11796: RAISE ex_logging_err;
11797: END IF;
11798:
11799: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID
11800: (p_table_name => 'MSC_ST_CALENDAR_ASSIGNMENTS',
11801: p_org_partner_name => 'CARRIER_PARTNER_CODE',
11802: p_org_partner_id => 'CARRIER_PARTNER_ID',
11803: p_instance_code => v_instance_code,

Line 11816: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

11812: IF lv_return <> 0 THEN
11813: RAISE ex_logging_err;
11814: END IF;
11815:
11816: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
11817: (p_app_short_name => 'MSC',
11818: p_error_code => 'MSC_PP_INVALID_VALUE',
11819: p_message_text => lv_message_text,
11820: p_error_text => lv_error_text,

Line 11829: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_SITE_ID

11825: RAISE ex_logging_err;
11826: END IF;
11827:
11828: --Derive partner_site_id (Supplier)
11829: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_SITE_ID
11830: (p_table_name => 'MSC_ST_CALENDAR_ASSIGNMENTS',
11831: p_partner_name => 'PARTNER_NAME',
11832: p_partner_site_code => 'PARTNER_SITE_CODE',
11833: p_partner_site_id => 'PARTNER_SITE_ID',

Line 11847: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

11843: IF lv_return <> 0 THEN
11844: RAISE ex_logging_err;
11845: END IF;
11846:
11847: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
11848: (p_app_short_name => 'MSC',
11849: p_error_code => 'MSC_PP_INVALID_VALUE',
11850: p_message_text => lv_message_text,
11851: p_error_text => lv_error_text,

Line 11860: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_SITE_ID

11856: RAISE ex_logging_err;
11857: END IF;
11858:
11859: --Derive partner_site_id (Customer)
11860: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_SITE_ID
11861: (p_table_name => 'MSC_ST_CALENDAR_ASSIGNMENTS',
11862: p_partner_name => 'PARTNER_NAME',
11863: p_partner_site_code => 'PARTNER_SITE_CODE',
11864: p_partner_site_id => 'PARTNER_SITE_ID',

Line 11891: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG

11887: IF NVL(lv_return,0) <> 0 THEN
11888: RAISE ex_logging_err;
11889: END IF;
11890:
11891: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG
11892: (p_table_name => 'MSC_ST_CALENDAR_ASSIGNMENTS',
11893: p_instance_id => v_instance_id,
11894: p_instance_code => v_instance_code,
11895: p_process_flag => G_VALID,

Line 11904: lv_return := MSC_ST_UTIL.LOG_ERROR

11900: IF lv_return <> 0 THEN
11901: RAISE ex_logging_err;
11902: END IF;
11903:
11904: lv_return := MSC_ST_UTIL.LOG_ERROR
11905: (p_table_name => 'MSC_ST_CALENDAR_ASSIGNMENTS',
11906: p_instance_code => v_instance_code,
11907: p_row => lv_column_names,
11908: p_severity => G_SEV_ERROR,

Line 11987: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

11983: and x.process_flag = G_VALID;
11984:
11985: BEGIN
11986:
11987: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
11988: (p_app_short_name => 'MSC',
11989: p_error_code => 'MSC_PP_DUP_REC_FOR_XML',
11990: p_message_text => lv_message_text,
11991: p_error_text => lv_error_text);

Line 12023: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

12019:
12020: EXECUTE IMMEDIATE lv_sql_stmt
12021: USING v_instance_code;
12022:
12023: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
12024: (p_app_short_name => 'MSC',
12025: p_error_code => 'MSC_PP_DUP_REC_FOR_BATCH_LOAD',
12026: p_message_text => lv_message_text,
12027: p_error_text => lv_error_text);

Line 12114: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

12110: created_by = v_current_user
12111: WHERE rowid = lb_rowid(j);
12112:
12113: /* --Deletion is not allowed on this table.
12114: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
12115: (p_app_short_name => 'MSC',
12116: p_error_code => 'MSC_PP_NO_DELETION',
12117: p_message_text => lv_message_text,
12118: p_error_text => lv_error_text,

Line 12137: msc_st_util.log_message(lv_sql_stmt);

12133: ||' AND batch_id = :lv_batch_id'
12134: ||' AND sr_instance_code = :v_instance_code';
12135:
12136:
12137: msc_st_util.log_message(lv_sql_stmt);
12138: END IF;
12139:
12140: EXECUTE IMMEDIATE lv_sql_stmt
12141: USING lv_batch_id,

Line 12145: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

12141: USING lv_batch_id,
12142: v_instance_code;
12143: */
12144:
12145: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
12146: (p_app_short_name => 'MSC',
12147: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
12148: p_message_text => lv_message_text,
12149: p_error_text => lv_error_text,

Line 12164: lv_return := MSC_ST_UTIL.LOG_ERROR

12160: ' AND NVL(deleted_flag,'||NULL_VALUE||') '
12161: ||' NOT IN(1,2)';
12162: --Log a warning for those records where the deleted_flag has a value other
12163: --than SYS_NO
12164: lv_return := MSC_ST_UTIL.LOG_ERROR
12165: (p_table_name => 'MSC_ST_PLANNERS',
12166: p_instance_code => v_instance_code,
12167: p_row => lv_column_names,
12168: p_severity => G_SEV_WARNING,

Line 12181: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

12177: IF lv_return <> 0 THEN
12178: RAISE ex_logging_err;
12179: END IF;
12180:
12181: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
12182: (p_app_short_name => 'MSC',
12183: p_error_code => 'MSC_PP_COL_VAL_NULL',
12184: p_message_text => lv_message_text,
12185: p_error_text => lv_error_text,

Line 12211: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

12207: EXECUTE IMMEDIATE lv_sql_stmt
12208: USING lv_batch_id,
12209: v_instance_code;
12210:
12211: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
12212: (p_app_short_name => 'MSC',
12213: p_error_code => 'MSC_PP_INVALID_VALUE',
12214: p_message_text => lv_message_text,
12215: p_error_text => lv_error_text,

Line 12241: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

12237: USING lv_batch_id,
12238: v_instance_code;
12239:
12240:
12241: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
12242: (p_app_short_name => 'MSC',
12243: p_error_code => 'MSC_PP_INVALID_VALUE',
12244: p_message_text => lv_message_text,
12245: p_error_text => lv_error_text,

Line 12275: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

12271: v_instance_code;
12272:
12273: -- Set the message
12274:
12275: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
12276: (p_app_short_name => 'MSC',
12277: p_error_code => 'MSC_PP_INVALID_VALUE',
12278: p_message_text => lv_message_text,
12279: p_error_text => lv_error_text,

Line 12289: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID

12285: END IF;
12286:
12287: -- Derive organization_id
12288:
12289: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID
12290: (p_table_name => 'MSC_ST_PLANNERS',
12291: p_org_partner_name => 'ORGANIZATION_CODE',
12292: p_org_partner_id => 'ORGANIZATION_ID',
12293: p_instance_code => v_instance_code,

Line 12305: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

12301: IF lv_return <> 0 THEN
12302: RAISE ex_logging_err;
12303: END IF;
12304: /*
12305: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
12306: (p_app_short_name => 'MSC',
12307: p_error_code => 'MSC_PP_NO_UPDATION',
12308: p_message_text => lv_message_text,
12309: p_error_text => lv_error_text,

Line 12334: msc_st_util.log_message(lv_sql_stmt);

12330: ||' AND msp2.planner_code = msp1.planner_code'
12331: ||' AND msp2.sr_instance_id = ' ||v_instance_id ||')';
12332:
12333:
12334: msc_st_util.log_message(lv_sql_stmt);
12335: END IF;
12336:
12337: EXECUTE IMMEDIATE lv_sql_stmt
12338: USING lv_batch_id,

Line 12374: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG

12370: IF NVL(lv_return,0) <> 0 THEN
12371: RAISE ex_logging_err;
12372: END IF;
12373:
12374: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG
12375: (p_table_name => 'MSC_ST_PLANNERS',
12376: p_instance_id => v_instance_id,
12377: p_instance_code => v_instance_code,
12378: p_process_flag => G_VALID,

Line 12387: lv_return := MSC_ST_UTIL.LOG_ERROR

12383: IF lv_return <> 0 THEN
12384: RAISE ex_logging_err;
12385: END IF;
12386:
12387: lv_return := MSC_ST_UTIL.LOG_ERROR
12388: (p_table_name => 'MSC_ST_PLANNERS',
12389: p_instance_code => v_instance_code,
12390: p_row => lv_column_names,
12391: p_severity => G_SEV_ERROR,

Line 12544: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

12540: AND batch_id = p_batch_id;
12541:
12542: BEGIN
12543:
12544: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
12545: (p_app_short_name => 'MSC',
12546: p_error_code => 'MSC_PP_DUP_REC_FOR_BATCH_LOAD',
12547: p_message_text => lv_message_text,
12548: p_error_text => lv_error_text);

Line 12629: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

12625:
12626: EXECUTE IMMEDIATE lv_sql_stmt
12627: USING v_instance_code;
12628:
12629: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
12630: (p_app_short_name => 'MSC',
12631: p_error_code => 'MSC_PP_DUP_REC_FOR_XML',
12632: p_message_text => lv_message_text,
12633: p_error_text => lv_error_text);

Line 12769: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

12765: creation_date = v_current_date,
12766: created_by = v_current_user
12767: WHERE rowid = lb_rowid(j);
12768:
12769: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
12770: (p_app_short_name => 'MSC',
12771: p_error_code => 'MSC_PP_NO_DELETION',
12772: p_message_text => lv_message_text,
12773: p_error_text => lv_error_text,

Line 12798: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

12794: v_instance_code;
12795:
12796: -- set the message
12797:
12798: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
12799: (p_app_short_name => 'MSC',
12800: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
12801: p_message_text => lv_message_text,
12802: p_error_text => lv_error_text,

Line 12818: lv_return := MSC_ST_UTIL.LOG_ERROR

12814:
12815: lv_where_str := ' AND NVL(deleted_flag,'||NULL_VALUE||') '
12816: ||' NOT IN(1,2)';
12817:
12818: lv_return := MSC_ST_UTIL.LOG_ERROR
12819: (p_table_name => 'MSC_ST_INTERORG_SHIP_METHODS',
12820: p_instance_code => v_instance_code,
12821: p_row => lv_column_names,
12822: p_severity => G_SEV_WARNING,

Line 12835: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

12831: IF lv_return <> 0 THEN
12832: RAISE ex_logging_err;
12833: END IF;
12834:
12835: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
12836: (p_app_short_name => 'MSC',
12837: p_error_code => 'MSC_PP_COL_VAL_NULL',
12838: p_message_text => lv_message_text,
12839: p_error_text => lv_error_text,

Line 12867: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

12863: v_instance_code;
12864:
12865: -- Set the message
12866:
12867: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
12868: (p_app_short_name => 'MSC',
12869: p_error_code => 'MSC_PP_INVALID_VALUE',
12870: p_message_text => lv_message_text,
12871: p_error_text => lv_error_text,

Line 12881: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID

12877: END IF;
12878:
12879: -- Derive from_organization_id
12880:
12881: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID
12882: (p_table_name => 'MSC_ST_INTERORG_SHIP_METHODS',
12883: p_org_partner_name => 'FROM_ORGANIZATION_CODE',
12884: p_org_partner_id => 'FROM_ORGANIZATION_ID',
12885: p_instance_code => v_instance_code,

Line 12917: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

12913: v_instance_code;
12914:
12915: -- Set the message
12916:
12917: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
12918: (p_app_short_name => 'MSC',
12919: p_error_code => 'MSC_PP_INVALID_VALUE',
12920: p_message_text => lv_message_text,
12921: p_error_text => lv_error_text,

Line 12931: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID

12927: END IF;
12928:
12929: -- Derive to_organization_id
12930:
12931: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID
12932: (p_table_name => 'MSC_ST_INTERORG_SHIP_METHODS',
12933: p_org_partner_name => 'TO_ORGANIZATION_CODE',
12934: p_org_partner_id => 'TO_ORGANIZATION_ID',
12935: p_instance_code => v_instance_code,

Line 13011: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

13007:
13008:
13009: -- if from or to location code was provided, error out if doesn't exists in local id.
13010:
13011: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
13012: (p_app_short_name => 'MSC',
13013: p_error_code => 'MSC_PP_INVALID_VALUE',
13014: p_message_text => lv_message_text,
13015: p_error_text => lv_error_text,

Line 13044: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

13040: USING lv_batch_id,
13041: v_instance_code;
13042:
13043:
13044: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
13045: (p_app_short_name => 'MSC',
13046: p_error_code => 'MSC_PP_INVALID_VALUE',
13047: p_message_text => lv_message_text,
13048: p_error_text => lv_error_text,

Line 13195: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

13191: -- records should either have organization id's populated or location id's populated or both.
13192:
13193: -- Set the message
13194:
13195: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
13196: (p_app_short_name => 'MSC',
13197: p_error_code => 'MSC_PP_INVALID_VALUE',
13198: p_message_text => lv_message_text,
13199: p_error_text => lv_error_text,

Line 13234: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

13230: v_instance_code;
13231:
13232:
13233: -- Set the message
13234: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
13235: (p_app_short_name => 'MSC',
13236: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
13237: p_message_text => lv_message_text,
13238: p_error_text => lv_error_text,

Line 13248: lv_return := MSC_ST_UTIL.LOG_ERROR

13244:
13245: lv_where_str := ' AND NVL(default_flag,'||NULL_VALUE||') '
13246: ||' NOT IN(1,2)';
13247:
13248: lv_return := MSC_ST_UTIL.LOG_ERROR
13249: (p_table_name => 'MSC_ST_INTERORG_SHIP_METHODS',
13250: p_instance_code => v_instance_code,
13251: p_row => lv_column_names,
13252: p_severity => G_SEV_WARNING,

Line 13266: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

13262: RAISE ex_logging_err;
13263: END IF;
13264:
13265:
13266: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
13267: (p_app_short_name => 'MSC',
13268: p_error_code => 'MSC_PP_DEFAULT_SHIP_METHOD',
13269: p_message_text => lv_message_text,
13270: p_error_text => lv_error_text,

Line 13338: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

13334: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_id,
13335: lv_batch_id,
13336: v_instance_code;
13337:
13338: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
13339: (p_app_short_name => 'MSC',
13340: p_error_code => 'MSC_PP_INVALID_VALUE',
13341: p_message_text => lv_message_text,
13342: p_error_text => lv_error_text,

Line 13353: MSC_ST_UTIL.VALIDATE_UOM (p_table_name => 'MSC_ST_INTERORG_SHIP_METHODS',

13349:
13350: -- Validate Volume UOM
13351:
13352: lv_return :=
13353: MSC_ST_UTIL.VALIDATE_UOM (p_table_name => 'MSC_ST_INTERORG_SHIP_METHODS',
13354: p_uom_col_name => 'VOLUME_UOM',
13355: p_instance_id => v_instance_id,
13356: p_instance_code => v_instance_code,
13357: p_severity => G_SEV3_ERROR,

Line 13367: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

13363: if(lv_return <> 0) then
13364: RAISE ex_logging_err;
13365: end if;
13366:
13367: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
13368: (p_app_short_name => 'MSC',
13369: p_error_code => 'MSC_PP_INVALID_VALUE',
13370: p_message_text => lv_message_text,
13371: p_error_text => lv_error_text,

Line 13382: MSC_ST_UTIL.VALIDATE_UOM (p_table_name => 'MSC_ST_INTERORG_SHIP_METHODS',

13378:
13379: -- Validate Weight UOM
13380:
13381: lv_return :=
13382: MSC_ST_UTIL.VALIDATE_UOM (p_table_name => 'MSC_ST_INTERORG_SHIP_METHODS',
13383: p_uom_col_name => 'WEIGHT_UOM',
13384: p_instance_id => v_instance_id,
13385: p_instance_code => v_instance_code,
13386: p_severity => G_SEV3_ERROR,

Line 13411: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG

13407: RAISE ex_logging_err;
13408: END IF;
13409:
13410:
13411: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG
13412: (p_table_name => 'MSC_ST_INTERORG_SHIP_METHODS',
13413: p_instance_id => v_instance_id,
13414: p_instance_code => v_instance_code,
13415: p_process_flag => G_VALID,

Line 13438: lv_return := MSC_ST_UTIL.LOG_ERROR

13434:
13435:
13436: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
13437:
13438: lv_return := MSC_ST_UTIL.LOG_ERROR
13439: (p_table_name => 'MSC_ST_INTERORG_SHIP_METHODS',
13440: p_instance_code => v_instance_code,
13441: p_row => lv_column_names,
13442: p_severity => G_SEV_ERROR,

Line 13552: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

13548:
13549: BEGIN
13550:
13551: --Getting the error message text
13552: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
13553: (p_app_short_name => 'MSC',
13554: p_error_code => 'MSC_PP_DUP_REC_FOR_XML',
13555: p_message_text => lv_message_text,
13556: p_error_text => lv_error_text);

Line 13628: msc_st_util.log_message(lv_sql_stmt);

13624: ||' AND msr1.region_type in (10,11) '
13625: ||' AND NVL(msr1.message_id,'||NULL_VALUE||') <> '||NULL_VALUE;
13626:
13627: IF V_DEBUG THEN
13628: msc_st_util.log_message(lv_sql_stmt);
13629: END IF;
13630:
13631: EXECUTE IMMEDIATE lv_sql_stmt
13632: USING v_instance_code; */

Line 13635: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

13631: EXECUTE IMMEDIATE lv_sql_stmt
13632: USING v_instance_code; */
13633:
13634:
13635: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
13636: (p_app_short_name => 'MSC',
13637: p_error_code => 'MSC_PP_DUP_REC_FOR_BATCH_LOAD',
13638: p_message_text => lv_message_text,
13639: p_error_text => lv_error_text);

Line 13751: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

13747: creation_date = v_current_date,
13748: created_by = v_current_user
13749: WHERE rowid = lb_rowid(j);
13750:
13751: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
13752: (p_app_short_name => 'MSC',
13753: p_error_code => 'MSC_PP_NO_DELETION',
13754: p_message_text => lv_message_text,
13755: p_error_text => lv_error_text,

Line 13781: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

13777: v_instance_code;
13778:
13779: -- set the message
13780:
13781: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
13782: (p_app_short_name => 'MSC',
13783: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
13784: p_message_text => lv_message_text,
13785: p_error_text => lv_error_text,

Line 13801: lv_return := MSC_ST_UTIL.LOG_ERROR

13797:
13798: lv_where_str := ' AND NVL(deleted_flag,'||NULL_VALUE||') '
13799: ||' NOT IN(1,2)';
13800:
13801: lv_return := MSC_ST_UTIL.LOG_ERROR
13802: (p_table_name => 'MSC_ST_REGIONS',
13803: p_instance_code => v_instance_code,
13804: p_row => lv_column_names,
13805: p_severity => G_SEV_WARNING,

Line 13819: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

13815: RAISE ex_logging_err;
13816: END IF;
13817:
13818:
13819: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
13820: (p_app_short_name => 'MSC',
13821: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
13822: p_message_text => lv_message_text,
13823: p_error_text => lv_error_text,

Line 13863: /* lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

13859:
13860:
13861: -- write message text here
13862:
13863: /* lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
13864: (p_app_short_name => 'MSC',
13865: p_error_code => 'MSC_PP_POSTAL_CODE_OVERLAP',
13866: p_message_text => lv_message_text,
13867: p_error_text => lv_error_text);

Line 13910: msc_st_util.log_message(lv_sql_stmt);

13906: ||' AND msr1.region_type in (0,1,2,3) ';
13907:
13908:
13909:
13910: msc_st_util.log_message(lv_sql_stmt);
13911:
13912:
13913: EXECUTE IMMEDIATE lv_sql_stmt
13914: USING v_instance_code;

Line 13958: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

13954: USING lv_batch_id,
13955: v_instance_code;
13956:
13957:
13958: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
13959: (p_app_short_name => 'MSC',
13960: p_error_code => 'MSC_PP_NO_UPDATION',
13961: p_message_text => lv_message_text,
13962: p_error_text => lv_error_text,

Line 14097: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG

14093:
14094:
14095: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code, lv_batch_id;
14096:
14097: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG
14098: (p_table_name => 'MSC_ST_REGIONS',
14099: p_instance_id => v_instance_id,
14100: p_instance_code => v_instance_code,
14101: p_process_flag => G_VALID,

Line 14109: lv_return := MSC_ST_UTIL.LOG_ERROR

14105: IF lv_return <> 0 THEN
14106: RAISE ex_logging_err;
14107: END IF;
14108:
14109: lv_return := MSC_ST_UTIL.LOG_ERROR
14110: (p_table_name => 'MSC_ST_REGIONS',
14111: p_instance_code => v_instance_code,
14112: p_row => lv_column_names,
14113: p_severity => G_SEV_ERROR,

Line 14208: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

14204:
14205: -- Validation for Zone Regions
14206:
14207: --Getting the error message text
14208: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
14209: (p_app_short_name => 'MSC',
14210: p_error_code => 'MSC_PP_DUP_REC_FOR_XML',
14211: p_message_text => lv_message_text,
14212: p_error_text => lv_error_text);

Line 14256: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

14252:
14253: EXECUTE IMMEDIATE lv_sql_stmt
14254: USING v_instance_code;
14255:
14256: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
14257: (p_app_short_name => 'MSC',
14258: p_error_code => 'MSC_PP_DUP_REC_FOR_BATCH_LOAD',
14259: p_message_text => lv_message_text,
14260: p_error_text => lv_error_text);

Line 14359: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

14355: creation_date = v_current_date,
14356: created_by = v_current_user
14357: WHERE rowid = lb_rowid(j);
14358:
14359: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
14360: (p_app_short_name => 'MSC',
14361: p_error_code => 'MSC_PP_NO_DELETION',
14362: p_message_text => lv_message_text,
14363: p_error_text => lv_error_text,

Line 14388: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

14384: v_instance_code;
14385:
14386: -- set the message
14387:
14388: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
14389: (p_app_short_name => 'MSC',
14390: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
14391: p_message_text => lv_message_text,
14392: p_error_text => lv_error_text,

Line 14408: lv_return := MSC_ST_UTIL.LOG_ERROR

14404:
14405: lv_where_str := ' AND NVL(deleted_flag,'||NULL_VALUE||') '
14406: ||' NOT IN(1,2)';
14407:
14408: lv_return := MSC_ST_UTIL.LOG_ERROR
14409: (p_table_name => 'MSC_ST_ZONE_REGIONS',
14410: p_instance_code => v_instance_code,
14411: p_row => lv_column_names,
14412: p_severity => G_SEV_WARNING,

Line 14425: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

14421: IF lv_return <> 0 THEN
14422: RAISE ex_logging_err;
14423: END IF;
14424:
14425: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
14426: (p_app_short_name => 'MSC',
14427: p_error_code => 'MSC_PP_COL_VAL_NULL',
14428: p_message_text => lv_message_text,
14429: p_error_text => lv_error_text,

Line 14497: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

14493: EXECUTE IMMEDIATE lv_sql_stmt
14494: USING lv_batch_id,
14495: v_instance_code;
14496:
14497: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
14498: (p_app_short_name => 'MSC',
14499: p_error_code => 'MSC_PP_COL_VAL_NULL',
14500: p_message_text => lv_message_text,
14501: p_error_text => lv_error_text,

Line 14548: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

14544: EXECUTE IMMEDIATE lv_sql_stmt
14545: USING lv_batch_id,
14546: v_instance_code;
14547:
14548: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
14549: (p_app_short_name => 'MSC',
14550: p_error_code => 'MSC_PP_COL_VAL_NULL',
14551: p_message_text => lv_message_text,
14552: p_error_text => lv_error_text,

Line 14706: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG

14702:
14703: END IF;
14704: CLOSE c5 ;
14705:
14706: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG
14707: (p_table_name => 'MSC_ST_ZONE_REGIONS',
14708: p_instance_id => v_instance_id,
14709: p_instance_code => v_instance_code,
14710: p_process_flag => G_VALID,

Line 14718: lv_return := MSC_ST_UTIL.LOG_ERROR

14714: IF lv_return <> 0 THEN
14715: RAISE ex_logging_err;
14716: END IF;
14717:
14718: lv_return := MSC_ST_UTIL.LOG_ERROR
14719: (p_table_name => 'MSC_ST_ZONE_REGIONS',
14720: p_instance_code => v_instance_code,
14721: p_row => lv_column_names,
14722: p_severity => G_SEV_ERROR,

Line 14776: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

14772:
14773: -- validation for Region Locations
14774:
14775: --Getting the error message text
14776: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
14777: (p_app_short_name => 'MSC',
14778: p_error_code => 'MSC_PP_DUP_REC_FOR_XML',
14779: p_message_text => lv_message_text,
14780: p_error_text => lv_error_text);

Line 14829: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

14825: EXECUTE IMMEDIATE lv_sql_stmt
14826: USING v_instance_code;
14827:
14828:
14829: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
14830: (p_app_short_name => 'MSC',
14831: p_error_code => 'MSC_PP_DUP_REC_FOR_BATCH_LOAD',
14832: p_message_text => lv_message_text,
14833: p_error_text => lv_error_text);

Line 14942: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

14938: creation_date = v_current_date,
14939: created_by = v_current_user
14940: WHERE rowid = lb_rowid(j);
14941:
14942: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
14943: (p_app_short_name => 'MSC',
14944: p_error_code => 'MSC_PP_NO_DELETION',
14945: p_message_text => lv_message_text,
14946: p_error_text => lv_error_text,

Line 14971: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

14967: v_instance_code;
14968:
14969: -- set the message
14970:
14971: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
14972: (p_app_short_name => 'MSC',
14973: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
14974: p_message_text => lv_message_text,
14975: p_error_text => lv_error_text,

Line 14991: lv_return := MSC_ST_UTIL.LOG_ERROR

14987:
14988: lv_where_str := ' AND NVL(deleted_flag,'||NULL_VALUE||') '
14989: ||' NOT IN(1,2)';
14990:
14991: lv_return := MSC_ST_UTIL.LOG_ERROR
14992: (p_table_name => 'MSC_ST_REGION_LOCATIONS',
14993: p_instance_code => v_instance_code,
14994: p_row => lv_column_names,
14995: p_severity => G_SEV_WARNING,

Line 15008: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

15004: IF lv_return <> 0 THEN
15005: RAISE ex_logging_err;
15006: END IF;
15007:
15008: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
15009: (p_app_short_name => 'MSC',
15010: p_error_code => 'MSC_PP_COL_VAL_NULL',
15011: p_message_text => lv_message_text,
15012: p_error_text => lv_error_text,

Line 15098: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

15094: USING lv_batch_id,
15095: v_instance_code;
15096:
15097:
15098: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
15099: (p_app_short_name => 'MSC',
15100: p_error_code => 'MSC_PP_NO_UPDATION',
15101: p_message_text => lv_message_text,
15102: p_error_text => lv_error_text,

Line 15204: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG

15200: USING lv_batch_id,
15201: v_instance_code;
15202:
15203: -- Set the process flag as Valid and populate instance_id
15204: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG
15205: (p_table_name => 'MSC_ST_REGION_LOCATIONS',
15206: p_instance_id => v_instance_id,
15207: p_instance_code => v_instance_code,
15208: p_process_flag => G_VALID,

Line 15219: lv_return := MSC_ST_UTIL.LOG_ERROR

15215: END IF;
15216:
15217: -- At the end calling the LOG_ERROR for logging all
15218: -- errored out records.
15219: lv_return := MSC_ST_UTIL.LOG_ERROR
15220: (p_table_name => 'MSC_ST_REGION_LOCATIONS',
15221: p_instance_code => v_instance_code,
15222: p_row => lv_column_names,
15223: p_severity => G_SEV_ERROR,

Line 15279: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

15275:
15276: -- validation for region sites
15277:
15278: --Getting the error message text
15279: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
15280: (p_app_short_name => 'MSC',
15281: p_error_code => 'MSC_PP_DUP_REC_FOR_XML',
15282: p_message_text => lv_message_text,
15283: p_error_text => lv_error_text);

Line 15332: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

15328:
15329: EXECUTE IMMEDIATE lv_sql_stmt
15330: USING v_instance_code;
15331:
15332: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
15333: (p_app_short_name => 'MSC',
15334: p_error_code => 'MSC_PP_DUP_REC_FOR_BATCH_LOAD',
15335: p_message_text => lv_message_text,
15336: p_error_text => lv_error_text);

Line 15445: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

15441: creation_date = v_current_date,
15442: created_by = v_current_user
15443: WHERE rowid = lb_rowid(j);
15444:
15445: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
15446: (p_app_short_name => 'MSC',
15447: p_error_code => 'MSC_PP_NO_DELETION',
15448: p_message_text => lv_message_text,
15449: p_error_text => lv_error_text,

Line 15474: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

15470: v_instance_code;
15471:
15472: -- set the message
15473:
15474: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
15475: (p_app_short_name => 'MSC',
15476: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
15477: p_message_text => lv_message_text,
15478: p_error_text => lv_error_text,

Line 15494: lv_return := MSC_ST_UTIL.LOG_ERROR

15490:
15491: lv_where_str := ' AND NVL(deleted_flag,'||NULL_VALUE||') '
15492: ||' NOT IN(1,2)';
15493:
15494: lv_return := MSC_ST_UTIL.LOG_ERROR
15495: (p_table_name => 'MSC_ST_REGION_SITES',
15496: p_instance_code => v_instance_code,
15497: p_row => lv_column_names,
15498: p_severity => G_SEV_WARNING,

Line 15548: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

15544: EXECUTE IMMEDIATE lv_sql_stmt
15545: USING lv_batch_id,
15546: v_instance_code;
15547:
15548: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
15549: (p_app_short_name => 'MSC',
15550: p_error_code => 'MSC_PP_INVALID_VALUE',
15551: p_message_text => lv_message_text,
15552: p_error_text => lv_error_text,

Line 15561: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_SITE_ID

15557: RAISE ex_logging_err;
15558: END IF;
15559:
15560: --Derive vendor_site_id
15561: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_SITE_ID
15562: (p_table_name => 'MSC_ST_REGION_SITES',
15563: p_partner_name => 'VENDOR_NAME',
15564: p_partner_site_code => 'VENDOR_SITE_CODE',
15565: p_partner_site_id => 'VENDOR_SITE_ID',

Line 15579: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

15575: IF lv_return <> 0 THEN
15576: RAISE ex_logging_err;
15577: END IF;
15578:
15579: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
15580: (p_app_short_name => 'MSC',
15581: p_error_code => 'MSC_PP_NO_UPDATION',
15582: p_message_text => lv_message_text,
15583: p_error_text => lv_error_text,

Line 15629: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG

15625: RAISE ex_logging_err;
15626: END IF;
15627:
15628: -- Set the process flag as Valid and populate instance_id
15629: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG
15630: (p_table_name => 'MSC_ST_REGION_SITES',
15631: p_instance_id => v_instance_id,
15632: p_instance_code => v_instance_code,
15633: p_process_flag => G_VALID,

Line 15644: lv_return := MSC_ST_UTIL.LOG_ERROR

15640: END IF;
15641:
15642: -- At the end calling the LOG_ERROR for logging all
15643: -- errored out records.
15644: lv_return := MSC_ST_UTIL.LOG_ERROR
15645: (p_table_name => 'MSC_ST_REGION_SITES',
15646: p_instance_code => v_instance_code,
15647: p_row => lv_column_names,
15648: p_severity => G_SEV_ERROR,

Line 15754: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

15750:
15751: BEGIN
15752:
15753: --Getting the error message text
15754: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
15755: (p_app_short_name => 'MSC',
15756: p_error_code => 'MSC_PP_DUP_REC_FOR_XML',
15757: p_message_text => lv_message_text,
15758: p_error_text => lv_error_text);

Line 15789: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

15785: EXECUTE IMMEDIATE lv_sql_stmt
15786: USING v_instance_code;
15787:
15788:
15789: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
15790: (p_app_short_name => 'MSC',
15791: p_error_code => 'MSC_PP_DUP_REC_FOR_BATCH_LOAD',
15792: p_message_text => lv_message_text,
15793: p_error_text => lv_error_text);

Line 15875: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

15871: creation_date = v_current_date,
15872: created_by = v_current_user
15873: WHERE rowid = lb_rowid(j);
15874:
15875: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
15876: (p_app_short_name => 'MSC',
15877: p_error_code => 'MSC_PP_NO_DELETION',
15878: p_message_text => lv_message_text,
15879: p_error_text => lv_error_text,

Line 15905: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

15901: EXECUTE IMMEDIATE lv_sql_stmt
15902: USING lv_batch_id,
15903: v_instance_code;
15904:
15905: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
15906: (p_app_short_name => 'MSC',
15907: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
15908: p_message_text => lv_message_text,
15909: p_error_text => lv_error_text,

Line 15925: lv_return := MSC_ST_UTIL.LOG_ERROR

15921: ||' NOT IN(1,2)';
15922:
15923: --Logging a warning for those records where the deleted_flag value
15924: --is other than Yes/No.
15925: lv_return := MSC_ST_UTIL.LOG_ERROR
15926: (p_table_name => 'MSC_ST_CATEGORY_SETS',
15927: p_instance_code => v_instance_code,
15928: p_row => lv_column_names,
15929: p_severity => G_SEV_WARNING,

Line 15942: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

15938: IF lv_return <> 0 THEN
15939: RAISE ex_logging_err;
15940: END IF;
15941:
15942: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
15943: (p_app_short_name => 'MSC',
15944: p_error_code => 'MSC_PP_COL_VAL_NULL',
15945: p_message_text => lv_message_text,
15946: p_error_text => lv_error_text,

Line 15972: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

15968: USING lv_batch_id,
15969: v_instance_code;
15970:
15971:
15972: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
15973: (p_app_short_name => 'MSC',
15974: p_error_code => 'MSC_PP_INVALID_VALUE',
15975: p_message_text => lv_message_text,
15976: p_error_text => lv_error_text,

Line 16002: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

15998: USING lv_batch_id,
15999: v_instance_code;
16000:
16001:
16002: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
16003: (p_app_short_name => 'MSC',
16004: p_error_code => 'MSC_PP_DEFAULT_FLG_INVALID',
16005: p_message_text => lv_message_text,
16006: p_error_text => lv_error_text);

Line 16126: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG

16122:
16123: END IF;
16124: CLOSE c2 ;
16125:
16126: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG
16127: (p_table_name => 'MSC_ST_CATEGORY_SETS',
16128: p_instance_id => v_instance_id,
16129: p_instance_code => v_instance_code,
16130: p_process_flag => G_VALID,

Line 16139: lv_return := MSC_ST_UTIL.LOG_ERROR

16135: IF lv_return <> 0 THEN
16136: RAISE ex_logging_err;
16137: END IF;
16138:
16139: lv_return := MSC_ST_UTIL.LOG_ERROR
16140: (p_table_name => 'MSC_ST_CATEGORY_SETS',
16141: p_instance_code => v_instance_code,
16142: p_row => lv_column_names,
16143: p_severity => G_SEV_ERROR,

Line 16199: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

16195: AND sr_instance_code = v_instance_code;
16196:
16197: BEGIN
16198: --*********Validation for msc_st_units_of_measure***********
16199: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
16200: (p_app_short_name => 'MSC',
16201: p_error_code => 'MSC_PP_DUP_REC_FOR_XML',
16202: p_message_text => lv_message_text,
16203: p_error_text => lv_error_text);

Line 16235: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

16231:
16232: EXECUTE IMMEDIATE lv_sql_stmt
16233: USING v_instance_code;
16234:
16235: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
16236: (p_app_short_name => 'MSC',
16237: p_error_code => 'MSC_PP_DUP_REC_FOR_BATCH_LOAD',
16238: p_message_text => lv_message_text,
16239: p_error_text => lv_error_text);

Line 16326: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

16322: created_by = v_current_user
16323: WHERE rowid = lb_rowid(j);
16324:
16325: --Deletion is not allowed on this table.
16326: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
16327: (p_app_short_name => 'MSC',
16328: p_error_code => 'MSC_PP_NO_DELETION',
16329: p_message_text => lv_message_text,
16330: p_error_text => lv_error_text,

Line 16355: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

16351: EXECUTE IMMEDIATE lv_sql_stmt
16352: USING lv_batch_id,
16353: v_instance_code;
16354:
16355: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
16356: (p_app_short_name => 'MSC',
16357: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
16358: p_message_text => lv_message_text,
16359: p_error_text => lv_error_text,

Line 16374: lv_return := MSC_ST_UTIL.LOG_ERROR

16370: ' AND NVL(deleted_flag,'||NULL_VALUE||') '
16371: ||' NOT IN(1,2)';
16372: --Log a warning for those records where the deleted_flag has a value other
16373: --than SYS_NO
16374: lv_return := MSC_ST_UTIL.LOG_ERROR
16375: (p_table_name => 'MSC_ST_UNITS_OF_MEASURE',
16376: p_instance_code => v_instance_code,
16377: p_row => lv_column_names,
16378: p_severity => G_SEV_WARNING,

Line 16391: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

16387: IF lv_return <> 0 THEN
16388: RAISE ex_logging_err;
16389: END IF;
16390:
16391: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
16392: (p_app_short_name => 'MSC',
16393: p_error_code => 'MSC_PP_COL_VAL_NULL',
16394: p_message_text => lv_message_text,
16395: p_error_text => lv_error_text,

Line 16443: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

16439: v_instance_code;
16440:
16441: --A UOM class can have one and only one base UOM.
16442:
16443: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
16444: (p_app_short_name => 'MSC',
16445: p_error_code => 'MSC_PP_BASE_UOM_INVALID',
16446: p_message_text => lv_message_text,
16447: p_error_text => lv_error_text);

Line 16490: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

16486: EXECUTE IMMEDIATE lv_sql_stmt
16487: USING lv_batch_id,
16488: v_instance_code;
16489:
16490: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
16491: (p_app_short_name => 'MSC',
16492: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
16493: p_message_text => lv_message_text,
16494: p_error_text => lv_error_text,

Line 16508: lv_return := MSC_ST_UTIL.LOG_ERROR

16504: ||' NOT IN(''Y'',''N'' )';
16505: --Log a warning for those records where the base_uom_flag has value
16506: --other than('Y','N')
16507:
16508: lv_return := MSC_ST_UTIL.LOG_ERROR
16509: (p_table_name => 'MSC_ST_UNITS_OF_MEASURE',
16510: p_instance_code => v_instance_code,
16511: p_row => lv_column_names,
16512: p_severity => G_SEV_WARNING,

Line 16538: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG

16534: IF NVL(lv_return,0) <> 0 THEN
16535: RAISE ex_logging_err;
16536: END IF;
16537:
16538: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG
16539: (p_table_name => 'MSC_ST_UNITS_OF_MEASURE',
16540: p_instance_id => v_instance_id,
16541: p_instance_code => v_instance_code,
16542: p_process_flag => G_VALID,

Line 16551: lv_return := MSC_ST_UTIL.LOG_ERROR

16547: IF lv_return <> 0 THEN
16548: RAISE ex_logging_err;
16549: END IF;
16550:
16551: lv_return := MSC_ST_UTIL.LOG_ERROR
16552: (p_table_name => 'MSC_ST_UNITS_OF_MEASURE',
16553: p_instance_code => v_instance_code,
16554: p_row => lv_column_names,
16555: p_severity => G_SEV_ERROR,

Line 16640: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

16636:
16637: BEGIN
16638: --*****Validation for the table msc_st_uom_class_conversions.*****
16639:
16640: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
16641: (p_app_short_name => 'MSC',
16642: p_error_code => 'MSC_PP_DUP_REC_FOR_XML',
16643: p_message_text => lv_message_text,
16644: p_error_text => lv_error_text);

Line 16688: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

16684: EXECUTE IMMEDIATE lv_sql_stmt
16685: USING v_instance_code;
16686:
16687:
16688: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
16689: (p_app_short_name => 'MSC',
16690: p_error_code => 'MSC_PP_DUP_REC_FOR_BATCH_LOAD',
16691: p_message_text => lv_message_text,
16692: p_error_text => lv_error_text);

Line 16729: msc_st_util.log_message(lv_sql_stmt);

16725: ||' AND mcc1.sr_instance_code = :v_instance_code'
16726: ||' AND NVL(mcc1.message_id,'||NULL_VALUE||') = '||NULL_VALUE;
16727:
16728:
16729: msc_st_util.log_message(lv_sql_stmt);
16730:
16731: EXECUTE IMMEDIATE lv_sql_stmt
16732: USING v_instance_code;
16733: */

Line 16835: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

16831: creation_date = v_current_date,
16832: created_by = v_current_user
16833: WHERE rowid = lb_rowid(j);
16834:
16835: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
16836: (p_app_short_name => 'MSC',
16837: p_error_code => 'MSC_PP_NO_DELETION',
16838: p_message_text => lv_message_text,
16839: p_error_text => lv_error_text,

Line 16865: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

16861: EXECUTE IMMEDIATE lv_sql_stmt
16862: USING lv_batch_id,
16863: v_instance_code;
16864:
16865: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
16866: (p_app_short_name => 'MSC',
16867: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
16868: p_message_text => lv_message_text,
16869: p_error_text => lv_error_text,

Line 16884: lv_return := MSC_ST_UTIL.LOG_ERROR

16880: ||' NOT IN(1,2)';
16881:
16882: --Log a warning for those records where the deleted_flag has a value other
16883: --than SYS_NO
16884: lv_return := MSC_ST_UTIL.LOG_ERROR
16885: (p_table_name => 'MSC_ST_UOM_CLASS_CONVERSIONS',
16886: p_instance_code => v_instance_code,
16887: p_row => lv_column_names,
16888: p_severity => G_SEV_WARNING,

Line 16901: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

16897: IF lv_return <> 0 THEN
16898: RAISE ex_logging_err;
16899: END IF;
16900:
16901: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
16902: (p_app_short_name => 'MSC',
16903: p_error_code => 'MSC_PP_COL_VAL_NULL',
16904: p_message_text => lv_message_text,
16905: p_error_text => lv_error_text,

Line 16973: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

16969: EXECUTE IMMEDIATE lv_sql_stmt
16970: USING lv_batch_id,
16971: v_instance_code;
16972:
16973: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
16974: (p_app_short_name => 'MSC',
16975: p_error_code => 'MSC_PP_COL_REF_NOT_EXIST',
16976: p_message_text => lv_message_text,
16977: p_error_text => lv_error_text,

Line 17022: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

17018: USING lv_batch_id,
17019: v_instance_code;
17020:
17021:
17022: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
17023: (p_app_short_name => 'MSC',
17024: p_error_code => 'MSC_PP_COL_REF_NOT_EXIST',
17025: p_message_text => lv_message_text,
17026: p_error_text => lv_error_text,

Line 17069: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

17065: USING lv_batch_id,
17066: v_instance_code;
17067:
17068:
17069: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
17070: (p_app_short_name => 'MSC',
17071: p_error_code => 'MSC_PP_CONV_RT_NEG',
17072: p_message_text => lv_message_text,
17073: p_error_text => lv_error_text,

Line 17099: /* lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

17095: USING lv_batch_id,
17096: v_instance_code;
17097:
17098:
17099: /* lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
17100: (p_app_short_name => 'MSC',
17101: p_error_code => 'MSC_PP_COL_VAL_NULL',
17102: p_message_text => lv_message_text,
17103: p_error_text => lv_error_text,

Line 17126: msc_st_util.log_message(lv_sql_stmt);

17122: ||' AND batch_id = :lv_batch_id'
17123: ||' AND sr_instance_code = :v_instance_code';
17124:
17125:
17126: msc_st_util.log_message(lv_sql_stmt);
17127:
17128: EXECUTE IMMEDIATE lv_sql_stmt
17129: USING lv_batch_id,
17130: v_instance_code;

Line 17132: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

17128: EXECUTE IMMEDIATE lv_sql_stmt
17129: USING lv_batch_id,
17130: v_instance_code;
17131:
17132: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
17133: (p_app_short_name => 'MSC',
17134: p_error_code => 'MSC_PP_INVALID_VALUE',
17135: p_message_text => lv_message_text,
17136: p_error_text => lv_error_text,

Line 17145: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID

17141: RAISE ex_logging_err;
17142: END IF;
17143:
17144: --Derive Organization_id
17145: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID
17146: (p_table_name => 'MSC_ST_UOM_CLASS_CONVERSIONS',
17147: p_org_partner_name => 'ORGANIZATION_CODE',
17148: p_org_partner_id => 'ORGANIZATION_ID',
17149: p_instance_code => v_instance_code,

Line 17188: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

17184: v_instance_code,
17185: lv_batch_id;
17186:
17187:
17188: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
17189: (p_app_short_name => 'MSC',
17190: p_error_code => 'MSC_PP_INVALID_VALUE',
17191: p_message_text => lv_message_text,
17192: p_error_text => lv_error_text,

Line 17241: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG

17237: AND process_flag = G_IN_PROCESS
17238: AND batch_id = lv_batch_id
17239: AND sr_instance_code = v_instance_code;
17240:
17241: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG
17242: (p_table_name => 'MSC_ST_UOM_CLASS_CONVERSIONS',
17243: p_instance_id => v_instance_id,
17244: p_instance_code => v_instance_code,
17245: p_process_flag => G_VALID,

Line 17254: lv_return := MSC_ST_UTIL.LOG_ERROR

17250: IF lv_return <> 0 THEN
17251: RAISE ex_logging_err;
17252: END IF;
17253:
17254: lv_return := MSC_ST_UTIL.LOG_ERROR
17255: (p_table_name => 'MSC_ST_UOM_CLASS_CONVERSIONS',
17256: p_instance_code => v_instance_code,
17257: p_row => lv_column_names,
17258: p_severity => G_SEV_ERROR,

Line 17273: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

17269: END LOOP;
17270:
17271: --Validation check for the table msc_st_uom_class_conversions.
17272:
17273: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
17274: (p_app_short_name => 'MSC',
17275: p_error_code => 'MSC_PP_DUP_REC_FOR_XML',
17276: p_message_text => lv_message_text,
17277: p_error_text => lv_error_text);

Line 17311: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

17307: EXECUTE IMMEDIATE lv_sql_stmt
17308: USING v_instance_code;
17309:
17310:
17311: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
17312: (p_app_short_name => 'MSC',
17313: p_error_code => 'MSC_PP_DUP_REC_FOR_BATCH_LOAD',
17314: p_message_text => lv_message_text,
17315: p_error_text => lv_error_text);

Line 17405: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

17401: creation_date = v_current_date,
17402: created_by = v_current_user
17403: WHERE rowid = lb_rowid(j);
17404:
17405: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
17406: (p_app_short_name => 'MSC',
17407: p_error_code => 'MSC_PP_NO_DELETION',
17408: p_message_text => lv_message_text,
17409: p_error_text => lv_error_text,

Line 17435: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

17431: EXECUTE IMMEDIATE lv_sql_stmt
17432: USING lv_batch_id,
17433: v_instance_code;
17434:
17435: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
17436: (p_app_short_name => 'MSC',
17437: p_error_code => 'MSC_PP_COL_VAL_NULL',
17438: p_message_text => lv_message_text,
17439: p_error_text => lv_error_text,

Line 17467: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

17463: USING lv_batch_id,
17464: v_instance_code;
17465:
17466:
17467: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
17468: (p_app_short_name => 'MSC',
17469: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
17470: p_message_text => lv_message_text,
17471: p_error_text => lv_error_text,

Line 17487: lv_return := MSC_ST_UTIL.LOG_ERROR

17483: ||' NOT IN(1,2)';
17484:
17485: --Log a warning for those records where the deleted_flag has a value other
17486: --than SYS_NO
17487: lv_return := MSC_ST_UTIL.LOG_ERROR
17488: (p_table_name => 'MSC_ST_UOM_CONVERSIONS',
17489: p_instance_code => v_instance_code,
17490: p_row => lv_column_names,
17491: p_severity => G_SEV_WARNING,

Line 17504: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

17500: IF lv_return <> 0 THEN
17501: RAISE ex_logging_err;
17502: END IF;
17503:
17504: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
17505: (p_app_short_name => 'MSC',
17506: p_error_code => 'MSC_PP_COL_VAL_NULL',
17507: p_message_text => lv_message_text,
17508: p_error_text => lv_error_text,

Line 17552: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

17548: EXECUTE IMMEDIATE lv_sql_stmt
17549: USING lv_batch_id,
17550: v_instance_code;
17551:
17552: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
17553: (p_app_short_name => 'MSC',
17554: p_error_code => 'MSC_PP_COL_REF_NOT_EXIST',
17555: p_message_text => lv_message_text,
17556: p_error_text => lv_error_text,

Line 17596: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

17592: USING lv_batch_id,
17593: v_instance_code;
17594:
17595:
17596: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
17597: (p_app_short_name => 'MSC',
17598: p_error_code => 'MSC_PP_CONV_RT_NEG',
17599: p_message_text => lv_message_text,
17600: p_error_text => lv_error_text,

Line 17625: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

17621: EXECUTE IMMEDIATE lv_sql_stmt
17622: USING lv_batch_id,
17623: v_instance_code;
17624:
17625: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
17626: (p_app_short_name => 'MSC',
17627: p_error_code => 'MSC_PP_COL_VAL_NULL',
17628: p_message_text => lv_message_text,
17629: p_error_text => lv_error_text,

Line 17652: msc_st_util.log_message(lv_sql_stmt);

17648: ||' AND batch_id = :lv_batch_id'
17649: ||' AND sr_instance_code = :v_instance_code';
17650:
17651:
17652: msc_st_util.log_message(lv_sql_stmt);
17653:
17654: EXECUTE IMMEDIATE lv_sql_stmt
17655: USING lv_batch_id,
17656: v_instance_code;

Line 17659: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

17655: USING lv_batch_id,
17656: v_instance_code;
17657:
17658:
17659: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
17660: (p_app_short_name => 'MSC',
17661: p_error_code => 'MSC_PP_INVALID_VALUE',
17662: p_message_text => lv_message_text,
17663: p_error_text => lv_error_text,

Line 17672: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID

17668: RAISE ex_logging_err;
17669: END IF;
17670:
17671: --Derive Organization_id
17672: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID
17673: (p_table_name => 'MSC_ST_UOM_CONVERSIONS',
17674: p_org_partner_name => 'ORGANIZATION_CODE',
17675: p_org_partner_id => 'ORGANIZATION_ID',
17676: p_instance_code => v_instance_code,

Line 17715: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

17711: v_instance_code,
17712: lv_batch_id;
17713:
17714:
17715: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
17716: (p_app_short_name => 'MSC',
17717: p_error_code => 'MSC_PP_INVALID_VALUE',
17718: p_message_text => lv_message_text,
17719: p_error_text => lv_error_text,

Line 17774: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG

17770: IF NVL(lv_return,0) <> 0 THEN
17771: RAISE ex_logging_err;
17772: END IF;
17773:
17774: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG
17775: (p_table_name => 'MSC_ST_UOM_CONVERSIONS',
17776: p_instance_id => v_instance_id,
17777: p_instance_code => v_instance_code,
17778: p_process_flag => G_VALID,

Line 17787: lv_return := MSC_ST_UTIL.LOG_ERROR

17783: IF lv_return <> 0 THEN
17784: RAISE ex_logging_err;
17785: END IF;
17786:
17787: lv_return := MSC_ST_UTIL.LOG_ERROR
17788: (p_table_name => 'MSC_ST_UOM_CONVERSIONS',
17789: p_instance_code => v_instance_code,
17790: p_row => lv_column_names,
17791: p_severity => G_SEV_ERROR,

Line 17849: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

17845: AND batch_id = lv_batch_id;
17846:
17847: BEGIN
17848:
17849: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
17850: (p_app_short_name => 'MSC',
17851: p_error_code => 'MSC_PP_DUP_REC_FOR_XML',
17852: p_message_text => lv_message_text,
17853: p_error_text => lv_error_text);

Line 17886: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

17882:
17883: EXECUTE IMMEDIATE lv_sql_stmt
17884: USING v_instance_code;
17885:
17886: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
17887: (p_app_short_name => 'MSC',
17888: p_error_code => 'MSC_PP_DUP_REC_FOR_BATCH_LOAD',
17889: p_message_text => lv_message_text,
17890: p_error_text => lv_error_text);

Line 17994: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

17990: creation_date = v_current_date,
17991: created_by = v_current_user
17992: WHERE rowid = lb_rowid(j);
17993:
17994: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
17995: (p_app_short_name => 'MSC',
17996: p_error_code => 'MSC_PP_INVALID_VALUE',
17997: p_message_text => lv_message_text,
17998: p_error_text => lv_error_text,

Line 18026: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

18022: v_instance_code;
18023:
18024: -- Set message
18025:
18026: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
18027: (p_app_short_name => 'MSC',
18028: p_error_code => 'MSC_PP_NO_DELETION',
18029: p_message_text => lv_message_text,
18030: p_error_text => lv_error_text,

Line 18058: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

18054: v_instance_code;
18055:
18056:
18057:
18058: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
18059: (p_app_short_name => 'MSC',
18060: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
18061: p_message_text => lv_message_text,
18062: p_error_text => lv_error_text,

Line 18077: lv_return := MSC_ST_UTIL.LOG_ERROR

18073: ' AND NVL(deleted_flag,'||NULL_VALUE||') NOT IN(1,2)';
18074:
18075: --Log a warning for those records where the deleted_flag has a value other
18076: --SYS_NO
18077: lv_return := MSC_ST_UTIL.LOG_ERROR
18078: (p_table_name => 'MSC_ST_DESIGNATORS',
18079: p_instance_code => v_instance_code,
18080: p_row => lv_column_names,
18081: p_severity => G_SEV_WARNING,

Line 18094: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

18090: IF lv_return <> 0 THEN
18091: RAISE ex_logging_err;
18092: END IF;
18093:
18094: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
18095: (p_app_short_name => 'MSC',
18096: p_error_code => 'MSC_PP_INVALID_VALUE',
18097: p_message_text => lv_message_text,
18098: p_error_text => lv_error_text,

Line 18107: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID

18103: RAISE ex_logging_err;
18104: END IF;
18105:
18106: --Derive Organization_id
18107: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID
18108: (p_table_name => 'MSC_ST_DESIGNATORS',
18109: p_org_partner_name => 'ORGANIZATION_CODE',
18110: p_org_partner_id => 'ORGANIZATION_ID',
18111: p_instance_code => v_instance_code,

Line 18124: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

18120: IF lv_return <> 0 THEN
18121: RAISE ex_logging_err;
18122: END IF;
18123:
18124: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
18125: (p_app_short_name => 'MSC',
18126: p_error_code => 'MSC_PP_COL_VAL_NULL',
18127: p_message_text => lv_message_text,
18128: p_error_text => lv_error_text,

Line 18155: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

18151: EXECUTE IMMEDIATE lv_sql_stmt
18152: USING lv_batch_id,
18153: v_instance_code;
18154:
18155: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
18156: (p_app_short_name => 'MSC',
18157: p_error_code => 'MSC_PP_INVALID_VALUE',
18158: p_message_text => lv_message_text,
18159: p_error_text => lv_error_text,

Line 18170: MSC_ST_UTIL.VALIDATE_DMD_CLASS(p_table_name => 'MSC_ST_DESIGNATORS',

18166:
18167: -- Validate Demand Class, if value provided it should exists
18168: -- in ODS or staging table
18169: lv_return :=
18170: MSC_ST_UTIL.VALIDATE_DMD_CLASS(p_table_name => 'MSC_ST_DESIGNATORS',
18171: p_dmd_class_column => 'DEMAND_CLASS',
18172: p_instance_id => v_instance_id,
18173: p_instance_code => v_instance_code,
18174: p_severity => G_SEV3_ERROR,

Line 18256: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

18252: USING lv_batch_id,
18253: v_instance_code;
18254:
18255:
18256: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
18257: (p_app_short_name => 'MSC',
18258: p_error_code => 'MSC_PP_INVALID_VALUE',
18259: p_message_text => lv_message_text,
18260: p_error_text => lv_error_text,

Line 18269: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID

18265: RAISE ex_logging_err;
18266: END IF;
18267:
18268: --Derive Customer_id
18269: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID
18270: (p_table_name => 'MSC_ST_DESIGNATORS',
18271: p_org_partner_name => 'CUSTOMER_NAME',
18272: p_org_partner_id => 'CUSTOMER_ID',
18273: p_instance_code => v_instance_code,

Line 18286: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

18282: IF lv_return <> 0 THEN
18283: RAISE ex_logging_err;
18284: END IF;
18285:
18286: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
18287: (p_app_short_name => 'MSC',
18288: p_error_code => 'MSC_PP_INVALID_VALUE',
18289: p_message_text => lv_message_text,
18290: p_error_text => lv_error_text,

Line 18299: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_SITE_ID

18295: RAISE ex_logging_err;
18296: END IF;
18297:
18298: --Derive Bill_id
18299: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_SITE_ID
18300: (p_table_name => 'MSC_ST_DESIGNATORS',
18301: p_partner_name => 'CUSTOMER_NAME',
18302: p_partner_site_code => 'BILL_TO_SITE_CODE',
18303: p_partner_site_id => 'BILL_ID',

Line 18317: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

18313: IF lv_return <> 0 THEN
18314: RAISE ex_logging_err;
18315: END IF;
18316:
18317: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
18318: (p_app_short_name => 'MSC',
18319: p_error_code => 'MSC_PP_INVALID_VALUE',
18320: p_message_text => lv_message_text,
18321: p_error_text => lv_error_text,

Line 18330: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_SITE_ID

18326: RAISE ex_logging_err;
18327: END IF;
18328:
18329: --Derive Ship_id
18330: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_SITE_ID
18331: (p_table_name => 'MSC_ST_DESIGNATORS',
18332: p_partner_name => 'CUSTOMER_NAME',
18333: p_partner_site_code => 'SHIP_TO_SITE_CODE',
18334: p_partner_site_id => 'SHIP_ID',

Line 18362: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

18358: RAISE ex_logging_err;
18359: END IF;
18360:
18361:
18362: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
18363: (p_app_short_name => 'MSC',
18364: p_error_code => 'MSC_PP_COL_VAL_EXISTS',
18365: p_message_text => lv_message_text,
18366: p_error_text => lv_error_text,

Line 18502: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG

18498: v_instance_code;
18499:
18500:
18501:
18502: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG
18503: (p_table_name => 'MSC_ST_DESIGNATORS',
18504: p_instance_id => v_instance_id,
18505: p_instance_code => v_instance_code,
18506: p_process_flag => G_VALID,

Line 18515: lv_return := MSC_ST_UTIL.LOG_ERROR

18511: IF lv_return <> 0 THEN
18512: RAISE ex_logging_err;
18513: END IF;
18514:
18515: lv_return := MSC_ST_UTIL.LOG_ERROR
18516: (p_table_name => 'MSC_ST_DESIGNATORS',
18517: p_instance_code => v_instance_code,
18518: p_row => lv_column_names,
18519: p_severity => G_SEV_ERROR,

Line 18770: msc_st_util.log_message(lv_error_text);

18766: EXIT;
18767: EXCEPTION
18768: WHEN busy THEN
18769: lv_error_text := substr('MSC_CL_PRE_PROCESS.LOAD_ITEM'||'(' ||v_sql_stmt||')'|| SQLERRM, 1, 240);
18770: msc_st_util.log_message(lv_error_text);
18771: dbms_lock.sleep(5);
18772: WHEN OTHERS THEN
18773: lv_error_text := substr('MSC_CL_PRE_PROCESS.LOAD_ITEM'||'(' ||v_sql_stmt||')'|| SQLERRM, 1, 240);
18774: msc_st_util.log_message(lv_error_text);

Line 18774: msc_st_util.log_message(lv_error_text);

18770: msc_st_util.log_message(lv_error_text);
18771: dbms_lock.sleep(5);
18772: WHEN OTHERS THEN
18773: lv_error_text := substr('MSC_CL_PRE_PROCESS.LOAD_ITEM'||'(' ||v_sql_stmt||')'|| SQLERRM, 1, 240);
18774: msc_st_util.log_message(lv_error_text);
18775:
18776: v_sql_stmt := 03;
18777: lv_sql_stmt :=
18778: 'UPDATE msc_st_system_items '

Line 18786: msc_st_util.log_message(lv_sql_stmt);

18782: ||' AND process_flag = '||G_IN_PROCESS
18783: ||' AND sr_instance_code = :v_instance_code';
18784:
18785:
18786: msc_st_util.log_message(lv_sql_stmt);
18787:
18788: EXECUTE IMMEDIATE lv_sql_stmt USING p_batch_id,v_instance_code;
18789: COMMIT;
18790: RETURN;

Line 18818: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

18814:
18815:
18816: -- Set the error message
18817:
18818: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
18819: (p_app_short_name => 'MSC',
18820: p_error_code => 'MSC_PP_COL_VAL_NULL',
18821: p_message_text => lv_message_text,
18822: p_error_text => lv_error_text,

Line 18854: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

18850: v_instance_code;
18851:
18852: -- Set the error message
18853:
18854: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
18855: (p_app_short_name => 'MSC',
18856: p_error_code => 'MSC_PP_NO_DELETION',
18857: p_message_text => lv_message_text,
18858: p_error_text => lv_error_text,

Line 18887: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

18883: v_instance_code;
18884:
18885: -- Set the error message , PIP FIX
18886:
18887: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
18888: (p_app_short_name => 'MSC',
18889: p_error_code => 'MSC_PP_INVALID_VALUE',
18890: p_message_text => lv_message_text,
18891: p_error_text => lv_error_text,

Line 18921: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

18917:
18918: -- create supply flag validation
18919: -- Set the error message
18920:
18921: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
18922: (p_app_short_name => 'MSC',
18923: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
18924: p_message_text => lv_message_text,
18925: p_error_text => lv_error_text,

Line 18954: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

18950: v_instance_code;
18951:
18952: -- Set the message
18953:
18954: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
18955: (p_app_short_name => 'MSC',
18956: p_error_code => 'MSC_PP_INVALID_VALUE',
18957: p_message_text => lv_message_text,
18958: p_error_text => lv_error_text,

Line 18968: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID

18964: END IF;
18965:
18966:
18967: -- Derive organization id
18968: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID
18969: (p_table_name => 'MSC_ST_SYSTEM_ITEMS',
18970: p_org_partner_name => 'ORGANIZATION_CODE',
18971: p_org_partner_id => 'ORGANIZATION_ID',
18972: p_instance_code => v_instance_code,

Line 19012: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

19008:
19009: ---- Changes for SRP legacy collections -----
19010:
19011: -- Set the error message
19012: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
19013: (p_app_short_name => 'MSC',
19014: p_error_code => 'MSC_PP_INVALID_VALUE',
19015: p_message_text => lv_message_text,
19016: p_error_text => lv_error_text,

Line 19046: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

19042: USING lv_batch_id,
19043: v_instance_code;
19044:
19045: -- Set the error message
19046: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
19047: (p_app_short_name => 'MSC',
19048: p_error_code => 'MSC_PP_INVALID_VALUE',
19049: p_message_text => lv_message_text,
19050: p_error_text => lv_error_text,

Line 19086: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

19082:
19083: -- Now check for UOM code if it is Invalid error out
19084: -- Set the error message
19085:
19086: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
19087: (p_app_short_name => 'MSC',
19088: p_error_code => 'MSC_PP_COL_REF_NOT_EXIST',
19089: p_message_text => lv_message_text,
19090: p_error_text => lv_error_text,

Line 19129: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

19125: lv_batch_id;
19126:
19127: -- Set the message
19128:
19129: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
19130: (p_app_short_name => 'MSC',
19131: p_error_code => 'MSC_PP_COL_REF_NOT_EXIST',
19132: p_message_text => lv_message_text,
19133: p_error_text => lv_error_text,

Line 19177: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

19173: lv_batch_id;
19174:
19175: -- Set the message
19176:
19177: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
19178: (p_app_short_name => 'MSC',
19179: p_error_code => 'MSC_PP_COL_REF_NOT_EXIST',
19180: p_message_text => lv_message_text,
19181: p_error_text => lv_error_text,

Line 19223: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

19219: v_instance_code,
19220: lv_batch_id;
19221:
19222: -- Set the error message
19223: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
19224: (p_app_short_name => 'MSC',
19225: p_error_code => 'MSC_PP_INVALID_VALUE',
19226: p_message_text => lv_message_text,
19227: p_error_text => lv_error_text,

Line 19239: MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID(p_table_name => 'MSC_ST_SYSTEM_ITEMS',

19235:
19236: -- Update Source org id
19237:
19238: lv_return :=
19239: MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID(p_table_name => 'MSC_ST_SYSTEM_ITEMS',
19240: p_org_partner_name =>'SOURCE_ORG_CODE',
19241: p_org_partner_id =>'SOURCE_ORG_ID',
19242: p_instance_code => v_instance_code,
19243: p_partner_type => G_ORGANIZATION,

Line 19255: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

19251: END IF;
19252:
19253:
19254: -- Set the error message
19255: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
19256: (p_app_short_name => 'MSC',
19257: p_error_code => 'MSC_PP_INVALID_VALUE',
19258: p_message_text => lv_message_text,
19259: p_error_text => lv_error_text,

Line 19271: MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID(p_table_name => 'MSC_ST_SYSTEM_ITEMS',

19267:
19268: -- Update primary_supplier_name
19269:
19270: lv_return :=
19271: MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID(p_table_name => 'MSC_ST_SYSTEM_ITEMS',
19272: p_org_partner_name =>'PRIMARY_SUPPLIER_NAME',
19273: p_org_partner_id =>'PRIMARY_SUPPLIER_ID',
19274: p_instance_code => v_instance_code,
19275: p_partner_type => G_VENDOR,

Line 19287: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

19283: END IF;
19284:
19285: -- Set the message
19286:
19287: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
19288: (p_app_short_name => 'MSC',
19289: p_error_code => 'MSC_PP_INVALID_VALUE',
19290: p_message_text => lv_message_text,
19291: p_error_text => lv_error_text,

Line 19622: /* lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

19618:
19619: IF(v_install_msc) THEN
19620: -- Set the message
19621:
19622: /* lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
19623: (p_app_short_name => 'MSC',
19624: p_error_code => 'MSC_PP_INVALID_VALUE',
19625: p_message_text => lv_message_text,
19626: p_error_text => lv_error_text,

Line 19636: MSC_ST_UTIL.DERIVE_ITEM_ID(p_table_name => 'MSC_ST_SYSTEM_ITEMS',

19632: END IF;
19633:
19634: -- Poplulate base item id
19635: lv_return :=
19636: MSC_ST_UTIL.DERIVE_ITEM_ID(p_table_name => 'MSC_ST_SYSTEM_ITEMS',
19637: p_item_col_name => 'BASE_ITEM_NAME',
19638: p_item_col_id =>'BASE_ITEM_ID',
19639: p_instance_code => v_instance_code,
19640: p_instance_id => v_instance_id,

Line 19656: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

19652: COMMIT;
19653:
19654: -- Set the message
19655:
19656: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
19657: (p_app_short_name => 'MSC',
19658: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
19659: p_message_text => lv_message_text,
19660: p_error_text => lv_error_text,

Line 19676: lv_return := MSC_ST_UTIL.LOG_ERROR

19672:
19673: lv_where_str :=
19674: ' AND NVL(deleted_flag,'||NULL_VALUE||') <>'||SYS_NO;
19675:
19676: lv_return := MSC_ST_UTIL.LOG_ERROR
19677: (p_table_name => 'MSC_ST_SYSTEM_ITEMS',
19678: p_instance_code => v_instance_code,
19679: p_row => lv_column_names,
19680: p_severity => G_SEV_WARNING,

Line 19696: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

19692:
19693:
19694:
19695: -- Set the error message
19696: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
19697: (p_app_short_name => 'MSC',
19698: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
19699: p_message_text => lv_message_text,
19700: p_error_text => lv_error_text,

Line 19716: lv_return := MSC_ST_UTIL.LOG_ERROR

19712: lv_where_str :=
19713: ' AND NVL(lot_control_code,'||NULL_VALUE||')'
19714: ||' NOT IN (1,2)';
19715:
19716: lv_return := MSC_ST_UTIL.LOG_ERROR
19717: (p_table_name => 'MSC_ST_SYSTEM_ITEMS',
19718: p_instance_code => v_instance_code,
19719: p_row => lv_column_names,
19720: p_severity => G_SEV_WARNING,

Line 19734: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

19730: RAISE ex_logging_err;
19731: END IF;
19732:
19733: -- Set the error message
19734: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
19735: (p_app_short_name => 'MSC',
19736: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
19737: p_message_text => lv_message_text,
19738: p_error_text => lv_error_text,

Line 19754: lv_return := MSC_ST_UTIL.LOG_ERROR

19750: lv_where_str :=
19751: ' AND NVL(rounding_control_type,'||NULL_VALUE||')'
19752: ||' NOT IN (1,2)';
19753:
19754: lv_return := MSC_ST_UTIL.LOG_ERROR
19755: (p_table_name => 'MSC_ST_SYSTEM_ITEMS',
19756: p_instance_code => v_instance_code,
19757: p_row => lv_column_names,
19758: p_severity => G_SEV_WARNING,

Line 19772: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

19768: RAISE ex_logging_err;
19769: END IF;
19770:
19771: -- Set the error message
19772: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
19773: (p_app_short_name => 'MSC',
19774: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
19775: p_message_text => lv_message_text,
19776: p_error_text => lv_error_text,

Line 19792: lv_return := MSC_ST_UTIL.LOG_ERROR

19788: lv_where_str :=
19789: ' AND NVL(in_source_plan,'||NULL_VALUE||')'
19790: ||' NOT IN (1,2)';
19791:
19792: lv_return := MSC_ST_UTIL.LOG_ERROR
19793: (p_table_name => 'MSC_ST_SYSTEM_ITEMS',
19794: p_instance_code => v_instance_code,
19795: p_row => lv_column_names,
19796: p_severity => G_SEV_WARNING,

Line 19810: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

19806: RAISE ex_logging_err;
19807: END IF;
19808:
19809: -- Set the error message
19810: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
19811: (p_app_short_name => 'MSC',
19812: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
19813: p_message_text => lv_message_text,
19814: p_error_text => lv_error_text,

Line 19831: lv_return := MSC_ST_UTIL.LOG_ERROR

19827: ' AND NVL(mrp_planning_code,'||NULL_VALUE||')'
19828: ||' NOT IN (3,4,6,7,8,9)';
19829:
19830:
19831: lv_return := MSC_ST_UTIL.LOG_ERROR
19832: (p_table_name => 'MSC_ST_SYSTEM_ITEMS',
19833: p_instance_code => v_instance_code,
19834: p_row => lv_column_names,
19835: p_severity => G_SEV_WARNING,

Line 19849: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

19845: RAISE ex_logging_err;
19846: END IF;
19847:
19848: -- Set the error message
19849: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
19850: (p_app_short_name => 'MSC',
19851: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
19852: p_message_text => lv_message_text,
19853: p_error_text => lv_error_text,

Line 19869: lv_return := MSC_ST_UTIL.LOG_ERROR

19865: lv_where_str :=
19866: ' AND NVL(mrp_calculate_atp_flag,'||NULL_VALUE||')'
19867: ||' NOT IN (1,2)';
19868:
19869: lv_return := MSC_ST_UTIL.LOG_ERROR
19870: (p_table_name => 'MSC_ST_SYSTEM_ITEMS',
19871: p_instance_code => v_instance_code,
19872: p_row => lv_column_names,
19873: p_severity => G_SEV_WARNING,

Line 19887: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

19883: RAISE ex_logging_err;
19884: END IF;
19885:
19886: -- Set the error message
19887: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
19888: (p_app_short_name => 'MSC',
19889: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
19890: p_message_text => lv_message_text,
19891: p_error_text => lv_error_text,

Line 19907: lv_return := MSC_ST_UTIL.LOG_ERROR

19903: lv_where_str :=
19904: ' AND NVL(atp_components_flag ,'||''''||NULL_CHAR||''''||')'
19905: ||' NOT IN (''Y'', ''N'')';
19906:
19907: lv_return := MSC_ST_UTIL.LOG_ERROR
19908: (p_table_name => 'MSC_ST_SYSTEM_ITEMS',
19909: p_instance_code => v_instance_code,
19910: p_row => lv_column_names,
19911: p_severity => G_SEV_WARNING,

Line 19925: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

19921: RAISE ex_logging_err;
19922: END IF;
19923:
19924: -- Set the error message
19925: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
19926: (p_app_short_name => 'MSC',
19927: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
19928: p_message_text => lv_message_text,
19929: p_error_text => lv_error_text,

Line 19944: lv_return := MSC_ST_UTIL.LOG_ERROR

19940:
19941: lv_where_str :=
19942: ' AND NVL(built_in_wip_flag ,'||NULL_VALUE||') NOT IN (1,2)';
19943:
19944: lv_return := MSC_ST_UTIL.LOG_ERROR
19945: (p_table_name => 'MSC_ST_SYSTEM_ITEMS',
19946: p_instance_code => v_instance_code,
19947: p_row => lv_column_names,
19948: p_severity => G_SEV_WARNING,

Line 19962: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

19958: RAISE ex_logging_err;
19959: END IF;
19960:
19961: -- Set the error message
19962: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
19963: (p_app_short_name => 'MSC',
19964: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
19965: p_message_text => lv_message_text,
19966: p_error_text => lv_error_text,

Line 19981: lv_return := MSC_ST_UTIL.LOG_ERROR

19977:
19978: lv_where_str :=
19979: ' AND NVL(purchasing_enabled_flag,'||NULL_VALUE||') NOT IN (1,2) ';
19980:
19981: lv_return := MSC_ST_UTIL.LOG_ERROR
19982: (p_table_name => 'MSC_ST_SYSTEM_ITEMS',
19983: p_instance_code => v_instance_code,
19984: p_row => lv_column_names,
19985: p_severity => G_SEV_WARNING,

Line 19999: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

19995: RAISE ex_logging_err;
19996: END IF;
19997:
19998: -- Set the error message
19999: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
20000: (p_app_short_name => 'MSC',
20001: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
20002: p_message_text => lv_message_text,
20003: p_error_text => lv_error_text,

Line 20019: lv_return := MSC_ST_UTIL.LOG_ERROR

20015:
20016: lv_where_str :=
20017: ' AND NVL(planning_make_buy_code,'||NULL_VALUE||') NOT IN (1,2)';
20018:
20019: lv_return := MSC_ST_UTIL.LOG_ERROR
20020: (p_table_name => 'MSC_ST_SYSTEM_ITEMS',
20021: p_instance_code => v_instance_code,
20022: p_row => lv_column_names,
20023: p_severity => G_SEV_WARNING,

Line 20037: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

20033: RAISE ex_logging_err;
20034: END IF;
20035:
20036: -- Set the error message
20037: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
20038: (p_app_short_name => 'MSC',
20039: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
20040: p_message_text => lv_message_text,
20041: p_error_text => lv_error_text,

Line 20056: lv_return := MSC_ST_UTIL.LOG_ERROR

20052:
20053: lv_where_str :=
20054: ' AND NVL(inventory_planning_code,'||NULL_VALUE||') NOT IN (1,2,6)';
20055:
20056: lv_return := MSC_ST_UTIL.LOG_ERROR
20057: (p_table_name => 'MSC_ST_SYSTEM_ITEMS',
20058: p_instance_code => v_instance_code,
20059: p_row => lv_column_names,
20060: p_severity => G_SEV_WARNING,

Line 20074: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

20070: RAISE ex_logging_err;
20071: END IF;
20072:
20073: -- Set the error message
20074: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
20075: (p_app_short_name => 'MSC',
20076: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
20077: p_message_text => lv_message_text,
20078: p_error_text => lv_error_text,

Line 20093: lv_return := MSC_ST_UTIL.LOG_ERROR

20089:
20090: lv_where_str :=
20091: ' AND NVL(repetitive_type,'||NULL_VALUE||') NOT IN (1,2)';
20092:
20093: lv_return := MSC_ST_UTIL.LOG_ERROR
20094: (p_table_name => 'MSC_ST_SYSTEM_ITEMS',
20095: p_instance_code => v_instance_code,
20096: p_row => lv_column_names,
20097: p_severity => G_SEV_WARNING,

Line 20111: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

20107: RAISE ex_logging_err;
20108: END IF;
20109:
20110: -- Set the error message
20111: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
20112: (p_app_short_name => 'MSC',
20113: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
20114: p_message_text => lv_message_text,
20115: p_error_text => lv_error_text,

Line 20129: lv_return := MSC_ST_UTIL.LOG_ERROR

20125: -- Valid value for engineering_item_flag are (1,2),default it to 2
20126: lv_where_str :=
20127: ' AND NVL(engineering_item_flag ,'||NULL_VALUE||') NOT IN (1,2)';
20128:
20129: lv_return := MSC_ST_UTIL.LOG_ERROR
20130: (p_table_name => 'MSC_ST_SYSTEM_ITEMS',
20131: p_instance_code => v_instance_code,
20132: p_row => lv_column_names,
20133: p_severity => G_SEV_WARNING,

Line 20147: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

20143: RAISE ex_logging_err;
20144: END IF;
20145:
20146: -- Set the error message
20147: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
20148: (p_app_short_name => 'MSC',
20149: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
20150: p_message_text => lv_message_text,
20151: p_error_text => lv_error_text,

Line 20168: lv_return := MSC_ST_UTIL.LOG_ERROR

20164: lv_where_str :=
20165: ' AND NVL(mrp_safety_stock_code,'||NULL_VALUE||') <>'||' 1 AND'
20166: ||' NVL(mrp_safety_stock_percent,'||NULL_VALUE||')='||NULL_VALUE;
20167:
20168: lv_return := MSC_ST_UTIL.LOG_ERROR
20169: (p_table_name => 'MSC_ST_SYSTEM_ITEMS',
20170: p_instance_code => v_instance_code,
20171: p_row => lv_column_names,
20172: p_severity => G_SEV_WARNING,

Line 20186: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

20182: RAISE ex_logging_err;
20183: END IF;
20184:
20185: -- Set the error message
20186: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
20187: (p_app_short_name => 'MSC',
20188: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
20189: p_message_text => lv_message_text,
20190: p_error_text => lv_error_text,

Line 20207: lv_return := MSC_ST_UTIL.LOG_ERROR

20203: lv_where_str :=
20204: ' AND NVL(mrp_safety_stock_code,'||NULL_VALUE||') <>'||' 2 AND'
20205: ||' NVL(mrp_safety_stock_percent,'||NULL_VALUE||')<>'||NULL_VALUE;
20206:
20207: lv_return := MSC_ST_UTIL.LOG_ERROR
20208: (p_table_name => 'MSC_ST_SYSTEM_ITEMS',
20209: p_instance_code => v_instance_code,
20210: p_row => lv_column_names,
20211: p_severity => G_SEV_WARNING,

Line 20225: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

20221: RAISE ex_logging_err;
20222: END IF;
20223:
20224: -- Set the error message
20225: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
20226: (p_app_short_name => 'MSC',
20227: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
20228: p_message_text => lv_message_text,
20229: p_error_text => lv_error_text,

Line 20245: lv_return := MSC_ST_UTIL.LOG_ERROR

20241: lv_where_str :=
20242: ' AND NVL(atp_flag ,'||''''||NULL_CHAR||''''||')'
20243: ||' NOT IN (''Y'', ''N'', ''C'')';
20244:
20245: lv_return := MSC_ST_UTIL.LOG_ERROR
20246: (p_table_name => 'MSC_ST_SYSTEM_ITEMS',
20247: p_instance_code => v_instance_code,
20248: p_row => lv_column_names,
20249: p_severity => G_SEV_WARNING,

Line 20263: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

20259: RAISE ex_logging_err;
20260: END IF;
20261:
20262: -- Set the error message
20263: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
20264: (p_app_short_name => 'MSC',
20265: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
20266: p_message_text => lv_message_text,
20267: p_error_text => lv_error_text,

Line 20283: lv_return := MSC_ST_UTIL.LOG_ERROR

20279: lv_where_str :=
20280: ' AND NVL(inventory_asset_flag,'||''''||NULL_CHAR||''''||')'
20281: ||' NOT IN (''Y'', ''N'')';
20282:
20283: lv_return := MSC_ST_UTIL.LOG_ERROR
20284: (p_table_name => 'MSC_ST_SYSTEM_ITEMS',
20285: p_instance_code => v_instance_code,
20286: p_row => lv_column_names,
20287: p_severity => G_SEV_WARNING,

Line 20301: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

20297: RAISE ex_logging_err;
20298: END IF;
20299:
20300: -- Set the error message
20301: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
20302: (p_app_short_name => 'MSC',
20303: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
20304: p_message_text => lv_message_text,
20305: p_error_text => lv_error_text,

Line 20321: lv_return := MSC_ST_UTIL.LOG_ERROR

20317: -- ('A','B','I','N','X','Y'),default it to N
20318:
20319: lv_where_str :=
20320: ' AND end_assembly_pegging_flag NOT IN (''A'',''B'',''X'',''I'',''N'',''Y'')';
20321: lv_return := MSC_ST_UTIL.LOG_ERROR
20322: (p_table_name => 'MSC_ST_SYSTEM_ITEMS',
20323: p_instance_code => v_instance_code,
20324: p_row => lv_column_names,
20325: p_severity => G_SEV_WARNING,

Line 20339: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

20335: RAISE ex_logging_err;
20336: END IF;
20337:
20338: -- Set the error message
20339: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
20340: (p_app_short_name => 'MSC',
20341: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
20342: p_message_text => lv_message_text,
20343: p_error_text => lv_error_text,

Line 20358: lv_return := MSC_ST_UTIL.LOG_ERROR

20354: -- Valid value for wip_supply_type are (1,2,3,4,5,6,7),default it to 1
20355:
20356: lv_where_str := ' AND wip_supply_type NOT IN (1,2,3,4,5,6,7) ';
20357:
20358: lv_return := MSC_ST_UTIL.LOG_ERROR
20359: (p_table_name => 'MSC_ST_SYSTEM_ITEMS',
20360: p_instance_code => v_instance_code,
20361: p_row => lv_column_names,
20362: p_severity => G_SEV_WARNING,

Line 20377: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

20373: END IF;
20374:
20375:
20376: -- Set the error message
20377: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
20378: (p_app_short_name => 'MSC',
20379: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
20380: p_message_text => lv_message_text,
20381: p_error_text => lv_error_text,

Line 20395: lv_return := MSC_ST_UTIL.LOG_ERROR

20391: -- Default ato_forecast_control to 3 if NOT IN (1,2,3)
20392:
20393: lv_where_str := ' AND ato_forecast_control NOT IN (1,2,3) ';
20394:
20395: lv_return := MSC_ST_UTIL.LOG_ERROR
20396: (p_table_name => 'MSC_ST_SYSTEM_ITEMS',
20397: p_instance_code => v_instance_code,
20398: p_row => lv_column_names,
20399: p_severity => G_SEV_WARNING,

Line 20413: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

20409: RAISE ex_logging_err;
20410: END IF;
20411:
20412: -- Set the error message
20413: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
20414: (p_app_short_name => 'MSC',
20415: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
20416: p_message_text => lv_message_text,
20417: p_error_text => lv_error_text,

Line 20431: lv_return := MSC_ST_UTIL.LOG_ERROR

20427: -- Default inventory_item_flag to 1 if NOT IN (1,2)
20428:
20429: lv_where_str := ' AND inventory_item_flag NOT IN (1,2) ';
20430:
20431: lv_return := MSC_ST_UTIL.LOG_ERROR
20432: (p_table_name => 'MSC_ST_SYSTEM_ITEMS',
20433: p_instance_code => v_instance_code,
20434: p_row => lv_column_names,
20435: p_severity => G_SEV_WARNING,

Line 20449: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

20445: RAISE ex_logging_err;
20446: END IF;
20447:
20448: -- Set the error message
20449: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
20450: (p_app_short_name => 'MSC',
20451: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
20452: p_message_text => lv_message_text,
20453: p_error_text => lv_error_text,

Line 20467: lv_return := MSC_ST_UTIL.LOG_ERROR

20463: -- Default inventory_item_flag to 1 if NOT IN (1,2)
20464:
20465: lv_where_str := ' AND inventory_type NOT IN (1,2,3,4,5,6,7,8) ';
20466:
20467: lv_return := MSC_ST_UTIL.LOG_ERROR
20468: (p_table_name => 'MSC_ST_SYSTEM_ITEMS',
20469: p_instance_code => v_instance_code,
20470: p_row => lv_column_names,
20471: p_severity => G_SEV_WARNING,

Line 20485: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

20481: RAISE ex_logging_err;
20482: END IF;
20483: END IF ; --v_install_msc
20484: -- Set the error message
20485: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
20486: (p_app_short_name => 'MSC',
20487: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
20488: p_message_text => lv_message_text,
20489: p_error_text => lv_error_text,

Line 20503: lv_return := MSC_ST_UTIL.LOG_ERROR

20499: -- Default BOM Item Type to 4 if NOT IN (1,2,3,4,5)
20500:
20501: lv_where_str := ' AND bom_item_type NOT IN (1,2,3,4,5) ';
20502:
20503: lv_return := MSC_ST_UTIL.LOG_ERROR
20504: (p_table_name => 'MSC_ST_SYSTEM_ITEMS',
20505: p_instance_code => v_instance_code,
20506: p_row => lv_column_names,
20507: p_severity => G_SEV_WARNING,

Line 20522: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

20518: END IF;
20519:
20520:
20521: -- Set the error message for DRP_PLANNED flag
20522: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
20523: (p_app_short_name => 'MSC',
20524: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
20525: p_message_text => lv_message_text,
20526: p_error_text => lv_error_text,

Line 20542: lv_return := MSC_ST_UTIL.LOG_ERROR

20538: lv_where_str :=
20539: ' AND NVL(drp_planned,'||NULL_VALUE||')'
20540: ||' NOT IN (1,2)';
20541:
20542: lv_return := MSC_ST_UTIL.LOG_ERROR
20543: (p_table_name => 'MSC_ST_SYSTEM_ITEMS',
20544: p_instance_code => v_instance_code,
20545: p_row => lv_column_names,
20546: p_severity => G_SEV_WARNING,

Line 20562: lv_return := MSC_ST_util.GET_ERROR_MESSAGE

20558:
20559:
20560: -- Set the error message for SERIAL_NUMBER_CONTROL_CODE
20561:
20562: lv_return := MSC_ST_util.GET_ERROR_MESSAGE
20563: (p_app_short_name => 'MSC',
20564: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
20565: p_message_text => lv_message_text,
20566: p_error_text => lv_error_text,

Line 20582: lv_return := MSC_ST_util.LOG_ERROR

20578: lv_where_str :=
20579: ' AND NVL(SERIAL_NUMBER_CONTROL_CODE,2)'
20580: ||' NOT IN (1,2)';
20581:
20582: lv_return := MSC_ST_util.LOG_ERROR
20583: (p_table_name => 'MSC_ST_SYSTEM_ITEMS',
20584: p_instance_code => v_instance_code,
20585: p_row => lv_column_names,
20586: p_severity => G_SEV_WARNING,

Line 20605: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

20601:
20602: -- Assumes the org_id,inventory_item_id and sr_instance_id is derrived by now.
20603: -- Set the error message
20604:
20605: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
20606: (p_app_short_name => 'MSC',
20607: p_error_code => 'MSC_PP_SERIAL_FLAG_NOT_CHANGED',
20608: p_message_text => lv_message_text,
20609: p_error_text => lv_error_text);

Line 20691: MSC_ST_UTIL.SET_PROCESS_FLAG(p_table_name => 'MSC_ST_SYSTEM_ITEMS',

20687: /*** Setting the process_flag to valid in LOAD_ITEM_ABC_CLASSES -- fix for the bug 2191021
20688: -- Set the process flag as Valid and populate instance_id */
20689:
20690: lv_return :=
20691: MSC_ST_UTIL.SET_PROCESS_FLAG(p_table_name => 'MSC_ST_SYSTEM_ITEMS',
20692: p_instance_id => v_instance_id,
20693: p_instance_code => v_instance_code,
20694: p_process_flag => G_VALID,
20695: p_error_text => lv_error_text,

Line 20707: MSC_ST_UTIL.LOG_ERROR(p_table_name =>'MSC_ST_SYSTEM_ITEMS',

20703:
20704: -- At the end calling the LOG_ERROR for logging all errored out records
20705:
20706: lv_return :=
20707: MSC_ST_UTIL.LOG_ERROR(p_table_name =>'MSC_ST_SYSTEM_ITEMS',
20708: p_instance_code =>v_instance_code,
20709: p_row =>lv_column_names,
20710: p_severity =>G_SEV_ERROR,
20711: p_message_text =>NULL,

Line 20803: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

20799: AND sr_instance_code = v_instance_code;
20800:
20801: BEGIN
20802:
20803: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
20804: (p_app_short_name => 'MSC',
20805: p_error_code => 'MSC_PP_DUP_REC_FOR_XML',
20806: p_message_text => lv_message_text,
20807: p_error_text => lv_error_text);

Line 20848: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

20844:
20845: EXECUTE IMMEDIATE lv_sql_stmt
20846: USING v_instance_code;
20847:
20848: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
20849: (p_app_short_name => 'MSC',
20850: p_error_code => 'MSC_PP_DUP_REC_FOR_BATCH_LOAD',
20851: p_message_text => lv_message_text,
20852: p_error_text => lv_error_text);

Line 20951: /* lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

20947: creation_date = v_current_date,
20948: created_by = v_current_user
20949: WHERE rowid = lb_rowid(j);
20950:
20951: /* lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
20952: (p_app_short_name => 'MSC',
20953: p_error_code => 'MSC_PP_NO_DELETION',
20954: p_message_text => lv_message_text,
20955: p_error_text => lv_error_text,

Line 20986: lv_return := MSC_ST_UTIL.LOG_ERROR

20982:
20983: -- RELATIONSHIP_TYPE default to 2
20984:
20985: lv_where_str := ' AND RELATIONSHIP_TYPE IS NULL';
20986: lv_return := MSC_ST_UTIL.LOG_ERROR
20987: (p_table_name => 'msc_st_item_substitutes',
20988: p_instance_code => v_instance_code,
20989: p_row => lv_column_names,
20990: p_severity => G_SEV_WARNING,

Line 21004: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

21000: RAISE ex_logging_err;
21001: END IF;
21002:
21003: -- Set the error message
21004: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
21005: (p_app_short_name => 'MSC',
21006: p_error_code => 'MSC_PP_INVALID_VALUE',
21007: p_message_text => lv_message_text,
21008: p_error_text => lv_error_text,

Line 21038: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

21034: USING lv_batch_id,
21035: v_instance_code;
21036:
21037: -- Set the error message
21038: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
21039: (p_app_short_name => 'MSC',
21040: p_error_code => 'MSC_PP_INVALID_VALUE',
21041: p_message_text => lv_message_text,
21042: p_error_text => lv_error_text,

Line 21072: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

21068: EXECUTE IMMEDIATE lv_sql_stmt
21069: USING lv_batch_id,
21070: v_instance_code;
21071:
21072: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
21073: (p_app_short_name => 'MSC',
21074: p_error_code => 'MSC_PP_INVALID_VALUE',
21075: p_message_text => lv_message_text,
21076: p_error_text => lv_error_text,

Line 21085: lv_return :=msc_st_util.derive_partner_org_id

21081: RAISE ex_logging_err;
21082: END IF;
21083:
21084: -- Derive organization_id
21085: lv_return :=msc_st_util.derive_partner_org_id
21086: (p_table_name => 'MSC_ST_ITEM_SUBSTITUTES',
21087: p_org_partner_name => 'ORGANIZATION_CODE',
21088: p_org_partner_id => 'ORGANIZATION_ID',
21089: p_instance_code => v_instance_code,

Line 21099: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

21095: IF lv_return <> 0 THEN
21096: RAISE ex_logging_err;
21097: END IF;
21098:
21099: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
21100: (p_app_short_name => 'MSC',
21101: p_error_code => 'MSC_PP_INVALID_VALUE',
21102: p_message_text => lv_message_text,
21103: p_error_text => lv_error_text,

Line 21114: lv_return :=msc_st_util.derive_partner_org_id

21110:
21111: lv_where_str := ' AND RELATIONSHIP_TYPE = 2';
21112:
21113: -- Derive sr_tp_id(Customer)
21114: lv_return :=msc_st_util.derive_partner_org_id
21115: (p_table_name => 'MSC_ST_ITEM_SUBSTITUTES',
21116: p_org_partner_name => 'CUSTOMER_NAME',
21117: p_org_partner_id => 'CUSTOMER_ID',
21118: p_instance_code => v_instance_code,

Line 21133: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

21129: RAISE ex_logging_err;
21130: END IF;
21131:
21132:
21133: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
21134: (p_app_short_name => 'MSC',
21135: p_error_code => 'MSC_PP_INVALID_VALUE',
21136: p_message_text => lv_message_text,
21137: p_error_text => lv_error_text,

Line 21143: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_SITE_ID

21139: p_token_value1 => 'CUSTOMER_SITE_CODE');
21140:
21141: lv_where_str := ' AND RELATIONSHIP_TYPE = 2';
21142: -- Derive sr_tp_site_id(Customer)
21143: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_SITE_ID
21144: (p_table_name => 'MSC_ST_ITEM_SUBSTITUTES',
21145: p_partner_name => 'CUSTOMER_NAME',
21146: p_partner_site_code => 'CUSTOMER_SITE_CODE',
21147: p_partner_site_id => 'CUSTOMER_SITE_ID',

Line 21163: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

21159: END IF;
21160:
21161: --DERIVE LOWER_ITEM_ID
21162:
21163: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
21164: (p_app_short_name => 'MSC',
21165: p_error_code => 'MSC_PP_INVALID_VALUE',
21166: p_message_text => lv_message_text,
21167: p_error_text => lv_error_text,

Line 21172: lv_return := MSC_ST_UTIL.DERIVE_ITEM_ID

21168: p_token1 => 'COLUMN_NAME',
21169: p_token_value1 => 'ITEM_NAME');
21170:
21171:
21172: lv_return := MSC_ST_UTIL.DERIVE_ITEM_ID
21173: (p_table_name =>'MSC_ST_ITEM_SUBSTITUTES',
21174: p_item_col_name =>'ITEM_NAME',
21175: p_item_col_id =>'LOWER_ITEM_ID',
21176: p_instance_code => v_instance_code,

Line 21193: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

21189:
21190:
21191: --DERIVE HIGHER_ITEM_ID
21192:
21193: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
21194: (p_app_short_name => 'MSC',
21195: p_error_code => 'MSC_PP_INVALID_VALUE',
21196: p_message_text => lv_message_text,
21197: p_error_text => lv_error_text,

Line 21202: lv_return := MSC_ST_UTIL.DERIVE_ITEM_ID

21198: p_token1 => 'COLUMN_NAME',
21199: p_token_value1 => 'SUBSTITUTE_ITEM_NAME');
21200:
21201:
21202: lv_return := MSC_ST_UTIL.DERIVE_ITEM_ID
21203: (p_table_name =>'msc_st_item_substitutes',
21204: p_item_col_name =>'SUBSTITUTE_ITEM_NAME',
21205: p_item_col_id =>'HIGHER_ITEM_ID',
21206: p_instance_code => v_instance_code,

Line 21224: lv_return := MSC_ST_UTIL.LOG_ERROR

21220: -- SUBSTITUTION_SET always default to 'DEFAULT'
21221:
21222: lv_where_str :=
21223: ' AND NVL(SUBSTITUTION_SET,'||''''||NULL_CHAR||''''||') = '||''''||NULL_CHAR||'''';
21224: lv_return := MSC_ST_UTIL.LOG_ERROR
21225: (p_table_name => 'msc_st_item_substitutes',
21226: p_instance_code => v_instance_code,
21227: p_row => lv_column_names,
21228: p_severity => G_SEV_WARNING,

Line 21242: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

21238: RAISE ex_logging_err;
21239: END IF;
21240:
21241: /* removed for SRP
21242: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
21243: (p_app_short_name => 'MSC',
21244: p_error_code => 'MSC_PP_NO_UPDATION',
21245: p_message_text => lv_message_text,
21246: p_error_text => lv_error_text,

Line 21286: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

21282: */
21283: ------ Changes for SRP legacy collections
21284:
21285: ---set message
21286: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
21287: (p_app_short_name => 'MSC',
21288: p_error_code => 'MSC_PP_INVALID_VALUE',
21289: p_message_text => lv_message_text,
21290: p_error_text => lv_error_text,

Line 21334: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG

21330: END IF;
21331:
21332: -- Set the process flag as Valid and derive sr_instance_id
21333:
21334: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG
21335: (p_table_name => 'MSC_ST_ITEM_SUBSTITUTES',
21336: p_instance_id => v_instance_id,
21337: p_instance_code => v_instance_code,
21338: p_process_flag => G_VALID,

Line 21349: lv_return := MSC_ST_UTIL.LOG_ERROR

21345: END IF;
21346:
21347: -- Inserting all the errored out records into MSC_ERRORS
21348:
21349: lv_return := MSC_ST_UTIL.LOG_ERROR
21350: (p_table_name => 'MSC_ST_ITEM_SUBSTITUTES',
21351: p_instance_code => v_instance_code,
21352: p_row => lv_column_names,
21353: p_severity => G_SEV_ERROR,

Line 21512: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

21508:
21509: --Validation check fot the table MSC_ST_ITEM_SUPPLIERS.
21510: --Duplicate records check for the records whose source is XML
21511:
21512: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
21513: (p_app_short_name => 'MSC',
21514: p_error_code => 'MSC_PP_DUP_REC_FOR_XML',
21515: p_message_text => lv_message_text,
21516: p_error_text => lv_error_text);

Line 21555: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

21551: --Duplicate records check for the records whose source is other than XML
21552: --Different SQL is used because in XML we can identify the latest records
21553: --whereas in batch load we cannot.
21554:
21555: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
21556: (p_app_short_name => 'MSC',
21557: p_error_code => 'MSC_PP_DUP_REC_FOR_BATCH_LOAD',
21558: p_message_text => lv_message_text,
21559: p_error_text => lv_error_text);

Line 21654: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

21650: WHERE rowid = lb_rowid(j);
21651:
21652: --Deletion is not allowed on this table.
21653:
21654: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
21655: (p_app_short_name => 'MSC',
21656: p_error_code => 'MSC_PP_NO_DELETION',
21657: p_message_text => lv_message_text,
21658: p_error_text => lv_error_text,

Line 21683: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

21679: EXECUTE IMMEDIATE lv_sql_stmt
21680: USING lv_batch_id,
21681: v_instance_code;
21682:
21683: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
21684: (p_app_short_name => 'MSC',
21685: p_error_code => 'MSC_PP_INVALID_VALUE',
21686: p_message_text => lv_message_text,
21687: p_error_text => lv_error_text,

Line 21714: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

21710: USING lv_batch_id,
21711: v_instance_code;
21712:
21713:
21714: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
21715: (p_app_short_name => 'MSC',
21716: p_error_code => 'MSC_PP_COL_REF_NOT_EXIST',
21717: p_message_text => lv_message_text,
21718: p_error_text => lv_error_text,

Line 21762: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

21758: USING v_instance_id,
21759: v_instance_code,
21760: lv_batch_id;
21761:
21762: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
21763: (p_app_short_name => 'MSC',
21764: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
21765: p_message_text => lv_message_text,
21766: p_error_text => lv_error_text,

Line 21782: lv_return := MSC_ST_UTIL.LOG_ERROR

21778: ||' NOT IN(1,2)';
21779: --Log a warning for those records where the deleted_flag has a value other
21780: --than SYS_NO
21781:
21782: lv_return := MSC_ST_UTIL.LOG_ERROR
21783: (p_table_name => 'MSC_ST_ITEM_SUPPLIERS',
21784: p_instance_code => v_instance_code,
21785: p_row => lv_column_names,
21786: p_severity => G_SEV_WARNING,

Line 21799: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

21795: IF lv_return <> 0 THEN
21796: RAISE ex_logging_err;
21797: END IF;
21798:
21799: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
21800: (p_app_short_name => 'MSC',
21801: p_error_code => 'MSC_PP_INVALID_VALUE',
21802: p_message_text => lv_message_text,
21803: p_error_text => lv_error_text,

Line 21812: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID

21808: RAISE ex_logging_err;
21809: END IF;
21810:
21811: --Derive Organization_id
21812: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID
21813: (p_table_name => 'MSC_ST_ITEM_SUPPLIERS',
21814: p_org_partner_name => 'ORGANIZATION_CODE',
21815: p_org_partner_id => 'ORGANIZATION_ID',
21816: p_instance_code => v_instance_code,

Line 21829: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

21825: IF lv_return <> 0 THEN
21826: RAISE ex_logging_err;
21827: END IF;
21828:
21829: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
21830: (p_app_short_name => 'MSC',
21831: p_error_code => 'MSC_PP_INVALID_VALUE',
21832: p_message_text => lv_message_text,
21833: p_error_text => lv_error_text,

Line 21838: lv_return := MSC_ST_UTIL.DERIVE_ITEM_ID

21834: p_token1 => 'COLUMN_NAME',
21835: p_token_value1 => 'ITEM_NAME');
21836:
21837: --Derive Inventory_item_id
21838: lv_return := MSC_ST_UTIL.DERIVE_ITEM_ID
21839: (p_table_name => 'MSC_ST_ITEM_SUPPLIERS',
21840: p_item_col_name => 'ITEM_NAME',
21841: p_item_col_id => 'INVENTORY_ITEM_ID',
21842: p_instance_id => v_instance_id,

Line 21856: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

21852: RAISE ex_logging_err;
21853: END IF;
21854:
21855: --Derive Supplier_id
21856: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
21857: (p_app_short_name => 'MSC',
21858: p_error_code => 'MSC_PP_INVALID_VALUE',
21859: p_message_text => lv_message_text,
21860: p_error_text => lv_error_text,

Line 21868: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID

21864: IF lv_return <> 0 THEN
21865: RAISE ex_logging_err;
21866: END IF;
21867:
21868: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID
21869: (p_table_name => 'MSC_ST_ITEM_SUPPLIERS',
21870: p_org_partner_name => 'VENDOR_NAME',
21871: p_org_partner_id => 'SUPPLIER_ID',
21872: p_instance_code => v_instance_code,

Line 21885: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

21881: IF lv_return <> 0 THEN
21882: RAISE ex_logging_err;
21883: END IF;
21884:
21885: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
21886: (p_app_short_name => 'MSC',
21887: p_error_code => 'MSC_PP_INVALID_VALUE',
21888: p_message_text => lv_message_text,
21889: p_error_text => lv_error_text,

Line 21898: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_SITE_ID

21894: RAISE ex_logging_err;
21895: END IF;
21896:
21897: --Derive Supplier_site_id
21898: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_SITE_ID
21899: (p_table_name => 'MSC_ST_ITEM_SUPPLIERS',
21900: p_partner_name => 'VENDOR_NAME',
21901: p_partner_site_code => 'VENDOR_SITE_CODE',
21902: p_partner_site_id => 'SUPPLIER_SITE_ID',

Line 21933: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

21929: USING v_instance_code,
21930: lv_batch_id; */
21931:
21932:
21933: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
21934: (p_app_short_name => 'MSC',
21935: p_error_code => 'MSC_PP_COL_REF_NOT_EXIST',
21936: p_message_text => lv_message_text,
21937: p_error_text => lv_error_text,

Line 21997: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

21993: lv_batch_id;
21994:
21995: -- validation for REPLENISHMENT_METHOD
21996: -- Set the error message
21997: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
21998: (p_app_short_name => 'MSC',
21999: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
22000: p_message_text => lv_message_text,
22001: p_error_text => lv_error_text,

Line 22016: lv_return := MSC_ST_UTIL.LOG_ERROR

22012:
22013: lv_where_str :=
22014: ' AND NVL(REPLENISHMENT_METHOD,'||NULL_VALUE||') NOT IN(1,2,3,4)';
22015:
22016: lv_return := MSC_ST_UTIL.LOG_ERROR
22017: (p_table_name => 'MSC_ST_ITEM_SUPPLIERS',
22018: p_instance_code => v_instance_code,
22019: p_row => lv_column_names,
22020: p_severity => G_SEV_WARNING,

Line 22055: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

22051:
22052: -- company_id derivation
22053: -- derive the company_id . if not found then error out record
22054:
22055: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
22056: (p_app_short_name => 'MSC',
22057: p_error_code => 'MSC_PP_INVALID_VALUE',
22058: p_message_text => lv_message_text,
22059: p_error_text => lv_error_text,

Line 22067: lv_return := MSC_ST_UTIL.DERIVE_COMPANY_ID

22063: IF lv_return <> 0 THEN
22064: RAISE ex_logging_err;
22065: END IF;
22066:
22067: lv_return := MSC_ST_UTIL.DERIVE_COMPANY_ID
22068: (p_table_name => 'MSC_ST_ITEM_SUPPLIERS',
22069: p_company_name => 'COMPANY_NAME',
22070: p_company_id => 'COMPANY_ID',
22071: p_instance_code => v_instance_code,

Line 22121: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG

22117: END IF; -- SCE installed
22118:
22119: -- SCE Changes end here
22120:
22121: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG
22122: (p_table_name => 'MSC_ST_ITEM_SUPPLIERS',
22123: p_instance_id => v_instance_id,
22124: p_instance_code => v_instance_code,
22125: p_process_flag => G_VALID,

Line 22134: lv_return := MSC_ST_UTIL.LOG_ERROR

22130: IF lv_return <> 0 THEN
22131: RAISE ex_logging_err;
22132: END IF;
22133:
22134: lv_return := MSC_ST_UTIL.LOG_ERROR
22135: (p_table_name => 'MSC_ST_ITEM_SUPPLIERS',
22136: p_instance_code => v_instance_code,
22137: p_row => lv_column_names,
22138: p_severity => G_SEV_ERROR,

Line 22153: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

22149: END LOOP;
22150:
22151: --******Validation for MSC_ST_SUPPLIER_CAPACITIES***********
22152:
22153: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
22154: (p_app_short_name => 'MSC',
22155: p_error_code => 'MSC_PP_DUP_REC_FOR_XML',
22156: p_message_text => lv_message_text,
22157: p_error_text => lv_error_text);

Line 22192: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

22188:
22189: EXECUTE IMMEDIATE lv_sql_stmt
22190: USING v_instance_code;
22191:
22192: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
22193: (p_app_short_name => 'MSC',
22194: p_error_code => 'MSC_PP_DUP_REC_FOR_BATCH_LOAD',
22195: p_message_text => lv_message_text,
22196: p_error_text => lv_error_text);

Line 22289: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

22285: created_by = v_current_user
22286: WHERE rowid = lb_rowid(j);
22287:
22288:
22289: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
22290: (p_app_short_name => 'MSC',
22291: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
22292: p_message_text => lv_message_text,
22293: p_error_text => lv_error_text,

Line 22308: lv_return := MSC_ST_UTIL.LOG_ERROR

22304: ' AND NVL(deleted_flag,'||NULL_VALUE||') '
22305: ||' NOT IN(1,2)';
22306: --Log a warning for those records where the deleted_flag has a value other
22307: --than SYS_NO
22308: lv_return := MSC_ST_UTIL.LOG_ERROR
22309: (p_table_name => 'MSC_ST_SUPPLIER_CAPACITIES',
22310: p_instance_code => v_instance_code,
22311: p_row => lv_column_names,
22312: p_severity => G_SEV_WARNING,

Line 22325: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

22321: IF lv_return <> 0 THEN
22322: RAISE ex_logging_err;
22323: END IF;
22324:
22325: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
22326: (p_app_short_name => 'MSC',
22327: p_error_code => 'MSC_PP_INVALID_VALUE',
22328: p_message_text => lv_message_text,
22329: p_error_text => lv_error_text,

Line 22334: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID

22330: p_token1 => 'COLUMN_NAME',
22331: p_token_value1 => 'ORGANIZATION_CODE');
22332:
22333: --Derive Organization_id
22334: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID
22335: (p_table_name => 'MSC_ST_SUPPLIER_CAPACITIES',
22336: p_org_partner_name => 'ORGANIZATION_CODE',
22337: p_org_partner_id => 'ORGANIZATION_ID',
22338: p_instance_code => v_instance_code,

Line 22351: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

22347: IF lv_return <> 0 THEN
22348: RAISE ex_logging_err;
22349: END IF;
22350:
22351: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
22352: (p_app_short_name => 'MSC',
22353: p_error_code => 'MSC_PP_INVALID_VALUE',
22354: p_message_text => lv_message_text,
22355: p_error_text => lv_error_text,

Line 22364: lv_return := MSC_ST_UTIL.DERIVE_ITEM_ID

22360: RAISE ex_logging_err;
22361: END IF;
22362:
22363: --Derive Inventory_item_id
22364: lv_return := MSC_ST_UTIL.DERIVE_ITEM_ID
22365: (p_table_name => 'MSC_ST_SUPPLIER_CAPACITIES',
22366: p_item_col_name => 'ITEM_NAME',
22367: p_item_col_id => 'INVENTORY_ITEM_ID',
22368: p_instance_id => v_instance_id,

Line 22381: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

22377: IF lv_return <> 0 THEN
22378: RAISE ex_logging_err;
22379: END IF;
22380:
22381: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
22382: (p_app_short_name => 'MSC',
22383: p_error_code => 'MSC_PP_INVALID_VALUE',
22384: p_message_text => lv_message_text,
22385: p_error_text => lv_error_text,

Line 22394: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID

22390: RAISE ex_logging_err;
22391: END IF;
22392:
22393: --Derive Supplier_id
22394: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID
22395: (p_table_name => 'MSC_ST_SUPPLIER_CAPACITIES',
22396: p_org_partner_name => 'VENDOR_NAME',
22397: p_org_partner_id => 'SUPPLIER_ID',
22398: p_instance_code => v_instance_code,

Line 22411: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

22407: IF lv_return <> 0 THEN
22408: RAISE ex_logging_err;
22409: END IF;
22410:
22411: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
22412: (p_app_short_name => 'MSC',
22413: p_error_code => 'MSC_PP_INVALID_VALUE',
22414: p_message_text => lv_message_text,
22415: p_error_text => lv_error_text,

Line 22424: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_SITE_ID

22420: RAISE ex_logging_err;
22421: END IF;
22422:
22423: --Derive Supplier_site_id
22424: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_SITE_ID
22425: (p_table_name => 'MSC_ST_SUPPLIER_CAPACITIES',
22426: p_partner_name => 'VENDOR_NAME',
22427: p_partner_site_code => 'VENDOR_SITE_CODE',
22428: p_partner_site_id => 'SUPPLIER_SITE_ID',

Line 22443: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

22439: RAISE ex_logging_err;
22440: END IF;
22441:
22442:
22443: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
22444: (p_app_short_name => 'MSC',
22445: p_error_code => 'MSC_PP_SUPP_NOT_EXIST',
22446: p_message_text => lv_message_text,
22447: p_error_text => lv_error_text,

Line 22528: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

22524: EXECUTE IMMEDIATE lv_sql_stmt
22525: USING v_instance_code,
22526: lv_batch_id;
22527:
22528: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
22529: (p_app_short_name => 'MSC',
22530: p_error_code => 'MSC_PP_COL_VAL_NULL',
22531: p_message_text => lv_message_text,
22532: p_error_text => lv_error_text,

Line 22574: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG

22570: IF NVL(lv_return,0) <> 0 THEN
22571: RAISE ex_logging_err;
22572: END IF;
22573:
22574: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG
22575: (p_table_name => 'MSC_ST_SUPPLIER_CAPACITIES',
22576: p_instance_id => v_instance_id,
22577: p_instance_code => v_instance_code,
22578: p_process_flag => G_VALID,

Line 22587: lv_return := MSC_ST_UTIL.LOG_ERROR

22583: IF lv_return <> 0 THEN
22584: RAISE ex_logging_err;
22585: END IF;
22586:
22587: lv_return := MSC_ST_UTIL.LOG_ERROR
22588: (p_table_name => 'MSC_ST_SUPPLIER_CAPACITIES',
22589: p_instance_code => v_instance_code,
22590: p_row => lv_column_names,
22591: p_severity => G_SEV_ERROR,

Line 22605: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

22601: END LOOP;
22602:
22603: --*********Validation for MSC_ST_SUPPLIER_FLEX_FENCES***********
22604:
22605: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
22606: (p_app_short_name => 'MSC',
22607: p_error_code => 'MSC_PP_DUP_REC_FOR_XML',
22608: p_message_text => lv_message_text,
22609: p_error_text => lv_error_text);

Line 22647: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

22643: --Duplicate records check for the records whose source is other than XML
22644: --Different SQL is used because in XML we can identify the latest records
22645: --whereas in batch load we cannot.
22646:
22647: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
22648: (p_app_short_name => 'MSC',
22649: p_error_code => 'MSC_PP_DUP_REC_FOR_BATCH_LOAD',
22650: p_message_text => lv_message_text,
22651: p_error_text => lv_error_text);

Line 22739: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

22735: created_by = v_current_user
22736: WHERE rowid = lb_rowid(j);
22737:
22738:
22739: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
22740: (p_app_short_name => 'MSC',
22741: p_error_code => 'MSC_PP_NO_DELETION',
22742: p_message_text => lv_message_text,
22743: p_error_text => lv_error_text,

Line 22769: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

22765: EXECUTE IMMEDIATE lv_sql_stmt
22766: USING lv_batch_id,
22767: v_instance_code;
22768:
22769: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
22770: (p_app_short_name => 'MSC',
22771: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
22772: p_message_text => lv_message_text,
22773: p_error_text => lv_error_text,

Line 22788: lv_return := MSC_ST_UTIL.LOG_ERROR

22784: ||' NOT IN(1,2)';
22785:
22786: --Log a warning for those records where the deleted_flag has a value other
22787: --than SYS_NO
22788: lv_return := MSC_ST_UTIL.LOG_ERROR
22789: (p_table_name => 'MSC_ST_SUPPLIER_FLEX_FENCES',
22790: p_instance_code => v_instance_code,
22791: p_row => lv_column_names,
22792: p_severity => G_SEV_WARNING,

Line 22805: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

22801: IF lv_return <> 0 THEN
22802: RAISE ex_logging_err;
22803: END IF;
22804:
22805: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
22806: (p_app_short_name => 'MSC',
22807: p_error_code => 'MSC_PP_INVALID_VALUE',
22808: p_message_text => lv_message_text,
22809: p_error_text => lv_error_text,

Line 22818: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID

22814: RAISE ex_logging_err;
22815: END IF;
22816:
22817: --Derive Organization_id
22818: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID
22819: (p_table_name => 'MSC_ST_SUPPLIER_FLEX_FENCES',
22820: p_org_partner_name => 'ORGANIZATION_CODE',
22821: p_org_partner_id => 'ORGANIZATION_ID',
22822: p_instance_code => v_instance_code,

Line 22835: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

22831: IF lv_return <> 0 THEN
22832: RAISE ex_logging_err;
22833: END IF;
22834:
22835: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
22836: (p_app_short_name => 'MSC',
22837: p_error_code => 'MSC_PP_INVALID_VALUE',
22838: p_message_text => lv_message_text,
22839: p_error_text => lv_error_text,

Line 22848: lv_return := MSC_ST_UTIL.DERIVE_ITEM_ID

22844: RAISE ex_logging_err;
22845: END IF;
22846:
22847: --Derive Inventory_item_id
22848: lv_return := MSC_ST_UTIL.DERIVE_ITEM_ID
22849: (p_table_name => 'MSC_ST_SUPPLIER_FLEX_FENCES',
22850: p_item_col_name => 'ITEM_NAME',
22851: p_item_col_id => 'INVENTORY_ITEM_ID',
22852: p_instance_id => v_instance_id,

Line 22865: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

22861: IF lv_return <> 0 THEN
22862: RAISE ex_logging_err;
22863: END IF;
22864:
22865: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
22866: (p_app_short_name => 'MSC',
22867: p_error_code => 'MSC_PP_INVALID_VALUE',
22868: p_message_text => lv_message_text,
22869: p_error_text => lv_error_text,

Line 22878: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID

22874: RAISE ex_logging_err;
22875: END IF;
22876:
22877: --Derive Supplier_id
22878: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID
22879: (p_table_name => 'MSC_ST_SUPPLIER_FLEX_FENCES',
22880: p_org_partner_name => 'VENDOR_NAME',
22881: p_org_partner_id => 'SUPPLIER_ID',
22882: p_instance_code => v_instance_code,

Line 22895: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

22891: IF lv_return <> 0 THEN
22892: RAISE ex_logging_err;
22893: END IF;
22894:
22895: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
22896: (p_app_short_name => 'MSC',
22897: p_error_code => 'MSC_PP_INVALID_VALUE',
22898: p_message_text => lv_message_text,
22899: p_error_text => lv_error_text,

Line 22908: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_SITE_ID

22904: RAISE ex_logging_err;
22905: END IF;
22906:
22907: --Derive Supplier_site_id
22908: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_SITE_ID
22909: (p_table_name => 'MSC_ST_SUPPLIER_FLEX_FENCES',
22910: p_partner_name => 'VENDOR_NAME',
22911: p_partner_site_code=> 'VENDOR_SITE_CODE',
22912: p_partner_site_id => 'SUPPLIER_SITE_ID',

Line 22926: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

22922: IF lv_return <> 0 THEN
22923: RAISE ex_logging_err;
22924: END IF;
22925:
22926: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
22927: (p_app_short_name => 'MSC',
22928: p_error_code => 'MSC_PP_SUPP_NOT_EXIST',
22929: p_message_text => lv_message_text,
22930: p_error_text => lv_error_text,

Line 23009: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

23005: EXECUTE IMMEDIATE lv_sql_stmt
23006: USING lv_batch_id,
23007: v_instance_code;
23008:
23009: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
23010: (p_app_short_name => 'MSC',
23011: p_error_code => 'MSC_PP_COL_VAL_NULL',
23012: p_message_text => lv_message_text,
23013: p_error_text => lv_error_text,

Line 23053: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG

23049: IF NVL(lv_return,0) <> 0 THEN
23050: RAISE ex_logging_err;
23051: END IF;
23052:
23053: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG
23054: (p_table_name => 'MSC_ST_SUPPLIER_FLEX_FENCES',
23055: p_instance_id => v_instance_id,
23056: p_instance_code => v_instance_code,
23057: p_process_flag => G_VALID,

Line 23066: lv_return := MSC_ST_UTIL.LOG_ERROR

23062: IF lv_return <> 0 THEN
23063: RAISE ex_logging_err;
23064: END IF;
23065:
23066: lv_return := MSC_ST_UTIL.LOG_ERROR
23067: (p_table_name => 'MSC_ST_SUPPLIER_FLEX_FENCES',
23068: p_instance_code => v_instance_code,
23069: p_row => lv_column_names,
23070: p_severity => G_ERROR_FLG,

Line 23120: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

23116: AND sr_instance_code = v_instance_code;
23117:
23118: BEGIN
23119:
23120: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
23121: (p_app_short_name => 'MSC',
23122: p_error_code => 'MSC_PP_DUP_REC_FOR_XML',
23123: p_message_text => lv_message_text,
23124: p_error_text => lv_error_text);

Line 23156: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

23152:
23153: EXECUTE IMMEDIATE lv_sql_stmt
23154: USING v_instance_code;
23155:
23156: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
23157: (p_app_short_name => 'MSC',
23158: p_error_code => 'MSC_PP_DUP_REC_FOR_BATCH_LOAD',
23159: p_message_text => lv_message_text,
23160: p_error_text => lv_error_text);

Line 23245: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

23241: creation_date = v_current_date,
23242: created_by = v_current_user
23243: WHERE rowid = lb_rowid(j);
23244:
23245: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
23246: (p_app_short_name => 'MSC',
23247: p_error_code => 'MSC_PP_NO_DELETION',
23248: p_message_text => lv_message_text,
23249: p_error_text => lv_error_text,

Line 23275: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

23271: EXECUTE IMMEDIATE lv_sql_stmt
23272: USING lv_batch_id,
23273: v_instance_code;
23274:
23275: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
23276: (p_app_short_name => 'MSC',
23277: p_error_code => 'MSC_PP_COL_VAL_NULL',
23278: p_message_text => lv_message_text,
23279: p_error_text => lv_error_text,

Line 23304: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

23300: EXECUTE IMMEDIATE lv_sql_stmt
23301: USING lv_batch_id,
23302: v_instance_code;
23303:
23304: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
23305: (p_app_short_name => 'MSC',
23306: p_error_code => 'MSC_PP_INVALID_VALUE',
23307: p_message_text => lv_message_text,
23308: p_error_text => lv_error_text,

Line 23317: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID

23313: RAISE ex_logging_err;
23314: END IF;
23315:
23316: --Derive Organization_id
23317: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID
23318: (p_table_name => 'MSC_ST_SAFETY_STOCKS',
23319: p_org_partner_name => 'ORGANIZATION_CODE',
23320: p_org_partner_id => 'ORGANIZATION_ID',
23321: p_instance_code => v_instance_code,

Line 23334: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

23330: IF lv_return <> 0 THEN
23331: RAISE ex_logging_err;
23332: END IF;
23333:
23334: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
23335: (p_app_short_name => 'MSC',
23336: p_error_code => 'MSC_PP_INVALID_VALUE',
23337: p_message_text => lv_message_text,
23338: p_error_text => lv_error_text,

Line 23347: lv_return := MSC_ST_UTIL.DERIVE_ITEM_ID

23343: RAISE ex_logging_err;
23344: END IF;
23345:
23346: --Derive Inventory_item_id
23347: lv_return := MSC_ST_UTIL.DERIVE_ITEM_ID
23348: (p_table_name => 'MSC_ST_SAFETY_STOCKS',
23349: p_item_col_name => 'ITEM_NAME',
23350: p_item_col_id => 'INVENTORY_ITEM_ID',
23351: p_instance_id => v_instance_id,

Line 23364: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

23360: IF lv_return <> 0 THEN
23361: RAISE ex_logging_err;
23362: END IF;
23363:
23364: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
23365: (p_app_short_name => 'MSC',
23366: p_error_code => 'MSC_PP_SAFETY_STOCK_INVALID',
23367: p_message_text => lv_message_text,
23368: p_error_text => lv_error_text);

Line 23411: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

23407: USING lv_batch_id,
23408: v_instance_code;
23409:
23410:
23411: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
23412: (p_app_short_name => 'MSC',
23413: p_error_code => 'MSC_PP_FK_REF_NOT_EXIST',
23414: p_message_text => lv_message_text,
23415: p_error_text => lv_error_text,

Line 23427: lv_return := MSC_ST_UTIL.DERIVE_PROJ_TASK_ID

23423: RAISE ex_logging_err;
23424: END IF;
23425:
23426: --Derive Project Id.
23427: lv_return := MSC_ST_UTIL.DERIVE_PROJ_TASK_ID
23428: (p_table_name => 'MSC_ST_SAFETY_STOCKS',
23429: p_proj_col_name => 'PROJECT_NUMBER',
23430: p_proj_task_col_id => 'PROJECT_ID',
23431: p_instance_code => v_instance_code,

Line 23443: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

23439: IF lv_return <> 0 THEN
23440: RAISE ex_logging_err;
23441: END IF;
23442:
23443: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
23444: (p_app_short_name => 'MSC',
23445: p_error_code => 'MSC_PP_FK_REF_NOT_EXIST',
23446: p_message_text => lv_message_text,
23447: p_error_text => lv_error_text,

Line 23460: lv_return := MSC_ST_UTIL.DERIVE_PROJ_TASK_ID

23456: RAISE ex_logging_err;
23457: END IF;
23458:
23459: --Derive Task Id.
23460: lv_return := MSC_ST_UTIL.DERIVE_PROJ_TASK_ID
23461: (p_table_name => 'MSC_ST_SAFETY_STOCKS',
23462: p_proj_col_name => 'PROJECT_NUMBER',
23463: p_proj_task_col_id => 'TASK_ID',
23464: p_instance_code => v_instance_code,

Line 23491: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG

23487: IF NVL(lv_return,0) <> 0 THEN
23488: RAISE ex_logging_err;
23489: END IF;
23490:
23491: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG
23492: (p_table_name => 'MSC_ST_SAFETY_STOCKS',
23493: p_instance_id => v_instance_id,
23494: p_instance_code => v_instance_code,
23495: p_process_flag => G_VALID,

Line 23504: lv_return := MSC_ST_UTIL.LOG_ERROR

23500: IF lv_return <> 0 THEN
23501: RAISE ex_logging_err;
23502: END IF;
23503:
23504: lv_return := MSC_ST_UTIL.LOG_ERROR
23505: (p_table_name => 'MSC_ST_SAFETY_STOCKS',
23506: p_instance_code => v_instance_code,
23507: p_row => lv_column_names,
23508: p_severity => G_SEV_ERROR,

Line 23592: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

23588: GROUP BY sr_instance_code,company_name,category_name ;
23589:
23590: BEGIN
23591:
23592: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
23593: (p_app_short_name => 'MSC',
23594: p_error_code => 'MSC_PP_DUP_REC_FOR_XML',
23595: p_message_text => lv_message_text,
23596: p_error_text => lv_error_text);

Line 23630: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

23626: MSC_UTIL.LOG_MSG(MSC_UTIL.G_LVL_DEBUG_1,lv_sql_stmt);
23627: EXECUTE IMMEDIATE lv_sql_stmt
23628: USING v_instance_code;
23629:
23630: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
23631: (p_app_short_name => 'MSC',
23632: p_error_code => 'MSC_PP_DUP_REC_FOR_BATCH_LOAD',
23633: p_message_text => lv_message_text,
23634: p_error_text => lv_error_text);

Line 23750: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

23746: creation_date = v_current_date,
23747: created_by = v_current_user
23748: WHERE rowid = lb_rowid(j);
23749:
23750: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
23751: (p_app_short_name => 'MSC',
23752: p_error_code => 'MSC_PP_NO_DELETION',
23753: p_message_text => lv_message_text,
23754: p_error_text => lv_error_text,

Line 23780: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

23776: EXECUTE IMMEDIATE lv_sql_stmt
23777: USING lv_batch_id,
23778: v_instance_code;
23779:
23780: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
23781: (p_app_short_name => 'MSC',
23782: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
23783: p_message_text => lv_message_text,
23784: p_error_text => lv_error_text,

Line 23800: lv_return := MSC_ST_UTIL.LOG_ERROR

23796: ||' NOT IN(1,2)';
23797:
23798: --Log a warning for those records where the deleted_flag has a value other
23799: --SYS_NO
23800: lv_return := MSC_ST_UTIL.LOG_ERROR
23801: (p_table_name => 'MSC_ST_ITEM_CATEGORIES',
23802: p_instance_code => v_instance_code,
23803: p_row => lv_column_names,
23804: p_severity => G_SEV_WARNING,

Line 23817: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

23813: IF lv_return <> 0 THEN
23814: RAISE ex_logging_err;
23815: END IF;
23816:
23817: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
23818: (p_app_short_name => 'MSC',
23819: p_error_code => 'MSC_PP_INVALID_VALUE',
23820: p_message_text => lv_message_text,
23821: p_error_text => lv_error_text,

Line 23830: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID

23826: RAISE ex_logging_err;
23827: END IF;
23828:
23829: --Derive Organization_id
23830: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID
23831: (p_table_name => 'MSC_ST_ITEM_CATEGORIES',
23832: p_org_partner_name => 'ORGANIZATION_CODE',
23833: p_org_partner_id => 'ORGANIZATION_ID',
23834: p_instance_code => v_instance_code,

Line 23847: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

23843: IF lv_return <> 0 THEN
23844: RAISE ex_logging_err;
23845: END IF;
23846:
23847: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
23848: (p_app_short_name => 'MSC',
23849: p_error_code => 'MSC_PP_INVALID_VALUE',
23850: p_message_text => lv_message_text,
23851: p_error_text => lv_error_text,

Line 23860: lv_return := MSC_ST_UTIL.DERIVE_ITEM_ID

23856: RAISE ex_logging_err;
23857: END IF;
23858:
23859: --Derive Inventory_item_id
23860: lv_return := MSC_ST_UTIL.DERIVE_ITEM_ID
23861: (p_table_name => 'MSC_ST_ITEM_CATEGORIES',
23862: p_item_col_name => 'ITEM_NAME',
23863: p_item_col_id => 'INVENTORY_ITEM_ID',
23864: p_instance_id => v_instance_id,

Line 23901: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

23897: USING v_instance_code,
23898: lv_batch_id;
23899:
23900: if(v_install_msc) THEN -- category set should exists
23901: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
23902: (p_app_short_name => 'MSC',
23903: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
23904: p_message_text => lv_message_text,
23905: p_error_text => lv_error_text,

Line 24054: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG

24050: EXECUTE IMMEDIATE lv_sql_stmt
24051: USING lv_batch_id,
24052: v_instance_code;
24053:
24054: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG
24055: (p_table_name => 'MSC_ST_ITEM_CATEGORIES',
24056: p_instance_id => v_instance_id,
24057: p_instance_code => v_instance_code,
24058: p_process_flag => G_VALID,

Line 24067: lv_return := MSC_ST_UTIL.LOG_ERROR

24063: IF lv_return <> 0 THEN
24064: RAISE ex_logging_err;
24065: END IF;
24066:
24067: lv_return := MSC_ST_UTIL.LOG_ERROR
24068: (p_table_name => 'MSC_ST_ITEM_CATEGORIES',
24069: p_instance_code => v_instance_code,
24070: p_row => lv_column_names,
24071: p_severity => G_SEV_ERROR,

Line 24233: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

24229: BEGIN
24230:
24231: --Duplicate records check for the records whose source is XML
24232:
24233: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
24234: (p_app_short_name => 'MSC',
24235: p_error_code => 'MSC_PP_DUP_REC_FOR_XML',
24236: p_message_text => lv_message_text,
24237: p_error_text => lv_error_text);

Line 24283: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

24279: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code;
24280:
24281: --Duplicate records check for the records whose source is batch load
24282:
24283: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
24284: (p_app_short_name => 'MSC',
24285: p_error_code => 'MSC_PP_DUP_REC_FOR_BATCH_LOAD',
24286: p_message_text => lv_message_text,
24287: p_error_text => lv_error_text);

Line 24398: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

24394: USING v_instance_id;
24395: EXCEPTION
24396: WHEN NO_DATA_FOUND THEN
24397: -- Set the message
24398: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
24399: (p_app_short_name => 'MSC',
24400: p_error_code => 'MSC_PP_DEF_CAT_NOT_EXISTS',
24401: p_message_text => lv_message_text,
24402: p_error_text => lv_error_text);

Line 24467: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

24463: WHERE rowid = lb_rowid(j);
24464:
24465: -- Set the error message
24466:
24467: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
24468: (p_app_short_name => 'MSC',
24469: p_error_code => 'MSC_PP_NO_DELETION',
24470: p_message_text => lv_message_text,
24471: p_error_text => lv_error_text,

Line 24499: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

24495: USING lv_batch_id,
24496: v_instance_code;
24497:
24498: -- Set the error message
24499: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
24500: (p_app_short_name => 'MSC',
24501: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
24502: p_message_text => lv_message_text,
24503: p_error_text => lv_error_text,

Line 24518: lv_return := MSC_ST_UTIL.LOG_ERROR

24514:
24515: lv_where_str :=
24516: ' AND NVL(deleted_flag,'||NULL_VALUE||') NOT IN(1,2)';
24517:
24518: lv_return := MSC_ST_UTIL.LOG_ERROR
24519: (p_table_name => 'MSC_ST_ITEM_SOURCING',
24520: p_instance_code => v_instance_code,
24521: p_row => lv_column_names,
24522: p_severity => G_SEV_WARNING,

Line 24536: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

24532: IF lv_return <> 0 THEN
24533: RAISE ex_logging_err;
24534: END IF;
24535:
24536: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
24537: (p_app_short_name => 'MSC',
24538: p_error_code => 'MSC_PP_INVALID_VALUE',
24539: p_message_text => lv_message_text,
24540: p_error_text => lv_error_text,

Line 24564: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

24560: MSC_UTIL.LOG_MSG(MSC_UTIL.G_LVL_DEBUG_1,lv_sql_stmt);
24561:
24562: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
24563:
24564: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
24565: (p_app_short_name => 'MSC',
24566: p_error_code => 'MSC_PP_INVALID_VALUE',
24567: p_message_text => lv_message_text,
24568: p_error_text => lv_error_text,

Line 24597: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

24593:
24594:
24595: -- Set the message
24596:
24597: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
24598: (p_app_short_name => 'MSC',
24599: p_error_code => 'MSC_PP_INVALID_VALUE',
24600: p_message_text => lv_message_text,
24601: p_error_text => lv_error_text,

Line 24612: MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID(p_table_name => 'MSC_ST_ITEM_SOURCING',

24608:
24609: -- Udpate organization_id for all the records
24610:
24611: lv_return :=
24612: MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID(p_table_name => 'MSC_ST_ITEM_SOURCING',
24613: p_org_partner_name =>'ORGANIZATION_CODE',
24614: p_org_partner_id =>'ORGANIZATION_ID',
24615: p_instance_code => v_instance_code,
24616: p_partner_type => G_ORGANIZATION,

Line 24666: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

24662: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
24663:
24664:
24665: -- Set the error message
24666: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
24667: (p_app_short_name => 'MSC',
24668: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
24669: p_message_text => lv_message_text,
24670: p_error_text => lv_error_text,

Line 24685: lv_return := MSC_ST_UTIL.LOG_ERROR

24681: -- Default planning_active as 1
24682:
24683: lv_where_str := ' AND NVL(planning_active,'||NULL_VALUE||') NOT IN (1,2)';
24684:
24685: lv_return := MSC_ST_UTIL.LOG_ERROR
24686: (p_table_name => 'MSC_ST_ITEM_SOURCING',
24687: p_instance_code => v_instance_code,
24688: p_row => lv_column_names,
24689: p_severity => G_SEV_WARNING,

Line 24705: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

24701: END IF;
24702:
24703: -- Set the message
24704:
24705: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
24706: (p_app_short_name => 'MSC',
24707: p_error_code => 'MSC_PP_INVALID_VALUE',
24708: p_message_text => lv_message_text,
24709: p_error_text => lv_error_text,

Line 24722: MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID(p_table_name => 'MSC_ST_ITEM_SOURCING',

24718: -- As of now our assumption is that receipt_org_instance_code is same as
24719: -- v_instance_code ,
24720:
24721: lv_return :=
24722: MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID(p_table_name => 'MSC_ST_ITEM_SOURCING',
24723: p_org_partner_name =>'RECEIPT_ORGANIZATION_CODE',
24724: p_org_partner_id =>'RECEIPT_ORGANIZATION_ID',
24725: p_instance_code => v_instance_code,
24726: p_partner_type => G_ORGANIZATION,

Line 24774: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

24770: v_instance_code,lv_batch_id;
24771:
24772: -- Set the message
24773:
24774: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
24775: (p_app_short_name => 'MSC',
24776: p_error_code => 'MSC_PP_INVALID_VALUE',
24777: p_message_text => lv_message_text,
24778: p_error_text => lv_error_text,

Line 24790: msc_st_util.derive_item_id(p_table_name => 'MSC_ST_ITEM_SOURCING',

24786:
24787: -- Derive inventory_item_id
24788:
24789: lv_return :=
24790: msc_st_util.derive_item_id(p_table_name => 'MSC_ST_ITEM_SOURCING',
24791: p_item_col_name => 'ITEM_NAME',
24792: p_item_col_id => 'INVENTORY_ITEM_ID',
24793: p_instance_code => v_instance_code,
24794: p_instance_id => v_instance_id,

Line 24828: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

24824: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
24825:
24826: -- Set the message
24827:
24828: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
24829: (p_app_short_name => 'MSC',
24830: p_error_code => 'MSC_PP_COL_VAL_NULL',
24831: p_message_text => lv_message_text,
24832: p_error_text => lv_error_text,

Line 24909: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

24905: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
24906:
24907: -- Set the message
24908:
24909: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
24910: (p_app_short_name => 'MSC',
24911: p_error_code => 'MSC_PP_INVALID_VALUE',
24912: p_message_text => lv_message_text,
24913: p_error_text => lv_error_text,

Line 24940: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

24936: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
24937:
24938: -- Set the message
24939:
24940: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
24941: (p_app_short_name => 'MSC',
24942: p_error_code => 'MSC_PP_INVALID_VALUE',
24943: p_message_text => lv_message_text,
24944: p_error_text => lv_error_text,

Line 24978: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

24974: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
24975:
24976: -- Set the message
24977:
24978: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
24979: (p_app_short_name => 'MSC',
24980: p_error_code => 'MSC_PP_COL_VAL_NULL',
24981: p_message_text => lv_message_text,
24982: p_error_text => lv_error_text,

Line 25013: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

25009: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
25010:
25011: -- Set the message
25012:
25013: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
25014: (p_app_short_name => 'MSC',
25015: p_error_code => 'MSC_PP_INVALID_VALUE',
25016: p_message_text => lv_message_text,
25017: p_error_text => lv_error_text,

Line 25028: msc_st_util.derive_partner_org_id(p_table_name => 'MSC_ST_ITEM_SOURCING',

25024:
25025:
25026: -- Now derive the source_partner_id
25027: lv_return :=
25028: msc_st_util.derive_partner_org_id(p_table_name => 'MSC_ST_ITEM_SOURCING',
25029: p_org_partner_name =>'SOURCE_PARTNER_NAME',
25030: p_org_partner_id =>'SOURCE_PARTNER_ID',
25031: p_instance_code => v_instance_code,
25032: p_partner_type => G_VENDOR,

Line 25045: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

25041: END IF;
25042:
25043: -- Set the message
25044:
25045: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
25046: (p_app_short_name => 'MSC',
25047: p_error_code => 'MSC_PP_INVALID_VALUE',
25048: p_message_text => lv_message_text,
25049: p_error_text => lv_error_text,

Line 25060: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_SITE_ID

25056:
25057:
25058: -- Derive source_partner_site_id
25059:
25060: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_SITE_ID
25061: (p_table_name => 'MSC_ST_ITEM_SOURCING',
25062: p_partner_name => 'SOURCE_PARTNER_NAME',
25063: p_partner_site_code => 'SOURCE_PARTNER_SITE_CODE',
25064: p_partner_site_id => 'SOURCE_PARTNER_SITE_ID',

Line 25080: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

25076: END IF;
25077:
25078: -- Set the message
25079:
25080: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
25081: (p_app_short_name => 'MSC',
25082: p_error_code => 'MSC_PP_COL_VAL_NULL',
25083: p_message_text => lv_message_text,
25084: p_error_text => lv_error_text,

Line 25116: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

25112:
25113:
25114: -- Set the message
25115:
25116: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
25117: (p_app_short_name => 'MSC',
25118: p_error_code => 'MSC_PP_INVALID_VALUE',
25119: p_message_text => lv_message_text,
25120: p_error_text => lv_error_text,

Line 25131: msc_st_util.derive_partner_org_id(p_table_name => 'MSC_ST_ITEM_SOURCING',

25127:
25128: -- Derive source_organization_id
25129:
25130: lv_return :=
25131: msc_st_util.derive_partner_org_id(p_table_name => 'MSC_ST_ITEM_SOURCING',
25132: p_org_partner_name =>'SOURCE_ORGANIZATION_CODE',
25133: p_org_partner_id =>'SOURCE_ORGANIZATION_ID',
25134: p_instance_code => v_instance_code,
25135: p_partner_type => G_ORGANIZATION,

Line 25287: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

25283: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
25284:
25285: -- Set the message
25286:
25287: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
25288: (p_app_short_name => 'MSC',
25289: p_error_code => 'MSC_PP_DELETE_FAIL',
25290: p_message_text => lv_message_text,
25291: p_error_text => lv_error_text);

Line 26061: MSC_ST_UTIL.SET_PROCESS_FLAG(p_table_name => 'MSC_ST_ITEM_SOURCING',

26057: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
26058:
26059: -- Set the processf flag as Valid and poulate instance_id
26060: lv_return :=
26061: MSC_ST_UTIL.SET_PROCESS_FLAG(p_table_name => 'MSC_ST_ITEM_SOURCING',
26062: p_instance_id => v_instance_id,
26063: p_instance_code => v_instance_code,
26064: p_process_flag => G_VALID,
26065: p_error_text => lv_error_text,

Line 26076: msc_st_util.log_error(p_table_name => 'MSC_ST_ITEM_SOURCING',

26072:
26073: -- At the end calling the LOG_ERROR for logging all errored out records
26074:
26075: lv_return :=
26076: msc_st_util.log_error(p_table_name => 'MSC_ST_ITEM_SOURCING',
26077: p_instance_code => v_instance_code,
26078: p_row => lv_column_names,
26079: p_severity => G_SEV_ERROR,
26080: p_error_text => lv_error_text,

Line 26184: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

26180:
26181:
26182: --Duplicate records check for the records whose source is XML
26183:
26184: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
26185: (p_app_short_name => 'MSC',
26186: p_error_code => 'MSC_PP_DUP_REC_FOR_XML',
26187: p_message_text => lv_message_text,
26188: p_error_text => lv_error_text);

Line 26220: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

26216: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code;
26217:
26218: --Duplicate records check for the records whose source is batch load
26219:
26220: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
26221: (p_app_short_name => 'MSC',
26222: p_error_code => 'MSC_PP_DUP_REC_FOR_BATCH_LOAD',
26223: p_message_text => lv_message_text,
26224: p_error_text => lv_error_text);

Line 26323: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

26319: WHERE rowid = lb_rowid(j);
26320:
26321:
26322: -- Set the message
26323: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
26324: (p_app_short_name => 'MSC',
26325: p_error_code => 'MSC_PP_NO_DELETION',
26326: p_message_text => lv_message_text,
26327: p_error_text => lv_error_text,

Line 26352: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

26348:
26349: EXECUTE IMMEDIATE lv_sql_stmt USING lv_batch_id,v_instance_code;
26350:
26351: -- Set the error message
26352: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
26353: (p_app_short_name => 'MSC',
26354: p_error_code => 'MSC_PP_COL_VAL_NULL',
26355: p_message_text => lv_message_text,
26356: p_error_text => lv_error_text,

Line 26385: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

26381: v_instance_code;
26382:
26383:
26384: -- Set the message
26385: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
26386: (p_app_short_name => 'MSC',
26387: p_error_code => 'MSC_PP_INVALID_VALUE',
26388: p_message_text => lv_message_text,
26389: p_error_text => lv_error_text,

Line 26399: MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID(p_table_name =>'MSC_ST_PROJECT_TASKS',

26395: END IF;
26396:
26397: -- Derive organization id
26398: lv_return :=
26399: MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID(p_table_name =>'MSC_ST_PROJECT_TASKS',
26400: p_org_partner_name =>'ORGANIZATION_CODE',
26401: p_org_partner_id =>'ORGANIZATION_ID',
26402: p_instance_code => v_instance_code,
26403: p_partner_type => G_ORGANIZATION,

Line 26415: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

26411: RAISE ex_logging_err;
26412: END IF;
26413:
26414: -- Set the error message
26415: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
26416: (p_app_short_name => 'MSC',
26417: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
26418: p_message_text => lv_message_text,
26419: p_error_text => lv_error_text,

Line 26435: lv_return := MSC_ST_UTIL.LOG_ERROR

26431:
26432: lv_where_str :=
26433: ' AND NVL(deleted_flag,'||NULL_VALUE||') <>'||SYS_NO;
26434:
26435: lv_return := MSC_ST_UTIL.LOG_ERROR
26436: (p_table_name => 'MSC_ST_PROJECT_TASKS',
26437: p_instance_code => v_instance_code,
26438: p_row => lv_column_names,
26439: p_severity => G_SEV_WARNING,

Line 26455: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

26451: END IF;
26452:
26453:
26454: -- Set the error message
26455: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
26456: (p_app_short_name => 'MSC',
26457: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
26458: p_message_text => lv_message_text,
26459: p_error_text => lv_error_text,

Line 26473: lv_return := MSC_ST_UTIL.LOG_ERROR

26469: -- Default SEIBAN NUMBER FLAG as 2 if not in (1,2)
26470:
26471: lv_where_str := ' AND NVL(seiban_number_flag,'||NULL_VALUE||') NOT IN (1,2) ';
26472:
26473: lv_return := MSC_ST_UTIL.LOG_ERROR
26474: (p_table_name => 'MSC_ST_PROJECT_TASKS',
26475: p_instance_code => v_instance_code,
26476: p_row => lv_column_names,
26477: p_severity => G_SEV_WARNING,

Line 26492: MSC_ST_UTIL.DERIVE_PROJ_TASK_ID(p_table_name => 'MSC_ST_PROJECT_TASKS',

26488: END IF;
26489:
26490: -- Derive Project id
26491: lv_return :=
26492: MSC_ST_UTIL.DERIVE_PROJ_TASK_ID(p_table_name => 'MSC_ST_PROJECT_TASKS',
26493: p_proj_col_name => 'PROJECT_NUMBER',
26494: p_proj_task_col_id => 'PROJECT_ID',
26495: p_instance_code => v_instance_code,
26496: p_entity_name => 'PROJECT_ID',

Line 26508: MSC_ST_UTIL.DERIVE_PROJ_TASK_ID(p_table_name =>'MSC_ST_PROJECT_TASKS',

26504: END IF;
26505:
26506: -- Derive task id
26507: lv_return :=
26508: MSC_ST_UTIL.DERIVE_PROJ_TASK_ID(p_table_name =>'MSC_ST_PROJECT_TASKS',
26509: p_proj_col_name =>'PROJECT_NUMBER',
26510: p_proj_task_col_id =>'TASK_ID',
26511: p_task_col_name =>'TASK_NUMBER',
26512: p_instance_code => v_instance_code,

Line 26728: MSC_ST_UTIL.DERIVE_PROJ_TASK_ID(p_table_name => 'MSC_ST_PROJECT_TASKS',

26724: CLOSE c3;
26725:
26726: -- Derive Project id
26727: lv_return :=
26728: MSC_ST_UTIL.DERIVE_PROJ_TASK_ID(p_table_name => 'MSC_ST_PROJECT_TASKS',
26729: p_proj_col_name => 'PROJECT_NUMBER',
26730: p_proj_task_col_id => 'PROJECT_ID',
26731: p_instance_code => v_instance_code,
26732: p_entity_name => 'PROJECT_ID',

Line 26807: MSC_ST_UTIL.DERIVE_PROJ_TASK_ID(p_table_name =>'MSC_ST_PROJECT_TASKS',

26803: CLOSE c4;
26804:
26805: -- Derive task id
26806: lv_return :=
26807: MSC_ST_UTIL.DERIVE_PROJ_TASK_ID(p_table_name =>'MSC_ST_PROJECT_TASKS',
26808: p_proj_col_name =>'PROJECT_NUMBER',
26809: p_proj_task_col_id =>'TASK_ID',
26810: p_task_col_name =>'TASK_NUMBER',
26811: p_instance_code => v_instance_code,

Line 26887: MSC_ST_UTIL.SET_PROCESS_FLAG(p_table_name => 'MSC_ST_PROJECT_TASKS',

26883: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
26884:
26885: -- Set the process flag as Valid and poulate instance_id
26886: lv_return :=
26887: MSC_ST_UTIL.SET_PROCESS_FLAG(p_table_name => 'MSC_ST_PROJECT_TASKS',
26888: p_instance_id => v_instance_id,
26889: p_instance_code => v_instance_code,
26890: p_process_flag => G_VALID,
26891: p_error_text => lv_error_text,

Line 26903: MSC_ST_UTIL.LOG_ERROR(p_table_name => 'MSC_ST_PROJECT_TASKS',

26899:
26900: -- At the end calling the LOG_ERROR for logging all errored out records
26901:
26902: lv_return :=
26903: MSC_ST_UTIL.LOG_ERROR(p_table_name => 'MSC_ST_PROJECT_TASKS',
26904: p_instance_code => v_instance_code,
26905: p_row => lv_column_names,
26906: p_severity => G_SEV_ERROR,
26907: p_message_text => NULL,

Line 27043: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

27039: AND batch_id = p_batch_id;
27040:
27041: BEGIN
27042:
27043: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
27044: (p_app_short_name => 'MSC',
27045: p_error_code => 'MSC_PP_DUP_REC_FOR_XML',
27046: p_message_text => lv_message_text,
27047: p_error_text => lv_error_text);

Line 27077: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

27073:
27074: EXECUTE IMMEDIATE lv_sql_stmt
27075: USING v_instance_code;
27076:
27077: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
27078: (p_app_short_name => 'MSC',
27079: p_error_code => 'MSC_PP_DUP_REC_FOR_BATCH_LOAD',
27080: p_message_text => lv_message_text,
27081: p_error_text => lv_error_text);

Line 27165: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

27161: creation_date = v_current_date,
27162: created_by = v_current_user
27163: WHERE rowid = lb_rowid(j);
27164:
27165: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
27166: (p_app_short_name => 'MSC',
27167: p_error_code => 'MSC_PP_NO_DELETION',
27168: p_message_text => lv_message_text,
27169: p_error_text => lv_error_text,

Line 27195: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

27191: EXECUTE IMMEDIATE lv_sql_stmt
27192: USING lv_batch_id,
27193: v_instance_code;
27194:
27195: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
27196: (p_app_short_name => 'MSC',
27197: p_error_code => 'MSC_PP_COL_VAL_NULL',
27198: p_message_text => lv_message_text,
27199: p_error_text => lv_error_text,

Line 27225: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

27221: USING lv_batch_id,
27222: v_instance_code;
27223:
27224:
27225: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
27226: (p_app_short_name => 'MSC',
27227: p_error_code => 'MSC_PP_INVALID_VALUE',
27228: p_message_text => lv_message_text,
27229: p_error_text => lv_error_text,

Line 27253: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

27249: EXECUTE IMMEDIATE lv_sql_stmt
27250: USING lv_batch_id,
27251: v_instance_code;
27252:
27253: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
27254: (p_app_short_name => 'MSC',
27255: p_error_code => 'MSC_PP_NO_UPDATION',
27256: p_message_text => lv_message_text,
27257: p_error_text => lv_error_text,

Line 27288: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

27284: USING lv_batch_id,
27285: v_instance_code;
27286:
27287: -- Set the error message
27288: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
27289: (p_app_short_name => 'MSC',
27290: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
27291: p_message_text => lv_message_text,
27292: p_error_text => lv_error_text,

Line 27308: lv_return := MSC_ST_UTIL.LOG_ERROR

27304:
27305: lv_where_str :=
27306: ' AND NVL(enabled_flag,'||NULL_VALUE||') NOT IN (1,2) ';
27307:
27308: lv_return := MSC_ST_UTIL.LOG_ERROR
27309: (p_table_name => 'MSC_ST_RESOURCE_GROUPS',
27310: p_instance_code => v_instance_code,
27311: p_row => lv_column_names,
27312: p_severity => G_SEV_WARNING,

Line 27338: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG

27334: IF NVL(lv_return,0) <> 0 THEN
27335: RAISE ex_logging_err;
27336: END IF;
27337:
27338: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG
27339: (p_table_name => 'MSC_ST_RESOURCE_GROUPS',
27340: p_instance_id => v_instance_id,
27341: p_instance_code => v_instance_code,
27342: p_process_flag => G_VALID,

Line 27351: lv_return := MSC_ST_UTIL.LOG_ERROR

27347: IF lv_return <> 0 THEN
27348: RAISE ex_logging_err;
27349: END IF;
27350:
27351: lv_return := MSC_ST_UTIL.LOG_ERROR
27352: (p_table_name => 'MSC_ST_RESOURCE_GROUPS',
27353: p_instance_code => v_instance_code,
27354: p_row => lv_column_names,
27355: p_severity => G_SEV_ERROR,

Line 27417: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

27413:
27414:
27415: --Duplicate records check for the records whose source is XML
27416:
27417: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
27418: (p_app_short_name => 'MSC',
27419: p_error_code => 'MSC_PP_DUP_REC_FOR_XML',
27420: p_message_text => lv_message_text,
27421: p_error_text => lv_error_text);

Line 27453: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

27449:
27450:
27451: --Duplicate records check for the records whose source is batch load
27452:
27453: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
27454: (p_app_short_name => 'MSC',
27455: p_error_code => 'MSC_PP_DUP_REC_FOR_BATCH_LOAD',
27456: p_message_text => lv_message_text,
27457: p_error_text => lv_error_text);

Line 27576: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

27572: WHERE rowid = lb_rowid(j);
27573:
27574:
27575: -- Set the message
27576: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
27577: (p_app_short_name => 'MSC',
27578: p_error_code => 'MSC_PP_NO_DELETION',
27579: p_message_text => lv_message_text,
27580: p_error_text => lv_error_text,

Line 27604: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

27600:
27601: EXECUTE IMMEDIATE lv_sql_stmt USING lv_batch_id,v_instance_code;
27602:
27603:
27604: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
27605: (p_app_short_name => 'MSC',
27606: p_error_code => 'MSC_PP_INVALID_VALUE',
27607: p_message_text => lv_message_text,
27608: p_error_text => lv_error_text,

Line 27646: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

27642: lv_batch_id;
27643:
27644: -- Set the error message
27645:
27646: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
27647: (p_app_short_name => 'MSC',
27648: p_error_code => 'MSC_PP_COL_VAL_NULL',
27649: p_message_text => lv_message_text,
27650: p_error_text => lv_error_text,

Line 27680: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

27676: USING lv_batch_id,
27677: v_instance_code;
27678:
27679: -- Set the error message
27680: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
27681: (p_app_short_name => 'MSC',
27682: p_error_code => 'MSC_PP_COL_VAL_NULL',
27683: p_message_text => lv_message_text,
27684: p_error_text => lv_error_text,

Line 27717: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

27713:
27714: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
27715:
27716: -- Set the error message
27717: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
27718: (p_app_short_name => 'MSC',
27719: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
27720: p_message_text => lv_message_text,
27721: p_error_text => lv_error_text,

Line 27737: lv_return := MSC_ST_UTIL.LOG_ERROR

27733:
27734: lv_where_str :=
27735: ' AND NVL(deleted_flag,'||NULL_VALUE||') <>'||SYS_NO;
27736:
27737: lv_return := MSC_ST_UTIL.LOG_ERROR
27738: (p_table_name => 'MSC_ST_DEPARTMENT_RESOURCES',
27739: p_instance_code => v_instance_code,
27740: p_row => lv_column_names,
27741: p_severity => G_SEV_WARNING,

Line 27757: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

27753: END IF;
27754:
27755: -- Set the error message
27756:
27757: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
27758: (p_app_short_name => 'MSC',
27759: p_error_code => 'MSC_PP_INVALID_VALUE',
27760: p_message_text => lv_message_text,
27761: p_error_text => lv_error_text,

Line 27771: MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID(p_table_name => 'MSC_ST_DEPARTMENT_RESOURCES',

27767: END IF;
27768:
27769: -- Derive organization id
27770: lv_return :=
27771: MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID(p_table_name => 'MSC_ST_DEPARTMENT_RESOURCES',
27772: p_org_partner_name => 'ORGANIZATION_CODE',
27773: p_org_partner_id => 'ORGANIZATION_ID',
27774: p_instance_code => v_instance_code,
27775: p_partner_type => G_ORGANIZATION,

Line 27787: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

27783: RAISE ex_logging_err;
27784: END IF;
27785:
27786: -- Set the error message
27787: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
27788: (p_app_short_name => 'MSC',
27789: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
27790: p_message_text => lv_message_text,
27791: p_error_text => lv_error_text,

Line 27806: lv_return := MSC_ST_UTIL.LOG_ERROR

27802:
27803: lv_where_str :=
27804: ' AND NVL(line_flag,'||NULL_VALUE||') NOT IN (''1'',''2'')';
27805:
27806: lv_return := MSC_ST_UTIL.LOG_ERROR
27807: (p_table_name => 'MSC_ST_DEPARTMENT_RESOURCES',
27808: p_instance_code => v_instance_code,
27809: p_row => lv_column_names,
27810: p_severity => G_SEV_WARNING,

Line 27824: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

27820: RAISE ex_logging_err;
27821: END IF;
27822:
27823: -- Set the error message
27824: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
27825: (p_app_short_name => 'MSC',
27826: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
27827: p_message_text => lv_message_text,
27828: p_error_text => lv_error_text,

Line 27844: lv_return := MSC_ST_UTIL.LOG_ERROR

27840:
27841: lv_where_str :=
27842: ' AND NVL(available_24_hours_flag,'||NULL_VALUE||') NOT IN (1,2)';
27843:
27844: lv_return := MSC_ST_UTIL.LOG_ERROR
27845: (p_table_name => 'MSC_ST_DEPARTMENT_RESOURCES',
27846: p_instance_code => v_instance_code,
27847: p_row => lv_column_names,
27848: p_severity => G_SEV_WARNING,

Line 27863: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

27859: RAISE ex_logging_err;
27860: END IF;
27861:
27862: -- Set the error message
27863: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
27864: (p_app_short_name => 'MSC',
27865: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
27866: p_message_text => lv_message_text,
27867: p_error_text => lv_error_text,

Line 27882: lv_return := MSC_ST_UTIL.LOG_ERROR

27878:
27879: lv_where_str :=
27880: ' AND NVL(ctp_flag,'||NULL_VALUE||') NOT IN (1,2) AND line_flag = ''2'' ';
27881:
27882: lv_return := MSC_ST_UTIL.LOG_ERROR
27883: (p_table_name => 'MSC_ST_DEPARTMENT_RESOURCES',
27884: p_instance_code => v_instance_code,
27885: p_row => lv_column_names,
27886: p_severity => G_SEV_WARNING,

Line 27900: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

27896: RAISE ex_logging_err;
27897: END IF;
27898:
27899: -- Set the error message
27900: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
27901: (p_app_short_name => 'MSC',
27902: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
27903: p_message_text => lv_message_text,
27904: p_error_text => lv_error_text,

Line 27920: lv_return := MSC_ST_UTIL.LOG_ERROR

27916: lv_where_str :=
27917: ' AND NVL(resource_type,'||NULL_VALUE||')'
27918: ||' NOT IN (1,2,3,4,5) AND line_flag = ''2'' ';
27919:
27920: lv_return := MSC_ST_UTIL.LOG_ERROR
27921: (p_table_name => 'MSC_ST_DEPARTMENT_RESOURCES',
27922: p_instance_code => v_instance_code,
27923: p_row => lv_column_names,
27924: p_severity => G_SEV_WARNING,

Line 27940: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

27936: END IF;
27937:
27938: /* commented for Bug 2970460
27939: -- Set the error message
27940: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
27941: (p_app_short_name => 'MSC',
27942: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
27943: p_message_text => lv_message_text,
27944: p_error_text => lv_error_text,

Line 27960: lv_return := MSC_ST_UTIL.LOG_ERROR

27956: lv_where_str :=
27957: ' AND NVL(resource_include_flag,'||NULL_VALUE||')'
27958: ||' NOT IN (1,2) AND line_flag = 2';
27959:
27960: lv_return := MSC_ST_UTIL.LOG_ERROR
27961: (p_table_name => 'MSC_ST_DEPARTMENT_RESOURCES',
27962: p_instance_code => v_instance_code,
27963: p_row => lv_column_names,
27964: p_severity => G_SEV_WARNING,

Line 27979: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

27975: END IF;
27976: */
27977:
27978: -- Set the error message
27979: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
27980: (p_app_short_name => 'MSC',
27981: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
27982: p_message_text => lv_message_text,
27983: p_error_text => lv_error_text,

Line 28000: lv_return := MSC_ST_UTIL.LOG_ERROR

27996: lv_where_str :=
27997: ' AND NVL(aggregated_resource_flag,'||NULL_VALUE||')'
27998: ||' NOT IN (1,2) AND LINE_FLAG = 2';
27999:
28000: lv_return := MSC_ST_UTIL.LOG_ERROR
28001: (p_table_name => 'MSC_ST_DEPARTMENT_RESOURCES',
28002: p_instance_code => v_instance_code,
28003: p_row => lv_column_names,
28004: p_severity => G_SEV_WARNING,

Line 28249: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

28245: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
28246:
28247: -- Error out if owning_department_id is NULL
28248: -- Set the error message
28249: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
28250: (p_app_short_name => 'MSC',
28251: p_error_code => 'MSC_PP_COL_REF_NOT_EXIST',
28252: p_message_text => lv_message_text,
28253: p_error_text => lv_error_text,

Line 28432: MSC_ST_UTIL.SET_PROCESS_FLAG(p_table_name => 'MSC_ST_DEPARTMENT_RESOURCES',

28428: CLOSE c5;
28429:
28430: -- Set the process flag as Valid and poulate instance_id
28431: lv_return :=
28432: MSC_ST_UTIL.SET_PROCESS_FLAG(p_table_name => 'MSC_ST_DEPARTMENT_RESOURCES',
28433: p_instance_id => v_instance_id,
28434: p_instance_code => v_instance_code,
28435: p_process_flag => G_VALID,
28436: p_error_text => lv_error_text,

Line 28447: MSC_ST_UTIL.LOG_ERROR(p_table_name => 'MSC_ST_DEPARTMENT_RESOURCES',

28443:
28444: -- At the end calling the LOG_ERROR for logging all errored out records
28445:
28446: lv_return :=
28447: MSC_ST_UTIL.LOG_ERROR(p_table_name => 'MSC_ST_DEPARTMENT_RESOURCES',
28448: p_instance_code => v_instance_code,
28449: p_row => lv_column_names,
28450: p_severity => G_SEV_ERROR,
28451: p_message_text => NULL,

Line 28468: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

28464: -- Validation for table MSC_ST_RESOURCE_SHIFTS
28465:
28466: --Duplicate records check for the records whose source is XML
28467:
28468: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
28469: (p_app_short_name => 'MSC',
28470: p_error_code => 'MSC_PP_DUP_REC_FOR_XML',
28471: p_message_text => lv_message_text,
28472: p_error_text => lv_error_text);

Line 28509: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

28505:
28506:
28507: --Duplicate records check for the records whose source is batch load
28508:
28509: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
28510: (p_app_short_name => 'MSC',
28511: p_error_code => 'MSC_PP_DUP_REC_FOR_BATCH_LOAD',
28512: p_message_text => lv_message_text,
28513: p_error_text => lv_error_text);

Line 28602: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

28598:
28599:
28600: -- Set the error message
28601:
28602: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
28603: (p_app_short_name => 'MSC',
28604: p_error_code => 'MSC_PP_INVALID_VALUE',
28605: p_message_text => lv_message_text,
28606: p_error_text => lv_error_text,

Line 28635: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

28631: EXECUTE IMMEDIATE lv_sql_stmt USING lv_batch_id,v_instance_code;
28632:
28633:
28634: -- Set the error message
28635: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
28636: (p_app_short_name => 'MSC',
28637: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
28638: p_message_text => lv_message_text,
28639: p_error_text => lv_error_text,

Line 28655: lv_return := MSC_ST_UTIL.LOG_ERROR

28651:
28652: lv_where_str :=
28653: ' AND NVL(deleted_flag,'||NULL_VALUE||') <>'||SYS_NO;
28654:
28655: lv_return := MSC_ST_UTIL.LOG_ERROR
28656: (p_table_name => 'MSC_ST_RESOURCE_SHIFTS',
28657: p_instance_code => v_instance_code,
28658: p_row => lv_column_names,
28659: p_severity => G_SEV_WARNING,

Line 28675: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

28671: END IF;
28672:
28673: -- Set the error message
28674:
28675: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
28676: (p_app_short_name => 'MSC',
28677: p_error_code => 'MSC_PP_NO_DELETION',
28678: p_message_text => lv_message_text,
28679: p_error_text => lv_error_text,

Line 28711: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

28707:
28708: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
28709:
28710: -- Set the error message
28711: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
28712: (p_app_short_name => 'MSC',
28713: p_error_code => 'MSC_PP_COL_REF_NOT_EXIST',
28714: p_message_text => lv_message_text,
28715: p_error_text => lv_error_text,

Line 28768: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

28764:
28765: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
28766:
28767: -- Set the error message
28768: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
28769: (p_app_short_name => 'MSC',
28770: p_error_code => 'MSC_PP_COL_REF_NOT_EXIST',
28771: p_message_text => lv_message_text,
28772: p_error_text => lv_error_text,

Line 28860: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

28856: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
28857:
28858:
28859: -- Set the error message
28860: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
28861: (p_app_short_name => 'MSC',
28862: p_error_code => 'MSC_PP_COL_REF_NOT_EXIST',
28863: p_message_text => lv_message_text,
28864: p_error_text => lv_error_text,

Line 28914: MSC_ST_UTIL.SET_PROCESS_FLAG(p_table_name => 'MSC_ST_RESOURCE_SHIFTS',

28910:
28911:
28912: -- Set the process flag as Valid and populate instance_id
28913: lv_return :=
28914: MSC_ST_UTIL.SET_PROCESS_FLAG(p_table_name => 'MSC_ST_RESOURCE_SHIFTS',
28915: p_instance_id => v_instance_id,
28916: p_instance_code => v_instance_code,
28917: p_process_flag => G_VALID,
28918: p_error_text => lv_error_text,

Line 28929: MSC_ST_UTIL.LOG_ERROR(p_table_name =>'MSC_ST_RESOURCE_SHIFTS',

28925:
28926: -- At the end calling the LOG_ERROR for logging all errored out records
28927:
28928: lv_return :=
28929: MSC_ST_UTIL.LOG_ERROR(p_table_name =>'MSC_ST_RESOURCE_SHIFTS',
28930: p_instance_code =>v_instance_code,
28931: p_row =>lv_column_names,
28932: p_severity =>G_ERROR_FLG,
28933: p_message_text =>NULL,

Line 28950: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

28946: -- Validation for table MSC_ST_RESOURCE_CHANGES
28947:
28948: --Duplicate records check for the records whose source is XML
28949:
28950: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
28951: (p_app_short_name => 'MSC',
28952: p_error_code => 'MSC_PP_DUP_REC_FOR_XML',
28953: p_message_text => lv_message_text,
28954: p_error_text => lv_error_text);

Line 29008: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

29004: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code;
29005:
29006: --Duplicate records check for the records whose source is batch load
29007:
29008: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
29009: (p_app_short_name => 'MSC',
29010: p_error_code => 'MSC_PP_DUP_REC_FOR_BATCH_LOAD',
29011: p_message_text => lv_message_text,
29012: p_error_text => lv_error_text);

Line 29129: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

29125:
29126:
29127: -- Set the error message
29128:
29129: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
29130: (p_app_short_name => 'MSC',
29131: p_error_code => 'MSC_PP_COL_VAL_NULL',
29132: p_message_text => lv_message_text,
29133: p_error_text => lv_error_text,

Line 29160: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

29156: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
29157:
29158: -- Set the message
29159:
29160: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
29161: (p_app_short_name => 'MSC',
29162: p_error_code => 'MSC_PP_INVALID_VALUE',
29163: p_message_text => lv_message_text,
29164: p_error_text => lv_error_text,

Line 29193: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

29189: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
29190:
29191:
29192: -- Set the error message
29193: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
29194: (p_app_short_name => 'MSC',
29195: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
29196: p_message_text => lv_message_text,
29197: p_error_text => lv_error_text,

Line 29211: lv_return := MSC_ST_UTIL.LOG_ERROR

29207: -- Check whether delete flag value is in (1,2),if not default to SYS_NO
29208:
29209: lv_where_str := ' AND NVL(deleted_flag,'||NULL_VALUE||')NOT IN (1,2)';
29210:
29211: lv_return := MSC_ST_UTIL.LOG_ERROR
29212: (p_table_name => 'MSC_ST_RESOURCE_CHANGES',
29213: p_instance_code => v_instance_code,
29214: p_row => lv_column_names,
29215: p_severity => G_SEV_WARNING,

Line 29230: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

29226: RAISE ex_logging_err;
29227: END IF;
29228:
29229: --Set the message
29230: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
29231: (p_app_short_name => 'MSC',
29232: p_error_code => 'MSC_PP_INVALID_VALUE',
29233: p_message_text => lv_message_text,
29234: p_error_text => lv_error_text,

Line 29244: MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID(p_table_name => 'MSC_ST_RESOURCE_CHANGES',

29240: END IF;
29241:
29242: -- Derive organization id
29243: lv_return :=
29244: MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID(p_table_name => 'MSC_ST_RESOURCE_CHANGES',
29245: p_org_partner_name => 'ORGANIZATION_CODE',
29246: p_org_partner_id => 'ORGANIZATION_ID',
29247: p_instance_code => v_instance_code,
29248: p_partner_type => G_ORGANIZATION,

Line 29284: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

29280:
29281: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code, lv_batch_id;
29282:
29283: -- Set the error message
29284: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
29285: (p_app_short_name => 'MSC',
29286: p_error_code => 'MSC_PP_COL_REF_NOT_EXIST',
29287: p_message_text => lv_message_text,
29288: p_error_text => lv_error_text,

Line 29343: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

29339: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
29340:
29341:
29342: -- Set the error message
29343: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
29344: (p_app_short_name => 'MSC',
29345: p_error_code => 'MSC_PP_COL_REF_NOT_EXIST',
29346: p_message_text => lv_message_text,
29347: p_error_text => lv_error_text,

Line 29435: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

29431: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
29432:
29433:
29434: -- Set the error message
29435: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
29436: (p_app_short_name => 'MSC',
29437: p_error_code => 'MSC_PP_INVALID_VALUE',
29438: p_message_text => lv_message_text,
29439: p_error_text => lv_error_text,

Line 29501: MSC_ST_UTIL.SET_PROCESS_FLAG(p_table_name => 'MSC_ST_RESOURCE_CHANGES',

29497:
29498:
29499: -- Set the process flag as Valid and populate instance_id
29500: lv_return :=
29501: MSC_ST_UTIL.SET_PROCESS_FLAG(p_table_name => 'MSC_ST_RESOURCE_CHANGES',
29502: p_instance_id => v_instance_id,
29503: p_instance_code => v_instance_code,
29504: p_process_flag => G_VALID,
29505: p_error_text => lv_error_text,

Line 29547: MSC_ST_UTIL.LOG_ERROR(p_table_name => 'MSC_ST_RESOURCE_CHANGES',

29543:
29544: -- At the end calling the LOG_ERROR for logging all errored out records
29545:
29546: lv_return :=
29547: MSC_ST_UTIL.LOG_ERROR(p_table_name => 'MSC_ST_RESOURCE_CHANGES',
29548: p_instance_code => v_instance_code,
29549: p_row => lv_column_names,
29550: p_severity => G_SEV_ERROR,
29551: p_message_text => NULL,

Line 29881: lv_return := MSC_ST_UTIL.LOG_ERROR

29877: ||' NOT IN(1,2)';
29878:
29879: --Log a warning for those records where the deleted_flag has a value other
29880: --SYS_NO
29881: lv_return := MSC_ST_UTIL.LOG_ERROR
29882: (p_table_name => 'MSC_ST_SUPPLIES',
29883: p_instance_code => v_instance_code,
29884: p_row => lv_column_names,
29885: p_severity => G_SEV_WARNING,

Line 29900: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

29896: END IF;
29897:
29898: --bug 2773881 (ssurendr) validation on need_by_date/promised_date -- changes begin
29899:
29900: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
29901: (p_app_short_name => 'MSC',
29902: p_error_code => 'MSC_PP_COL_VAL_NULL',
29903: p_message_text => lv_message_text,
29904: p_error_text => lv_error_text,

Line 29934: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

29930: v_instance_code;
29931:
29932: --bug 2773881 (ssurendr) validation on need_by_date/promised_date -- changes end
29933:
29934: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
29935: (p_app_short_name => 'MSC',
29936: p_error_code => 'MSC_PP_INVALID_VALUE',
29937: p_message_text => lv_message_text,
29938: p_error_text => lv_error_text,

Line 29947: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID

29943: RAISE ex_logging_err;
29944: END IF;
29945:
29946: --Derive Organization_id
29947: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID
29948: (p_table_name => 'MSC_ST_SUPPLIES',
29949: p_org_partner_name => 'ORGANIZATION_CODE',
29950: p_org_partner_id => 'ORGANIZATION_ID',
29951: p_instance_code => v_instance_code,

Line 30002: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

29998: CLOSE c6;
29999:
30000: IF v_instance_type = G_INS_OTHER THEN
30001:
30002: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
30003: (p_app_short_name => 'MSC',
30004: p_error_code => 'MSC_PP_INVALID_VALUE',
30005: p_message_text => lv_message_text,
30006: p_error_text => lv_error_text,

Line 30088: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

30084: AND process_flag = G_IN_PROCESS
30085: AND OWNING_TP_TYPE = 2
30086: AND ORDER_TYPE=18;
30087:
30088: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
30089: (p_app_short_name => 'MSC',
30090: p_error_code => 'MSC_PP_INVALID_VALUE',
30091: p_message_text => lv_message_text,
30092: p_error_text => lv_error_text,

Line 30118: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

30114: END IF ;
30115:
30116:
30117:
30118: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
30119: (p_app_short_name => 'MSC',
30120: p_error_code => 'MSC_PP_INVALID_VALUE',
30121: p_message_text => lv_message_text,
30122: p_error_text => lv_error_text,

Line 30131: lv_return := MSC_ST_UTIL.DERIVE_ITEM_ID

30127: RAISE ex_logging_err;
30128: END IF;
30129:
30130: --Derive Inventory_item_id
30131: lv_return := MSC_ST_UTIL.DERIVE_ITEM_ID
30132: (p_table_name => 'MSC_ST_SUPPLIES',
30133: p_item_col_name => 'ITEM_NAME',
30134: p_item_col_id => 'INVENTORY_ITEM_ID',
30135: p_instance_id => v_instance_id,

Line 30148: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

30144: IF lv_return <> 0 THEN
30145: RAISE ex_logging_err;
30146: END IF;
30147:
30148: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
30149: (p_app_short_name => 'MSC',
30150: p_error_code => 'MSC_PP_INVALID_VALUE',
30151: p_message_text => lv_message_text,
30152: p_error_text => lv_error_text,

Line 30161: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID

30157: RAISE ex_logging_err;
30158: END IF;
30159:
30160: --Derive Supplier_id
30161: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID
30162: (p_table_name => 'MSC_ST_SUPPLIES',
30163: p_org_partner_name => 'SUPPLIER_NAME',
30164: p_org_partner_id => 'SUPPLIER_ID',
30165: p_instance_code => v_instance_code,

Line 30179: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

30175: RAISE ex_logging_err;
30176: END IF;
30177:
30178:
30179: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
30180: (p_app_short_name => 'MSC',
30181: p_error_code => 'MSC_PP_INVALID_VALUE',
30182: p_message_text => lv_message_text,
30183: p_error_text => lv_error_text,

Line 30192: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_SITE_ID

30188: RAISE ex_logging_err;
30189: END IF;
30190:
30191: --Derive Supplier_site_id
30192: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_SITE_ID
30193: (p_table_name => 'MSC_ST_SUPPLIES',
30194: p_partner_name => 'SUPPLIER_NAME',
30195: p_partner_site_code => 'SUPPLIER_SITE_CODE',
30196: p_partner_site_id => 'SUPPLIER_SITE_ID',

Line 30210: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

30206: IF lv_return <> 0 THEN
30207: RAISE ex_logging_err;
30208: END IF;
30209:
30210: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
30211: (p_app_short_name => 'MSC',
30212: p_error_code => 'MSC_PP_COL_VAL_NULL',
30213: p_message_text => lv_message_text,
30214: p_error_text => lv_error_text,

Line 30260: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

30256:
30257:
30258: -- bug 2903356
30259:
30260: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
30261: (p_app_short_name => 'MSC',
30262: p_error_code => 'MSC_DOCK_INVALID_VAL',
30263: p_message_text => lv_message_text,
30264: p_error_text => lv_error_text,

Line 30282: lv_return := MSC_ST_UTIL.LOG_ERROR

30278: ||' AND deleted_flag ='||SYS_NO
30279: ||' AND order_type IN(2,11,12,73,87)'
30280: ||' AND process_flag = '||G_IN_PROCESS;
30281:
30282: lv_return := MSC_ST_UTIL.LOG_ERROR
30283: (p_table_name => 'MSC_ST_SUPPLIES',
30284: p_instance_code => v_instance_code,
30285: p_row => lv_column_names,
30286: p_severity => G_SEV_WARNING,

Line 30318: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

30314: USING p_batch_id,
30315: v_instance_code;
30316: */
30317:
30318: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
30319: (p_app_short_name => 'MSC',
30320: p_error_code => 'MSC_PP_POS_NON_ZERO',
30321: p_message_text => lv_message_text,
30322: p_error_text => lv_error_text,

Line 30350: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

30346: USING p_batch_id,
30347: v_instance_code;
30348:
30349:
30350: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
30351: (p_app_short_name => 'MSC',
30352: p_error_code => 'MSC_PP_COL_REF_NOT_EXIST',
30353: p_message_text => lv_message_text,
30354: p_error_text => lv_error_text,

Line 30412: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

30408: --Supply chain exchange and the validation will be done only for PO's
30409:
30410: IF v_instance_type = G_SCE THEN
30411:
30412: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
30413: (p_app_short_name => 'MSC',
30414: p_error_code => 'MSC_PP_COL_REF_NOT_EXIST',
30415: p_message_text => lv_message_text,
30416: p_error_text => lv_error_text,

Line 30450: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

30446: USING p_batch_id,
30447: v_instance_code;
30448:
30449:
30450: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
30451: (p_app_short_name => 'MSC',
30452: p_error_code => 'MSC_PP_COL_REF_NOT_EXIST',
30453: p_message_text => lv_message_text,
30454: p_error_text => lv_error_text,

Line 30492: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

30488: v_instance_code;
30489:
30490: END IF;
30491:
30492: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
30493: (p_app_short_name => 'MSC',
30494: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
30495: p_message_text => lv_message_text,
30496: p_error_text => lv_error_text,

Line 30511: lv_return := MSC_ST_UTIL.LOG_ERROR

30507: ||' AND deleted_flag = '||SYS_NO;
30508:
30509: --Log a warning for those records where the firm_planned_type has a value other
30510: --NOT IN (1,2)
30511: lv_return := MSC_ST_UTIL.LOG_ERROR
30512: (p_table_name => 'MSC_ST_SUPPLIES',
30513: p_instance_code => v_instance_code,
30514: p_row => lv_column_names,
30515: p_severity => G_SEV_WARNING,

Line 30528: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

30524: IF lv_return <> 0 THEN
30525: RAISE ex_logging_err;
30526: END IF;
30527:
30528: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
30529: (p_app_short_name => 'MSC',
30530: p_error_code => 'MSC_PP_FK_REF_NOT_EXIST',
30531: p_message_text => lv_message_text,
30532: p_error_text => lv_error_text,

Line 30544: lv_return := MSC_ST_UTIL.DERIVE_PROJ_TASK_ID

30540: RAISE ex_logging_err;
30541: END IF;
30542:
30543: --Derive Project Id.
30544: lv_return := MSC_ST_UTIL.DERIVE_PROJ_TASK_ID
30545: (p_table_name => 'MSC_ST_SUPPLIES',
30546: p_proj_col_name => 'PROJECT_NUMBER',
30547: p_proj_task_col_id => 'PROJECT_ID',
30548: p_instance_code => v_instance_code,

Line 30560: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

30556: IF lv_return <> 0 THEN
30557: RAISE ex_logging_err;
30558: END IF;
30559:
30560: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
30561: (p_app_short_name => 'MSC',
30562: p_error_code => 'MSC_PP_FK_REF_NOT_EXIST',
30563: p_message_text => lv_message_text,
30564: p_error_text => lv_error_text,

Line 30577: lv_return := MSC_ST_UTIL.DERIVE_PROJ_TASK_ID

30573: RAISE ex_logging_err;
30574: END IF;
30575:
30576: --Derive Task Id.
30577: lv_return := MSC_ST_UTIL.DERIVE_PROJ_TASK_ID
30578: (p_table_name => 'MSC_ST_SUPPLIES',
30579: p_proj_col_name => 'PROJECT_NUMBER',
30580: p_proj_task_col_id => 'TASK_ID',
30581: p_instance_code => v_instance_code,

Line 30595: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

30591: IF lv_return <> 0 THEN
30592: RAISE ex_logging_err;
30593: END IF;
30594:
30595: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
30596: (p_app_short_name => 'MSC',
30597: p_error_code => 'MSC_PP_INVALID_VALUE',
30598: p_message_text => lv_message_text,
30599: p_error_text => lv_error_text,

Line 30608: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID

30604: RAISE ex_logging_err;
30605: END IF;
30606:
30607: --Derive FROM_ORGANIZATION_ID
30608: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID
30609: (p_table_name => 'MSC_ST_SUPPLIES',
30610: p_org_partner_name => 'FROM_ORGANIZATION_CODE',
30611: p_org_partner_id => 'FROM_ORGANIZATION_ID',
30612: p_instance_code => v_instance_code,

Line 30705: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

30701: EXECUTE IMMEDIATE lv_sql_stmt
30702: USING p_batch_id,
30703: v_instance_code;
30704:
30705: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
30706: (p_app_short_name => 'MSC',
30707: p_error_code => 'MSC_PP_DELETE_FAIL',
30708: p_message_text => lv_message_text,
30709: p_error_text => lv_error_text);

Line 31176: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG

31172:
31173:
31174:
31175:
31176: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG
31177: (p_table_name => 'MSC_ST_SUPPLIES',
31178: p_instance_id => v_instance_id,
31179: p_instance_code => v_instance_code,
31180: p_process_flag => G_VALID,

Line 31189: lv_return := MSC_ST_UTIL.LOG_ERROR

31185: IF lv_return <> 0 THEN
31186: RAISE ex_logging_err;
31187: END IF;
31188:
31189: lv_return := MSC_ST_UTIL.LOG_ERROR
31190: (p_table_name => 'MSC_ST_SUPPLIES',
31191: p_instance_code => v_instance_code,
31192: p_row => lv_column_names,
31193: p_severity => G_SEV_ERROR,

Line 31524: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

31520:
31521:
31522: -- Set the message
31523:
31524: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
31525: (p_app_short_name => 'MSC',
31526: p_error_code => 'MSC_PP_COL_VAL_NULL',
31527: p_message_text => lv_message_text,
31528: p_error_text => lv_error_text,

Line 31560: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

31556: EXECUTE IMMEDIATE lv_sql_stmt USING p_batch_id,v_instance_code;
31557:
31558:
31559: -- Set the error message
31560: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
31561: (p_app_short_name => 'MSC',
31562: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
31563: p_message_text => lv_message_text,
31564: p_error_text => lv_error_text,

Line 31580: lv_return := MSC_ST_UTIL.LOG_ERROR

31576: ' AND NVL(deleted_flag,'||NULL_VALUE||') NOT IN(1,2)';
31577:
31578: --Log a warning for those records where the deleted_flag has a value other
31579: --SYS_NO or SYS_YES
31580: lv_return := MSC_ST_UTIL.LOG_ERROR
31581: (p_table_name => 'MSC_ST_SALES_ORDERS',
31582: p_instance_code => v_instance_code,
31583: p_row => lv_column_names,
31584: p_severity => G_SEV_WARNING,

Line 31599: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

31595: END IF;
31596:
31597: -- Set the message
31598:
31599: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
31600: (p_app_short_name => 'MSC',
31601: p_error_code => 'MSC_PP_INVALID_VALUE',
31602: p_message_text => lv_message_text,
31603: p_error_text => lv_error_text,

Line 31612: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID

31608: RAISE ex_logging_err;
31609: END IF;
31610:
31611: --Derive Organization_id
31612: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID
31613: (p_table_name => 'MSC_ST_SALES_ORDERS',
31614: p_org_partner_name => 'ORGANIZATION_CODE',
31615: p_org_partner_id => 'ORGANIZATION_ID',
31616: p_instance_code => v_instance_code,

Line 31631: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

31627: END IF;
31628:
31629: -- Set the message
31630:
31631: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
31632: (p_app_short_name => 'MSC',
31633: p_error_code => 'MSC_PP_INVALID_VALUE',
31634: p_message_text => lv_message_text,
31635: p_error_text => lv_error_text,

Line 31645: lv_return := MSC_ST_UTIL.DERIVE_ITEM_ID

31641: END IF;
31642:
31643: --DERIVE ORIGINAL_ITEM_ID
31644:
31645: lv_return := MSC_ST_UTIL.DERIVE_ITEM_ID
31646: (p_table_name =>'MSC_ST_SALES_ORDERS',
31647: p_item_col_name =>'ORIGINAL_ITEM_NAME',
31648: p_item_col_id =>'ORIGINAL_ITEM_ID',
31649: p_instance_code => v_instance_code,

Line 31690: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

31686:
31687: EXECUTE IMMEDIATE lv_sql_stmt USING p_batch_id,v_instance_code;
31688:
31689:
31690: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
31691: (p_app_short_name => 'MSC',
31692: p_error_code => 'MSC_PP_DELETE_FAIL',
31693: p_message_text => lv_message_text,
31694: p_error_text => lv_error_text);

Line 31722: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

31718:
31719:
31720: -- Set the message
31721:
31722: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
31723: (p_app_short_name => 'MSC',
31724: p_error_code => 'MSC_PP_COL_VAL_NULL',
31725: p_message_text => lv_message_text,
31726: p_error_text => lv_error_text,

Line 31761: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

31757:
31758:
31759: -- Set the message
31760:
31761: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
31762: (p_app_short_name => 'MSC',
31763: p_error_code => 'MSC_PP_INVALID_VALUE',
31764: p_message_text => lv_message_text,
31765: p_error_text => lv_error_text,

Line 31774: lv_return := MSC_ST_UTIL.DERIVE_ITEM_ID

31770: RAISE ex_logging_err;
31771: END IF;
31772:
31773: --Derive Inventory_item_id
31774: lv_return := MSC_ST_UTIL.DERIVE_ITEM_ID
31775: (p_table_name => 'MSC_ST_SALES_ORDERS',
31776: p_item_col_name => 'ITEM_NAME',
31777: p_item_col_id => 'INVENTORY_ITEM_ID',
31778: p_instance_id => v_instance_id,

Line 31791: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

31787: IF lv_return <> 0 THEN
31788: RAISE ex_logging_err;
31789: END IF;
31790:
31791: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
31792: (p_app_short_name => 'MSC',
31793: p_error_code => 'MSC_PP_COL_REF_NOT_EXIST',
31794: p_message_text => lv_message_text,
31795: p_error_text => lv_error_text,

Line 31849: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

31845: AND sr_instance_code = v_instance_code
31846: AND batch_id = p_batch_id;
31847:
31848:
31849: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
31850: (p_app_short_name => 'MSC',
31851: p_error_code => 'MSC_PP_INVALID_VALUE',
31852: p_message_text => lv_message_text,
31853: p_error_text => lv_error_text,

Line 31866: MSC_ST_UTIL.VALIDATE_DMD_CLASS(p_table_name => 'MSC_ST_SALES_ORDERS',

31862: -- Validate Demand Class, if value provided it should exists
31863: -- in ODS or staging table
31864:
31865: lv_return :=
31866: MSC_ST_UTIL.VALIDATE_DMD_CLASS(p_table_name => 'MSC_ST_SALES_ORDERS',
31867: p_dmd_class_column => 'DEMAND_CLASS',
31868: p_instance_id => v_instance_id,
31869: p_instance_code => v_instance_code,
31870: p_severity => G_SEV3_ERROR,

Line 31881: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

31877: RAISE ex_logging_err;
31878: end if;
31879:
31880: -- Set the error message
31881: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
31882: (p_app_short_name => 'MSC',
31883: p_error_code => 'MSC_PP_COL_VAL_NULL_DEFAULT',
31884: p_message_text => lv_message_text,
31885: p_error_text => lv_error_text,

Line 31901: lv_return := MSC_ST_UTIL.LOG_ERROR

31897: lv_where_str :=
31898: ' AND NVL(completed_quantity,'||NULL_VALUE||')'
31899: ||' = '||NULL_VALUE;
31900:
31901: lv_return := MSC_ST_UTIL.LOG_ERROR
31902: (p_table_name => 'MSC_ST_SALES_ORDERS',
31903: p_instance_code => v_instance_code,
31904: p_row => lv_column_names,
31905: p_severity => G_SEV_WARNING,

Line 31919: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

31915: RAISE ex_logging_err;
31916: END IF;
31917:
31918: -- Set the error message
31919: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
31920: (p_app_short_name => 'MSC',
31921: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
31922: p_message_text => lv_message_text,
31923: p_error_text => lv_error_text,

Line 31939: lv_return := MSC_ST_UTIL.LOG_ERROR

31935: lv_where_str :=
31936: ' AND NVL(demand_source_type ,'||NULL_VALUE||') NOT IN (2,8) '
31937: ||' AND deleted_flag = '||SYS_NO;
31938:
31939: lv_return := MSC_ST_UTIL.LOG_ERROR
31940: (p_table_name => 'MSC_ST_SALES_ORDERS',
31941: p_instance_code => v_instance_code,
31942: p_row => lv_column_names,
31943: p_severity => G_SEV_WARNING,

Line 31957: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

31953: RAISE ex_logging_err;
31954: END IF;
31955:
31956: -- Set the error message
31957: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
31958: (p_app_short_name => 'MSC',
31959: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
31960: p_message_text => lv_message_text,
31961: p_error_text => lv_error_text,

Line 31977: lv_return := MSC_ST_UTIL.LOG_ERROR

31973: ' AND NVL(reservation_type,'||NULL_VALUE||') NOT IN (1,2,3)'
31974: ||' AND deleted_flag = '||SYS_NO;
31975:
31976:
31977: lv_return := MSC_ST_UTIL.LOG_ERROR
31978: (p_table_name => 'MSC_ST_SALES_ORDERS',
31979: p_instance_code => v_instance_code,
31980: p_row => lv_column_names,
31981: p_severity => G_SEV_WARNING,

Line 31995: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

31991: RAISE ex_logging_err;
31992: END IF;
31993:
31994: -- Set the error message
31995: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
31996: (p_app_short_name => 'MSC',
31997: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
31998: p_message_text => lv_message_text,
31999: p_error_text => lv_error_text,

Line 32016: lv_return := MSC_ST_UTIL.LOG_ERROR

32012: ' AND NVL(available_to_mrp ,'||''''||NULL_CHAR||''''||') <> ''Y'' '
32013: ||' AND deleted_flag = '||SYS_NO;
32014:
32015:
32016: lv_return := MSC_ST_UTIL.LOG_ERROR
32017: (p_table_name => 'MSC_ST_SALES_ORDERS',
32018: p_instance_code => v_instance_code,
32019: p_row => lv_column_names,
32020: p_severity => G_SEV_WARNING,

Line 32034: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

32030: RAISE ex_logging_err;
32031: END IF;
32032:
32033: -- Set the error message
32034: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
32035: (p_app_short_name => 'MSC',
32036: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
32037: p_message_text => lv_message_text,
32038: p_error_text => lv_error_text,

Line 32053: lv_return := MSC_ST_UTIL.LOG_ERROR

32049:
32050: lv_where_str :=
32051: ' AND NVL(cto_flag,'||NULL_VALUE||') NOT IN (1,2)' ;
32052:
32053: lv_return := MSC_ST_UTIL.LOG_ERROR
32054: (p_table_name => 'MSC_ST_SALES_ORDERS',
32055: p_instance_code => v_instance_code,
32056: p_row => lv_column_names,
32057: p_severity => G_SEV_WARNING,

Line 32071: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

32067: RAISE ex_logging_err;
32068: END IF;
32069:
32070: -- Set the error message
32071: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
32072: (p_app_short_name => 'MSC',
32073: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
32074: p_message_text => lv_message_text,
32075: p_error_text => lv_error_text,

Line 32091: lv_return := MSC_ST_UTIL.LOG_ERROR

32087: lv_where_str :=
32088: ' AND NVL(forecast_visible ,'||''''||NULL_CHAR||''''||')'
32089: ||' NOT IN (''Y'', ''N'') AND deleted_flag = '||SYS_NO ;
32090:
32091: lv_return := MSC_ST_UTIL.LOG_ERROR
32092: (p_table_name => 'MSC_ST_SALES_ORDERS',
32093: p_instance_code => v_instance_code,
32094: p_row => lv_column_names,
32095: p_severity => G_SEV_WARNING,

Line 32109: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

32105: RAISE ex_logging_err;
32106: END IF;
32107:
32108: -- Set the error message
32109: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
32110: (p_app_short_name => 'MSC',
32111: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
32112: p_message_text => lv_message_text,
32113: p_error_text => lv_error_text,

Line 32129: lv_return := MSC_ST_UTIL.LOG_ERROR

32125: lv_where_str :=
32126: ' AND NVL(demand_visible,'||''''||NULL_CHAR||''''||')'
32127: ||' NOT IN (''Y'', ''N'') AND deleted_flag = '||SYS_NO ;
32128:
32129: lv_return := MSC_ST_UTIL.LOG_ERROR
32130: (p_table_name => 'MSC_ST_SALES_ORDERS',
32131: p_instance_code => v_instance_code,
32132: p_row => lv_column_names,
32133: p_severity => G_SEV_WARNING,

Line 32149: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

32145:
32146:
32147: -- Set the message
32148:
32149: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
32150: (p_app_short_name => 'MSC',
32151: p_error_code => 'MSC_PP_INVALID_VALUE',
32152: p_message_text => lv_message_text,
32153: p_error_text => lv_error_text,

Line 32163: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID

32159: END IF;
32160:
32161: -- Derive customer_id
32162:
32163: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID
32164: (p_table_name => 'MSC_ST_SALES_ORDERS',
32165: p_org_partner_name => 'CUSTOMER_NAME',
32166: p_org_partner_id => 'CUSTOMER_ID',
32167: p_instance_code => v_instance_code,

Line 32182: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

32178: END IF;
32179:
32180: -- Set the message
32181:
32182: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
32183: (p_app_short_name => 'MSC',
32184: p_error_code => 'MSC_PP_INVALID_VALUE',
32185: p_message_text => lv_message_text,
32186: p_error_text => lv_error_text,

Line 32195: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_SITE_ID

32191: RAISE ex_logging_err;
32192: END IF;
32193:
32194: -- Derive bill_to_site_id
32195: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_SITE_ID
32196: (p_table_name => 'MSC_ST_SALES_ORDERS',
32197: p_partner_name => 'CUSTOMER_NAME',
32198: p_partner_site_code => 'BILL_TO_SITE_CODE',
32199: p_partner_site_id => 'BILL_TO_SITE_USE_ID',

Line 32215: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

32211: END IF;
32212:
32213: -- Set the message
32214:
32215: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
32216: (p_app_short_name => 'MSC',
32217: p_error_code => 'MSC_PP_INVALID_VALUE',
32218: p_message_text => lv_message_text,
32219: p_error_text => lv_error_text,

Line 32228: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_SITE_ID

32224: RAISE ex_logging_err;
32225: END IF;
32226:
32227: -- Derive ship_to_site_id
32228: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_SITE_ID
32229: (p_table_name => 'MSC_ST_SALES_ORDERS',
32230: p_partner_name => 'CUSTOMER_NAME',
32231: p_partner_site_code => 'SHIP_TO_SITE_CODE',
32232: p_partner_site_id => 'SHIP_TO_SITE_USE_ID',

Line 32246: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

32242: IF lv_return <> 0 THEN
32243: RAISE ex_logging_err;
32244: END IF;
32245: -- Set the error message
32246: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
32247: (p_app_short_name => 'MSC',
32248: p_error_code => 'MSC_PP_FK_REF_NOT_EXIST',
32249: p_message_text => lv_message_text,
32250: p_error_text => lv_error_text,

Line 32262: lv_return:= MSC_ST_UTIL.DERIVE_PROJ_TASK_ID

32258: RAISE ex_logging_err;
32259: END IF;
32260:
32261: --Derive Project Id.
32262: lv_return:= MSC_ST_UTIL.DERIVE_PROJ_TASK_ID
32263: (p_table_name => 'MSC_ST_SALES_ORDERS',
32264: p_proj_col_name => 'PROJECT_NUMBER',
32265: p_proj_task_col_id => 'PROJECT_ID',
32266: p_instance_code => v_instance_code,

Line 32279: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

32275: RAISE ex_logging_err;
32276: END IF;
32277:
32278: -- Set the error message
32279: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
32280: (p_app_short_name => 'MSC',
32281: p_error_code => 'MSC_PP_FK_REF_NOT_EXIST',
32282: p_message_text => lv_message_text,
32283: p_error_text => lv_error_text,

Line 32296: lv_return:= MSC_ST_UTIL.DERIVE_PROJ_TASK_ID

32292: RAISE ex_logging_err;
32293: END IF;
32294:
32295: --Derive Task Id.
32296: lv_return:= MSC_ST_UTIL.DERIVE_PROJ_TASK_ID
32297: (p_table_name => 'MSC_ST_SALES_ORDERS',
32298: p_proj_col_name => 'PROJECT_NUMBER',
32299: p_proj_task_col_id => 'TASK_ID',
32300: p_instance_code => v_instance_code,

Line 32333: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

32329: */
32330: -- valid values for order_date_type_code are 'SHIP' and 'ARRIVE'
32331: -- Set the error message
32332:
32333: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
32334: (p_app_short_name => 'MSC',
32335: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
32336: p_message_text => lv_message_text,
32337: p_error_text => lv_error_text,

Line 32351: lv_return := MSC_ST_UTIL.LOG_ERROR

32347: lv_where_str :=
32348: ' AND NVL(order_date_type_code ,'||NULL_VALUE||') '
32349: ||' NOT IN (1,2)';
32350:
32351: lv_return := MSC_ST_UTIL.LOG_ERROR
32352: (p_table_name => 'MSC_ST_SALES_ORDERS',
32353: p_instance_code => v_instance_code,
32354: p_row => lv_column_names,
32355: p_severity => G_SEV_WARNING,

Line 32687: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG

32683: MSC_UTIL.LOG_MSG(MSC_UTIL.G_LVL_DEBUG_1,lv_sql_stmt);
32684:
32685: EXECUTE IMMEDIATE lv_sql_stmt USING p_batch_id,v_instance_code;
32686:
32687: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG
32688: (p_table_name => 'MSC_ST_SALES_ORDERS',
32689: p_instance_id => v_instance_id,
32690: p_instance_code => v_instance_code,
32691: p_process_flag => G_VALID,

Line 32700: lv_return := MSC_ST_UTIL.LOG_ERROR

32696: IF lv_return <> 0 THEN
32697: RAISE ex_logging_err;
32698: END IF;
32699:
32700: lv_return := MSC_ST_UTIL.LOG_ERROR
32701: (p_table_name => 'MSC_ST_SALES_ORDERS',
32702: p_instance_code => v_instance_code,
32703: p_row => lv_column_names,
32704: p_severity => G_SEV_ERROR,

Line 32771: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

32767: AND batch_id = p_batch_id;
32768:
32769: BEGIN
32770:
32771: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
32772: (p_app_short_name => 'MSC',
32773: p_error_code => 'MSC_PP_DUP_REC_FOR_BATCH_LOAD',
32774: p_message_text => lv_message_text,
32775: p_error_text => lv_error_text);

Line 33018: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

33014: created_by = v_current_user
33015: WHERE rowid = lb_rowid(j);
33016:
33017:
33018: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
33019: (p_app_short_name => 'MSC',
33020: p_error_code => 'MSC_PP_COL_VAL_NULL',
33021: p_message_text => lv_message_text,
33022: p_error_text => lv_error_text,

Line 33050: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

33046: MSC_UTIL.LOG_MSG(MSC_UTIL.G_LVL_DEBUG_1,lv_sql_stmt);
33047:
33048: EXECUTE IMMEDIATE lv_sql_stmt USING lv_batch_id,v_instance_code;
33049:
33050: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
33051: (p_app_short_name => 'MSC',
33052: p_error_code => 'MSC_PP_COL_VAL_NULL',
33053: p_message_text => lv_message_text,
33054: p_error_text => lv_error_text,

Line 33079: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

33075: MSC_UTIL.LOG_MSG(MSC_UTIL.G_LVL_DEBUG_1,lv_sql_stmt);
33076:
33077: EXECUTE IMMEDIATE lv_sql_stmt USING lv_batch_id,v_instance_code;
33078:
33079: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
33080: (p_app_short_name => 'MSC',
33081: p_error_code => 'MSC_PP_COL_VAL_NULL',
33082: p_message_text => lv_message_text,
33083: p_error_text => lv_error_text,

Line 33108: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

33104: MSC_UTIL.LOG_MSG(MSC_UTIL.G_LVL_DEBUG_1,lv_sql_stmt);
33105:
33106: EXECUTE IMMEDIATE lv_sql_stmt USING lv_batch_id,v_instance_code;
33107:
33108: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
33109: (p_app_short_name => 'MSC',
33110: p_error_code => 'MSC_PP_COL_VAL_NULL',
33111: p_message_text => lv_message_text,
33112: p_error_text => lv_error_text,

Line 33138: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

33134:
33135: EXECUTE IMMEDIATE lv_sql_stmt USING lv_batch_id,v_instance_code;
33136:
33137:
33138: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
33139: (p_app_short_name => 'MSC',
33140: p_error_code => 'MSC_PP_INVALID_VALUE',
33141: p_message_text => lv_message_text,
33142: p_error_text => lv_error_text,

Line 33155: MSC_ST_UTIL.VALIDATE_DMD_CLASS(p_table_name => 'MSC_ST_RESERVATIONS',

33151: -- Validate Demand Class, if value provided it should exists
33152: -- in ODS or staging table
33153:
33154: lv_return :=
33155: MSC_ST_UTIL.VALIDATE_DMD_CLASS(p_table_name => 'MSC_ST_RESERVATIONS',
33156: p_dmd_class_column => 'DEMAND_CLASS',
33157: p_instance_id => v_instance_id,
33158: p_instance_code => v_instance_code,
33159: p_severity => G_SEV3_ERROR,

Line 33171: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

33167: end if;
33168:
33169:
33170:
33171: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
33172: (p_app_short_name => 'MSC',
33173: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
33174: p_message_text => lv_message_text,
33175: p_error_text => lv_error_text,

Line 33191: lv_return := MSC_ST_UTIL.LOG_ERROR

33187:
33188: lv_where_str := ' AND NVL(deleted_flag,'||NULL_VALUE||') '
33189: ||' NOT IN(1,2)';
33190:
33191: lv_return := MSC_ST_UTIL.LOG_ERROR
33192: (p_table_name => 'MSC_ST_RESERVATIONS',
33193: p_instance_code => v_instance_code,
33194: p_row => lv_column_names,
33195: p_severity => G_SEV_WARNING,

Line 33271: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

33267:
33268: EXECUTE IMMEDIATE lv_sql_stmt USING lv_batch_id,v_instance_code;
33269:
33270: -- Check DISPOSITION_TYPE column has valid value or not and if not set it to 2
33271: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
33272: (p_app_short_name => 'MSC',
33273: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
33274: p_message_text => lv_message_text,
33275: p_error_text => lv_error_text,

Line 33288: lv_return := MSC_ST_UTIL.LOG_ERROR

33284:
33285: lv_where_str := ' AND NVL(disposition_type,'||NULL_VALUE||') '
33286: ||' <> 2 AND RESERVATION_TYPE =1';
33287:
33288: lv_return := MSC_ST_UTIL.LOG_ERROR
33289: (p_table_name => 'MSC_ST_RESERVATIONS',
33290: p_instance_code => v_instance_code,
33291: p_row => lv_column_names,
33292: p_severity => G_SEV_WARNING,

Line 33305: /* lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

33301: IF lv_return <> 0 THEN
33302: RAISE ex_logging_err;
33303: END IF;
33304:
33305: /* lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
33306: (p_app_short_name => 'MSC',
33307: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
33308: p_message_text => lv_message_text,
33309: p_error_text => lv_error_text,

Line 33324: lv_return := MSC_ST_UTIL.LOG_ERROR

33320:
33321: lv_where_str := ' AND NVL(reservation_type,'||NULL_VALUE||') '
33322: ||' <> 1 ';
33323:
33324: lv_return := MSC_ST_UTIL.LOG_ERROR
33325: (p_table_name => 'MSC_ST_RESERVATIONS',
33326: p_instance_code => v_instance_code,
33327: p_row => lv_column_names,
33328: p_severity => G_SEV_WARNING,

Line 33343: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

33339: END IF;
33340: */
33341: -- Set the message
33342:
33343: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
33344: (p_app_short_name => 'MSC',
33345: p_error_code => 'MSC_PP_INVALID_VALUE',
33346: p_message_text => lv_message_text,
33347: p_error_text => lv_error_text,

Line 33356: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID

33352: RAISE ex_logging_err;
33353: END IF;
33354:
33355: --Derive Organization_id
33356: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID
33357: (p_table_name => 'MSC_ST_RESERVATIONS',
33358: p_org_partner_name => 'ORGANIZATION_CODE',
33359: p_org_partner_id => 'ORGANIZATION_ID',
33360: p_instance_code => v_instance_code,

Line 33376: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

33372:
33373:
33374: -- Set the message
33375:
33376: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
33377: (p_app_short_name => 'MSC',
33378: p_error_code => 'MSC_PP_INVALID_VALUE',
33379: p_message_text => lv_message_text,
33380: p_error_text => lv_error_text,

Line 33389: lv_return := MSC_ST_UTIL.DERIVE_ITEM_ID

33385: RAISE ex_logging_err;
33386: END IF;
33387:
33388: --Derive Inventory_item_id
33389: lv_return := MSC_ST_UTIL.DERIVE_ITEM_ID
33390: (p_table_name => 'MSC_ST_RESERVATIONS',
33391: p_item_col_name => 'ITEM_NAME',
33392: p_item_col_id => 'INVENTORY_ITEM_ID',
33393: p_instance_id => v_instance_id,

Line 33624: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

33620: -- Error out the records if any parent_demand_id or dispostion id
33621: -- derivation fails
33622:
33623: -- Set the error message
33624: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
33625: (p_app_short_name => 'MSC',
33626: p_error_code => 'MSC_PP_FK_REF_NOT_EXIST',
33627: p_message_text => lv_message_text,
33628: p_error_text => lv_error_text,

Line 33695: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

33691:
33692:
33693:
33694: -- Set the error message
33695: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
33696: (p_app_short_name => 'MSC',
33697: p_error_code => 'MSC_PP_FK_REF_NOT_EXIST',
33698: p_message_text => lv_message_text,
33699: p_error_text => lv_error_text,

Line 33710: lv_return:= MSC_ST_UTIL.DERIVE_PROJ_TASK_ID

33706: RAISE ex_logging_err;
33707: END IF;
33708:
33709: --Derive Project Id.
33710: lv_return:= MSC_ST_UTIL.DERIVE_PROJ_TASK_ID
33711: (p_table_name => 'MSC_ST_RESERVATIONS',
33712: p_proj_col_name => 'PROJECT_NUMBER',
33713: p_proj_task_col_id => 'PROJECT_ID',
33714: p_instance_code => v_instance_code,

Line 33727: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

33723: RAISE ex_logging_err;
33724: END IF;
33725:
33726: -- Set the error message
33727: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
33728: (p_app_short_name => 'MSC',
33729: p_error_code => 'MSC_PP_FK_REF_NOT_EXIST',
33730: p_message_text => lv_message_text,
33731: p_error_text => lv_error_text,

Line 33744: lv_return:= MSC_ST_UTIL.DERIVE_PROJ_TASK_ID

33740: RAISE ex_logging_err;
33741: END IF;
33742:
33743: --Derive Task Id.
33744: lv_return:= MSC_ST_UTIL.DERIVE_PROJ_TASK_ID
33745: (p_table_name => 'MSC_ST_RESERVATIONS',
33746: p_proj_col_name => 'PROJECT_NUMBER',
33747: p_proj_task_col_id => 'TASK_ID',
33748: p_instance_code => v_instance_code,

Line 33779: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG

33775: END IF;
33776:
33777:
33778: -- Set the process flag as Valid and populate instance_id
33779: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG
33780: (p_table_name => 'MSC_ST_RESERVATIONS',
33781: p_instance_id => v_instance_id,
33782: p_instance_code => v_instance_code,
33783: p_process_flag => G_VALID,

Line 33795: lv_return := MSC_ST_UTIL.LOG_ERROR

33791:
33792: -- At the end calling the LOG_ERROR for logging all
33793: -- errored out records.
33794:
33795: lv_return := MSC_ST_UTIL.LOG_ERROR
33796: (p_table_name => 'MSC_ST_RESERVATIONS',
33797: p_instance_code => v_instance_code,
33798: p_row => lv_column_names,
33799: p_severity => G_SEV_ERROR,

Line 33938: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

33934: WHERE rowid = lb_rowid(j);
33935:
33936:
33937: -- Set the error message
33938: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
33939: (p_app_short_name => 'MSC',
33940: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
33941: p_message_text => lv_message_text,
33942: p_error_text => lv_error_text,

Line 33957: lv_return:= MSC_ST_UTIL.LOG_ERROR

33953: --SYS_NO or SYS_YES
33954: lv_where_str :=
33955: ' AND NVL(deleted_flag,'||NULL_VALUE||') NOT IN(1,2)';
33956:
33957: lv_return:= MSC_ST_UTIL.LOG_ERROR
33958: (p_table_name => 'MSC_ST_DEMANDS',
33959: p_instance_code => v_instance_code,
33960: p_row => lv_column_names,
33961: p_severity => G_SEV_WARNING,

Line 33979: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

33975:
33976: -- USING_ASSEMBLY_DEMAND_DATE check
33977: -- Set the message
33978:
33979: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
33980: (p_app_short_name => 'MSC',
33981: p_error_code => 'MSC_PP_COL_VAL_NULL',
33982: p_message_text => lv_message_text,
33983: p_error_text => lv_error_text,

Line 34010: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

34006: EXECUTE IMMEDIATE lv_sql_stmt USING p_batch_id,v_instance_code;
34007:
34008: -- Set the message
34009:
34010: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
34011: (p_app_short_name => 'MSC',
34012: p_error_code => 'MSC_PP_COL_VAL_NULL',
34013: p_message_text => lv_message_text,
34014: p_error_text => lv_error_text,

Line 34044: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

34040:
34041: EXECUTE IMMEDIATE lv_sql_stmt USING p_batch_id,v_instance_code;
34042: -- Set the message
34043:
34044: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
34045: (p_app_short_name => 'MSC',
34046: p_error_code => 'MSC_PP_INVALID_VALUE',
34047: p_message_text => lv_message_text,
34048: p_error_text => lv_error_text,

Line 34057: lv_return:= MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID

34053: RAISE ex_logging_err;
34054: END IF;
34055:
34056: --Derive Organization_id
34057: lv_return:= MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID
34058: (p_table_name => 'MSC_ST_DEMANDS',
34059: p_org_partner_name => 'ORGANIZATION_CODE',
34060: p_org_partner_id => 'ORGANIZATION_ID',
34061: p_instance_code => v_instance_code,

Line 34076: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

34072: END IF;
34073:
34074: -- Set the message
34075:
34076: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
34077: (p_app_short_name => 'MSC',
34078: p_error_code => 'MSC_PP_INVALID_VALUE',
34079: p_message_text => lv_message_text,
34080: p_error_text => lv_error_text,

Line 34090: lv_return:= MSC_ST_UTIL.DERIVE_ITEM_ID

34086: END IF;
34087:
34088:
34089: --Derive Inventory_item_id
34090: lv_return:= MSC_ST_UTIL.DERIVE_ITEM_ID
34091: (p_table_name => 'MSC_ST_DEMANDS',
34092: p_item_col_name => 'ITEM_NAME',
34093: p_item_col_id => 'INVENTORY_ITEM_ID',
34094: p_instance_id => v_instance_id,

Line 34108: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

34104: RAISE ex_logging_err;
34105: END IF;
34106:
34107: -- Set the message
34108: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
34109: (p_app_short_name => 'MSC',
34110: p_error_code => 'MSC_PP_INVALID_VALUE',
34111: p_message_text => lv_message_text,
34112: p_error_text => lv_error_text,

Line 34121: lv_return := MSC_ST_UTIL.DERIVE_ITEM_ID

34117: RAISE ex_logging_err;
34118: END IF;
34119:
34120: --Derive Inventory_item_id
34121: lv_return := MSC_ST_UTIL.DERIVE_ITEM_ID
34122: (p_table_name => 'MSC_ST_DEMANDS',
34123: p_item_col_name => 'USING_ASSEMBLY_ITEM_NAME',
34124: p_item_col_id => 'USING_ASSEMBLY_ITEM_ID',
34125: p_instance_id => v_instance_id,

Line 34138: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

34134: IF lv_return <> 0 THEN
34135: RAISE ex_logging_err;
34136: END IF;
34137:
34138: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
34139: (p_app_short_name => 'MSC',
34140: p_error_code => 'MSC_PP_INVALID_VALUE',
34141: p_message_text => lv_message_text,
34142: p_error_text => lv_error_text,

Line 34155: MSC_ST_UTIL.VALIDATE_DMD_CLASS(p_table_name => 'MSC_ST_DEMANDS',

34151: -- Validate Demand Class, if value provided it should exists
34152: -- in ODS or staging table
34153:
34154: lv_return :=
34155: MSC_ST_UTIL.VALIDATE_DMD_CLASS(p_table_name => 'MSC_ST_DEMANDS',
34156: p_dmd_class_column => 'DEMAND_CLASS',
34157: p_instance_id => v_instance_id,
34158: p_instance_code => v_instance_code,
34159: p_severity => G_SEV3_ERROR,

Line 34240: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

34236: EXECUTE IMMEDIATE lv_sql_stmt USING p_batch_id,v_instance_code;
34237:
34238: -- Set the message
34239:
34240: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
34241: (p_app_short_name => 'MSC',
34242: p_error_code => 'MSC_PP_DELETE_FAIL',
34243: p_message_text => lv_message_text,
34244: p_error_text => lv_error_text);

Line 34299: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

34295: EXECUTE IMMEDIATE lv_sql_stmt USING p_batch_id,v_instance_code;
34296:
34297: -- Set the message
34298:
34299: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
34300: (p_app_short_name => 'MSC',
34301: p_error_code => 'MSC_PP_DELETE_FAIL',
34302: p_message_text => lv_message_text,
34303: p_error_text => lv_error_text);

Line 34329: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

34325:
34326: EXECUTE IMMEDIATE lv_sql_stmt USING p_batch_id,v_instance_code;
34327:
34328: -- Set the error message
34329: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
34330: (p_app_short_name => 'MSC',
34331: p_error_code => 'MSC_PP_FK_REF_NOT_EXIST',
34332: p_message_text => lv_message_text,
34333: p_error_text => lv_error_text,

Line 34344: lv_return:= MSC_ST_UTIL.DERIVE_PROJ_TASK_ID

34340: RAISE ex_logging_err;
34341: END IF;
34342:
34343: --Derive Project Id.
34344: lv_return:= MSC_ST_UTIL.DERIVE_PROJ_TASK_ID
34345: (p_table_name => 'MSC_ST_DEMANDS',
34346: p_proj_col_name => 'PROJECT_NUMBER',
34347: p_proj_task_col_id => 'PROJECT_ID',
34348: p_instance_code => v_instance_code,

Line 34361: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

34357: RAISE ex_logging_err;
34358: END IF;
34359:
34360: -- Set the error message
34361: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
34362: (p_app_short_name => 'MSC',
34363: p_error_code => 'MSC_PP_FK_REF_NOT_EXIST',
34364: p_message_text => lv_message_text,
34365: p_error_text => lv_error_text,

Line 34378: lv_return:= MSC_ST_UTIL.DERIVE_PROJ_TASK_ID

34374: RAISE ex_logging_err;
34375: END IF;
34376:
34377: --Derive Task Id.
34378: lv_return:= MSC_ST_UTIL.DERIVE_PROJ_TASK_ID
34379: (p_table_name => 'MSC_ST_DEMANDS',
34380: p_proj_col_name => 'PROJECT_NUMBER',
34381: p_proj_task_col_id => 'TASK_ID',
34382: p_instance_code => v_instance_code,

Line 34399: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

34395:
34396: -- Validations for MDS ( origination_type = 8)
34397:
34398: -- Set the error message
34399: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
34400: (p_app_short_name => 'MSC',
34401: p_error_code => 'MSC_PP_COL_REF_NOT_EXIST',
34402: p_message_text => lv_message_text,
34403: p_error_text => lv_error_text,

Line 34463: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

34459: -- assembly_demand_comp_date is NOT NULL for origination type = 8
34460:
34461: -- Set the message
34462:
34463: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
34464: (p_app_short_name => 'MSC',
34465: p_error_code => 'MSC_PP_INVALID_VALUE',
34466: p_message_text => lv_message_text,
34467: p_error_text => lv_error_text,

Line 34498: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

34494:
34495: -- Validations for Forecast ( origination_type = 29)
34496:
34497: -- Set the error message
34498: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
34499: (p_app_short_name => 'MSC',
34500: p_error_code => 'MSC_PP_COL_REF_NOT_EXIST',
34501: p_message_text => lv_message_text,
34502: p_error_text => lv_error_text,

Line 34555: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

34551: v_instance_code;
34552:
34553:
34554: -- Set the error message
34555: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
34556: (p_app_short_name => 'MSC',
34557: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
34558: p_message_text => lv_message_text,
34559: p_error_text => lv_error_text,

Line 34576: lv_return:= MSC_ST_UTIL.LOG_ERROR

34572: lv_where_str := ' AND NVL(assembly_demand_comp_date,SYSDATE-36500 ) = SYSDATE-36500'
34573: ||' AND NVL(demand_type,'||NULL_VALUE||') <> 1'
34574: ||' AND origination_type = 29 AND deleted_flag ='||SYS_NO ;
34575:
34576: lv_return:= MSC_ST_UTIL.LOG_ERROR
34577: (p_table_name => 'MSC_ST_DEMANDS',
34578: p_instance_code => v_instance_code,
34579: p_row => lv_column_names,
34580: p_severity => G_SEV_WARNING,

Line 34594: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

34590: RAISE ex_logging_err;
34591: END IF;
34592:
34593: -- Set the error message
34594: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
34595: (p_app_short_name => 'MSC',
34596: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
34597: p_message_text => lv_message_text,
34598: p_error_text => lv_error_text,

Line 34614: lv_return:= MSC_ST_UTIL.LOG_ERROR

34610: lv_where_str := ' AND NVL(assembly_demand_comp_date,SYSDATE-36500 ) <> SYSDATE-36500 '
34611: ||' AND NVL(demand_type,'||NULL_VALUE||') <> 2'
34612: ||' AND origination_type = 29 AND deleted_flag ='||SYS_NO ;
34613:
34614: lv_return:= MSC_ST_UTIL.LOG_ERROR
34615: (p_table_name => 'MSC_ST_DEMANDS',
34616: p_instance_code => v_instance_code,
34617: p_row => lv_column_names,
34618: p_severity => G_SEV_WARNING,

Line 34632: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

34628: RAISE ex_logging_err;
34629: END IF;
34630:
34631: -- Set the error message
34632: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
34633: (p_app_short_name => 'MSC',
34634: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
34635: p_message_text => lv_message_text,
34636: p_error_text => lv_error_text,

Line 34651: lv_return:= MSC_ST_UTIL.LOG_ERROR

34647:
34648: lv_where_str := ' AND NVL(bucket_type,'||NULL_VALUE||') NOT IN (1,2,3)'
34649: ||' AND origination_type = 29 AND deleted_flag ='||SYS_NO ;
34650:
34651: lv_return:= MSC_ST_UTIL.LOG_ERROR
34652: (p_table_name => 'MSC_ST_DEMANDS',
34653: p_instance_code => v_instance_code,
34654: p_row => lv_column_names,
34655: p_severity => G_SEV_WARNING,

Line 34670: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

34666: END IF;
34667:
34668: -- Set the message
34669:
34670: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
34671: (p_app_short_name => 'MSC',
34672: p_error_code => 'MSC_PP_INVALID_VALUE',
34673: p_message_text => lv_message_text,
34674: p_error_text => lv_error_text,

Line 34684: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID

34680: END IF;
34681:
34682: -- Derive customer_id
34683:
34684: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID
34685: (p_table_name => 'MSC_ST_DEMANDS',
34686: p_org_partner_name => 'CUSTOMER_NAME',
34687: p_org_partner_id => 'CUSTOMER_ID',
34688: p_instance_code => v_instance_code,

Line 34702: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

34698: RAISE ex_logging_err;
34699: END IF;
34700:
34701: -- Set the message
34702: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
34703: (p_app_short_name => 'MSC',
34704: p_error_code => 'MSC_PP_INVALID_VALUE',
34705: p_message_text => lv_message_text,
34706: p_error_text => lv_error_text,

Line 34717: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_SITE_ID

34713:
34714:
34715: -- Derive customer_site_id
34716:
34717: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_SITE_ID
34718: (p_table_name => 'MSC_ST_DEMANDS',
34719: p_partner_name => 'CUSTOMER_NAME',
34720: p_partner_site_code => 'CUSTOMER_SITE_CODE',
34721: p_partner_site_id => 'CUSTOMER_SITE_ID',

Line 34736: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

34732: RAISE ex_logging_err;
34733: END IF;
34734:
34735: -- Set the message
34736: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
34737: (p_app_short_name => 'MSC',
34738: p_error_code => 'MSC_PP_INVALID_VALUE',
34739: p_message_text => lv_message_text,
34740: p_error_text => lv_error_text,

Line 34750: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_SITE_ID

34746: END IF;
34747:
34748:
34749: -- Derive bill_to_site_id
34750: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_SITE_ID
34751: (p_table_name => 'MSC_ST_DEMANDS',
34752: p_partner_name => 'CUSTOMER_NAME',
34753: p_partner_site_code => 'BILL_CODE',
34754: p_partner_site_id => 'BILL_ID',

Line 34771: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

34767:
34768: -- valid values for order_date_type_code are 'SHIP' and 'ARRIVE'
34769: -- Set the error message
34770:
34771: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
34772: (p_app_short_name => 'MSC',
34773: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
34774: p_message_text => lv_message_text,
34775: p_error_text => lv_error_text,

Line 34790: lv_return := MSC_ST_UTIL.LOG_ERROR

34786: ' AND NVL(order_date_type_code ,'||NULL_VALUE||') '
34787: ||' NOT IN (1,2) AND origination_type in (7, 8)'
34788: ||' AND NVL(order_date_type_code,'||NULL_VALUE||')<> '||NULL_VALUE;
34789:
34790: lv_return := MSC_ST_UTIL.LOG_ERROR
34791: (p_table_name => 'MSC_ST_DEMANDS',
34792: p_instance_code => v_instance_code,
34793: p_row => lv_column_names,
34794: p_severity => G_SEV_WARNING,

Line 34969: lv_return:= MSC_ST_UTIL.SET_PROCESS_FLAG

34965:
34966: END IF;
34967: CLOSE c3 ;
34968:
34969: lv_return:= MSC_ST_UTIL.SET_PROCESS_FLAG
34970: (p_table_name => 'MSC_ST_DEMANDS',
34971: p_instance_id => v_instance_id,
34972: p_instance_code => v_instance_code,
34973: p_process_flag => G_VALID,

Line 34982: lv_return:= MSC_ST_UTIL.LOG_ERROR

34978: IF lv_return<> 0 THEN
34979: RAISE ex_logging_err;
34980: END IF;
34981:
34982: lv_return:= MSC_ST_UTIL.LOG_ERROR
34983: (p_table_name => 'MSC_ST_DEMANDS',
34984: p_instance_code => v_instance_code,
34985: p_row => lv_column_names,
34986: p_severity => G_SEV_ERROR,

Line 35087: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

35083: creation_date = v_current_date,
35084: created_by = v_current_user
35085: WHERE rowid = lb_rowid(j);
35086:
35087: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
35088: (p_app_short_name => 'MSC',
35089: p_error_code => 'MSC_PP_INVALID_VALUE',
35090: p_message_text => lv_message_text,
35091: p_error_text => lv_error_text,

Line 35100: lv_return := MSC_ST_UTIL.DERIVE_COMPANY_ID

35096: RAISE ex_logging_err;
35097: END IF;
35098:
35099:
35100: lv_return := MSC_ST_UTIL.DERIVE_COMPANY_ID
35101: (p_table_name => 'MSC_ST_COMPANY_USERS',
35102: p_company_name => 'COMPANY_NAME',
35103: p_company_id => 'SR_COMPANY_ID',
35104: p_instance_code => v_instance_code,

Line 35127: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

35123: WHERE mscu.process_flag = G_IN_PROCESS
35124: AND mscu.sr_instance_code = v_instance_code
35125: AND mscu.batch_id = lv_batch_id;
35126:
35127: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
35128: (p_app_short_name => 'MSC',
35129: p_error_code => 'MSC_PP_INVALID_VALUE',
35130: p_message_text => lv_message_text,
35131: p_error_text => lv_error_text,

Line 35150: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

35146: AND process_flag = G_IN_PROCESS
35147: AND batch_id = lv_batch_id
35148: AND sr_instance_code = v_instance_code;
35149: */
35150: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
35151: (p_app_short_name => 'MSC',
35152: p_error_code => 'MSC_PP_INVALID_VALUE',
35153: p_message_text => lv_message_text,
35154: p_error_text => lv_error_text,

Line 35203: MSC_ST_UTIL.SET_PROCESS_FLAG(p_table_name => 'MSC_ST_COMPANY_USERS',

35199: END IF;
35200:
35201: -- Set the process flag as Valid and poulate instance_id
35202: lv_return :=
35203: MSC_ST_UTIL.SET_PROCESS_FLAG(p_table_name => 'MSC_ST_COMPANY_USERS',
35204: p_instance_id => v_instance_id,
35205: p_instance_code => v_instance_code,
35206: p_process_flag => G_VALID,
35207: p_error_text => lv_error_text,

Line 35592: MSC_ST_UTIL.SET_PROCESS_FLAG(p_table_name => 'MSC_ST_BOM_COMPONENTS',

35588: End Loop;
35589:
35590: -- Set the process flag as Valid and poulate instance_id
35591: lv_return :=
35592: MSC_ST_UTIL.SET_PROCESS_FLAG(p_table_name => 'MSC_ST_BOM_COMPONENTS',
35593: p_instance_id => v_instance_id,
35594: p_instance_code => v_instance_code,
35595: p_process_flag => G_VALID,
35596: p_error_text => lv_error_text,

Line 35721: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

35717: -- is any duplicates for user defined unique keys (UDKs,)
35718:
35719: --Duplicate records check for the records whose source is XML
35720:
35721: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
35722: (p_app_short_name => 'MSC',
35723: p_error_code => 'MSC_PP_DUP_REC_FOR_XML',
35724: p_message_text => lv_message_text,
35725: p_error_text => lv_error_text);

Line 35760: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

35756: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code;
35757:
35758: --Duplicate records check for the records whose source is batch load
35759:
35760: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
35761: (p_app_short_name => 'MSC',
35762: p_error_code => 'MSC_PP_DUP_REC_FOR_BATCH_LOAD',
35763: p_message_text => lv_message_text,
35764: p_error_text => lv_error_text);

Line 35857: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

35853:
35854:
35855: -- Set the error message
35856:
35857: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
35858: (p_app_short_name => 'MSC',
35859: p_error_code => 'MSC_PP_NO_DELETION',
35860: p_message_text => lv_message_text,
35861: p_error_text => lv_error_text,

Line 35887: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

35883: EXECUTE IMMEDIATE lv_sql_stmt USING lv_batch_id,v_instance_code;
35884:
35885: -- Set the message
35886:
35887: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
35888: (p_app_short_name => 'MSC',
35889: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
35890: p_message_text => lv_message_text,
35891: p_error_text => lv_error_text,

Line 35907: lv_return := MSC_ST_UTIL.LOG_ERROR

35903: -- Log error procedure inserts warning and also defaults the delete flag
35904:
35905: lv_where_str := ' AND NVL(deleted_flag,'||NULL_VALUE||') <>'||SYS_NO;
35906:
35907: lv_return := MSC_ST_UTIL.LOG_ERROR
35908: (p_table_name => 'MSC_ST_BOMS',
35909: p_instance_code => v_instance_code,
35910: p_row => lv_column_names,
35911: p_severity => G_SEV_WARNING,

Line 35927: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

35923: END IF;
35924:
35925: -- Set the message
35926:
35927: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
35928: (p_app_short_name => 'MSC',
35929: p_error_code => 'MSC_PP_INVALID_VALUE',
35930: p_message_text => lv_message_text,
35931: p_error_text => lv_error_text,

Line 35942: MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID(p_table_name => 'MSC_ST_BOMS',

35938:
35939: -- Populate organization id
35940:
35941: lv_return :=
35942: MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID(p_table_name => 'MSC_ST_BOMS',
35943: p_org_partner_name => 'ORGANIZATION_CODE',
35944: p_org_partner_id => 'ORGANIZATION_ID',
35945: p_instance_code => v_instance_code,
35946: p_partner_type => G_ORGANIZATION,

Line 35959: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

35955: end if;
35956:
35957: -- Set the message
35958:
35959: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
35960: (p_app_short_name => 'MSC',
35961: p_error_code => 'MSC_PP_INVALID_VALUE',
35962: p_message_text => lv_message_text,
35963: p_error_text => lv_error_text,

Line 35973: MSC_ST_UTIL.DERIVE_ITEM_ID(p_table_name =>'MSC_ST_BOMS',

35969: END IF;
35970:
35971: -- Poplulate assembly item id
35972: lv_return :=
35973: MSC_ST_UTIL.DERIVE_ITEM_ID(p_table_name =>'MSC_ST_BOMS',
35974: p_item_col_name => 'ASSEMBLY_NAME',
35975: p_item_col_id =>'ASSEMBLY_ITEM_ID',
35976: p_instance_code => v_instance_code,
35977: p_instance_id => v_instance_id,

Line 36014: MSC_ST_UTIL.DERIVE_BILL_SEQUENCE_ID

36010:
36011: -- Derive the BILL_SEQUENCE_ID for the BOM from LOCAL ID table
36012:
36013: lv_return :=
36014: MSC_ST_UTIL.DERIVE_BILL_SEQUENCE_ID
36015: (p_table_name => 'MSC_ST_BOMS',
36016: p_bom_col_name => 'BOM_NAME',
36017: p_bom_col_id => 'BILL_SEQUENCE_ID',
36018: p_instance_code => v_instance_code,

Line 36028: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

36024: RAISE ex_logging_err;
36025: END IF;
36026:
36027: -- Set the error message
36028: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
36029: (p_app_short_name => 'MSC',
36030: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
36031: p_message_text => lv_message_text,
36032: p_error_text => lv_error_text,

Line 36048: lv_return := MSC_ST_UTIL.LOG_ERROR

36044: --Log warning in error table
36045: lv_where_str :=
36046: ' AND NVL(assembly_quantity,'||NULL_VALUE||') ='|| NULL_VALUE;
36047:
36048: lv_return := MSC_ST_UTIL.LOG_ERROR
36049: (p_table_name => 'MSC_ST_BOMS',
36050: p_instance_code => v_instance_code,
36051: p_row => lv_column_names,
36052: p_severity => G_SEV_WARNING,

Line 36068: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

36064: */
36065: -- Now check for UOM code if it is Invalid error out
36066: -- Set the error message
36067:
36068: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
36069: (p_app_short_name => 'MSC',
36070: p_error_code => 'MSC_PP_INVALID_VALUE',
36071: p_message_text => lv_message_text,
36072: p_error_text => lv_error_text,

Line 36112: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

36108: v_instance_code,
36109: lv_batch_id;
36110:
36111: -- Set the error message
36112: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
36113: (p_app_short_name => 'MSC',
36114: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
36115: p_message_text => lv_message_text,
36116: p_error_text => lv_error_text,

Line 36132: lv_return := MSC_ST_UTIL.LOG_ERROR

36128:
36129: lv_where_str :=
36130: ' AND NVL(assembly_type,'||NULL_VALUE||') NOT IN (1,2)';
36131:
36132: lv_return := MSC_ST_UTIL.LOG_ERROR
36133: (p_table_name => 'MSC_ST_BOMS',
36134: p_instance_code => v_instance_code,
36135: p_row => lv_column_names,
36136: p_severity => G_SEV_WARNING,

Line 36151: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

36147: RAISE ex_logging_err;
36148: END IF;
36149:
36150: -- Set the error message
36151: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
36152: (p_app_short_name => 'MSC',
36153: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
36154: p_message_text => lv_message_text,
36155: p_error_text => lv_error_text,

Line 36170: lv_return := MSC_ST_UTIL.LOG_ERROR

36166: -- Defaulting as NULL if invalid values
36167:
36168: lv_where_str := ' AND bom_scaling_type NOT IN (0,1,2)';
36169:
36170: lv_return := MSC_ST_UTIL.LOG_ERROR
36171: (p_table_name => 'MSC_ST_BOMS',
36172: p_instance_code => v_instance_code,
36173: p_row => lv_column_names,
36174: p_severity => G_SEV_WARNING,

Line 36269: MSC_ST_UTIL.SET_PROCESS_FLAG(p_table_name => 'MSC_ST_BOMS',

36265: CLOSE c3;
36266:
36267: -- Set the process flag as Valid and poulate instance_id
36268: lv_return :=
36269: MSC_ST_UTIL.SET_PROCESS_FLAG(p_table_name => 'MSC_ST_BOMS',
36270: p_instance_id => v_instance_id,
36271: p_instance_code => v_instance_code,
36272: p_process_flag => G_VALID,
36273: p_error_text => lv_error_text,

Line 36284: MSC_ST_UTIL.LOG_ERROR(p_table_name =>'MSC_ST_BOMS',

36280:
36281: -- At the end calling the LOG_ERROR for logging all errored out records
36282:
36283: lv_return :=
36284: MSC_ST_UTIL.LOG_ERROR(p_table_name =>'MSC_ST_BOMS',
36285: p_instance_code =>v_instance_code,
36286: p_row =>lv_column_names,
36287: p_severity =>G_SEV_ERROR,
36288: p_message_text =>NULL,

Line 36304: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

36300: -- Now Validation for MSC_ST_BOM_COMPONENTS
36301:
36302: --Duplicate records check for the records whose source is XML
36303:
36304: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
36305: (p_app_short_name => 'MSC',
36306: p_error_code => 'MSC_PP_DUP_REC_FOR_XML',
36307: p_message_text => lv_message_text,
36308: p_error_text => lv_error_text);

Line 36349: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

36345: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code;
36346:
36347: --Duplicate records check for the records whose source is batch load
36348:
36349: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
36350: (p_app_short_name => 'MSC',
36351: p_error_code => 'MSC_PP_DUP_REC_FOR_BATCH_LOAD',
36352: p_message_text => lv_message_text,
36353: p_error_text => lv_error_text);

Line 36465: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

36461: WHERE rowid = lb_rowid(j);
36462:
36463: -- Set the message
36464:
36465: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
36466: (p_app_short_name => 'MSC',
36467: p_error_code => 'MSC_PP_INVALID_VALUE',
36468: p_message_text => lv_message_text,
36469: p_error_text => lv_error_text,

Line 36480: MSC_ST_UTIL.DERIVE_ITEM_ID(p_table_name => 'MSC_ST_BOM_COMPONENTS',

36476:
36477: -- Populate Inventory Item id for component name
36478:
36479: lv_return :=
36480: MSC_ST_UTIL.DERIVE_ITEM_ID(p_table_name => 'MSC_ST_BOM_COMPONENTS',
36481: p_item_col_name => 'COMPONENT_NAME',
36482: p_item_col_id => 'INVENTORY_ITEM_ID',
36483: p_instance_code => v_instance_code,
36484: p_instance_id => v_instance_id,

Line 36496: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

36492: RAISE ex_logging_err;
36493: end if;
36494:
36495: -- Set the error message
36496: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
36497: (p_app_short_name => 'MSC',
36498: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
36499: p_message_text => lv_message_text,
36500: p_error_text => lv_error_text,

Line 36514: lv_return := MSC_ST_UTIL.LOG_ERROR

36510: -- Check whether delete flag value is in (1,2),if not default to SYS_NO
36511:
36512: lv_where_str := ' AND NVL(deleted_flag,'||NULL_VALUE||')NOT IN (1,2)';
36513:
36514: lv_return := MSC_ST_UTIL.LOG_ERROR
36515: (p_table_name => 'MSC_ST_BOM_COMPONENTS',
36516: p_instance_code => v_instance_code,
36517: p_row => lv_column_names,
36518: p_severity => G_SEV_WARNING,

Line 36534: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

36530: END IF;
36531:
36532: -- Set the message
36533:
36534: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
36535: (p_app_short_name => 'MSC',
36536: p_error_code => 'MSC_PP_INVALID_VALUE',
36537: p_message_text => lv_message_text,
36538: p_error_text => lv_error_text,

Line 36549: MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID(p_table_name => 'MSC_ST_BOM_COMPONENTS',

36545:
36546: -- Populate organization id
36547:
36548: lv_return :=
36549: MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID(p_table_name => 'MSC_ST_BOM_COMPONENTS',
36550: p_org_partner_name =>'ORGANIZATION_CODE',
36551: p_org_partner_id =>'ORGANIZATION_ID',
36552: p_instance_code => v_instance_code,
36553: p_partner_type => G_ORGANIZATION,

Line 36621: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

36617: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
36618:
36619: -- Set the message
36620:
36621: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
36622: (p_app_short_name => 'MSC',
36623: p_error_code => 'MSC_PP_COL_REF_NOT_EXIST',
36624: p_message_text => lv_message_text,
36625: p_error_text => lv_error_text,

Line 36660: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

36656: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
36657:
36658: -- Set the message
36659:
36660: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
36661: (p_app_short_name => 'MSC',
36662: p_error_code => 'MSC_PP_COL_REF_NOT_EXIST',
36663: p_message_text => lv_message_text,
36664: p_error_text => lv_error_text,

Line 36681: MSC_ST_UTIL.DERIVE_BILL_SEQUENCE_ID

36677:
36678:
36679: -- Derive the Bill Sequence Id for the MSC_ST_BOM_COMPONENTS
36680: lv_return :=
36681: MSC_ST_UTIL.DERIVE_BILL_SEQUENCE_ID
36682: (p_table_name => 'MSC_ST_BOM_COMPONENTS',
36683: p_bom_col_name => 'BOM_NAME',
36684: p_bom_col_id => 'BILL_SEQUENCE_ID',
36685: p_instance_code => v_instance_code,

Line 36697: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

36693: RAISE ex_logging_err;
36694: END IF;
36695:
36696: -- Set the error message
36697: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
36698: (p_app_short_name => 'MSC',
36699: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
36700: p_message_text => lv_message_text,
36701: p_error_text => lv_error_text,

Line 36716: lv_return := MSC_ST_UTIL.LOG_ERROR

36712: lv_where_str :=
36713: ' AND NVL(operation_seq_code,'||''''||NULL_CHAR||''''||') '
36714: ||' = '||''''||NULL_CHAR||'''' ;
36715:
36716: lv_return := MSC_ST_UTIL.LOG_ERROR
36717: (p_table_name => 'MSC_ST_BOM_COMPONENTS',
36718: p_instance_code => v_instance_code,
36719: p_row => lv_column_names,
36720: p_severity => G_SEV_WARNING,

Line 36735: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

36731: RAISE ex_logging_err;
36732: END IF;
36733:
36734: -- Set the error message
36735: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
36736: (p_app_short_name => 'MSC',
36737: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
36738: p_message_text => lv_message_text,
36739: p_error_text => lv_error_text,

Line 36755: lv_return := MSC_ST_UTIL.LOG_ERROR

36751:
36752: lv_where_str :=
36753: ' AND NVL(effectivity_date,SYSDATE-36500 ) = SYSDATE-36500' ;
36754:
36755: lv_return := MSC_ST_UTIL.LOG_ERROR
36756: (p_table_name => 'MSC_ST_BOM_COMPONENTS',
36757: p_instance_code => v_instance_code,
36758: p_row => lv_column_names,
36759: p_severity => G_SEV_WARNING,

Line 36801: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

36797: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
36798:
36799: -- Set the message
36800:
36801: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
36802: (p_app_short_name => 'MSC',
36803: p_error_code => 'MSC_PP_DELETE_FAIL',
36804: p_message_text => lv_message_text,
36805: p_error_text => lv_error_text);

Line 36835: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

36831:
36832:
36833: -- Set the message
36834:
36835: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
36836: (p_app_short_name => 'MSC',
36837: p_error_code => 'MSC_PP_DATE_OVERLAP',
36838: p_message_text => lv_message_text,
36839: p_error_text => lv_error_text);

Line 36890: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

36886:
36887:
36888: -- Set the message
36889:
36890: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
36891: (p_app_short_name => 'MSC',
36892: p_error_code => 'MSC_PP_INVALID_VALUE',
36893: p_message_text => lv_message_text,
36894: p_error_text => lv_error_text,

Line 36909: MSC_ST_UTIL.DERIVE_ITEM_ID(p_table_name =>'MSC_ST_BOM_COMPONENTS',

36905:
36906: -- Populate the using_assembly_id from assembly name
36907:
36908: lv_return :=
36909: MSC_ST_UTIL.DERIVE_ITEM_ID(p_table_name =>'MSC_ST_BOM_COMPONENTS',
36910: p_item_col_name => 'ASSEMBLY_NAME',
36911: p_item_col_id =>'USING_ASSEMBLY_ID',
36912: p_instance_code => v_instance_code,
36913: p_instance_id => v_instance_id,

Line 36926: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

36922: end if;
36923:
36924:
36925: -- Set the error message
36926: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
36927: (p_app_short_name => 'MSC',
36928: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
36929: p_message_text => lv_message_text,
36930: p_error_text => lv_error_text,

Line 36945: lv_return := MSC_ST_UTIL.LOG_ERROR

36941:
36942: lv_where_str :=
36943: ' AND NVL(usage_quantity,'||NULL_VALUE||')='|| NULL_VALUE ;
36944:
36945: lv_return := MSC_ST_UTIL.LOG_ERROR
36946: (p_table_name => 'MSC_ST_BOM_COMPONENTS',
36947: p_instance_code => v_instance_code,
36948: p_row => lv_column_names,
36949: p_severity => G_SEV_WARNING,

Line 36964: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

36960: END IF;
36961:
36962: -- Set the message
36963:
36964: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
36965: (p_app_short_name => 'MSC',
36966: p_error_code => 'MSC_PP_INVALID_VALUE',
36967: p_message_text => lv_message_text,
36968: p_error_text => lv_error_text,

Line 37007: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

37003: v_instance_code,
37004: lv_batch_id;
37005:
37006: -- Set the error message
37007: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
37008: (p_app_short_name => 'MSC',
37009: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
37010: p_message_text => lv_message_text,
37011: p_error_text => lv_error_text,

Line 37026: lv_return := MSC_ST_UTIL.LOG_ERROR

37022:
37023: lv_where_str :=
37024: ' AND NVL(component_yield_factor,'||NULL_VALUE||')= '||NULL_VALUE ;
37025:
37026: lv_return := MSC_ST_UTIL.LOG_ERROR
37027: (p_table_name => 'MSC_ST_BOM_COMPONENTS',
37028: p_instance_code => v_instance_code,
37029: p_row => lv_column_names,
37030: p_severity => G_SEV_WARNING,

Line 37045: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

37041: end if;
37042:
37043: -- Set the message
37044:
37045: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
37046: (p_app_short_name => 'MSC',
37047: p_error_code => 'MSC_PP_INVALID_VALUE',
37048: p_message_text => lv_message_text,
37049: p_error_text => lv_error_text,

Line 37060: MSC_ST_UTIL.DERIVE_ITEM_ID(p_table_name => 'MSC_ST_BOM_COMPONENTS',

37056:
37057: --Derive driving item id
37058:
37059: lv_return :=
37060: MSC_ST_UTIL.DERIVE_ITEM_ID(p_table_name => 'MSC_ST_BOM_COMPONENTS',
37061: p_item_col_name => 'DRIVING_ITEM_NAME',
37062: p_item_col_id => 'DRIVING_ITEM_ID',
37063: p_instance_code => v_instance_code,
37064: p_instance_id => v_instance_id,

Line 37076: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

37072: RAISE ex_logging_err;
37073: end if;
37074:
37075: -- Set the error message
37076: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
37077: (p_app_short_name => 'MSC',
37078: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
37079: p_message_text => lv_message_text,
37080: p_error_text => lv_error_text,

Line 37094: lv_return := MSC_ST_UTIL.LOG_ERROR

37090: -- Default the use_up_code as NULL if not in 1,2
37091:
37092: lv_where_str := ' AND use_up_code NOT IN (1,2)';
37093:
37094: lv_return := MSC_ST_UTIL.LOG_ERROR
37095: (p_table_name => 'MSC_ST_BOM_COMPONENTS',
37096: p_instance_code => v_instance_code,
37097: p_row => lv_column_names,
37098: p_severity => G_SEV_WARNING,

Line 37112: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

37108: RAISE ex_logging_err;
37109: end if;
37110:
37111: -- Set the error message
37112: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
37113: (p_app_short_name => 'MSC',
37114: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
37115: p_message_text => lv_message_text,
37116: p_error_text => lv_error_text,

Line 37130: lv_return := MSC_ST_UTIL.LOG_ERROR

37126: -- Default the optional_component as NULL if not in 1,2
37127:
37128: lv_where_str := ' AND optional_component NOT IN (1,2)';
37129:
37130: lv_return := MSC_ST_UTIL.LOG_ERROR
37131: (p_table_name => 'MSC_ST_BOM_COMPONENTS',
37132: p_instance_code => v_instance_code,
37133: p_row => lv_column_names,
37134: p_severity => G_SEV_WARNING,

Line 37148: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

37144: RAISE ex_logging_err;
37145: end if;
37146:
37147: -- Set the error message
37148: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
37149: (p_app_short_name => 'MSC',
37150: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
37151: p_message_text => lv_message_text,
37152: p_error_text => lv_error_text,

Line 37168: MSC_ST_UTIL.LOG_ERROR (p_table_name => 'MSC_ST_BOM_COMPONENTS',

37164: lv_where_str :=
37165: ' AND NVL(wip_supply_type,'||NULL_VALUE||') NOT IN (1,2,3,4,5,6,7)';
37166:
37167: lv_return :=
37168: MSC_ST_UTIL.LOG_ERROR (p_table_name => 'MSC_ST_BOM_COMPONENTS',
37169: p_instance_code => v_instance_code,
37170: p_row => lv_column_names,
37171: p_severity => G_SEV_WARNING,
37172: p_message_text => lv_message_text,

Line 37185: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

37181: RAISE ex_logging_err;
37182: end if;
37183:
37184: -- Set the error message
37185: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
37186: (p_app_short_name => 'MSC',
37187: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
37188: p_message_text => lv_message_text,
37189: p_error_text => lv_error_text,

Line 37206: lv_return := MSC_ST_UTIL.LOG_ERROR

37202:
37203: lv_where_str :=
37204: ' AND NVL(component_type,'||NULL_VALUE||') NOT IN (-1,1,2)';
37205:
37206: lv_return := MSC_ST_UTIL.LOG_ERROR
37207: (p_table_name => 'MSC_ST_BOM_COMPONENTS',
37208: p_instance_code => v_instance_code,
37209: p_row => lv_column_names,
37210: p_severity => G_SEV_WARNING,

Line 37225: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

37221: end if;
37222: */
37223:
37224: -- Set the error message
37225: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
37226: (p_app_short_name => 'MSC',
37227: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
37228: p_message_text => lv_message_text,
37229: p_error_text => lv_error_text,

Line 37244: lv_return := MSC_ST_UTIL.LOG_ERROR

37240:
37241: lv_where_str :=
37242: ' AND NVL(atp_flag,'||NULL_VALUE||')NOT IN (1,2)';
37243:
37244: lv_return := MSC_ST_UTIL.LOG_ERROR
37245: (p_table_name => 'MSC_ST_BOM_COMPONENTS',
37246: p_instance_code => v_instance_code,
37247: p_row => lv_column_names,
37248: p_severity => G_SEV_WARNING,

Line 37411: MSC_ST_UTIL.SET_PROCESS_FLAG(p_table_name => 'MSC_ST_BOM_COMPONENTS',

37407: CLOSE c7;
37408:
37409: -- Set the process flag as Valid and poulate instance_id
37410: lv_return :=
37411: MSC_ST_UTIL.SET_PROCESS_FLAG(p_table_name => 'MSC_ST_BOM_COMPONENTS',
37412: p_instance_id => v_instance_id,
37413: p_instance_code => v_instance_code,
37414: p_process_flag => G_VALID,
37415: p_error_text => lv_error_text,

Line 37426: msc_st_util.log_error(p_table_name =>'MSC_ST_BOM_COMPONENTS',

37422:
37423: -- At the end calling the LOG_ERROR for logging all errored out records
37424:
37425: lv_return :=
37426: msc_st_util.log_error(p_table_name =>'MSC_ST_BOM_COMPONENTS',
37427: p_instance_code =>v_instance_code,
37428: p_row =>lv_column_names,
37429: p_severity =>G_SEV_ERROR,
37430: p_message_text => NULL,

Line 37447: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

37443:
37444:
37445: --Duplicate records check for the records whose source is XML
37446:
37447: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
37448: (p_app_short_name => 'MSC',
37449: p_error_code => 'MSC_PP_DUP_REC_FOR_XML',
37450: p_message_text => lv_message_text,
37451: p_error_text => lv_error_text);

Line 37494: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

37490:
37491:
37492: --Duplicate records check for the records whose source is batch load
37493:
37494: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
37495: (p_app_short_name => 'MSC',
37496: p_error_code => 'MSC_PP_DUP_REC_FOR_BATCH_LOAD',
37497: p_message_text => lv_message_text,
37498: p_error_text => lv_error_text);

Line 37605: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

37601:
37602:
37603: -- Set the error message
37604:
37605: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
37606: (p_app_short_name => 'MSC',
37607: p_error_code => 'MSC_PP_NO_DELETION',
37608: p_message_text => lv_message_text,
37609: p_error_text => lv_error_text,

Line 37634: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

37630:
37631: EXECUTE IMMEDIATE lv_sql_stmt USING lv_batch_id,v_instance_code;
37632:
37633: -- Set the error message
37634: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
37635: (p_app_short_name => 'MSC',
37636: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
37637: p_message_text => lv_message_text,
37638: p_error_text => lv_error_text,

Line 37651: lv_return := MSC_ST_UTIL.LOG_ERROR

37647:
37648: lv_where_str :=
37649: ' AND NVL(deleted_flag,'||NULL_VALUE||')NOT IN (1,2)';
37650:
37651: lv_return := MSC_ST_UTIL.LOG_ERROR
37652: (p_table_name => 'MSC_ST_COMPONENT_SUBSTITUTES',
37653: p_instance_code => v_instance_code,
37654: p_row => lv_column_names,
37655: p_severity => G_SEV_WARNING,

Line 37671: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

37667: END IF;
37668:
37669: -- Set the message
37670:
37671: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
37672: (p_app_short_name => 'MSC',
37673: p_error_code => 'MSC_PP_INVALID_VALUE',
37674: p_message_text => lv_message_text,
37675: p_error_text => lv_error_text,

Line 37685: MSC_ST_UTIL.DERIVE_ITEM_ID(p_table_name => 'MSC_ST_COMPONENT_SUBSTITUTES',

37681: END IF;
37682:
37683: --Derive SUBSTITUTE ITEM ID
37684: lv_return :=
37685: MSC_ST_UTIL.DERIVE_ITEM_ID(p_table_name => 'MSC_ST_COMPONENT_SUBSTITUTES',
37686: p_item_col_name => 'SUB_ITEM_NAME',
37687: p_item_col_id => 'SUBSTITUTE_ITEM_ID',
37688: p_instance_code => v_instance_code,
37689: p_instance_id => v_instance_id,

Line 37702: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

37698: END IF;
37699:
37700: -- Set the message
37701:
37702: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
37703: (p_app_short_name => 'MSC',
37704: p_error_code => 'MSC_PP_INVALID_VALUE',
37705: p_message_text => lv_message_text,
37706: p_error_text => lv_error_text,

Line 37717: MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID(p_table_name => 'MSC_ST_COMPONENT_SUBSTITUTES',

37713:
37714: -- Populate organization id ,
37715:
37716: lv_return :=
37717: MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID(p_table_name => 'MSC_ST_COMPONENT_SUBSTITUTES',
37718: p_org_partner_name => 'ORGANIZATION_CODE',
37719: p_org_partner_id => 'ORGANIZATION_ID',
37720: p_instance_code => v_instance_code,
37721: p_partner_type => G_ORGANIZATION,

Line 37786: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

37782: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
37783:
37784: -- Set the message
37785:
37786: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
37787: (p_app_short_name => 'MSC',
37788: p_error_code => 'MSC_PP_COL_REF_NOT_EXIST',
37789: p_message_text => lv_message_text,
37790: p_error_text => lv_error_text,

Line 37826: MSC_ST_UTIL.DERIVE_BILL_SEQUENCE_ID

37822:
37823:
37824: -- Derive bill sequence id
37825: lv_return :=
37826: MSC_ST_UTIL.DERIVE_BILL_SEQUENCE_ID
37827: (p_table_name => 'MSC_ST_COMPONENT_SUBSTITUTES',
37828: p_bom_col_name => 'BOM_NAME',
37829: p_bom_col_id => 'BILL_SEQUENCE_ID',
37830: p_instance_code => v_instance_code,

Line 37842: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

37838: RAISE ex_logging_err;
37839: END IF;
37840:
37841: -- Set the error message
37842: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
37843: (p_app_short_name => 'MSC',
37844: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
37845: p_message_text => lv_message_text,
37846: p_error_text => lv_error_text,

Line 37862: lv_return := MSC_ST_UTIL.LOG_ERROR

37858:
37859: lv_where_str :=
37860: ' AND NVL(effectivity_date,SYSDATE-36500 ) = SYSDATE-36500' ;
37861:
37862: lv_return := MSC_ST_UTIL.LOG_ERROR
37863: (p_table_name => 'MSC_ST_COMPONENT_SUBSTITUTES',
37864: p_instance_code => v_instance_code,
37865: p_row => lv_column_names,
37866: p_severity => G_SEV_WARNING,

Line 37908: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

37904: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
37905:
37906: -- Set the error message
37907:
37908: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
37909: (p_app_short_name => 'MSC',
37910: p_error_code => 'MSC_PP_COL_REF_NOT_EXIST',
37911: p_message_text => lv_message_text,
37912: p_error_text => lv_error_text,

Line 37943: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

37939:
37940: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
37941:
37942: -- Set the error message
37943: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
37944: (p_app_short_name => 'MSC',
37945: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
37946: p_message_text => lv_message_text,
37947: p_error_text => lv_error_text,

Line 37961: lv_return := MSC_ST_UTIL.LOG_ERROR

37957: -- Default 1 where usage quantity is NULL
37958:
37959: lv_where_str := ' AND NVL(usage_quantity,'||NULL_VALUE||')='|| NULL_VALUE ;
37960:
37961: lv_return := MSC_ST_UTIL.LOG_ERROR
37962: (p_table_name => 'MSC_ST_COMPONENT_SUBSTITUTES',
37963: p_instance_code => v_instance_code,
37964: p_row => lv_column_names,
37965: p_severity => G_SEV_WARNING,

Line 37981: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

37977: END IF;
37978:
37979:
37980: -- Set the error message
37981: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
37982: (p_app_short_name => 'MSC',
37983: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
37984: p_message_text => lv_message_text,
37985: p_error_text => lv_error_text,

Line 37999: lv_return := MSC_ST_UTIL.LOG_ERROR

37995: -- Default PRIORITY as 1 if NULL
37996:
37997: lv_where_str := ' AND NVL(priority,'||NULL_VALUE||')='|| NULL_VALUE ;
37998:
37999: lv_return := MSC_ST_UTIL.LOG_ERROR
38000: (p_table_name => 'MSC_ST_COMPONENT_SUBSTITUTES',
38001: p_instance_code => v_instance_code,
38002: p_row => lv_column_names,
38003: p_severity => G_SEV_WARNING,

Line 38033: MSC_ST_UTIL.SET_PROCESS_FLAG(p_table_name => 'MSC_ST_COMPONENT_SUBSTITUTES',

38029: END IF;
38030:
38031: -- Set the process flag as Valid and poulate instance_id
38032: lv_return :=
38033: MSC_ST_UTIL.SET_PROCESS_FLAG(p_table_name => 'MSC_ST_COMPONENT_SUBSTITUTES',
38034: p_instance_id => v_instance_id,
38035: p_instance_code => v_instance_code,
38036: p_process_flag => G_VALID,
38037: p_error_text => lv_error_text,

Line 38048: msc_st_util.log_error(p_table_name => 'MSC_ST_COMPONENT_SUBSTITUTES',

38044:
38045: -- At the end calling the LOG_ERROR for logging all errored out records
38046:
38047: lv_return :=
38048: msc_st_util.log_error(p_table_name => 'MSC_ST_COMPONENT_SUBSTITUTES',
38049: p_instance_code => v_instance_code,
38050: p_row => lv_column_names,
38051: p_severity => G_SEV_ERROR,
38052: p_error_text => lv_error_text,

Line 38068: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

38064: -- Now validtion for MSC_ST_CO_PRODUCTS
38065:
38066: --Duplicate records check for the records whose source is XML
38067:
38068: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
38069: (p_app_short_name => 'MSC',
38070: p_error_code => 'MSC_PP_DUP_REC_FOR_XML',
38071: p_message_text => lv_message_text,
38072: p_error_text => lv_error_text);

Line 38105: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

38101:
38102:
38103: --Duplicate records check for the records whose source is batch load
38104:
38105: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
38106: (p_app_short_name => 'MSC',
38107: p_error_code => 'MSC_PP_DUP_REC_FOR_BATCH_LOAD',
38108: p_message_text => lv_message_text,
38109: p_error_text => lv_error_text);

Line 38199: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

38195:
38196:
38197: -- Set the error message
38198:
38199: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
38200: (p_app_short_name => 'MSC',
38201: p_error_code => 'MSC_PP_NO_DELETION',
38202: p_message_text => lv_message_text,
38203: p_error_text => lv_error_text,

Line 38228: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

38224:
38225: EXECUTE IMMEDIATE lv_sql_stmt USING lv_batch_id,v_instance_code;
38226:
38227: -- Set the error message
38228: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
38229: (p_app_short_name => 'MSC',
38230: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
38231: p_message_text => lv_message_text,
38232: p_error_text => lv_error_text,

Line 38245: lv_return := MSC_ST_UTIL.LOG_ERROR

38241:
38242: lv_where_str :=
38243: ' AND NVL(deleted_flag,'||NULL_VALUE||')NOT IN (1,2)';
38244:
38245: lv_return := MSC_ST_UTIL.LOG_ERROR
38246: (p_table_name => 'MSC_ST_CO_PRODUCTS',
38247: p_instance_code => v_instance_code,
38248: p_row => lv_column_names,
38249: p_severity => G_SEV_WARNING,

Line 38266: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

38262:
38263:
38264: -- Set the error message
38265:
38266: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
38267: (p_app_short_name => 'MSC',
38268: p_error_code => 'MSC_PP_COL_VAL_NULL',
38269: p_message_text => lv_message_text,
38270: p_error_text => lv_error_text,

Line 38300: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

38296: v_instance_code;
38297:
38298:
38299:
38300: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
38301: (p_app_short_name => 'MSC',
38302: p_error_code => 'MSC_PP_INVALID_VALUE',
38303: p_message_text => lv_message_text,
38304: p_error_text => lv_error_text,

Line 38313: lv_return := MSC_ST_UTIL.DERIVE_ITEM_ID

38309: RAISE ex_logging_err;
38310: END IF;
38311:
38312: -- Derive Component_id
38313: lv_return := MSC_ST_UTIL.DERIVE_ITEM_ID
38314: (p_table_name => 'MSC_ST_CO_PRODUCTS',
38315: p_item_col_name => 'COMPONENT_NAME',
38316: p_item_col_id => 'COMPONENT_ID',
38317: p_instance_id => v_instance_id,

Line 38331: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

38327: RAISE ex_logging_err;
38328: END IF;
38329:
38330:
38331: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
38332: (p_app_short_name => 'MSC',
38333: p_error_code => 'MSC_PP_INVALID_VALUE',
38334: p_message_text => lv_message_text,
38335: p_error_text => lv_error_text,

Line 38344: lv_return := MSC_ST_UTIL.DERIVE_ITEM_ID

38340: RAISE ex_logging_err;
38341: END IF;
38342:
38343: -- Derive Co_product_id
38344: lv_return := MSC_ST_UTIL.DERIVE_ITEM_ID
38345: (p_table_name => 'MSC_ST_CO_PRODUCTS',
38346: p_item_col_name => 'CO_PRODUCT_NAME',
38347: p_item_col_id => 'CO_PRODUCT_ID',
38348: p_instance_id => v_instance_id,

Line 38389: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

38385:
38386: -- Error out all the records for which a CO_PRODUCT_GROUP_ID is derived.
38387: -- the idea is this record was already loaded earlier. Updation not allowed.
38388:
38389: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
38390: (p_app_short_name => 'MSC',
38391: p_error_code => 'MSC_PP_NO_CO_PROD_UPDATE',
38392: p_message_text => lv_message_text,
38393: p_error_text => lv_error_text);

Line 38436: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

38432: END IF;
38433:
38434: -- Set the error message
38435:
38436: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
38437: (p_app_short_name => 'MSC',
38438: p_error_code => 'MSC_PP_INVALID_CO_PROD_SET',
38439: p_message_text => lv_message_text,
38440: p_error_text => lv_error_text);

Line 38482: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

38478:
38479: -- split percentage for a component should add up to 100.
38480: -- Note: assumption is a component can have only one group of co products.
38481: -- Set the error message
38482: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
38483: (p_app_short_name => 'MSC',
38484: p_error_code => 'MSC_PP_CO_PROD_SPLIT_INVALID',
38485: p_message_text => lv_message_text,
38486: p_error_text => lv_error_text,

Line 38517: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

38513:
38514: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code;
38515:
38516: -- one component should have one and only one primary co product.
38517: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
38518: (p_app_short_name => 'MSC',
38519: p_error_code => 'MSC_PP_MULTI_PRI_CO_PROD',
38520: p_message_text => lv_message_text,
38521: p_error_text => lv_error_text,

Line 38616: MSC_ST_UTIL.SET_PROCESS_FLAG(p_table_name => 'MSC_ST_CO_PRODUCTS',

38612:
38613:
38614: -- Set the process flag as Valid and derive sr_instance_id
38615: lv_return :=
38616: MSC_ST_UTIL.SET_PROCESS_FLAG(p_table_name => 'MSC_ST_CO_PRODUCTS',
38617: p_instance_id => v_instance_id,
38618: p_instance_code => v_instance_code,
38619: p_process_flag => G_VALID,
38620: p_error_text => lv_error_text,

Line 38631: MSC_ST_UTIL.LOG_ERROR(p_table_name => 'MSC_ST_CO_PRODUCTS',

38627:
38628: -- At the end calling the LOG_ERROR for logging all errored out records
38629:
38630: lv_return :=
38631: MSC_ST_UTIL.LOG_ERROR(p_table_name => 'MSC_ST_CO_PRODUCTS',
38632: p_instance_code => v_instance_code,
38633: p_row => lv_column_names,
38634: p_severity => G_SEV_ERROR,
38635: p_message_text => NULL,

Line 38784: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

38780:
38781: BEGIN
38782: --Duplicate records check for the records whose source is XML
38783:
38784: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
38785: (p_app_short_name => 'MSC',
38786: p_error_code => 'MSC_PP_DUP_REC_FOR_XML',
38787: p_message_text => lv_message_text,
38788: p_error_text => lv_error_text);

Line 38825: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

38821: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code;
38822:
38823: --Duplicate records check for the records whose source is batch load
38824:
38825: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
38826: (p_app_short_name => 'MSC',
38827: p_error_code => 'MSC_PP_DUP_REC_FOR_BATCH_LOAD',
38828: p_message_text => lv_message_text,
38829: p_error_text => lv_error_text);

Line 38936: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

38932: WHERE rowid = lb_rowid(j);
38933:
38934:
38935: -- Set the message
38936: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
38937: (p_app_short_name => 'MSC',
38938: p_error_code => 'MSC_PP_NO_DELETION',
38939: p_message_text => lv_message_text,
38940: p_error_text => lv_error_text,

Line 38965: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

38961:
38962: EXECUTE IMMEDIATE lv_sql_stmt USING lv_batch_id,v_instance_code;
38963:
38964: -- Set the error message
38965: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
38966: (p_app_short_name => 'MSC',
38967: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
38968: p_message_text => lv_message_text,
38969: p_error_text => lv_error_text,

Line 38985: lv_return := MSC_ST_UTIL.LOG_ERROR

38981:
38982: lv_where_str :=
38983: ' AND NVL(deleted_flag,'||NULL_VALUE||') <>'||SYS_NO;
38984:
38985: lv_return := MSC_ST_UTIL.LOG_ERROR
38986: (p_table_name => 'MSC_ST_ROUTINGS',
38987: p_instance_code => v_instance_code,
38988: p_row => lv_column_names,
38989: p_severity => G_SEV_WARNING,

Line 39004: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

39000: END IF;
39001:
39002: -- Set the message
39003:
39004: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
39005: (p_app_short_name => 'MSC',
39006: p_error_code => 'MSC_PP_INVALID_VALUE',
39007: p_message_text => lv_message_text,
39008: p_error_text => lv_error_text,

Line 39016: -- derive organization id , call utilty package- msc_st_util's procedure

39012: IF lv_return <> 0 THEN
39013: RAISE ex_logging_err;
39014: END IF;
39015:
39016: -- derive organization id , call utilty package- msc_st_util's procedure
39017:
39018: lv_return :=
39019: MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID(p_table_name => 'MSC_ST_ROUTINGS',
39020: p_org_partner_name => 'ORGANIZATION_CODE',

Line 39019: MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID(p_table_name => 'MSC_ST_ROUTINGS',

39015:
39016: -- derive organization id , call utilty package- msc_st_util's procedure
39017:
39018: lv_return :=
39019: MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID(p_table_name => 'MSC_ST_ROUTINGS',
39020: p_org_partner_name => 'ORGANIZATION_CODE',
39021: p_org_partner_id => 'ORGANIZATION_ID',
39022: p_instance_code => v_instance_code,
39023: p_partner_type => G_ORGANIZATION,

Line 39036: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

39032: end if;
39033:
39034: -- Set the message
39035:
39036: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
39037: (p_app_short_name => 'MSC',
39038: p_error_code => 'MSC_PP_INVALID_VALUE',
39039: p_message_text => lv_message_text,
39040: p_error_text => lv_error_text,

Line 39051: MSC_ST_UTIL.DERIVE_ITEM_ID(p_table_name => 'MSC_ST_ROUTINGS',

39047:
39048: -- Derive assembly item id
39049:
39050: lv_return :=
39051: MSC_ST_UTIL.DERIVE_ITEM_ID(p_table_name => 'MSC_ST_ROUTINGS',
39052: p_item_col_name => 'ASSEMBLY_NAME',
39053: p_item_col_id => 'ASSEMBLY_ITEM_ID',
39054: p_instance_code => v_instance_code,
39055: p_instance_id => v_instance_id,

Line 39090: lv_return :=msc_st_util.derive_routing_sequence_id

39086:
39087:
39088: -- Derive the ROUTING_SEQUENCE_ID from LOCAL ID table
39089:
39090: lv_return :=msc_st_util.derive_routing_sequence_id
39091: (p_table_name => 'MSC_ST_ROUTINGS',
39092: p_rtg_col_name => 'ROUTING_NAME',
39093: p_rtg_col_id =>'ROUTING_SEQUENCE_ID',
39094: p_instance_code => v_instance_code,

Line 39104: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

39100: MSC_UTIL.LOG_MSG(MSC_UTIL.G_LVL_STATUS,lv_error_text);
39101: end if;
39102:
39103: -- Set the error message
39104: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
39105: (p_app_short_name => 'MSC',
39106: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
39107: p_message_text => lv_message_text,
39108: p_error_text => lv_error_text,

Line 39123: lv_return := MSC_ST_UTIL.LOG_ERROR

39119:
39120: lv_where_str :=
39121: ' AND NVL(routing_type,'||NULL_VALUE||') NOT IN (1,2)';
39122:
39123: lv_return := MSC_ST_UTIL.LOG_ERROR
39124: (p_table_name => 'MSC_ST_ROUTINGS',
39125: p_instance_code => v_instance_code,
39126: p_row => lv_column_names,
39127: p_severity => G_SEV_WARNING,

Line 39142: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

39138: MSC_UTIL.LOG_MSG(MSC_UTIL.G_LVL_STATUS,lv_error_text);
39139: END IF;
39140:
39141: -- Set the error message
39142: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
39143: (p_app_short_name => 'MSC',
39144: p_error_code => 'MSC_PP_FK_REF_NOT_EXIST',
39145: p_message_text => lv_message_text,
39146: p_error_text => lv_error_text,

Line 39158: lv_return:= MSC_ST_UTIL.DERIVE_PROJ_TASK_ID

39154: RAISE ex_logging_err;
39155: END IF;
39156:
39157: --Derive Project Id.
39158: lv_return:= MSC_ST_UTIL.DERIVE_PROJ_TASK_ID
39159: (p_table_name => 'MSC_ST_ROUTINGS',
39160: p_proj_col_name => 'PROJECT_NUMBER',
39161: p_proj_task_col_id => 'PROJECT_ID',
39162: p_instance_code => v_instance_code,

Line 39175: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

39171: RAISE ex_logging_err;
39172: END IF;
39173:
39174: -- Set the error message
39175: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
39176: (p_app_short_name => 'MSC',
39177: p_error_code => 'MSC_PP_FK_REF_NOT_EXIST',
39178: p_message_text => lv_message_text,
39179: p_error_text => lv_error_text,

Line 39192: lv_return:= MSC_ST_UTIL.DERIVE_PROJ_TASK_ID

39188: RAISE ex_logging_err;
39189: END IF;
39190:
39191: --Derive Task Id.
39192: lv_return:= MSC_ST_UTIL.DERIVE_PROJ_TASK_ID
39193: (p_table_name => 'MSC_ST_ROUTINGS',
39194: p_proj_col_name => 'PROJECT_NUMBER',
39195: p_proj_task_col_id => 'TASK_ID',
39196: p_instance_code => v_instance_code,

Line 39234: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

39230: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
39231:
39232: -- Set the message
39233:
39234: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
39235: (p_app_short_name => 'MSC',
39236: p_error_code => 'MSC_PP_INVALID_VALUE',
39237: p_message_text => lv_message_text,
39238: p_error_text => lv_error_text,

Line 39278: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

39274: v_instance_code,
39275: lv_batch_id;
39276:
39277: -- Set the error message
39278: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
39279: (p_app_short_name => 'MSC',
39280: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
39281: p_message_text => lv_message_text,
39282: p_error_text => lv_error_text,

Line 39296: lv_return := MSC_ST_UTIL.LOG_ERROR

39292: -- Defualt CTP FLAG as 2(No) if NOT IN (1,2)
39293:
39294: lv_where_str := ' AND ctp_flag NOT IN (1,2)';
39295:
39296: lv_return := MSC_ST_UTIL.LOG_ERROR
39297: (p_table_name => 'MSC_ST_ROUTINGS',
39298: p_instance_code => v_instance_code,
39299: p_row => lv_column_names,
39300: p_severity => G_SEV_WARNING,

Line 39314: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

39310: RAISE ex_logging_err;
39311: END IF;
39312:
39313: -- Set the error message
39314: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
39315: (p_app_short_name => 'MSC',
39316: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
39317: p_message_text => lv_message_text,
39318: p_error_text => lv_error_text,

Line 39333: lv_return := MSC_ST_UTIL.LOG_ERROR

39329: -- 3 added for Network Routing, now supported by OSFM integration.
39330:
39331: lv_where_str := ' AND cfm_routing_flag NOT IN (1,2,3)';
39332:
39333: lv_return := MSC_ST_UTIL.LOG_ERROR
39334: (p_table_name => 'MSC_ST_ROUTINGS',
39335: p_instance_code => v_instance_code,
39336: p_row => lv_column_names,
39337: p_severity => G_SEV_WARNING,

Line 39370: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

39366: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
39367:
39368:
39369: -- Set the error message
39370: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
39371: (p_app_short_name => 'MSC',
39372: p_error_code => 'MSC_PP_COL_REF_NOT_EXIST',
39373: p_message_text => lv_message_text,
39374: p_error_text => lv_error_text,

Line 39386: MSC_ST_UTIL.DERIVE_BILL_SEQUENCE_ID

39382:
39383: -- Derive the bill_sequence_id
39384:
39385: lv_return :=
39386: MSC_ST_UTIL.DERIVE_BILL_SEQUENCE_ID
39387: (p_table_name => 'MSC_ST_ROUTINGS',
39388: p_row => lv_column_names,
39389: p_bom_col_name => 'BOM_NAME',
39390: p_bom_col_id => 'BILL_SEQUENCE_ID',

Line 39405: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

39401:
39402: -- For OSFM Integration
39403: -- for Network Routings first_operation_seq_code or last_operation_seq_code cannot be null.
39404: -- Set the error message
39405: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
39406: (p_app_short_name => 'MSC',
39407: p_error_code => 'MSC_PP_COL_VAL_NULL',
39408: p_message_text => lv_message_text,
39409: p_error_text => lv_error_text,

Line 39548: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

39544: CLOSE c3;
39545:
39546: -- set the message
39547:
39548: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
39549: (p_app_short_name => 'MSC',
39550: p_error_code => 'MSC_PP_INVALID_VALUE',
39551: p_message_text => lv_message_text,
39552: p_error_text => lv_error_text,

Line 39570: lv_return := msc_st_util.derive_routing_sequence_id

39566: ||' <> '||''''||NULL_CHAR||'''' ;
39567:
39568:
39569:
39570: lv_return := msc_st_util.derive_routing_sequence_id
39571: (p_table_name => 'MSC_ST_ROUTINGS',
39572: p_rtg_col_name => 'COMMON_ROUTING_NAME',
39573: p_rtg_col_id => 'COMMON_ROUTING_SEQUENCE_ID',
39574: p_instance_code => v_instance_code,

Line 39606: MSC_ST_UTIL.SET_PROCESS_FLAG(p_table_name => 'MSC_ST_ROUTINGS',

39602:
39603:
39604: -- Set the process flag as Valid and poulate instance_id
39605: lv_return :=
39606: MSC_ST_UTIL.SET_PROCESS_FLAG(p_table_name => 'MSC_ST_ROUTINGS',
39607: p_instance_id => v_instance_id,
39608: p_instance_code => v_instance_code,
39609: p_process_flag => G_VALID,
39610: p_error_text => lv_error_text,

Line 39621: MSC_ST_UTIL.LOG_ERROR(p_table_name => 'MSC_ST_ROUTINGS',

39617:
39618: -- At the end calling the LOG_ERROR for logging all errored out records
39619:
39620: lv_return :=
39621: MSC_ST_UTIL.LOG_ERROR(p_table_name => 'MSC_ST_ROUTINGS',
39622: p_instance_code => v_instance_code,
39623: p_row => lv_column_names,
39624: p_severity => G_SEV_ERROR,
39625: p_message_text => NULL,

Line 39644: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

39640:
39641:
39642: --Duplicate records check for the records whose source is XML
39643:
39644: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
39645: (p_app_short_name => 'MSC',
39646: p_error_code => 'MSC_PP_DUP_REC_FOR_XML',
39647: p_message_text => lv_message_text,
39648: p_error_text => lv_error_text);

Line 39686: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

39682:
39683:
39684: --Duplicate records check for the records whose source is batch load
39685:
39686: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
39687: (p_app_short_name => 'MSC',
39688: p_error_code => 'MSC_PP_DUP_REC_FOR_BATCH_LOAD',
39689: p_message_text => lv_message_text,
39690: p_error_text => lv_error_text);

Line 39807: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

39803: created_by = v_current_user
39804: WHERE rowid = lb_rowid(j);
39805:
39806: -- Set the error message
39807: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
39808: (p_app_short_name => 'MSC',
39809: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
39810: p_message_text => lv_message_text,
39811: p_error_text => lv_error_text,

Line 39827: lv_return := MSC_ST_UTIL.LOG_ERROR

39823:
39824: lv_where_str :=
39825: ' AND NVL(deleted_flag,'||NULL_VALUE||') <>'||SYS_NO;
39826:
39827: lv_return := MSC_ST_UTIL.LOG_ERROR
39828: (p_table_name => 'MSC_ST_ROUTING_OPERATIONS',
39829: p_instance_code => v_instance_code,
39830: p_row => lv_column_names,
39831: p_severity => G_SEV_WARNING,

Line 39846: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

39842: END IF;
39843:
39844: -- Set the message
39845:
39846: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
39847: (p_app_short_name => 'MSC',
39848: p_error_code => 'MSC_PP_INVALID_VALUE',
39849: p_message_text => lv_message_text,
39850: p_error_text => lv_error_text,

Line 39860: MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID(p_table_name => 'MSC_ST_ROUTING_OPERATIONS',

39856: END IF;
39857:
39858: -- derive organization id ,
39859: lv_return :=
39860: MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID(p_table_name => 'MSC_ST_ROUTING_OPERATIONS',
39861: p_org_partner_name =>'ORGANIZATION_CODE',
39862: p_org_partner_id =>'ORGANIZATION_ID',
39863: p_instance_code => v_instance_code,
39864: p_partner_type => G_ORGANIZATION,

Line 39894: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

39890:
39891: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
39892:
39893: -- Set the error message
39894: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
39895: (p_app_short_name => 'MSC',
39896: p_error_code => 'MSC_PP_COL_REF_NOT_EXIST',
39897: p_message_text => lv_message_text,
39898: p_error_text => lv_error_text,

Line 39914: MSC_ST_UTIL.DERIVE_ROUTING_SEQUENCE_ID

39910:
39911: -- Derive the ROUTING_SEQUENCE_ID from LOCAL ID table
39912:
39913: lv_return :=
39914: MSC_ST_UTIL.DERIVE_ROUTING_SEQUENCE_ID
39915: (p_table_name => 'MSC_ST_ROUTING_OPERATIONS',
39916: p_rtg_col_name => 'ROUTING_NAME',
39917: p_rtg_col_id => 'ROUTING_SEQUENCE_ID',
39918: p_instance_code => v_instance_code,

Line 39930: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

39926: RAISE ex_logging_err;
39927: end if;
39928:
39929: -- Set the error message
39930: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
39931: (p_app_short_name => 'MSC',
39932: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
39933: p_message_text => lv_message_text,
39934: p_error_text => lv_error_text,

Line 39949: lv_return := MSC_ST_UTIL.LOG_ERROR

39945:
39946: lv_where_str :=
39947: ' AND NVL(effectivity_date,SYSDATE-36500 ) = SYSDATE-36500 ' ;
39948:
39949: lv_return := MSC_ST_UTIL.LOG_ERROR
39950: (p_table_name => 'MSC_ST_ROUTING_OPERATIONS',
39951: p_instance_code => v_instance_code,
39952: p_row => lv_column_names,
39953: p_severity => G_SEV_WARNING,

Line 39967: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

39963: RAISE ex_logging_err;
39964: END IF;
39965:
39966: -- Set the error message
39967: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
39968: (p_app_short_name => 'MSC',
39969: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
39970: p_message_text => lv_message_text,
39971: p_error_text => lv_error_text,

Line 39986: lv_return := MSC_ST_UTIL.LOG_ERROR

39982: lv_where_str :=
39983: ' AND NVL(operation_seq_code,'||''''||NULL_CHAR||''''||') '
39984: ||' = '||''''||NULL_CHAR||'''' ;
39985:
39986: lv_return := MSC_ST_UTIL.LOG_ERROR
39987: (p_table_name => 'MSC_ST_ROUTING_OPERATIONS',
39988: p_instance_code => v_instance_code,
39989: p_row => lv_column_names,
39990: p_severity => G_SEV_WARNING,

Line 40053: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

40049:
40050: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
40051:
40052: -- Set the error message
40053: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
40054: (p_app_short_name => 'MSC',
40055: p_error_code => 'MSC_PP_DELETE_FAIL',
40056: p_message_text => lv_message_text,
40057: p_error_text => lv_error_text );

Line 40083: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

40079: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
40080:
40081: -- Set the error message
40082:
40083: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
40084: (p_app_short_name => 'MSC',
40085: p_error_code => 'MSC_PP_COL_VAL_NULL',
40086: p_message_text => lv_message_text,
40087: p_error_text => lv_error_text,

Line 40225: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

40221:
40222: /* Bug 3549086 -- we shouldn't be erroing out if department doen't exists.
40223: ERP allows such records. Hence we would genearet department it.
40224: -- Set the error message
40225: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
40226: (p_app_short_name => 'MSC',
40227: p_error_code => 'MSC_PP_COL_REF_NOT_EXIST',
40228: p_message_text => lv_message_text,
40229: p_error_text => lv_error_text,

Line 40262: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

40258: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
40259: */
40260:
40261: -- Set the error message
40262: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
40263: (p_app_short_name => 'MSC',
40264: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
40265: p_message_text => lv_message_text,
40266: p_error_text => lv_error_text,

Line 40281: lv_return := MSC_ST_UTIL.LOG_ERROR

40277:
40278: lv_where_str := ' AND NVL(option_dependent_flag,'||NULL_VALUE||')'
40279: ||' NOT IN (1,2) AND deleted_flag = '||SYS_NO ;
40280:
40281: lv_return := MSC_ST_UTIL.LOG_ERROR
40282: (p_table_name => 'MSC_ST_ROUTING_OPERATIONS',
40283: p_instance_code => v_instance_code,
40284: p_row => lv_column_names,
40285: p_severity => G_SEV_WARNING,

Line 40471: MSC_ST_UTIL.SET_PROCESS_FLAG(p_table_name => 'MSC_ST_ROUTING_OPERATIONS',

40467: v_instance_id,v_instance_id,v_instance_code,v_instance_id,lv_batch_id;
40468:
40469: -- Set the process flag as Valid and derive sr_instance_id
40470: lv_return :=
40471: MSC_ST_UTIL.SET_PROCESS_FLAG(p_table_name => 'MSC_ST_ROUTING_OPERATIONS',
40472: p_instance_id => v_instance_id,
40473: p_instance_code => v_instance_code,
40474: p_process_flag => G_VALID,
40475: p_error_text => lv_error_text,

Line 40487: MSC_ST_UTIL.LOG_ERROR(p_table_name => 'MSC_ST_ROUTING_OPERATIONS',

40483:
40484: -- At the end calling the LOG_ERROR for logging all errored out records
40485:
40486: lv_return :=
40487: MSC_ST_UTIL.LOG_ERROR(p_table_name => 'MSC_ST_ROUTING_OPERATIONS',
40488: p_instance_code => v_instance_code,
40489: p_row => lv_column_names,
40490: p_severity => G_SEV_ERROR,
40491: p_message_text => NULL,

Line 40507: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

40503: -- Validation for the MSC_ST_OPERATION_RESOURCES
40504:
40505: --Duplicate records check for the records whose source is XML
40506:
40507: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
40508: (p_app_short_name => 'MSC',
40509: p_error_code => 'MSC_PP_DUP_REC_FOR_XML',
40510: p_message_text => lv_message_text,
40511: p_error_text => lv_error_text);

Line 40556: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

40552:
40553:
40554: --Duplicate records check for the records whose source is batch load
40555:
40556: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
40557: (p_app_short_name => 'MSC',
40558: p_error_code => 'MSC_PP_DUP_REC_FOR_BATCH_LOAD',
40559: p_message_text => lv_message_text,
40560: p_error_text => lv_error_text);

Line 40666: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

40662: WHERE rowid = lb_rowid(j);
40663:
40664:
40665: -- Set the error message
40666: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
40667: (p_app_short_name => 'MSC',
40668: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
40669: p_message_text => lv_message_text,
40670: p_error_text => lv_error_text,

Line 40686: lv_return := MSC_ST_UTIL.LOG_ERROR

40682:
40683: lv_where_str :=
40684: ' AND NVL(deleted_flag,'||NULL_VALUE||') NOT IN(1,2)';
40685:
40686: lv_return := MSC_ST_UTIL.LOG_ERROR
40687: (p_table_name => 'MSC_ST_OPERATION_RESOURCES',
40688: p_instance_code => v_instance_code,
40689: p_row => lv_column_names,
40690: p_severity => G_SEV_WARNING,

Line 40743: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

40739:
40740: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
40741:
40742: -- Set the message
40743: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
40744: (p_app_short_name => 'MSC',
40745: p_error_code => 'MSC_PP_INVALID_VALUE',
40746: p_message_text => lv_message_text,
40747: p_error_text => lv_error_text,

Line 40757: MSC_ST_UTIL.DERIVE_ROUTING_SEQUENCE_ID

40753: END IF;
40754:
40755: -- Derive the ROUTING_SEQUENCE_ID from LOCAL ID table
40756: lv_return :=
40757: MSC_ST_UTIL.DERIVE_ROUTING_SEQUENCE_ID
40758: (p_table_name => 'MSC_ST_OPERATION_RESOURCES',
40759: p_rtg_col_name => 'ROUTING_NAME',
40760: p_rtg_col_id =>'ROUTING_SEQUENCE_ID',
40761: p_instance_code => v_instance_code,

Line 40774: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

40770: end if;
40771:
40772:
40773: -- Set the error message
40774: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
40775: (p_app_short_name => 'MSC',
40776: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
40777: p_message_text => lv_message_text,
40778: p_error_text => lv_error_text,

Line 40793: lv_return := MSC_ST_UTIL.LOG_ERROR

40789:
40790: lv_where_str := ' AND NVL(operation_seq_code,'||''''||NULL_CHAR||''''
40791: ||' ) ='||''''||NULL_CHAR||'''' ;
40792:
40793: lv_return := MSC_ST_UTIL.LOG_ERROR
40794: (p_table_name => 'MSC_ST_OPERATION_RESOURCES',
40795: p_instance_code => v_instance_code,
40796: p_row => lv_column_names,
40797: p_severity => G_SEV_WARNING,

Line 40812: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

40808: END IF;
40809:
40810:
40811: -- Set the error message
40812: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
40813: (p_app_short_name => 'MSC',
40814: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
40815: p_message_text => lv_message_text,
40816: p_error_text => lv_error_text,

Line 40831: lv_return := MSC_ST_UTIL.LOG_ERROR

40827:
40828: lv_where_str :=
40829: ' AND NVL(operation_effectivity_date, SYSDATE-36500 ) = SYSDATE-36500 ' ;
40830:
40831: lv_return := MSC_ST_UTIL.LOG_ERROR
40832: (p_table_name => 'MSC_ST_OPERATION_RESOURCES',
40833: p_instance_code => v_instance_code,
40834: p_row => lv_column_names,
40835: p_severity => G_SEV_WARNING,

Line 40876: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

40872:
40873: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
40874:
40875: -- Set the error message
40876: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
40877: (p_app_short_name => 'MSC',
40878: p_error_code => 'MSC_PP_COL_REF_NOT_EXIST',
40879: p_message_text => lv_message_text,
40880: p_error_text => lv_error_text,

Line 40916: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

40912:
40913: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
40914:
40915: -- Set the error message
40916: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
40917: (p_app_short_name => 'MSC',
40918: p_error_code => 'MSC_PP_COL_VAL_NULL_DEFAULT',
40919: p_message_text => lv_message_text,
40920: p_error_text => lv_error_text,

Line 40935: lv_return := MSC_ST_UTIL.LOG_ERROR

40931:
40932: lv_where_str := ' AND NVL(resource_seq_code,'||''''||NULL_CHAR||''''
40933: ||' ) ='||''''||NULL_CHAR||'''' ;
40934:
40935: lv_return := MSC_ST_UTIL.LOG_ERROR
40936: (p_table_name => 'MSC_ST_OPERATION_RESOURCES',
40937: p_instance_code => v_instance_code,
40938: p_row => lv_column_names,
40939: p_severity => G_SEV_WARNING,

Line 40953: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

40949: RAISE ex_logging_err;
40950: END IF;
40951:
40952: -- Set the error message
40953: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
40954: (p_app_short_name => 'MSC',
40955: p_error_code => 'MSC_PP_COL_VAL_NULL_DEFAULT',
40956: p_message_text => lv_message_text,
40957: p_error_text => lv_error_text,

Line 40971: lv_return := MSC_ST_UTIL.LOG_ERROR

40967: -- Default alternate number as 0 if NULL
40968:
40969: lv_where_str := ' AND NVL(alternate_number,'||NULL_VALUE||') ='||NULL_VALUE ;
40970:
40971: lv_return := MSC_ST_UTIL.LOG_ERROR
40972: (p_table_name => 'MSC_ST_OPERATION_RESOURCES',
40973: p_instance_code => v_instance_code,
40974: p_row => lv_column_names,
40975: p_severity => G_SEV_WARNING,

Line 41018: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

41014:
41015: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
41016:
41017:
41018: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
41019: (p_app_short_name => 'MSC',
41020: p_error_code => 'MSC_PP_DELETE_FAIL',
41021: p_message_text => lv_message_text,
41022: p_error_text => lv_error_text);

Line 41096: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

41092:
41093: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
41094:
41095: -- Set the error message
41096: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
41097: (p_app_short_name => 'MSC',
41098: p_error_code => 'MSC_PP_COL_REF_NOT_EXIST',
41099: p_message_text => lv_message_text,
41100: p_error_text => lv_error_text,

Line 41134: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

41130: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
41131:
41132:
41133: -- Set the error message
41134: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
41135: (p_app_short_name => 'MSC',
41136: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
41137: p_message_text => lv_message_text,
41138: p_error_text => lv_error_text,

Line 41154: lv_return := MSC_ST_UTIL.LOG_ERROR

41150: lv_where_str :=
41151: ' AND NVL(basis_type,'||NULL_VALUE||')'
41152: ||' NOT IN (1,2,3,4,5) AND deleted_flag = 2' ;
41153:
41154: lv_return := MSC_ST_UTIL.LOG_ERROR
41155: (p_table_name => 'MSC_ST_OPERATION_RESOURCES',
41156: p_instance_code => v_instance_code,
41157: p_row => lv_column_names,
41158: p_severity => G_SEV_WARNING,

Line 41171: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

41167: RAISE ex_logging_err;
41168: END IF;
41169:
41170: -- Set the error message
41171: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
41172: (p_app_short_name => 'MSC',
41173: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
41174: p_message_text => lv_message_text,
41175: p_error_text => lv_error_text,

Line 41190: lv_return := MSC_ST_UTIL.LOG_ERROR

41186:
41187: lv_where_str := ' AND NVL(principal_flag,'||NULL_VALUE||')'||' NOT IN (1,2)'
41188: ||'AND deleted_flag = 2';
41189:
41190: lv_return := MSC_ST_UTIL.LOG_ERROR
41191: (p_table_name => 'MSC_ST_OPERATION_RESOURCES',
41192: p_instance_code => v_instance_code,
41193: p_row => lv_column_names,
41194: p_severity => G_SEV_WARNING,

Line 41376: MSC_ST_UTIL.SET_PROCESS_FLAG(p_table_name => 'MSC_ST_OPERATION_RESOURCES',

41372: CLOSE c8 ;
41373:
41374: -- Set the process flag as Valid and derive sr_instance_id
41375: lv_return :=
41376: MSC_ST_UTIL.SET_PROCESS_FLAG(p_table_name => 'MSC_ST_OPERATION_RESOURCES',
41377: p_instance_id => v_instance_id,
41378: p_instance_code => v_instance_code,
41379: p_process_flag => G_VALID,
41380: p_error_text => lv_error_text,

Line 41392: MSC_ST_UTIL.LOG_ERROR(p_table_name =>'MSC_ST_OPERATION_RESOURCES',

41388:
41389: -- At the end calling the LOG_ERROR for logging all errored out records
41390:
41391: lv_return :=
41392: MSC_ST_UTIL.LOG_ERROR(p_table_name =>'MSC_ST_OPERATION_RESOURCES',
41393: p_instance_code =>v_instance_code,
41394: p_row =>lv_column_names,
41395: p_severity =>G_SEV_ERROR,
41396: p_message_text =>NULL,

Line 41414: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

41410: -- Pre processing for MSC_ST_OPERATION_NETWORKS
41411:
41412: --Duplicate records check for the records whose source is XML
41413:
41414: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
41415: (p_app_short_name => 'MSC',
41416: p_error_code => 'MSC_PP_DUP_REC_FOR_XML',
41417: p_message_text => lv_message_text,
41418: p_error_text => lv_error_text);

Line 41458: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

41454:
41455:
41456: --Duplicate records check for the records whose source is batch load
41457:
41458: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
41459: (p_app_short_name => 'MSC',
41460: p_error_code => 'MSC_PP_DUP_REC_FOR_BATCH_LOAD',
41461: p_message_text => lv_message_text,
41462: p_error_text => lv_error_text);

Line 41572: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

41568: WHERE rowid = lb_rowid(j);
41569:
41570:
41571: -- Set the error message
41572: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
41573: (p_app_short_name => 'MSC',
41574: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
41575: p_message_text => lv_message_text,
41576: p_error_text => lv_error_text,

Line 41591: lv_return := MSC_ST_UTIL.LOG_ERROR

41587:
41588: lv_where_str :=
41589: ' AND NVL(deleted_flag,'||NULL_VALUE||') NOT IN(1,2)';
41590:
41591: lv_return := MSC_ST_UTIL.LOG_ERROR
41592: (p_table_name => 'MSC_ST_OPERATION_NETWORKS',
41593: p_instance_code => v_instance_code,
41594: p_row => lv_column_names,
41595: p_severity => G_SEV_WARNING,

Line 41610: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

41606: END IF;
41607:
41608:
41609: -- Set the error message
41610: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
41611: (p_app_short_name => 'MSC',
41612: p_error_code => 'MSC_PP_COL_VAL_NULL',
41613: p_message_text => lv_message_text,
41614: p_error_text => lv_error_text,

Line 41640: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

41636:
41637: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
41638:
41639: -- Set the error message
41640: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
41641: (p_app_short_name => 'MSC',
41642: p_error_code => 'MSC_PP_COL_VAL_NULL',
41643: p_message_text => lv_message_text,
41644: p_error_text => lv_error_text,

Line 41692: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

41688:
41689:
41690:
41691: -- Set the error message
41692: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
41693: (p_app_short_name => 'MSC',
41694: p_error_code => 'MSC_PP_COL_REF_NOT_EXIST',
41695: p_message_text => lv_message_text,
41696: p_error_text => lv_error_text,

Line 41712: MSC_ST_UTIL.DERIVE_ROUTING_SEQUENCE_ID

41708:
41709: -- Derive the ROUTING_SEQUENCE_ID from LOCAL ID table
41710: v_sql_stmt := 59;
41711: lv_return :=
41712: MSC_ST_UTIL.DERIVE_ROUTING_SEQUENCE_ID
41713: (p_table_name => 'MSC_ST_OPERATION_NETWORKS',
41714: p_rtg_col_name => 'ROUTING_NAME',
41715: p_rtg_col_id => 'ROUTING_SEQUENCE_ID',
41716: p_instance_code => v_instance_code,

Line 41729: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

41725: end if;
41726:
41727:
41728: -- Set the error message
41729: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
41730: (p_app_short_name => 'MSC',
41731: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
41732: p_message_text => lv_message_text,
41733: p_error_text => lv_error_text,

Line 41750: lv_return := MSC_ST_UTIL.LOG_ERROR

41746: v_sql_stmt := 60;
41747: lv_where_str :=
41748: ' AND NVL(from_op_effectivity_date,SYSDATE-36500 ) = SYSDATE-36500 ' ;
41749:
41750: lv_return := MSC_ST_UTIL.LOG_ERROR
41751: (p_table_name => 'MSC_ST_OPERATION_NETWORKS',
41752: p_instance_code => v_instance_code,
41753: p_row => lv_column_names,
41754: p_severity => G_SEV_WARNING,

Line 41769: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

41765: END IF;
41766: */
41767:
41768: -- Set the error message
41769: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
41770: (p_app_short_name => 'MSC',
41771: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
41772: p_message_text => lv_message_text,
41773: p_error_text => lv_error_text,

Line 41788: lv_return := MSC_ST_UTIL.LOG_ERROR

41784: v_sql_stmt := 61;
41785: lv_where_str :=
41786: ' AND NVL(to_op_effectivity_date,SYSDATE-36500 ) = SYSDATE-36500 ' ;
41787:
41788: lv_return := MSC_ST_UTIL.LOG_ERROR
41789: (p_table_name => 'MSC_ST_OPERATION_NETWORKS',
41790: p_instance_code => v_instance_code,
41791: p_row => lv_column_names,
41792: p_severity => G_SEV_WARNING,

Line 41806: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

41802: RAISE ex_logging_err;
41803: END IF;
41804:
41805: -- Set the error message
41806: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
41807: (p_app_short_name => 'MSC',
41808: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
41809: p_message_text => lv_message_text,
41810: p_error_text => lv_error_text,

Line 41825: lv_return := MSC_ST_UTIL.LOG_ERROR

41821: v_sql_stmt := 62;
41822: lv_where_str :=
41823: ' AND NVL(efectivity_date,SYSDATE-36500 ) = SYSDATE-36500 ' ;
41824:
41825: lv_return := MSC_ST_UTIL.LOG_ERROR
41826: (p_table_name => 'MSC_ST_OPERATION_NETWORKS',
41827: p_instance_code => v_instance_code,
41828: p_row => lv_column_names,
41829: p_severity => G_SEV_WARNING,

Line 41846: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

41842:
41843:
41844: -- from_operation_seq_code or to_operation_seq_code cannot be null.
41845: -- Set the error message
41846: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
41847: (p_app_short_name => 'MSC',
41848: p_error_code => 'MSC_PP_COL_VAL_NULL',
41849: p_message_text => lv_message_text,
41850: p_error_text => lv_error_text,

Line 41880: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

41876:
41877:
41878:
41879: -- from op_seq_code and to_op_seq_codes cannot be same
41880: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
41881: (p_app_short_name => 'MSC',
41882: p_error_code => 'MSC_PP_FROM_TO_SAME',
41883: p_message_text => lv_message_text,
41884: p_error_text => lv_error_text,

Line 41940: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

41936:
41937:
41938: -- from_op_seq_id cannot be null. Error out the records with null value for them.
41939: -- Set the error message
41940: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
41941: (p_app_short_name => 'MSC',
41942: p_error_code => 'MSC_PP_COL_REF_NOT_EXIST',
41943: p_message_text => lv_message_text,
41944: p_error_text => lv_error_text,

Line 42002: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

41998:
41999:
42000: -- to_op_seq_id cannot be null. Error out the records with null value for them.
42001: -- Set the error message
42002: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
42003: (p_app_short_name => 'MSC',
42004: p_error_code => 'MSC_PP_COL_REF_NOT_EXIST',
42005: p_message_text => lv_message_text,
42006: p_error_text => lv_error_text,

Line 42060: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

42056:
42057:
42058:
42059: -- Set the error message
42060: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
42061: (p_app_short_name => 'MSC',
42062: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
42063: p_message_text => lv_message_text,
42064: p_error_text => lv_error_text,

Line 42079: lv_return := MSC_ST_UTIL.LOG_ERROR

42075: v_sql_stmt := 70;
42076: lv_where_str :=
42077: ' AND NVL(transition_type,'||NULL_VALUE||') NOT IN (1,2)';
42078:
42079: lv_return := MSC_ST_UTIL.LOG_ERROR
42080: (p_table_name => 'MSC_ST_OPERATION_NETWORKS',
42081: p_instance_code => v_instance_code,
42082: p_row => lv_column_names,
42083: p_severity => G_SEV_WARNING,

Line 42098: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

42094: MSC_UTIL.LOG_MSG(MSC_UTIL.G_LVL_STATUS,lv_error_text);
42095: END IF;
42096:
42097: -- Set the error message
42098: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
42099: (p_app_short_name => 'MSC',
42100: p_error_code => 'MSC_PP_END_GT_ST_DATE',
42101: p_message_text => lv_message_text,
42102: p_error_text => lv_error_text,

Line 42151: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

42147: -- There should be at the max only one primary path from a from_operation_seq_code
42148: -- Else error out all the records for that from_operation_seq_code
42149:
42150: -- Set the error message
42151: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
42152: (p_app_short_name => 'MSC',
42153: p_error_code => 'MSC_PP_MULTI_PRI_PATH',
42154: p_message_text => lv_message_text,
42155: p_error_text => lv_error_text,

Line 42199: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

42195: -- The summation of the planning_pct's from a from_operation_sed_code should be exactly 100.
42196: -- Else error out all the records for that from_operation_seq_code
42197:
42198: -- Set the error message
42199: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
42200: (p_app_short_name => 'MSC',
42201: p_error_code => 'MSC_INVALID_PLANNING_PCT',
42202: p_message_text => lv_message_text,
42203: p_error_text => lv_error_text,

Line 42243: MSC_ST_UTIL.SET_PROCESS_FLAG(p_table_name => 'MSC_ST_OPERATION_NETWORKS',

42239: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code;
42240:
42241: -- Set the process flag as Valid and derive sr_instance_id
42242: lv_return :=
42243: MSC_ST_UTIL.SET_PROCESS_FLAG(p_table_name => 'MSC_ST_OPERATION_NETWORKS',
42244: p_instance_id => v_instance_id,
42245: p_instance_code => v_instance_code,
42246: p_process_flag => G_VALID,
42247: p_error_text => lv_error_text,

Line 42258: MSC_ST_UTIL.LOG_ERROR(p_table_name => 'MSC_ST_OPERATION_NETWORKS',

42254:
42255: -- At the end calling the LOG_ERROR for logging all errored out records
42256:
42257: lv_return :=
42258: MSC_ST_UTIL.LOG_ERROR(p_table_name => 'MSC_ST_OPERATION_NETWORKS',
42259: p_instance_code => v_instance_code,
42260: p_row => lv_column_names,
42261: p_severity => G_SEV_ERROR,
42262: p_message_text => NULL,

Line 42469: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

42465: AND deleted_flag = SYS_NO;
42466:
42467: BEGIN
42468:
42469: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
42470: (p_app_short_name => 'MSC',
42471: p_error_code => 'MSC_PP_DUP_REC_FOR_XML',
42472: p_message_text => lv_message_text,
42473: p_error_text => lv_error_text);

Line 42509: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

42505: EXECUTE IMMEDIATE lv_sql_stmt
42506: USING v_instance_code;
42507:
42508:
42509: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
42510: (p_app_short_name => 'MSC',
42511: p_error_code => 'MSC_PP_DUP_REC_FOR_BATCH_LOAD',
42512: p_message_text => lv_message_text,
42513: p_error_text => lv_error_text);

Line 42624: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

42620: creation_date = v_current_date,
42621: created_by = v_current_user
42622: WHERE rowid = lb_rowid(j);
42623:
42624: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
42625: (p_app_short_name => 'MSC',
42626: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
42627: p_message_text => lv_message_text,
42628: p_error_text => lv_error_text,

Line 42642: lv_return := MSC_ST_UTIL.LOG_ERROR

42638: lv_where_str :=
42639: ' AND NVL(deleted_flag,'||NULL_VALUE||') NOT IN(1,2)';
42640: --Log a warning for those records where the deleted_flag has a value other
42641: --SYS_NO
42642: lv_return := MSC_ST_UTIL.LOG_ERROR
42643: (p_table_name => 'MSC_ST_SUPPLIES',
42644: p_instance_code => v_instance_code,
42645: p_row => lv_column_names,
42646: p_severity => G_SEV_WARNING,

Line 42659: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

42655: IF lv_return <> 0 THEN
42656: RAISE ex_logging_err;
42657: END IF;
42658:
42659: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
42660: (p_app_short_name => 'MSC',
42661: p_error_code => 'MSC_PP_INVALID_VALUE',
42662: p_message_text => lv_message_text,
42663: p_error_text => lv_error_text,

Line 42672: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID

42668: RAISE ex_logging_err;
42669: END IF;
42670:
42671: --Derive Organization_id
42672: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID
42673: (p_table_name => 'MSC_ST_SUPPLIES',
42674: p_org_partner_name => 'ORGANIZATION_CODE',
42675: p_org_partner_id => 'ORGANIZATION_ID',
42676: p_instance_code => v_instance_code,

Line 42689: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

42685: IF lv_return <> 0 THEN
42686: RAISE ex_logging_err;
42687: END IF;
42688:
42689: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
42690: (p_app_short_name => 'MSC',
42691: p_error_code => 'MSC_PP_INVALID_VALUE',
42692: p_message_text => lv_message_text,
42693: p_error_text => lv_error_text,

Line 42702: lv_return := MSC_ST_UTIL.DERIVE_ITEM_ID

42698: RAISE ex_logging_err;
42699: END IF;
42700:
42701: --Derive Inventory_item_id
42702: lv_return := MSC_ST_UTIL.DERIVE_ITEM_ID
42703: (p_table_name => 'MSC_ST_SUPPLIES',
42704: p_item_col_name => 'ITEM_NAME',
42705: p_item_col_id => 'INVENTORY_ITEM_ID',
42706: p_instance_id => v_instance_id,

Line 42719: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

42715: IF lv_return <> 0 THEN
42716: RAISE ex_logging_err;
42717: END IF;
42718:
42719: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
42720: (p_app_short_name => 'MSC',
42721: p_error_code => 'MSC_PP_COL_VAL_NULL',
42722: p_message_text => lv_message_text,
42723: p_error_text => lv_error_text,

Line 42750: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

42746: EXECUTE IMMEDIATE lv_sql_stmt
42747: USING lv_batch_id,
42748: v_instance_code;
42749:
42750: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
42751: (p_app_short_name => 'MSC',
42752: p_error_code => 'MSC_PP_COL_VAL_NULL',
42753: p_message_text => lv_message_text,
42754: p_error_text => lv_error_text,

Line 42780: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

42776: EXECUTE IMMEDIATE lv_sql_stmt
42777: USING lv_batch_id,
42778: v_instance_code;
42779:
42780: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
42781: (p_app_short_name => 'MSC',
42782: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
42783: p_message_text => lv_message_text,
42784: p_error_text => lv_error_text,

Line 42801: lv_return := MSC_ST_UTIL.LOG_ERROR

42797:
42798: --Log a warning for those records where the firm_planned_type has a value
42799: --other than 1 and 2
42800:
42801: lv_return := MSC_ST_UTIL.LOG_ERROR
42802: (p_table_name => 'MSC_ST_SUPPLIES',
42803: p_instance_code => v_instance_code,
42804: p_row => lv_column_names,
42805: p_severity => G_SEV_WARNING,

Line 42818: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

42814: IF lv_return <> 0 THEN
42815: RAISE ex_logging_err;
42816: END IF;
42817:
42818: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
42819: (p_app_short_name => 'MSC',
42820: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
42821: p_message_text => lv_message_text,
42822: p_error_text => lv_error_text,

Line 42839: lv_return := MSC_ST_UTIL.LOG_ERROR

42835:
42836: --Log a warning for those records where the wip_status_code has a value other
42837: --than SYS_NO
42838:
42839: lv_return := MSC_ST_UTIL.LOG_ERROR
42840: (p_table_name => 'MSC_ST_SUPPLIES',
42841: p_instance_code => v_instance_code,
42842: p_row => lv_column_names,
42843: p_severity => G_SEV_WARNING,

Line 42856: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

42852: IF lv_return <> 0 THEN
42853: RAISE ex_logging_err;
42854: END IF;
42855:
42856: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
42857: (p_app_short_name => 'MSC',
42858: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
42859: p_message_text => lv_message_text,
42860: p_error_text => lv_error_text,

Line 42877: lv_return := MSC_ST_UTIL.LOG_ERROR

42873:
42874: --Log a warning for those records where the firm_planned_type has a value other
42875: --than SYS_NO
42876:
42877: lv_return := MSC_ST_UTIL.LOG_ERROR
42878: (p_table_name => 'MSC_ST_SUPPLIES',
42879: p_instance_code => v_instance_code,
42880: p_row => lv_column_names,
42881: p_severity => G_SEV_WARNING,

Line 42894: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

42890: IF lv_return <> 0 THEN
42891: RAISE ex_logging_err;
42892: END IF;
42893:
42894: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
42895: (p_app_short_name => 'MSC',
42896: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
42897: p_message_text => lv_message_text,
42898: p_error_text => lv_error_text,

Line 42915: lv_return := MSC_ST_UTIL.LOG_ERROR

42911:
42912: --Log a warning for those records where the wip_supply_type has a value other
42913: --than SYS_NO
42914:
42915: lv_return := MSC_ST_UTIL.LOG_ERROR
42916: (p_table_name => 'MSC_ST_SUPPLIES',
42917: p_instance_code => v_instance_code,
42918: p_row => lv_column_names,
42919: p_severity => G_SEV_WARNING,

Line 42993: lv_return := MSC_ST_UTIL.DERIVE_BILL_SEQUENCE_ID

42989: MSC_UTIL.LOG_MSG(MSC_UTIL.G_LVL_DEBUG_1,lv_sql_stmt);
42990:
42991: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
42992:
42993: lv_return := MSC_ST_UTIL.DERIVE_BILL_SEQUENCE_ID
42994: (p_table_name => 'MSC_ST_SUPPLIES',
42995: p_bom_col_name => 'BILL_NAME',
42996: p_bom_col_id => 'BILL_SEQUENCE_ID',
42997: p_instance_code => v_instance_code,

Line 43007: lv_return := MSC_ST_UTIL.DERIVE_ROUTING_SEQUENCE_ID

43003: IF (lv_return <> 0 ) THEN
43004: RAISE ex_logging_err;
43005: END IF;
43006:
43007: lv_return := MSC_ST_UTIL.DERIVE_ROUTING_SEQUENCE_ID
43008: (p_table_name => 'MSC_ST_SUPPLIES',
43009: p_rtg_col_name => 'ROUTING_NAME',
43010: p_rtg_col_id => 'ROUTING_SEQUENCE_ID',
43011: p_instance_code => v_instance_code,

Line 43067: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

43063: USING lv_batch_id,
43064: v_instance_code;
43065:
43066:
43067: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
43068: (p_app_short_name => 'MSC',
43069: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
43070: p_message_text => lv_message_text,
43071: p_error_text => lv_error_text,

Line 43089: lv_return := MSC_ST_UTIL.LOG_ERROR

43085:
43086: --Log a warning for those records where the bill_sequence_id or
43087: --routing_sequence_id has null values
43088:
43089: lv_return := MSC_ST_UTIL.LOG_ERROR
43090: (p_table_name => 'MSC_ST_SUPPLIES',
43091: p_instance_code => v_instance_code,
43092: p_row => lv_column_names,
43093: p_severity => G_SEV_WARNING,

Line 43128: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

43124: USING lv_batch_id,
43125: v_instance_code;
43126:
43127:
43128: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
43129: (p_app_short_name => 'MSC',
43130: p_error_code => 'MSC_PP_DELETE_FAIL',
43131: p_message_text => lv_message_text,
43132: p_error_text => lv_error_text);

Line 43347: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

43343: WHERE process_flag = G_IN_PROCESS
43344: AND batch_id = lv_batch_id
43345: AND sr_instance_code = v_instance_code;
43346:
43347: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
43348: (p_app_short_name => 'MSC',
43349: p_error_code => 'MSC_PP_FK_REF_NOT_EXIST',
43350: p_message_text => lv_message_text,
43351: p_error_text => lv_error_text,

Line 43363: lv_return := MSC_ST_UTIL.DERIVE_PROJ_TASK_ID

43359: RAISE ex_logging_err;
43360: END IF;
43361:
43362: --Derive Project Id.
43363: lv_return := MSC_ST_UTIL.DERIVE_PROJ_TASK_ID
43364: (p_table_name => 'MSC_ST_SUPPLIES',
43365: p_proj_col_name => 'PROJECT_NUMBER',
43366: p_proj_task_col_id => 'PROJECT_ID',
43367: p_instance_code => v_instance_code,

Line 43379: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

43375: IF lv_return <> 0 THEN
43376: RAISE ex_logging_err;
43377: END IF;
43378:
43379: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
43380: (p_app_short_name => 'MSC',
43381: p_error_code => 'MSC_PP_FK_REF_NOT_EXIST',
43382: p_message_text => lv_message_text,
43383: p_error_text => lv_error_text,

Line 43396: lv_return := MSC_ST_UTIL.DERIVE_PROJ_TASK_ID

43392: RAISE ex_logging_err;
43393: END IF;
43394:
43395: --Derive Task Id.
43396: lv_return := MSC_ST_UTIL.DERIVE_PROJ_TASK_ID
43397: (p_table_name => 'MSC_ST_SUPPLIES',
43398: p_proj_col_name => 'PROJECT_NUMBER',
43399: p_proj_task_col_id => 'TASK_ID',
43400: p_instance_code => v_instance_code,

Line 43454: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG

43450: WHERE rowid = lb_rowid(j);
43451: END IF;
43452: CLOSE c4;
43453:
43454: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG
43455: (p_table_name => 'MSC_ST_SUPPLIES',
43456: p_instance_id => v_instance_id,
43457: p_instance_code => v_instance_code,
43458: p_process_flag => G_VALID,

Line 43466: lv_return := MSC_ST_UTIL.LOG_ERROR

43462: IF lv_return <> 0 THEN
43463: RAISE ex_logging_err;
43464: END IF;
43465:
43466: lv_return := MSC_ST_UTIL.LOG_ERROR
43467: (p_table_name => 'MSC_ST_SUPPLIES',
43468: p_instance_code => v_instance_code,
43469: p_row => lv_column_names,
43470: p_severity => G_SEV_ERROR,

Line 43555: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

43551: BEGIN
43552:
43553: --Duplicate records check for the records whose source is XML
43554:
43555: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
43556: (p_app_short_name => 'MSC',
43557: p_error_code => 'MSC_PP_DUP_REC_FOR_XML',
43558: p_message_text => lv_message_text,
43559: p_error_text => lv_error_text);

Line 43597: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

43593: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code;
43594:
43595: --Duplicate records check for the records whose source is batch load
43596:
43597: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
43598: (p_app_short_name => 'MSC',
43599: p_error_code => 'MSC_PP_DUP_REC_FOR_BATCH_LOAD',
43600: p_message_text => lv_message_text,
43601: p_error_text => lv_error_text);

Line 43711: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

43707: WHERE rowid = lb_rowid(j);
43708:
43709:
43710: -- Set the error message
43711: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
43712: (p_app_short_name => 'MSC',
43713: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
43714: p_message_text => lv_message_text,
43715: p_error_text => lv_error_text,

Line 43730: lv_return := MSC_ST_UTIL.LOG_ERROR

43726:
43727: lv_where_str :=
43728: ' AND NVL(deleted_flag,'||NULL_VALUE||') NOT IN(1,2)';
43729:
43730: lv_return := MSC_ST_UTIL.LOG_ERROR
43731: (p_table_name => 'MSC_ST_RESOURCE_REQUIREMENTS',
43732: p_instance_code => v_instance_code,
43733: p_row => lv_column_names,
43734: p_severity => G_SEV_WARNING,

Line 43749: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

43745: RAISE ex_logging_err;
43746: END IF;
43747:
43748: -- Set the message
43749: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
43750: (p_app_short_name => 'MSC',
43751: p_error_code => 'MSC_PP_INVALID_VALUE',
43752: p_message_text => lv_message_text,
43753: p_error_text => lv_error_text,

Line 43762: -- Populate organization id , call utilty package- msc_st_util's procedure

43758: RAISE ex_logging_err;
43759: END IF;
43760:
43761:
43762: -- Populate organization id , call utilty package- msc_st_util's procedure
43763:
43764: lv_return :=
43765: MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID(p_table_name => 'MSC_ST_RESOURCE_REQUIREMENTS',
43766: p_org_partner_name =>'ORGANIZATION_CODE',

Line 43765: MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID(p_table_name => 'MSC_ST_RESOURCE_REQUIREMENTS',

43761:
43762: -- Populate organization id , call utilty package- msc_st_util's procedure
43763:
43764: lv_return :=
43765: MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID(p_table_name => 'MSC_ST_RESOURCE_REQUIREMENTS',
43766: p_org_partner_name =>'ORGANIZATION_CODE',
43767: p_org_partner_id =>'ORGANIZATION_ID',
43768: p_instance_code => v_instance_code,
43769: p_partner_type => G_ORGANIZATION,

Line 43807: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

43803: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
43804:
43805: -- Set the error message
43806:
43807: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
43808: (p_app_short_name => 'MSC',
43809: p_error_code => 'MSC_PP_COL_REF_NOT_EXIST',
43810: p_message_text => lv_message_text,
43811: p_error_text => lv_error_text,

Line 43905: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

43901: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
43902:
43903: -- Set the error message
43904:
43905: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
43906: (p_app_short_name => 'MSC',
43907: p_error_code => 'MSC_PP_COL_REF_NOT_EXIST',
43908: p_message_text => lv_message_text,
43909: p_error_text => lv_error_text,

Line 43924: lv_return := MSC_ST_UTIL.DERIVE_RESOURCE_ID

43920: END IF;
43921:
43922: /* created the new function to derive resource_id for bug 3768813 */
43923: lv_where_str :=' AND schedule_flag <> 2';
43924: lv_return := MSC_ST_UTIL.DERIVE_RESOURCE_ID
43925: (p_table_name => 'MSC_ST_RESOURCE_REQUIREMENTS',
43926: p_resource_col_name => 'RESOURCE_CODE',
43927: p_department_col_name => 'DEPARTMENT_CODE',
43928: p_resource_col_id => 'RESOURCE_ID',

Line 43994: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

43990: */
43991:
43992: -- Set the error message
43993:
43994: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
43995: (p_app_short_name => 'MSC',
43996: p_error_code => 'MSC_PP_COL_REF_NOT_EXIST',
43997: p_message_text => lv_message_text,
43998: p_error_text => lv_error_text,

Line 44012: lv_return := MSC_ST_UTIL.DERIVE_DEPARTMENT_ID

44008: RAISE ex_logging_err;
44009: END IF;
44010:
44011: /* created the new function to derive department_id for bug 3768813 */
44012: lv_return := MSC_ST_UTIL.DERIVE_DEPARTMENT_ID
44013: (p_table_name => 'MSC_ST_RESOURCE_REQUIREMENTS',
44014: p_resource_col_name => 'RESOURCE_CODE',
44015: p_department_col_name => 'DEPARTMENT_CODE',
44016: p_department_col_id => 'DEPARTMENT_ID',

Line 44052: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

44048:
44049: */
44050:
44051: -- Set the message
44052: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
44053: (p_app_short_name => 'MSC',
44054: p_error_code => 'MSC_PP_COL_VAL_NULL',
44055: p_message_text => lv_message_text,
44056: p_error_text => lv_error_text,

Line 44100: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

44096: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
44097:
44098:
44099: -- Set the error message
44100: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
44101: (p_app_short_name => 'MSC',
44102: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
44103: p_message_text => lv_message_text,
44104: p_error_text => lv_error_text,

Line 44119: lv_return := MSC_ST_UTIL.LOG_ERROR

44115: lv_where_str :=
44116: ' AND NVL(operation_seq_code,'||''''||NULL_CHAR||''''||') '
44117: ||' = '||''''||NULL_CHAR||'''' ;
44118:
44119: lv_return := MSC_ST_UTIL.LOG_ERROR
44120: (p_table_name => 'MSC_ST_RESOURCE_REQUIREMENTS',
44121: p_instance_code => v_instance_code,
44122: p_row => lv_column_names,
44123: p_severity => G_SEV_WARNING,

Line 44137: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

44133: RAISE ex_logging_err;
44134: END IF;
44135:
44136: -- Set the error message
44137: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
44138: (p_app_short_name => 'MSC',
44139: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
44140: p_message_text => lv_message_text,
44141: p_error_text => lv_error_text,

Line 44156: lv_return := MSC_ST_UTIL.LOG_ERROR

44152:
44153: lv_where_str :=
44154: ' AND NVL(operation_effectivity_date,(sysdate-36500)) =(sysdate-36500)';
44155:
44156: lv_return := MSC_ST_UTIL.LOG_ERROR
44157: (p_table_name => 'MSC_ST_RESOURCE_REQUIREMENTS',
44158: p_instance_code => v_instance_code,
44159: p_row => lv_column_names,
44160: p_severity => G_SEV_WARNING,

Line 44175: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

44171: END IF;
44172:
44173: /* bug 3768813 */
44174: -- Set the message
44175: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
44176: (p_app_short_name => 'MSC',
44177: p_error_code => 'MSC_PP_INVALID_VALUE',
44178: p_message_text => lv_message_text,
44179: p_error_text => lv_error_text,

Line 44188: lv_return := MSC_ST_UTIL.DERIVE_ITEM_ID

44184: RAISE ex_logging_err;
44185: END IF;
44186:
44187: --Derive Inventory_item_id
44188: lv_return := MSC_ST_UTIL.DERIVE_ITEM_ID
44189: (p_table_name => 'MSC_ST_RESOURCE_REQUIREMENTS',
44190: p_item_col_name => 'ITEM_NAME',
44191: p_item_col_id => 'INVENTORY_ITEM_ID',
44192: p_instance_id => v_instance_id,

Line 44225: lv_return :=msc_st_util.derive_routing_sequence_id

44221:
44222: /* Bug 3768813 */
44223: -- Derive the ROUTING_SEQUENCE_ID from LOCAL ID table
44224:
44225: lv_return :=msc_st_util.derive_routing_sequence_id
44226: (p_table_name => 'MSC_ST_RESOURCE_REQUIREMENTS',
44227: p_rtg_col_name => 'ROUTING_NAME',
44228: p_rtg_col_id =>'ROUTING_SEQUENCE_ID',
44229: p_instance_code => v_instance_code,

Line 44297: lv_return := MSC_ST_UTIL.DERIVE_OPERATION_SEQUENCE_ID

44293:
44294: */
44295:
44296: /* created new function to derive operation sequence id for bug 3768813 */
44297: lv_return := MSC_ST_UTIL.DERIVE_OPERATION_SEQUENCE_ID
44298: (p_table_name => 'MSC_ST_RESOURCE_REQUIREMENTS',
44299: p_operation_seq_num => 'OPERATION_SEQ_NUM',
44300: p_routing_col_name => 'ROUTING_NAME',
44301: p_sequence_col_id => 'OPERATION_SEQUENCE_ID',

Line 44316: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

44312: IF lv_return <> 0 THEN
44313: RAISE ex_logging_err;
44314: END IF;
44315:
44316: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
44317: (p_app_short_name => 'MSC',
44318: p_error_code => 'MSC_PP_DELETE_FAIL',
44319: p_message_text => lv_message_text,
44320: p_error_text => lv_error_text);

Line 44375: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

44371:
44372:
44373: -- Default the operation yield to 1 where operation yield is less than 0 or greater than 1
44374:
44375: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
44376: (p_app_short_name => 'MSC',
44377: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
44378: p_message_text => lv_message_text,
44379: p_error_text => lv_error_text,

Line 44392: lv_return := MSC_ST_UTIL.LOG_ERROR

44388:
44389: lv_where_str :=
44390: ' AND (yield < 0 OR yield > 1 OR NVL(yield,'||NULL_VALUE||') ='|| NULL_VALUE||')';
44391:
44392: lv_return := MSC_ST_UTIL.LOG_ERROR
44393: (p_table_name => 'MSC_ST_RESOURCE_REQUIREMENTS',
44394: p_instance_code => v_instance_code,
44395: p_row => lv_column_names,
44396: p_severity => G_SEV_WARNING,

Line 44410: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

44406: RAISE ex_logging_err;
44407: END IF;
44408:
44409: -- Set the error message
44410: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
44411: (p_app_short_name => 'MSC',
44412: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
44413: p_message_text => lv_message_text,
44414: p_error_text => lv_error_text,

Line 44429: lv_return := MSC_ST_UTIL.LOG_ERROR

44425:
44426: lv_where_str := ' AND NVL(schedule_flag,'||NULL_VALUE||') '
44427: ||' NOT IN(1,2,3,4)';
44428:
44429: lv_return := MSC_ST_UTIL.LOG_ERROR
44430: (p_table_name => 'MSC_ST_RESOURCE_REQUIREMENTS',
44431: p_instance_code => v_instance_code,
44432: p_row => lv_column_names,
44433: p_severity => G_SEV_WARNING,

Line 44450: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

44446:
44447: -- Error out the records where quantity_in_queue is negative OR quantity_running is negative
44448: -- OR quantity_waiting_to_move is negative OR quantity_completed is negative
44449:
44450: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
44451: (p_app_short_name => 'MSC',
44452: p_error_code => 'MSC_PP_CONV_RT_NEG',
44453: p_message_text => lv_message_text,
44454: p_error_text => lv_error_text,

Line 44697: MSC_ST_UTIL.SET_PROCESS_FLAG(p_table_name => 'MSC_ST_RESOURCE_REQUIREMENTS',

44693: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
44694:
44695: -- Set the processf flag as Valid and populate sr_instance_id
44696: lv_return :=
44697: MSC_ST_UTIL.SET_PROCESS_FLAG(p_table_name => 'MSC_ST_RESOURCE_REQUIREMENTS',
44698: p_instance_id => v_instance_id,
44699: p_instance_code => v_instance_code,
44700: p_process_flag => G_VALID,
44701: p_error_text => lv_error_text,

Line 44713: MSC_ST_UTIL.LOG_ERROR(p_table_name => 'MSC_ST_RESOURCE_REQUIREMENTS',

44709:
44710: -- At the end calling the LOG_ERROR for logging all errored out records
44711:
44712: lv_return :=
44713: MSC_ST_UTIL.LOG_ERROR(p_table_name => 'MSC_ST_RESOURCE_REQUIREMENTS',
44714: p_instance_code => v_instance_code,
44715: p_row => lv_column_names,
44716: p_severity => G_SEV_ERROR,
44717: p_message_text => NULL,

Line 44810: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

44806:
44807: --For WIP component demand
44808:
44809: --Duplicate records check for the records whose source is XML
44810: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
44811: (p_app_short_name => 'MSC',
44812: p_error_code => 'MSC_PP_DUP_REC_FOR_XML',
44813: p_message_text => lv_message_text,
44814: p_error_text => lv_error_text);

Line 44855: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

44851: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code;
44852:
44853: --Duplicate records check for the records whose source is batch load
44854:
44855: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
44856: (p_app_short_name => 'MSC',
44857: p_error_code => 'MSC_PP_DUP_REC_FOR_BATCH_LOAD',
44858: p_message_text => lv_message_text,
44859: p_error_text => lv_error_text);

Line 44965: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

44961: created_by = v_current_user
44962: WHERE rowid = lb_rowid(j);
44963:
44964: -- Set the error message
44965: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
44966: (p_app_short_name => 'MSC',
44967: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
44968: p_message_text => lv_message_text,
44969: p_error_text => lv_error_text,

Line 44984: lv_return := MSC_ST_UTIL.LOG_ERROR

44980:
44981: lv_where_str :=
44982: ' AND NVL(deleted_flag,'||NULL_VALUE||') NOT IN(1,2)';
44983:
44984: lv_return := MSC_ST_UTIL.LOG_ERROR
44985: (p_table_name => 'MSC_ST_DEMANDS',
44986: p_instance_code => v_instance_code,
44987: p_row => lv_column_names,
44988: p_severity => G_SEV_WARNING,

Line 45002: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

44998: RAISE ex_logging_err;
44999: END IF;
45000:
45001: -- Set the message
45002: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
45003: (p_app_short_name => 'MSC',
45004: p_error_code => 'MSC_PP_INVALID_VALUE',
45005: p_message_text => lv_message_text,
45006: p_error_text => lv_error_text,

Line 45015: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID

45011: RAISE ex_logging_err;
45012: END IF;
45013:
45014: --Derive Organization_id
45015: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID
45016: (p_table_name => 'MSC_ST_DEMANDS',
45017: p_org_partner_name => 'ORGANIZATION_CODE',
45018: p_org_partner_id => 'ORGANIZATION_ID',
45019: p_instance_code => v_instance_code,

Line 45033: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

45029: RAISE ex_logging_err;
45030: END IF;
45031:
45032: -- Set the message
45033: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
45034: (p_app_short_name => 'MSC',
45035: p_error_code => 'MSC_PP_INVALID_VALUE',
45036: p_message_text => lv_message_text,
45037: p_error_text => lv_error_text,

Line 45046: lv_return := MSC_ST_UTIL.DERIVE_ITEM_ID

45042: RAISE ex_logging_err;
45043: END IF;
45044:
45045: --Derive Inventory_item_id
45046: lv_return := MSC_ST_UTIL.DERIVE_ITEM_ID
45047: (p_table_name => 'MSC_ST_DEMANDS',
45048: p_item_col_name => 'ITEM_NAME',
45049: p_item_col_id => 'INVENTORY_ITEM_ID',
45050: p_instance_id => v_instance_id,

Line 45064: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

45060: RAISE ex_logging_err;
45061: END IF;
45062:
45063: -- Set the message
45064: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
45065: (p_app_short_name => 'MSC',
45066: p_error_code => 'MSC_PP_INVALID_VALUE',
45067: p_message_text => lv_message_text,
45068: p_error_text => lv_error_text,

Line 45077: lv_return := MSC_ST_UTIL.DERIVE_ITEM_ID

45073: RAISE ex_logging_err;
45074: END IF;
45075:
45076: --Derive Using_assembly_item_id
45077: lv_return := MSC_ST_UTIL.DERIVE_ITEM_ID
45078: (p_table_name => 'MSC_ST_DEMANDS',
45079: p_item_col_name => 'USING_ASSEMBLY_ITEM_NAME',
45080: p_item_col_id => 'USING_ASSEMBLY_ITEM_ID',
45081: p_instance_id => v_instance_id,

Line 45118: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

45114:
45115: EXECUTE IMMEDIATE lv_sql_stmt USING lv_batch_id,v_instance_code;
45116:
45117: -- Set the error message
45118: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
45119: (p_app_short_name => 'MSC',
45120: p_error_code => 'MSC_PP_COL_REF_NOT_EXIST',
45121: p_message_text => lv_message_text,
45122: p_error_text => lv_error_text,

Line 45155: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

45151: EXECUTE IMMEDIATE lv_sql_stmt USING lv_batch_id,v_instance_code;
45152:
45153:
45154: -- Set the message
45155: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
45156: (p_app_short_name => 'MSC',
45157: p_error_code => 'MSC_PP_COL_VAL_NULL',
45158: p_message_text => lv_message_text,
45159: p_error_text => lv_error_text,

Line 45273: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

45269: EXECUTE IMMEDIATE lv_sql_stmt USING lv_batch_id,v_instance_code;
45270:
45271:
45272: -- Set the error message
45273: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
45274: (p_app_short_name => 'MSC',
45275: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
45276: p_message_text => lv_message_text,
45277: p_error_text => lv_error_text,

Line 45293: lv_return := MSC_ST_UTIL.LOG_ERROR

45289: ' AND NVL(operation_seq_code,'||''''||NULL_CHAR||''''||') '
45290: ||' = '||''''||NULL_CHAR||''''
45291: ||' AND origination_type IN (2,3)';
45292:
45293: lv_return := MSC_ST_UTIL.LOG_ERROR
45294: (p_table_name => 'MSC_ST_DEMANDS',
45295: p_instance_code => v_instance_code,
45296: p_row => lv_column_names,
45297: p_severity => G_SEV_WARNING,

Line 45311: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

45307: RAISE ex_logging_err;
45308: END IF;
45309:
45310: -- Set the error message
45311: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
45312: (p_app_short_name => 'MSC',
45313: p_error_code => 'MSC_PP_COL_VAL_NULL_DEFAULT',
45314: p_message_text => lv_message_text,
45315: p_error_text => lv_error_text,

Line 45331: lv_return := MSC_ST_UTIL.LOG_ERROR

45327: lv_where_str :=
45328: ' AND NVL(operation_effectivity_date,SYSDATE-36500 ) = SYSDATE-36500 '
45329: ||' AND origination_type IN (2,3)' ;
45330:
45331: lv_return := MSC_ST_UTIL.LOG_ERROR
45332: (p_table_name => 'MSC_ST_DEMANDS',
45333: p_instance_code => v_instance_code,
45334: p_row => lv_column_names,
45335: p_severity => G_SEV_WARNING,

Line 45372: lv_return :=msc_st_util.derive_routing_sequence_id

45368: IF v_instance_type <> G_INS_OTHER THEN
45369:
45370: -- Derive the ROUTING_SEQUENCE_ID from LOCAL ID table
45371:
45372: lv_return :=msc_st_util.derive_routing_sequence_id
45373: (p_table_name => 'MSC_ST_DEMANDS',
45374: p_rtg_col_name => 'ROUTING_NAME',
45375: p_rtg_col_id =>'ROUTING_SEQUENCE_ID',
45376: p_instance_code => v_instance_code,

Line 45439: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

45435: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
45436:
45437: -- Set the message
45438:
45439: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
45440: (p_app_short_name => 'MSC',
45441: p_error_code => 'MSC_PP_DELETE_FAIL',
45442: p_message_text => lv_message_text,
45443: p_error_text => lv_error_text);

Line 45470: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

45466:
45467: EXECUTE IMMEDIATE lv_sql_stmt USING lv_batch_id,v_instance_code;
45468:
45469: -- Set the error message
45470: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
45471: (p_app_short_name => 'MSC',
45472: p_error_code => 'MSC_PP_FK_REF_NOT_EXIST',
45473: p_message_text => lv_message_text,
45474: p_error_text => lv_error_text,

Line 45486: lv_return := MSC_ST_UTIL.DERIVE_PROJ_TASK_ID

45482: RAISE ex_logging_err;
45483: END IF;
45484:
45485: --Derive Project Id.
45486: lv_return := MSC_ST_UTIL.DERIVE_PROJ_TASK_ID
45487: (p_table_name => 'MSC_ST_DEMANDS',
45488: p_proj_col_name => 'PROJECT_NUMBER',
45489: p_proj_task_col_id => 'PROJECT_ID',
45490: p_instance_code => v_instance_code,

Line 45503: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

45499: RAISE ex_logging_err;
45500: END IF;
45501:
45502: -- Set the error message
45503: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
45504: (p_app_short_name => 'MSC',
45505: p_error_code => 'MSC_PP_FK_REF_NOT_EXIST',
45506: p_message_text => lv_message_text,
45507: p_error_text => lv_error_text,

Line 45520: lv_return := MSC_ST_UTIL.DERIVE_PROJ_TASK_ID

45516: RAISE ex_logging_err;
45517: END IF;
45518:
45519: --Derive Task Id.
45520: lv_return := MSC_ST_UTIL.DERIVE_PROJ_TASK_ID
45521: (p_table_name => 'MSC_ST_DEMANDS',
45522: p_proj_col_name => 'PROJECT_NUMBER',
45523: p_proj_task_col_id => 'TASK_ID',
45524: p_instance_code => v_instance_code,

Line 45539: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

45535: RAISE ex_logging_err;
45536: END IF;
45537:
45538: -- Set the error message
45539: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
45540: (p_app_short_name => 'MSC',
45541: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
45542: p_message_text => lv_message_text,
45543: p_error_text => lv_error_text,

Line 45558: lv_return := MSC_ST_UTIL.LOG_ERROR

45554:
45555: lv_where_str := ' AND NVL(demand_type,'||NULL_VALUE||') <> '||G_DEMAND_TYPE
45556: ||' AND origination_type IN (2,3) AND deleted_flag ='||SYS_NO ;
45557:
45558: lv_return := MSC_ST_UTIL.LOG_ERROR
45559: (p_table_name => 'MSC_ST_DEMANDS',
45560: p_instance_code => v_instance_code,
45561: p_row => lv_column_names,
45562: p_severity => G_SEV_WARNING,

Line 45581: lv_return := MSC_ST_UTIL.LOG_ERROR

45577:
45578: lv_where_str := ' AND NVL(demand_type,'||NULL_VALUE||') <> 2'
45579: ||' AND origination_type = 25 AND deleted_flag ='||SYS_NO ;
45580:
45581: lv_return := MSC_ST_UTIL.LOG_ERROR
45582: (p_table_name => 'MSC_ST_DEMANDS',
45583: p_instance_code => v_instance_code,
45584: p_row => lv_column_names,
45585: p_severity => G_SEV_WARNING,

Line 45600: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

45596: END IF;
45597:
45598:
45599: -- Set the error message
45600: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
45601: (p_app_short_name => 'MSC',
45602: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
45603: p_message_text => lv_message_text,
45604: p_error_text => lv_error_text,

Line 45619: lv_return := MSC_ST_UTIL.LOG_ERROR

45615:
45616: lv_where_str := ' AND NVL(wip_supply_type,'||NULL_VALUE||') NOT IN (1,2,3,4,5,6,7)'
45617: ||' AND origination_type IN (2,3) AND deleted_flag ='||SYS_NO ;
45618:
45619: lv_return := MSC_ST_UTIL.LOG_ERROR
45620: (p_table_name => 'MSC_ST_DEMANDS',
45621: p_instance_code => v_instance_code,
45622: p_row => lv_column_names,
45623: p_severity => G_SEV_WARNING,

Line 45638: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

45634: END IF;
45635:
45636:
45637: -- Set the error message
45638: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
45639: (p_app_short_name => 'MSC',
45640: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
45641: p_message_text => lv_message_text,
45642: p_error_text => lv_error_text,

Line 45657: lv_return := MSC_ST_UTIL.LOG_ERROR

45653:
45654: lv_where_str := ' AND NVL(wip_status_code,'||NULL_VALUE||') NOT IN (1,3,4,6,7,12)'
45655: ||' AND origination_type IN (2,3,25)AND deleted_flag ='||SYS_NO ;
45656:
45657: lv_return := MSC_ST_UTIL.LOG_ERROR
45658: (p_table_name => 'MSC_ST_DEMANDS',
45659: p_instance_code => v_instance_code,
45660: p_row => lv_column_names,
45661: p_severity => G_SEV_WARNING,

Line 45795: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG

45791:
45792: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
45793:
45794:
45795: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG
45796: (p_table_name => 'MSC_ST_DEMANDS',
45797: p_instance_id => v_instance_id,
45798: p_instance_code => v_instance_code,
45799: p_process_flag => G_VALID,

Line 45808: lv_return := MSC_ST_UTIL.LOG_ERROR

45804: IF lv_return <> 0 THEN
45805: RAISE ex_logging_err;
45806: END IF;
45807:
45808: lv_return := MSC_ST_UTIL.LOG_ERROR
45809: (p_table_name => 'MSC_ST_DEMANDS',
45810: p_instance_code => v_instance_code,
45811: p_row => lv_column_names,
45812: p_severity => G_SEV_ERROR,

Line 45913: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

45909:
45910: -- -- Pre processing for MSC_ST_JOB_OPERATION_NETWORKS
45911: --Duplicate records check for the records whose source is XML
45912:
45913: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
45914: (p_app_short_name => 'MSC',
45915: p_error_code => 'MSC_PP_DUP_REC_FOR_XML',
45916: p_message_text => lv_message_text,
45917: p_error_text => lv_error_text);

Line 45955: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

45951: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code;
45952:
45953: --Duplicate records check for the records whose source is batch load
45954:
45955: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
45956: (p_app_short_name => 'MSC',
45957: p_error_code => 'MSC_PP_DUP_REC_FOR_BATCH_LOAD',
45958: p_message_text => lv_message_text,
45959: p_error_text => lv_error_text);

Line 46064: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

46060:
46061:
46062: -- error out the records where wip_entity_name is null
46063:
46064: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
46065: (p_app_short_name => 'MSC',
46066: p_error_code => 'MSC_PP_COL_VAL_NULL',
46067: p_message_text => lv_message_text,
46068: p_error_text => lv_error_text,

Line 46096: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

46092: v_instance_code;
46093:
46094:
46095: -- Set the message
46096: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
46097: (p_app_short_name => 'MSC',
46098: p_error_code => 'MSC_PP_NO_DELETION',
46099: p_message_text => lv_message_text,
46100: p_error_text => lv_error_text,

Line 46125: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

46121:
46122: EXECUTE IMMEDIATE lv_sql_stmt USING lv_batch_id,v_instance_code;
46123:
46124: -- Set the error message
46125: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
46126: (p_app_short_name => 'MSC',
46127: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
46128: p_message_text => lv_message_text,
46129: p_error_text => lv_error_text,

Line 46144: lv_return := MSC_ST_UTIL.LOG_ERROR

46140:
46141: lv_where_str :=
46142: ' AND NVL(deleted_flag,'||NULL_VALUE||') NOT IN(1,2)';
46143:
46144: lv_return := MSC_ST_UTIL.LOG_ERROR
46145: (p_table_name => 'MSC_ST_JOB_OPERATION_NETWORKS',
46146: p_instance_code => v_instance_code,
46147: p_row => lv_column_names,
46148: p_severity => G_SEV_WARNING,

Line 46162: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

46158: RAISE ex_logging_err;
46159: END IF;
46160:
46161: -- Set the error message
46162: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
46163: (p_app_short_name => 'MSC',
46164: p_error_code => 'MSC_PP_COL_VAL_NULL',
46165: p_message_text => lv_message_text,
46166: p_error_text => lv_error_text,

Line 46192: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

46188:
46189: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
46190:
46191: -- Set the error message
46192: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
46193: (p_app_short_name => 'MSC',
46194: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
46195: p_message_text => lv_message_text,
46196: p_error_text => lv_error_text,

Line 46222: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

46218:
46219: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
46220:
46221: -- Set the error message
46222: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
46223: (p_app_short_name => 'MSC',
46224: p_error_code => 'MSC_PP_COL_VAL_NULL',
46225: p_message_text => lv_message_text,
46226: p_error_text => lv_error_text,

Line 46271: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

46267: MSC_UTIL.LOG_MSG(MSC_UTIL.G_LVL_DEBUG_1,lv_sql_stmt);
46268:
46269: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
46270:
46271: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
46272: (p_app_short_name => 'MSC',
46273: p_error_code => 'MSC_PP_INVALID_VALUE',
46274: p_message_text => lv_message_text,
46275: p_error_text => lv_error_text,

Line 46284: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID

46280: RAISE ex_logging_err;
46281: END IF;
46282:
46283: --Derive Organization_id
46284: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID
46285: (p_table_name => 'MSC_ST_JOB_OPERATION_NETWORKS',
46286: p_org_partner_name => 'ORGANIZATION_CODE',
46287: p_org_partner_id => 'ORGANIZATION_ID',
46288: p_instance_code => v_instance_code,

Line 46326: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

46322: v_instance_code;
46323:
46324: -- Set the error message
46325:
46326: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
46327: (p_app_short_name => 'MSC',
46328: p_error_code => 'MSC_PP_COL_REF_NOT_EXIST',
46329: p_message_text => lv_message_text,
46330: p_error_text => lv_error_text,

Line 46363: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

46359: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
46360:
46361: -- from_operation_seq_code or to_operation_seq_code cannot be null.
46362: -- Set the error message
46363: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
46364: (p_app_short_name => 'MSC',
46365: p_error_code => 'MSC_PP_COL_VAL_NULL',
46366: p_message_text => lv_message_text,
46367: p_error_text => lv_error_text,

Line 46395: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

46391:
46392: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
46393:
46394: -- from op_seq_code and to_op_seq_codes cannot be same
46395: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
46396: (p_app_short_name => 'MSC',
46397: p_error_code => 'MSC_PP_FROM_TO_SAME',
46398: p_message_text => lv_message_text,
46399: p_error_text => lv_error_text,

Line 46427: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

46423:
46424: -- Derive routing_sequence_id
46425:
46426: -- Set the error message
46427: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
46428: (p_app_short_name => 'MSC',
46429: p_error_code => 'MSC_PP_COL_REF_NOT_EXIST',
46430: p_message_text => lv_message_text,
46431: p_error_text => lv_error_text,

Line 46447: MSC_ST_UTIL.DERIVE_ROUTING_SEQUENCE_ID

46443:
46444: -- Derive the ROUTING_SEQUENCE_ID from LOCAL ID table
46445:
46446: lv_return :=
46447: MSC_ST_UTIL.DERIVE_ROUTING_SEQUENCE_ID
46448: (p_table_name => 'MSC_ST_JOB_OPERATION_NETWORKS',
46449: p_rtg_col_name => 'ROUTING_NAME',
46450: p_rtg_col_id => 'ROUTING_SEQUENCE_ID',
46451: p_instance_code => v_instance_code,

Line 46464: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

46460: end if;
46461:
46462:
46463: -- Set the error message
46464: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
46465: (p_app_short_name => 'MSC',
46466: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
46467: p_message_text => lv_message_text,
46468: p_error_text => lv_error_text,

Line 46484: lv_return := MSC_ST_UTIL.LOG_ERROR

46480: v_sql_stmt := 14;
46481: lv_where_str :=
46482: ' AND NVL(from_op_effectivity_date,SYSDATE-36500 ) = SYSDATE-36500 ' ;
46483:
46484: lv_return := MSC_ST_UTIL.LOG_ERROR
46485: (p_table_name => 'MSC_ST_JOB_OPERATION_NETWORKS',
46486: p_instance_code => v_instance_code,
46487: p_row => lv_column_names,
46488: p_severity => G_SEV_WARNING,

Line 46503: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

46499: END IF;
46500:
46501:
46502: -- Set the error message
46503: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
46504: (p_app_short_name => 'MSC',
46505: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
46506: p_message_text => lv_message_text,
46507: p_error_text => lv_error_text,

Line 46522: lv_return := MSC_ST_UTIL.LOG_ERROR

46518: v_sql_stmt := 15;
46519: lv_where_str :=
46520: ' AND NVL(to_op_effectivity_date,SYSDATE-36500 ) = SYSDATE-36500 ' ;
46521:
46522: lv_return := MSC_ST_UTIL.LOG_ERROR
46523: (p_table_name => 'MSC_ST_JOB_OPERATION_NETWORKS',
46524: p_instance_code => v_instance_code,
46525: p_row => lv_column_names,
46526: p_severity => G_SEV_WARNING,

Line 46569: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

46565:
46566: -- from_op_seq_num cannot be null. Error out the records with null value for them.
46567: -- Set the error message
46568:
46569: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
46570: (p_app_short_name => 'MSC',
46571: p_error_code => 'MSC_PP_COL_VAL_NULL',
46572: p_message_text => lv_message_text,
46573: p_error_text => lv_error_text,

Line 46631: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

46627:
46628: -- to_op_seq_num cannot be null. Error out the records with null value for them.
46629: -- Set the error message
46630:
46631: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
46632: (p_app_short_name => 'MSC',
46633: p_error_code => 'MSC_PP_COL_VAL_NULL',
46634: p_message_text => lv_message_text,
46635: p_error_text => lv_error_text,

Line 46663: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

46659:
46660: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
46661:
46662: -- Set the error message
46663: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
46664: (p_app_short_name => 'MSC',
46665: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
46666: p_message_text => lv_message_text,
46667: p_error_text => lv_error_text,

Line 46682: lv_return := MSC_ST_UTIL.LOG_ERROR

46678: v_sql_stmt := 20;
46679: lv_where_str :=
46680: ' AND NVL(transition_type,'||NULL_VALUE||') NOT IN (1,2)';
46681:
46682: lv_return := MSC_ST_UTIL.LOG_ERROR
46683: (p_table_name => 'MSC_ST_JOB_OPERATION_NETWORKS',
46684: p_instance_code => v_instance_code,
46685: p_row => lv_column_names,
46686: p_severity => G_SEV_WARNING,

Line 46721: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

46717: -- There should be at the max only one primary path from a from_operation_seq_code
46718: -- Else error out all the records for that from_operation_seq_code
46719:
46720: -- Set the error message
46721: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
46722: (p_app_short_name => 'MSC',
46723: p_error_code => 'MSC_PP_MULTI_PRI_PATH',
46724: p_message_text => lv_message_text,
46725: p_error_text => lv_error_text,

Line 46764: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

46760: -- The summation of the planning_pct's from a from_operation_sed_code should be exactly 100.
46761: -- Else error out all the records for that from_operation_seq_code
46762:
46763: -- Set the error message
46764: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
46765: (p_app_short_name => 'MSC',
46766: p_error_code => 'MSC_INVALID_PLANNING_PCT',
46767: p_message_text => lv_message_text,
46768: p_error_text => lv_error_text,

Line 46803: MSC_ST_UTIL.SET_PROCESS_FLAG(p_table_name => 'MSC_ST_JOB_OPERATION_NETWORKS',

46799: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code;
46800:
46801: -- Set the process flag as Valid and derive sr_instance_id
46802: lv_return :=
46803: MSC_ST_UTIL.SET_PROCESS_FLAG(p_table_name => 'MSC_ST_JOB_OPERATION_NETWORKS',
46804: p_instance_id => v_instance_id,
46805: p_instance_code => v_instance_code,
46806: p_process_flag => G_VALID,
46807: p_error_text => lv_error_text,

Line 46817: MSC_ST_UTIL.LOG_ERROR(p_table_name => 'MSC_ST_JOB_OPERATION_NETWORKS',

46813:
46814: -- At the end calling the LOG_ERROR for logging all errored out records
46815:
46816: lv_return :=
46817: MSC_ST_UTIL.LOG_ERROR(p_table_name => 'MSC_ST_JOB_OPERATION_NETWORKS',
46818: p_instance_code => v_instance_code,
46819: p_row => lv_column_names,
46820: p_severity => G_SEV_ERROR,
46821: p_message_text => NULL,

Line 46833: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

46829: -- Validation for MSC_ST_JOB_OPERATIONS
46830:
46831: --Duplicate records check for the records whose source is XML
46832:
46833: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
46834: (p_app_short_name => 'MSC',
46835: p_error_code => 'MSC_PP_DUP_REC_FOR_XML',
46836: p_message_text => lv_message_text,
46837: p_error_text => lv_error_text);

Line 46873: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

46869: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code;
46870:
46871: --Duplicate records check for the records whose source is batch load
46872:
46873: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
46874: (p_app_short_name => 'MSC',
46875: p_error_code => 'MSC_PP_DUP_REC_FOR_BATCH_LOAD',
46876: p_message_text => lv_message_text,
46877: p_error_text => lv_error_text);

Line 46983: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

46979: WHERE rowid = lb_rowid(j);
46980:
46981:
46982: -- Set the message
46983: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
46984: (p_app_short_name => 'MSC',
46985: p_error_code => 'MSC_PP_NO_DELETION',
46986: p_message_text => lv_message_text,
46987: p_error_text => lv_error_text,

Line 47012: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

47008:
47009: EXECUTE IMMEDIATE lv_sql_stmt USING lv_batch_id,v_instance_code;
47010:
47011: -- Set the error message
47012: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
47013: (p_app_short_name => 'MSC',
47014: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
47015: p_message_text => lv_message_text,
47016: p_error_text => lv_error_text,

Line 47032: lv_return := MSC_ST_UTIL.LOG_ERROR

47028:
47029: lv_where_str :=
47030: ' AND NVL(deleted_flag,'||NULL_VALUE||') <>'||SYS_NO;
47031:
47032: lv_return := MSC_ST_UTIL.LOG_ERROR
47033: (p_table_name => 'MSC_ST_JOB_OPERATIONS',
47034: p_instance_code => v_instance_code,
47035: p_row => lv_column_names,
47036: p_severity => G_SEV_WARNING,

Line 47051: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

47047: END IF;
47048:
47049: -- Set the message
47050:
47051: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
47052: (p_app_short_name => 'MSC',
47053: p_error_code => 'MSC_PP_INVALID_VALUE',
47054: p_message_text => lv_message_text,
47055: p_error_text => lv_error_text,

Line 47065: MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID(p_table_name => 'MSC_ST_JOB_OPERATIONS',

47061: END IF;
47062:
47063: -- derive organization id ,
47064: lv_return :=
47065: MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID(p_table_name => 'MSC_ST_JOB_OPERATIONS',
47066: p_org_partner_name =>'ORGANIZATION_CODE',
47067: p_org_partner_id =>'ORGANIZATION_ID',
47068: p_instance_code => v_instance_code,
47069: p_partner_type => G_ORGANIZATION,

Line 47082: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

47078: end if;
47079:
47080: -- error out the records where wip_entity_name is null
47081:
47082: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
47083: (p_app_short_name => 'MSC',
47084: p_error_code => 'MSC_PP_COL_VAL_NULL',
47085: p_message_text => lv_message_text,
47086: p_error_text => lv_error_text,

Line 47138: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

47134: v_instance_code;
47135:
47136: -- Set the error message
47137:
47138: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
47139: (p_app_short_name => 'MSC',
47140: p_error_code => 'MSC_PP_COL_REF_NOT_EXIST',
47141: p_message_text => lv_message_text,
47142: p_error_text => lv_error_text,

Line 47174: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

47170:
47171: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
47172:
47173: -- Set the error message
47174: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
47175: (p_app_short_name => 'MSC',
47176: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
47177: p_message_text => lv_message_text,
47178: p_error_text => lv_error_text,

Line 47223: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

47219:
47220: -- Derive routing_sequence_id
47221:
47222: -- Set the error message
47223: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
47224: (p_app_short_name => 'MSC',
47225: p_error_code => 'MSC_PP_COL_REF_NOT_EXIST',
47226: p_message_text => lv_message_text,
47227: p_error_text => lv_error_text,

Line 47243: MSC_ST_UTIL.DERIVE_ROUTING_SEQUENCE_ID

47239:
47240: -- Derive the ROUTING_SEQUENCE_ID from LOCAL ID table
47241:
47242: lv_return :=
47243: MSC_ST_UTIL.DERIVE_ROUTING_SEQUENCE_ID
47244: (p_table_name => 'MSC_ST_JOB_OPERATIONS',
47245: p_rtg_col_name => 'ROUTING_NAME',
47246: p_rtg_col_id => 'ROUTING_SEQUENCE_ID',
47247: p_instance_code => v_instance_code,

Line 47261: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

47257:
47258:
47259:
47260: -- Set the error message
47261: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
47262: (p_app_short_name => 'MSC',
47263: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
47264: p_message_text => lv_message_text,
47265: p_error_text => lv_error_text,

Line 47280: lv_return := MSC_ST_UTIL.LOG_ERROR

47276:
47277: lv_where_str :=
47278: ' AND NVL(effectivity_date,SYSDATE-36500 ) = SYSDATE-36500 ' ;
47279:
47280: lv_return := MSC_ST_UTIL.LOG_ERROR
47281: (p_table_name => 'MSC_ST_JOB_OPERATIONS',
47282: p_instance_code => v_instance_code,
47283: p_row => lv_column_names,
47284: p_severity => G_SEV_WARNING,

Line 47327: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

47323:
47324: -- operation_seq_num cannot be null. Error out the records with null value for them.
47325: -- Set the error message
47326:
47327: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
47328: (p_app_short_name => 'MSC',
47329: p_error_code => 'MSC_PP_COL_VAL_NULL',
47330: p_message_text => lv_message_text,
47331: p_error_text => lv_error_text,

Line 47381: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

47377:
47378: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
47379:
47380: -- Set the error message
47381: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
47382: (p_app_short_name => 'MSC',
47383: p_error_code => 'MSC_PP_COL_REF_NOT_EXIST',
47384: p_message_text => lv_message_text,
47385: p_error_text => lv_error_text,

Line 47432: MSC_ST_UTIL.SET_PROCESS_FLAG(p_table_name => 'MSC_ST_JOB_OPERATIONS',

47428: END IF;
47429:
47430: -- Set the process flag as Valid and derive sr_instance_id
47431: lv_return :=
47432: MSC_ST_UTIL.SET_PROCESS_FLAG(p_table_name => 'MSC_ST_JOB_OPERATIONS',
47433: p_instance_id => v_instance_id,
47434: p_instance_code => v_instance_code,
47435: p_process_flag => G_VALID,
47436: p_error_text => lv_error_text,

Line 47448: MSC_ST_UTIL.LOG_ERROR(p_table_name => 'MSC_ST_JOB_OPERATIONS',

47444:
47445: -- At the end calling the LOG_ERROR for logging all errored out records
47446:
47447: lv_return :=
47448: MSC_ST_UTIL.LOG_ERROR(p_table_name => 'MSC_ST_JOB_OPERATIONS',
47449: p_instance_code => v_instance_code,
47450: p_row => lv_column_names,
47451: p_severity => G_SEV_ERROR,
47452: p_message_text => NULL,

Line 47468: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

47464: -- Validation for MSC_ST_JOB_REQUIREMENT_OPS
47465:
47466: --Duplicate records check for the records whose source is XML
47467:
47468: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
47469: (p_app_short_name => 'MSC',
47470: p_error_code => 'MSC_PP_DUP_REC_FOR_XML',
47471: p_message_text => lv_message_text,
47472: p_error_text => lv_error_text);

Line 47522: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

47518: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code;
47519:
47520: --Duplicate records check for the records whose source is batch load
47521:
47522: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
47523: (p_app_short_name => 'MSC',
47524: p_error_code => 'MSC_PP_DUP_REC_FOR_BATCH_LOAD',
47525: p_message_text => lv_message_text,
47526: p_error_text => lv_error_text);

Line 47636: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

47632: created_by = v_current_user
47633: WHERE rowid = lb_rowid(j);
47634:
47635: -- Set the error message
47636: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
47637: (p_app_short_name => 'MSC',
47638: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
47639: p_message_text => lv_message_text,
47640: p_error_text => lv_error_text,

Line 47655: lv_return := MSC_ST_UTIL.LOG_ERROR

47651:
47652: lv_where_str :=
47653: ' AND NVL(deleted_flag,'||NULL_VALUE||') NOT IN(1,2)';
47654:
47655: lv_return := MSC_ST_UTIL.LOG_ERROR
47656: (p_table_name => 'MSC_ST_JOB_REQUIREMENT_OPS',
47657: p_instance_code => v_instance_code,
47658: p_row => lv_column_names,
47659: p_severity => G_SEV_WARNING,

Line 47673: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

47669: RAISE ex_logging_err;
47670: END IF;
47671:
47672: -- Set the message
47673: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
47674: (p_app_short_name => 'MSC',
47675: p_error_code => 'MSC_PP_INVALID_VALUE',
47676: p_message_text => lv_message_text,
47677: p_error_text => lv_error_text,

Line 47686: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID

47682: RAISE ex_logging_err;
47683: END IF;
47684:
47685: --Derive Organization_id
47686: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID
47687: (p_table_name => 'MSC_ST_JOB_REQUIREMENT_OPS',
47688: p_org_partner_name => 'ORGANIZATION_CODE',
47689: p_org_partner_id => 'ORGANIZATION_ID',
47690: p_instance_code => v_instance_code,

Line 47728: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

47724: v_instance_code;
47725:
47726: -- Set the error message
47727:
47728: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
47729: (p_app_short_name => 'MSC',
47730: p_error_code => 'MSC_PP_COL_REF_NOT_EXIST',
47731: p_message_text => lv_message_text,
47732: p_error_text => lv_error_text,

Line 47763: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

47759:
47760: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
47761:
47762: -- Set the error message
47763: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
47764: (p_app_short_name => 'MSC',
47765: p_error_code => 'MSC_PP_INVALID_VALUE',
47766: p_message_text => lv_message_text,
47767: p_error_text => lv_error_text,

Line 47793: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

47789:
47790: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
47791:
47792: -- Set the message
47793: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
47794: (p_app_short_name => 'MSC',
47795: p_error_code => 'MSC_PP_INVALID_VALUE',
47796: p_message_text => lv_message_text,
47797: p_error_text => lv_error_text,

Line 47806: lv_return := MSC_ST_UTIL.DERIVE_ITEM_ID

47802: RAISE ex_logging_err;
47803: END IF;
47804:
47805: --Derive component_item_id
47806: lv_return := MSC_ST_UTIL.DERIVE_ITEM_ID
47807: (p_table_name => 'MSC_ST_JOB_REQUIREMENT_OPS',
47808: p_item_col_name => 'COMPONENT_NAME',
47809: p_item_col_id => 'COMPONENT_ITEM_ID',
47810: p_instance_id => v_instance_id,

Line 47824: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

47820: RAISE ex_logging_err;
47821: END IF;
47822:
47823: -- Set the message
47824: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
47825: (p_app_short_name => 'MSC',
47826: p_error_code => 'MSC_PP_INVALID_VALUE',
47827: p_message_text => lv_message_text,
47828: p_error_text => lv_error_text,

Line 47837: lv_return := MSC_ST_UTIL.DERIVE_ITEM_ID

47833: RAISE ex_logging_err;
47834: END IF;
47835:
47836: --Derive primary_component_id
47837: lv_return := MSC_ST_UTIL.DERIVE_ITEM_ID
47838: (p_table_name => 'MSC_ST_JOB_REQUIREMENT_OPS',
47839: p_item_col_name => 'PRIMARY_COMPONENT_NAME',
47840: p_item_col_id => 'PRIMARY_COMPONENT_ID',
47841: p_instance_id => v_instance_id,

Line 47855: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

47851: RAISE ex_logging_err;
47852: END IF;
47853:
47854: -- Set the message
47855: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
47856: (p_app_short_name => 'MSC',
47857: p_error_code => 'MSC_PP_INVALID_VALUE',
47858: p_message_text => lv_message_text,
47859: p_error_text => lv_error_text,

Line 47868: lv_return := MSC_ST_UTIL.DERIVE_ITEM_ID

47864: RAISE ex_logging_err;
47865: END IF;
47866:
47867: --Derive primary_component_id
47868: lv_return := MSC_ST_UTIL.DERIVE_ITEM_ID
47869: (p_table_name => 'MSC_ST_JOB_REQUIREMENT_OPS',
47870: p_item_col_name => 'SOURCE_PHANTOM_NAME',
47871: p_item_col_id => 'SOURCE_PHANTOM_ID',
47872: p_instance_id => v_instance_id,

Line 47886: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

47882: RAISE ex_logging_err;
47883: END IF;
47884:
47885: -- Set the message
47886: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
47887: (p_app_short_name => 'MSC',
47888: p_error_code => 'MSC_PP_COL_VAL_NULL',
47889: p_message_text => lv_message_text,
47890: p_error_text => lv_error_text,

Line 47919: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

47915:
47916: EXECUTE IMMEDIATE lv_sql_stmt USING lv_batch_id,v_instance_code;
47917:
47918: -- Set the error message
47919: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
47920: (p_app_short_name => 'MSC',
47921: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
47922: p_message_text => lv_message_text,
47923: p_error_text => lv_error_text,

Line 47938: lv_return := MSC_ST_UTIL.LOG_ERROR

47934:
47935: lv_where_str :=
47936: ' AND NVL(effectivity_date,SYSDATE-36500 ) = SYSDATE-36500 ' ;
47937:
47938: lv_return := MSC_ST_UTIL.LOG_ERROR
47939: (p_table_name => 'MSC_ST_JOB_REQUIREMENT_OPS',
47940: p_instance_code => v_instance_code,
47941: p_row => lv_column_names,
47942: p_severity => G_SEV_WARNING,

Line 47956: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

47952: RAISE ex_logging_err;
47953: END IF;
47954:
47955: -- Set the error message
47956: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
47957: (p_app_short_name => 'MSC',
47958: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
47959: p_message_text => lv_message_text,
47960: p_error_text => lv_error_text,

Line 47975: lv_return := MSC_ST_UTIL.LOG_ERROR

47971:
47972: lv_where_str :=
47973: ' AND NVL(COMPONENT_YIELD_FACTOR,'||NULL_VALUE||') = '||NULL_VALUE ;
47974:
47975: lv_return := MSC_ST_UTIL.LOG_ERROR
47976: (p_table_name => 'MSC_ST_JOB_REQUIREMENT_OPS',
47977: p_instance_code => v_instance_code,
47978: p_row => lv_column_names,
47979: p_severity => G_SEV_WARNING,

Line 47993: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

47989: RAISE ex_logging_err;
47990: END IF;
47991:
47992: -- Set the error message
47993: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
47994: (p_app_short_name => 'MSC',
47995: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
47996: p_message_text => lv_message_text,
47997: p_error_text => lv_error_text,

Line 48012: lv_return := MSC_ST_UTIL.LOG_ERROR

48008:
48009: lv_where_str :=
48010: ' AND NVL(PLANNING_FACTOR,'||NULL_VALUE||') = '||NULL_VALUE ;
48011:
48012: lv_return := MSC_ST_UTIL.LOG_ERROR
48013: (p_table_name => 'MSC_ST_JOB_REQUIREMENT_OPS',
48014: p_instance_code => v_instance_code,
48015: p_row => lv_column_names,
48016: p_severity => G_SEV_WARNING,

Line 48030: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

48026: RAISE ex_logging_err;
48027: END IF;
48028:
48029: -- Set the error message
48030: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
48031: (p_app_short_name => 'MSC',
48032: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
48033: p_message_text => lv_message_text,
48034: p_error_text => lv_error_text,

Line 48049: lv_return := MSC_ST_UTIL.LOG_ERROR

48045:
48046: lv_where_str := ' AND NVL(wip_supply_type,'||NULL_VALUE||') NOT IN (1,2,3,4,5,6,7)'
48047: ||' AND deleted_flag ='||SYS_NO ;
48048:
48049: lv_return := MSC_ST_UTIL.LOG_ERROR
48050: (p_table_name => 'MSC_ST_JOB_REQUIREMENT_OPS',
48051: p_instance_code => v_instance_code,
48052: p_row => lv_column_names,
48053: p_severity => G_SEV_WARNING,

Line 48087: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

48083:
48084: -- Derive routing_sequence_id
48085:
48086: -- Set the error message
48087: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
48088: (p_app_short_name => 'MSC',
48089: p_error_code => 'MSC_PP_COL_REF_NOT_EXIST',
48090: p_message_text => lv_message_text,
48091: p_error_text => lv_error_text,

Line 48107: MSC_ST_UTIL.DERIVE_ROUTING_SEQUENCE_ID

48103:
48104: -- Derive the ROUTING_SEQUENCE_ID from LOCAL ID table
48105:
48106: lv_return :=
48107: MSC_ST_UTIL.DERIVE_ROUTING_SEQUENCE_ID
48108: (p_table_name => 'MSC_ST_JOB_REQUIREMENT_OPS',
48109: p_rtg_col_name => 'ROUTING_NAME',
48110: p_rtg_col_id => 'ROUTING_SEQUENCE_ID',
48111: p_instance_code => v_instance_code,

Line 48152: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

48148: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
48149:
48150: -- Set the error message
48151:
48152: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
48153: (p_app_short_name => 'MSC',
48154: p_error_code => 'MSC_PP_COL_VAL_NULL',
48155: p_message_text => lv_message_text,
48156: p_error_text => lv_error_text,

Line 48210: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

48206: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
48207:
48208: -- Set the error message
48209:
48210: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
48211: (p_app_short_name => 'MSC',
48212: p_error_code => 'MSC_PP_COL_VAL_NULL',
48213: p_message_text => lv_message_text,
48214: p_error_text => lv_error_text,

Line 48276: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG

48272: IF NVL(lv_return,0) <> 0 THEN
48273: RAISE ex_logging_err;
48274: END IF;
48275:
48276: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG
48277: (p_table_name => 'MSC_ST_JOB_REQUIREMENT_OPS',
48278: p_instance_id => v_instance_id,
48279: p_instance_code => v_instance_code,
48280: p_process_flag => G_VALID,

Line 48289: lv_return := MSC_ST_UTIL.LOG_ERROR

48285: IF lv_return <> 0 THEN
48286: RAISE ex_logging_err;
48287: END IF;
48288:
48289: lv_return := MSC_ST_UTIL.LOG_ERROR
48290: (p_table_name => 'MSC_ST_JOB_REQUIREMENT_OPS',
48291: p_instance_code => v_instance_code,
48292: p_row => lv_column_names,
48293: p_severity => G_SEV_ERROR,

Line 48311: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

48307: -- Validation for MSC_ST_JOB_OP_RESOURCES
48308:
48309: --Duplicate records check for the records whose source is XML
48310:
48311: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
48312: (p_app_short_name => 'MSC',
48313: p_error_code => 'MSC_PP_DUP_REC_FOR_XML',
48314: p_message_text => lv_message_text,
48315: p_error_text => lv_error_text);

Line 48357: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

48353: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code;
48354:
48355: --Duplicate records check for the records whose source is batch load
48356:
48357: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
48358: (p_app_short_name => 'MSC',
48359: p_error_code => 'MSC_PP_DUP_REC_FOR_BATCH_LOAD',
48360: p_message_text => lv_message_text,
48361: p_error_text => lv_error_text);

Line 48463: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

48459: created_by = v_current_user
48460: WHERE rowid = lb_rowid(j);
48461:
48462: -- Set the error message
48463: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
48464: (p_app_short_name => 'MSC',
48465: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
48466: p_message_text => lv_message_text,
48467: p_error_text => lv_error_text,

Line 48482: lv_return := MSC_ST_UTIL.LOG_ERROR

48478:
48479: lv_where_str :=
48480: ' AND NVL(deleted_flag,'||NULL_VALUE||') NOT IN(1,2)';
48481:
48482: lv_return := MSC_ST_UTIL.LOG_ERROR
48483: (p_table_name => 'MSC_ST_JOB_OP_RESOURCES',
48484: p_instance_code => v_instance_code,
48485: p_row => lv_column_names,
48486: p_severity => G_SEV_WARNING,

Line 48501: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

48497: RAISE ex_logging_err;
48498: END IF;
48499:
48500: -- Set the message
48501: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
48502: (p_app_short_name => 'MSC',
48503: p_error_code => 'MSC_PP_INVALID_VALUE',
48504: p_message_text => lv_message_text,
48505: p_error_text => lv_error_text,

Line 48515: MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID(p_table_name => 'MSC_ST_JOB_OP_RESOURCES',

48511: END IF;
48512:
48513: -- Populate organization id
48514: lv_return :=
48515: MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID(p_table_name => 'MSC_ST_JOB_OP_RESOURCES',
48516: p_org_partner_name =>'ORGANIZATION_CODE',
48517: p_org_partner_id =>'ORGANIZATION_ID',
48518: p_instance_code => v_instance_code,
48519: p_partner_type => G_ORGANIZATION,

Line 48556: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

48552: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
48553:
48554: -- Set the error message
48555:
48556: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
48557: (p_app_short_name => 'MSC',
48558: p_error_code => 'MSC_PP_COL_REF_NOT_EXIST',
48559: p_message_text => lv_message_text,
48560: p_error_text => lv_error_text,

Line 48617: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

48613: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
48614:
48615: -- Set the error message
48616:
48617: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
48618: (p_app_short_name => 'MSC',
48619: p_error_code => 'MSC_PP_COL_REF_NOT_EXIST',
48620: p_message_text => lv_message_text,
48621: p_error_text => lv_error_text,

Line 48680: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

48676:
48677:
48678:
48679: -- Set the message
48680: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
48681: (p_app_short_name => 'MSC',
48682: p_error_code => 'MSC_PP_COL_VAL_NULL',
48683: p_message_text => lv_message_text,
48684: p_error_text => lv_error_text,

Line 48711: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

48707:
48708: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
48709:
48710: -- Set the message
48711: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
48712: (p_app_short_name => 'MSC',
48713: p_error_code => 'MSC_PP_COL_VAL_NULL',
48714: p_message_text => lv_message_text,
48715: p_error_text => lv_error_text,

Line 48742: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

48738:
48739: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
48740:
48741: -- Set the message
48742: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
48743: (p_app_short_name => 'MSC',
48744: p_error_code => 'MSC_PP_COL_VAL_NULL',
48745: p_message_text => lv_message_text,
48746: p_error_text => lv_error_text,

Line 48773: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

48769:
48770: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
48771:
48772: -- Set the error message
48773: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
48774: (p_app_short_name => 'MSC',
48775: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
48776: p_message_text => lv_message_text,
48777: p_error_text => lv_error_text,

Line 48820: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

48816:
48817: EXECUTE IMMEDIATE lv_sql_stmt USING lv_batch_id,v_instance_code;
48818:
48819: -- Set the message
48820: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
48821: (p_app_short_name => 'MSC',
48822: p_error_code => 'MSC_PP_INVALID_VALUE',
48823: p_message_text => lv_message_text,
48824: p_error_text => lv_error_text,

Line 48834: MSC_ST_UTIL.DERIVE_ROUTING_SEQUENCE_ID

48830: END IF;
48831:
48832: -- Derive the ROUTING_SEQUENCE_ID from LOCAL ID table
48833: lv_return :=
48834: MSC_ST_UTIL.DERIVE_ROUTING_SEQUENCE_ID
48835: (p_table_name => 'MSC_ST_JOB_OP_RESOURCES',
48836: p_rtg_col_name => 'ROUTING_NAME',
48837: p_rtg_col_id =>'ROUTING_SEQUENCE_ID',
48838: p_instance_code => v_instance_code,

Line 48851: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

48847: end if;
48848:
48849:
48850: -- Set the error message
48851: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
48852: (p_app_short_name => 'MSC',
48853: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
48854: p_message_text => lv_message_text,
48855: p_error_text => lv_error_text,

Line 48870: lv_return := MSC_ST_UTIL.LOG_ERROR

48866:
48867: lv_where_str :=
48868: ' AND NVL(operation_effectivity_date,(sysdate-36500)) =(sysdate-36500)';
48869:
48870: lv_return := MSC_ST_UTIL.LOG_ERROR
48871: (p_table_name => 'MSC_ST_JOB_OP_RESOURCES',
48872: p_instance_code => v_instance_code,
48873: p_row => lv_column_names,
48874: p_severity => G_SEV_WARNING,

Line 48917: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

48913: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
48914:
48915: -- Set the error message
48916:
48917: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
48918: (p_app_short_name => 'MSC',
48919: p_error_code => 'MSC_PP_COL_VAL_NULL',
48920: p_message_text => lv_message_text,
48921: p_error_text => lv_error_text,

Line 48948: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

48944:
48945: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
48946:
48947: -- Set the error message
48948: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
48949: (p_app_short_name => 'MSC',
48950: p_error_code => 'MSC_PP_COL_VAL_NULL_DEFAULT',
48951: p_message_text => lv_message_text,
48952: p_error_text => lv_error_text,

Line 48966: lv_return := MSC_ST_UTIL.LOG_ERROR

48962: -- Default alternate number as 0 if NULL
48963:
48964: lv_where_str := ' AND NVL(ALTERNATE_NUM,'||NULL_VALUE||') ='||NULL_VALUE ;
48965:
48966: lv_return := MSC_ST_UTIL.LOG_ERROR
48967: (p_table_name => 'MSC_ST_JOB_OP_RESOURCES',
48968: p_instance_code => v_instance_code,
48969: p_row => lv_column_names,
48970: p_severity => G_SEV_WARNING,

Line 49011: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

49007:
49008: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
49009:
49010: -- Set the error message
49011: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
49012: (p_app_short_name => 'MSC',
49013: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
49014: p_message_text => lv_message_text,
49015: p_error_text => lv_error_text,

Line 49030: lv_return := MSC_ST_UTIL.LOG_ERROR

49026:
49027: lv_where_str := ' AND NVL(principal_flag,'||NULL_VALUE||')'||' NOT IN (1,2)'
49028: ||'AND deleted_flag = 2';
49029:
49030: lv_return := MSC_ST_UTIL.LOG_ERROR
49031: (p_table_name => 'MSC_ST_JOB_OP_RESOURCES',
49032: p_instance_code => v_instance_code,
49033: p_row => lv_column_names,
49034: p_severity => G_SEV_WARNING,

Line 49048: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

49044: RAISE ex_logging_err;
49045: END IF;
49046:
49047: -- Set the error message
49048: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
49049: (p_app_short_name => 'MSC',
49050: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
49051: p_message_text => lv_message_text,
49052: p_error_text => lv_error_text,

Line 49068: lv_return := MSC_ST_UTIL.LOG_ERROR

49064: lv_where_str :=
49065: ' AND NVL(basis_type,'||NULL_VALUE||')'
49066: ||' NOT IN (1,2,3,4,5) AND deleted_flag = 2' ;
49067:
49068: lv_return := MSC_ST_UTIL.LOG_ERROR
49069: (p_table_name => 'MSC_ST_JOB_OP_RESOURCES',
49070: p_instance_code => v_instance_code,
49071: p_row => lv_column_names,
49072: p_severity => G_SEV_WARNING,

Line 49116: MSC_ST_UTIL.SET_PROCESS_FLAG(p_table_name => 'MSC_ST_JOB_OP_RESOURCES',

49112: END IF;
49113:
49114: -- Set the process flag as Valid and populate sr_instance_id
49115: lv_return :=
49116: MSC_ST_UTIL.SET_PROCESS_FLAG(p_table_name => 'MSC_ST_JOB_OP_RESOURCES',
49117: p_instance_id => v_instance_id,
49118: p_instance_code => v_instance_code,
49119: p_process_flag => G_VALID,
49120: p_error_text => lv_error_text,

Line 49132: MSC_ST_UTIL.LOG_ERROR(p_table_name => 'MSC_ST_JOB_OP_RESOURCES',

49128:
49129: -- At the end calling the LOG_ERROR for logging all errored out records
49130:
49131: lv_return :=
49132: MSC_ST_UTIL.LOG_ERROR(p_table_name => 'MSC_ST_JOB_OP_RESOURCES',
49133: p_instance_code => v_instance_code,
49134: p_row => lv_column_names,
49135: p_severity => G_SEV_ERROR,
49136: p_message_text => NULL,

Line 49314: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

49310: -- Validation for table msc_st_system_items
49311: -- Duplicate records check for the records whose source is XML
49312:
49313: IF v_item_enabled = SYS_YES THEN
49314: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
49315: (p_app_short_name => 'MSC',
49316: p_error_code => 'MSC_PP_DUP_REC_FOR_XML',
49317: p_message_text => lv_message_text,
49318: p_error_text => lv_error_text);

Line 49349: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

49345: EXECUTE IMMEDIATE lv_sql_stmt
49346: USING v_instance_code;
49347:
49348: --Duplicate records check for the records whose source is batch load
49349: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
49350: (p_app_short_name => 'MSC',
49351: p_error_code => 'MSC_PP_DUP_REC_FOR_BATCH_LOAD',
49352: p_message_text => lv_message_text,
49353: p_error_text => lv_error_text);

Line 49389: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

49385:
49386: commit; -- for items
49387:
49388: IF v_mat_sup_enabled = SYS_YES THEN
49389: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
49390: (p_app_short_name => 'MSC',
49391: p_error_code => 'MSC_PP_DUP_REC_FOR_XML',
49392: p_message_text => lv_message_text,
49393: p_error_text => lv_error_text);

Line 49500: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

49496: EXECUTE IMMEDIATE lv_sql_stmt
49497: USING v_instance_code;
49498:
49499:
49500: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
49501: (p_app_short_name => 'MSC',
49502: p_error_code => 'MSC_PP_DUP_REC_FOR_BATCH_LOAD',
49503: p_message_text => lv_message_text,
49504: p_error_text => lv_error_text);

Line 49625: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

49621: --Since all the validation is done based on the order type,
49622: --order_type validation is done here which is common to all
49623: --the supplies including WO supplies.
49624:
49625: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
49626: (p_app_short_name => 'MSC',
49627: p_error_code => 'MSC_PP_INVALID_VALUE',
49628: p_message_text => lv_message_text,
49629: p_error_text => lv_error_text,

Line 49660: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

49656: IF v_mat_dmd_enabled = SYS_YES THEN
49657:
49658: --Duplicate records check for the records whose source is XML
49659:
49660: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
49661: (p_app_short_name => 'MSC',
49662: p_error_code => 'MSC_PP_DUP_REC_FOR_XML',
49663: p_message_text => lv_message_text,
49664: p_error_text => lv_error_text);

Line 49733: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

49729: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code;
49730:
49731: --Duplicate records check for the records whose source is batch load
49732:
49733: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
49734: (p_app_short_name => 'MSC',
49735: p_error_code => 'MSC_PP_DUP_REC_FOR_BATCH_LOAD',
49736: p_message_text => lv_message_text,
49737: p_error_text => lv_error_text);

Line 49813: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

49809:
49810:
49811: --Duplicate SO records check for the records whose source is XML
49812:
49813: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
49814: (p_app_short_name => 'MSC',
49815: p_error_code => 'MSC_PP_DUP_REC_FOR_XML',
49816: p_message_text => lv_message_text,
49817: p_error_text => lv_error_text);

Line 49860: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

49856:
49857:
49858: --Duplicate records check for the records whose source is batch load
49859:
49860: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
49861: (p_app_short_name => 'MSC',
49862: p_error_code => 'MSC_PP_DUP_REC_FOR_BATCH_LOAD',
49863: p_message_text => lv_message_text,
49864: p_error_text => lv_error_text);

Line 49910: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

49906:
49907: -- For LEVEL_VALUE
49908: IF v_level_value_enabled = SYS_YES THEN
49909: v_sql_stmt := 15;
49910: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
49911: (p_app_short_name => 'MSC',
49912: p_error_code => 'MSC_PP_DUP_REC_FOR_BATCH_LOAD',
49913: p_message_text => lv_message_text,
49914: p_error_text => lv_error_text);

Line 50004: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

50000: -- Duplicate records check for the records whose source is XML.
50001:
50002: -- Error out records if same OEM item is mapped to multiple customer items
50003:
50004: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
50005: (p_app_short_name => 'MSC',
50006: p_error_code => 'MSC_PP_DUP_REC_FOR_XML',
50007: p_message_text => lv_message_text,
50008: p_error_text => lv_error_text);

Line 50072: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

50068: -- For Batch loads (excel etc.) we error out all duplicate UDK records.
50069: -- No record would be processed in this case. To identify whether the record has come via batch/ XML we would use the MESSAGE_ID field.
50070: -- If MESSAGE_ID is not null then we would assume it to have come in via XML else via batch load.
50071:
50072: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
50073: (p_app_short_name => 'MSC',
50074: p_error_code => 'MSC_PP_DUP_REC_FOR_BATCH_LOAD',
50075: p_message_text => lv_message_text,
50076: p_error_text => lv_error_text);

Line 50194: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

50190: -- Error out those records where the deleted_flag is set to 'Y' if the collection program doesn't support deletion for this BO.
50191: -- Insert the records into the error_table with the severity warning where deleted_flag has a null value.
50192: -- Update the MSC_ST_ITEM_SUPPLIERS table with the default value 2.
50193:
50194: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
50195: (p_app_short_name => 'MSC',
50196: p_error_code => 'MSC_PP_NO_DELETION',
50197: p_message_text => lv_message_text,
50198: p_error_text => lv_error_text,

Line 50227: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

50223: v_instance_code;
50224:
50225: -- warning message if the DELETED_FLAG is other than 1, 2. default to SYS_NO (2)
50226:
50227: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
50228: (p_app_short_name => 'MSC',
50229: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
50230: p_message_text => lv_message_text,
50231: p_error_text => lv_error_text,

Line 50247: lv_return := MSC_ST_UTIL.LOG_ERROR

50243:
50244: --Log a warning for those records where the deleted_flag has a value other
50245: --SYS_NO
50246:
50247: lv_return := MSC_ST_UTIL.LOG_ERROR
50248: (p_table_name => 'MSC_ST_ITEM_CUSTOMERS',
50249: p_instance_code => v_instance_code,
50250: p_row => lv_column_names,
50251: p_severity => G_SEV_WARNING,

Line 50267: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

50263:
50264: -- derive the company_id if it is not null or -1. if not found then error out record
50265: IF v_sce_installed THEN
50266:
50267: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
50268: (p_app_short_name => 'MSC',
50269: p_error_code => 'MSC_PP_INVALID_VALUE',
50270: p_message_text => lv_message_text,
50271: p_error_text => lv_error_text,

Line 50279: lv_return := MSC_ST_UTIL.DERIVE_COMPANY_ID

50275: IF lv_return <> 0 THEN
50276: RAISE ex_logging_err;
50277: END IF;
50278:
50279: lv_return := MSC_ST_UTIL.DERIVE_COMPANY_ID
50280: (p_table_name => 'MSC_ST_ITEM_CUSTOMERS',
50281: p_company_name => 'COMPANY_NAME',
50282: p_company_id => 'COMPANY_ID',
50283: p_instance_code => v_instance_code,

Line 50339: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

50335: v_sql_stmt := 09;
50336:
50337: -- Set the error message
50338:
50339: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
50340: (p_app_short_name => 'MSC',
50341: p_error_code => 'MSC_PP_COL_VAL_NULL',
50342: p_message_text => lv_message_text,
50343: p_error_text => lv_error_text,

Line 50374: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

50370: -- Set the error message
50371:
50372: v_sql_stmt := 10;
50373:
50374: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
50375: (p_app_short_name => 'MSC',
50376: p_error_code => 'MSC_PP_COL_REF_NOT_EXIST',
50377: p_message_text => lv_message_text,
50378: p_error_text => lv_error_text,

Line 50419: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

50415: -- Derive inventory_item_id based on the item_name and error_out all the records where the derivation has failed.
50416:
50417: v_sql_stmt := 11;
50418:
50419: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
50420: (p_app_short_name => 'MSC',
50421: p_error_code => 'MSC_PP_INVALID_VALUE',
50422: p_message_text => lv_message_text,
50423: p_error_text => lv_error_text,

Line 50429: lv_return := MSC_ST_UTIL.DERIVE_ITEM_ID

50425: p_token_value1 => 'ITEM_NAME');
50426:
50427: --Derive Inventory_item_id
50428:
50429: lv_return := MSC_ST_UTIL.DERIVE_ITEM_ID
50430: (p_table_name => 'MSC_ST_ITEM_CUSTOMERS',
50431: p_item_col_name => 'ITEM_NAME',
50432: p_item_col_id => 'INVENTORY_ITEM_ID',
50433: p_instance_id => v_instance_id,

Line 50452: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

50448: -- Set the message
50449:
50450: v_sql_stmt := 12;
50451:
50452: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
50453: (p_app_short_name => 'MSC',
50454: p_error_code => 'MSC_PP_INVALID_VALUE',
50455: p_message_text => lv_message_text,
50456: p_error_text => lv_error_text,

Line 50466: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID

50462: END IF;
50463:
50464: -- Derive customer_id and error out records if customer is not valid
50465:
50466: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID
50467: (p_table_name => 'MSC_ST_ITEM_CUSTOMERS',
50468: p_org_partner_name => 'CUSTOMER_NAME',
50469: p_org_partner_id => 'CUSTOMER_ID',
50470: p_instance_code => v_instance_code,

Line 50492: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

50488: v_sql_stmt := 13;
50489:
50490: -- Set the message
50491:
50492: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
50493: (p_app_short_name => 'MSC',
50494: p_error_code => 'MSC_PP_INVALID_VALUE',
50495: p_message_text => lv_message_text,
50496: p_error_text => lv_error_text,

Line 50504: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_SITE_ID

50500: IF lv_return <> 0 THEN
50501: RAISE ex_logging_err;
50502: END IF;
50503:
50504: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_SITE_ID
50505: (p_table_name => 'MSC_ST_ITEM_CUSTOMERS',
50506: p_partner_name => 'CUSTOMER_NAME',
50507: p_partner_site_code => 'CUSTOMER_SITE_NAME',
50508: p_partner_site_id => 'CUSTOMER_SITE_ID',

Line 50540: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG

50536: END IF;
50537:
50538:
50539: -- Update the process_flag to 5(valid) and sr_instance_id to v_instance_id.
50540: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG
50541: (p_table_name => 'MSC_ST_ITEM_CUSTOMERS',
50542: p_instance_id => v_instance_id,
50543: p_instance_code => v_instance_code,
50544: p_process_flag => G_VALID,

Line 50554: lv_return := MSC_ST_UTIL.LOG_ERROR

50550: RAISE ex_logging_err;
50551: END IF;
50552:
50553: -- Insert all the errored out records into the error table.
50554: lv_return := MSC_ST_UTIL.LOG_ERROR
50555: (p_table_name => 'MSC_ST_ITEM_CUSTOMERS',
50556: p_instance_code => v_instance_code,
50557: p_row => lv_column_names,
50558: p_severity => G_SEV_ERROR,

Line 50609: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

50605:
50606: IF (v_instance_type <> G_INS_OTHER AND p_erp_enabled = 'N') THEN
50607: lv_column_names := 'SR_INSTANCE_CODE';
50608:
50609: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
50610: (p_app_short_name => 'MSC',
50611: p_error_code => 'MSC_ERP_INVALID_ENTITY',
50612: p_message_text => lv_message_text,
50613: p_error_text => lv_error_text,

Line 50635: lv_return := MSC_ST_UTIL.LOG_ERROR

50631: MSC_UTIL.LOG_MSG(MSC_UTIL.G_LVL_DEBUG_1,lv_sql_stmt);
50632:
50633: EXECUTE IMMEDIATE lv_sql_stmt;
50634:
50635: lv_return := MSC_ST_UTIL.LOG_ERROR
50636: (p_table_name => p_table_name,
50637: p_instance_code => v_instance_code,
50638: p_row => lv_column_names,
50639: p_severity => G_SEV_ERROR,

Line 51836: MSC_ST_UTIL.SET_PROCESS_FLAG(p_table_name => 'MSC_ST_SYSTEM_ITEMS',

51832: USING v_instance_code;
51833:
51834: /* -- Set the process flag as Valid and populate instance_id
51835: lv_return :=
51836: MSC_ST_UTIL.SET_PROCESS_FLAG(p_table_name => 'MSC_ST_SYSTEM_ITEMS',
51837: p_instance_id => v_instance_id,
51838: p_instance_code => v_instance_code,
51839: p_process_flag => G_VALID,
51840: p_error_text => lv_error_text,

Line 51844: msc_st_util.log_message(lv_error_text);

51840: p_error_text => lv_error_text,
51841: p_debug => v_debug);
51842:
51843: IF lv_return <> 0 THEN
51844: msc_st_util.log_message(lv_error_text);
51845: END IF;
51846: */
51847:
51848: lv_sql_stmt :=

Line 52130: msc_st_util.log_message(substr('MSC_CL_PRE_PROCESS.LOAD_ITEM_LIST_PRICE'||SQLERRM,1,240));

52126: END IF ;
52127:
52128: EXCEPTION
52129: WHEN OTHERS THEN
52130: msc_st_util.log_message(substr('MSC_CL_PRE_PROCESS.LOAD_ITEM_LIST_PRICE'||SQLERRM,1,240));
52131:
52132: END ;
52133: */
52134:

Line 52398: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

52394:
52395:
52396: BEGIN
52397:
52398: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
52399: (p_app_short_name => 'MSC',
52400: p_error_code => 'MSC_PP_DUP_REC_FOR_XML',
52401: p_message_text => lv_message_text,
52402: p_error_text => lv_error_text);

Line 52423: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

52419: AND mai1.sr_instance_code = v_instance_code
52420: AND NVL(mai1.message_id,NULL_VALUE) <> NULL_VALUE;
52421:
52422:
52423: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
52424: (p_app_short_name => 'MSC',
52425: p_error_code => 'MSC_PP_DUP_REC_FOR_BATCH_LOAD',
52426: p_message_text => lv_message_text,
52427: p_error_text => lv_error_text);

Line 52497: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

52493: EXECUTE IMMEDIATE lv_sql_stmt
52494: USING v_instance_code;
52495:
52496: -- set the message
52497: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
52498: (p_app_short_name => 'MSC',
52499: p_error_code => 'MSC_PP_INVALID_VALUE',
52500: p_message_text => lv_message_text,
52501: p_error_text => lv_error_text,

Line 52548: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG

52544:
52545: EXECUTE IMMEDIATE lv_sql_stmt
52546: USING v_instance_code;
52547:
52548: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG
52549: (p_table_name => 'MSC_ST_APPS_INSTANCES',
52550: p_instance_id => v_instance_id,
52551: p_instance_code => v_instance_code,
52552: p_process_flag => G_VALID,