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 2919: MSC_ST_UTIL.v_instance_type := v_instance_type;

2915: v_pipe_mw := 'MSC_CL_PRE_MW'||TO_CHAR(p_instance_id);
2916: v_pipe_status := 'MSC_CL_PRE_ST'||TO_CHAR(p_instance_id);
2917: v_instance_id := p_instance_id;
2918:
2919: MSC_ST_UTIL.v_instance_type := v_instance_type;
2920: MSC_ST_UTIL.v_instance_id := v_instance_id;
2921:
2922: -------------- Get current ERROR_ID from MSC_ERRORS ---
2923: -- SELECT max(ERROR_ID) INTO v_error_no_begin FROM MSC_ERRORS;

Line 2920: MSC_ST_UTIL.v_instance_id := v_instance_id;

2916: v_pipe_status := 'MSC_CL_PRE_ST'||TO_CHAR(p_instance_id);
2917: v_instance_id := p_instance_id;
2918:
2919: MSC_ST_UTIL.v_instance_type := v_instance_type;
2920: MSC_ST_UTIL.v_instance_id := v_instance_id;
2921:
2922: -------------- Get current ERROR_ID from MSC_ERRORS ---
2923: -- SELECT max(ERROR_ID) INTO v_error_no_begin FROM MSC_ERRORS;
2924:

Line 3279: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

3275: AND modeled_supplier_site_code IS NOT NULL
3276: AND process_flag = G_VALID
3277: AND partner_type = G_ORGANIZATION;
3278:
3279: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
3280: (p_app_short_name => 'MSC',
3281: p_error_code => 'MSC_PP_INVALID_VALUE',
3282: p_message_text => lv_message_text,
3283: p_error_text => lv_error_text,

Line 3324: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

3320: AND master_organization_code IS NOT NULL
3321: AND process_flag = G_VALID
3322: AND partner_type = G_ORGANIZATION;
3323:
3324: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
3325: (p_app_short_name => 'MSC',
3326: p_error_code => 'MSC_PP_INVALID_VALUE',
3327: p_message_text => lv_message_text,
3328: p_error_text => lv_error_text,

Line 3612: lv_status := MSC_ST_UTIL.LOG_ERROR

3608: USING v_instance_code,
3609: p_calendar_code;
3610:
3611:
3612: lv_status := MSC_ST_UTIL.LOG_ERROR
3613: (p_table_name => p_table_name,
3614: p_instance_code => v_instance_code,
3615: p_row => p_column_names,
3616: p_severity => G_SEV_ERROR,

Line 3897: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

3893: v_cal_build := False;
3894:
3895: --Added to fix the bug#2748859
3896: --Getting the error message text
3897: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
3898: (p_app_short_name => 'MSC',
3899: p_error_code => 'MSC_PP_DUP_REC_FOR_XML',
3900: p_message_text => lv_message_text,
3901: p_error_text => lv_error_text);

Line 3923: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

3919: AND mc1.sr_instance_code = v_instance_code
3920: AND NVL(mc1.message_id,NULL_VALUE) <> NULL_VALUE;
3921:
3922:
3923: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
3924: (p_app_short_name => 'MSC',
3925: p_error_code => 'MSC_PP_DUP_REC_FOR_BATCH_LOAD',
3926: p_message_text => lv_message_text,
3927: p_error_text => lv_error_text);

Line 4010: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

4006: IF (rec1.calendar_code IS NULL OR
4007: rec1.calendar_start_date IS NULL OR
4008: rec1.calendar_end_date IS NULL) THEN
4009:
4010: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
4011: (p_app_short_name => 'MSC',
4012: p_error_code => 'MSC_PP_COL_VAL_NULL',
4013: p_message_text => lv_message_text,
4014: p_error_text => lv_error_text,

Line 4028: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

4024: RAISE ex_critical_err;
4025:
4026: ELSIF rec1.deleted_flag = SYS_YES THEN
4027:
4028: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
4029: (p_app_short_name => 'MSC',
4030: p_error_code => 'MSC_PP_NO_DELETION',
4031: p_message_text => lv_message_text,
4032: p_error_text => lv_error_text,

Line 4045: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

4041: ELSIF (rec1.week_start_day NOT IN(1,2) OR
4042: rec1.quarterly_calendar_type NOT IN(1,2,3,4) OR
4043: NVL(rec1.overwrite_flag,'N') NOT IN('Y','N')) THEN
4044:
4045: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
4046: (p_app_short_name => 'MSC',
4047: p_error_code => 'MSC_PP_INVALID_VALUE',
4048: p_message_text => lv_message_text,
4049: p_error_text => lv_error_text,

Line 4062: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

4058: RAISE ex_critical_err;
4059:
4060: ELSIF rec1.calendar_end_date <= rec1.calendar_start_date THEN
4061:
4062: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
4063: (p_app_short_name => 'MSC',
4064: p_error_code => 'MSC_PP_END_GT_ST_DATE',
4065: p_message_text => lv_message_text,
4066: p_error_text => lv_error_text);

Line 4095: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

4091: v_instance_id;
4092:
4093: IF lv_rec_no > 0 THEN
4094:
4095: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
4096: (p_app_short_name => 'MSC',
4097: p_error_code => 'MSC_PP_CAL_ALREADY_EXISTS',
4098: p_message_text => lv_message_text,
4099: p_error_text => lv_error_text);

Line 4132: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

4128: v_instance_id;
4129:
4130: IF NVL(rec1.overwrite_flag,'N') = 'N' THEN
4131:
4132: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
4133: (p_app_short_name => 'MSC',
4134: p_error_code => 'MSC_PP_CAL_ALREADY_EXISTS',
4135: p_message_text => lv_message_text,
4136: p_error_text => lv_error_text);

Line 4147: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

4143: ELSIF NVL(rec1.overwrite_flag,'N') = 'Y' AND
4144: (rec1.calendar_start_date > lv_calendar_start_date OR
4145: rec1.calendar_end_date < lv_calendar_end_date) THEN
4146:
4147: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
4148: (p_app_short_name => 'MSC',
4149: p_error_code => 'MSC_PP_CAL_PERIOD_INVALID',
4150: p_message_text => lv_message_text,
4151: p_error_text => lv_error_text);

Line 4164: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

4160: EXCEPTION
4161: WHEN no_data_found THEN
4162: IF NVL(rec1.overwrite_flag,'N') = 'Y' THEN
4163:
4164: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
4165: (p_app_short_name => 'MSC',
4166: p_error_code => 'MSC_PP_CAL_UPDATE_NOT_ALLOWED',
4167: p_message_text => lv_message_text,
4168: p_error_text => lv_error_text);

Line 4202: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

4198: v_instance_code;
4199:
4200: IF lv_rec_no =1 THEN
4201:
4202: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
4203: (p_app_short_name => 'MSC',
4204: p_error_code => 'MSC_PP_SHIFT_NOT_EXIST',
4205: p_message_text => lv_message_text,
4206: p_error_text => lv_error_text);

Line 4218: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

4214: WHEN no_data_found THEN
4215: NULL;
4216:
4217: WHEN too_many_rows THEN
4218: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
4219: (p_app_short_name => 'MSC',
4220: p_error_code => 'MSC_PP_SHIFT_NOT_EXIST',
4221: p_message_text => lv_message_text,
4222: p_error_text => lv_error_text);

Line 4249: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

4245: USING rec1.calendar_code,
4246: v_instance_code;
4247:
4248: IF lv_rec_no <= 0 THEN
4249: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
4250: (p_app_short_name => 'MSC',
4251: p_error_code => 'MSC_PP_WORKDAY_PAT_INVALID',
4252: p_message_text => lv_message_text,
4253: p_error_text => lv_error_text);

Line 4281: lv_return := MSC_ST_UTIL.LOG_ERROR

4277: ||' AND sr_instance_code = '||''''||v_instance_code ||'''';
4278:
4279: --Logging a warning for those records where the deleted_flag value
4280: --is other than Yes/No.
4281: lv_return := MSC_ST_UTIL.LOG_ERROR
4282: (p_table_name => 'MSC_ST_CALENDARS',
4283: p_instance_code => v_instance_code,
4284: p_row => lv_column_names,
4285: p_severity => G_SEV_WARNING,

Line 4342: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

4338: WHERE rowid = rec2.rowid;
4339:
4340: IF rec2.deleted_flag = SYS_YES THEN
4341:
4342: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
4343: (p_app_short_name => 'MSC',
4344: p_error_code => 'MSC_PP_NO_DELETION',
4345: p_message_text => lv_message_text,
4346: p_error_text => lv_error_text,

Line 4358: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

4354:
4355: ELSIF (rec2.days_on < 0 OR
4356: rec2.days_off < 0) THEN
4357:
4358: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
4359: (p_app_short_name => 'MSC',
4360: p_error_code => 'MSC_PP_CONV_RT_NEG',
4361: p_message_text => lv_message_text,
4362: p_error_text => lv_error_text,

Line 4375: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

4371: END IF;
4372:
4373: IF rec2.deleted_flag NOT IN(1,2) THEN
4374:
4375: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
4376: (p_app_short_name => 'MSC',
4377: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
4378: p_message_text => lv_message_text,
4379: p_error_text => lv_error_text,

Line 4389: lv_return := MSC_ST_UTIL.LOG_ERROR

4385: lv_where_str := ' AND st_transaction_id = '||lv_transaction_id;
4386:
4387: --Logging a warning for those records where the deleted_flag value
4388: --is other than Yes/No.
4389: lv_return := MSC_ST_UTIL.LOG_ERROR
4390: (p_table_name => 'MSC_ST_WORKDAY_PATTERNS',
4391: p_instance_code => v_instance_code,
4392: p_row => lv_column_names,
4393: p_severity => G_SEV_WARNING,

Line 4516: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

4512:
4513: IF (rec3.shift_name IS NULL OR
4514: rec3.shift_num IS NULL) THEN
4515:
4516: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
4517: (p_app_short_name => 'MSC',
4518: p_error_code => 'MSC_PP_COL_VAL_NULL',
4519: p_message_text => lv_message_text,
4520: p_error_text => lv_error_text,

Line 4527: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

4523: RAISE ex_critical_err;
4524:
4525: ELSIF rec3.deleted_flag = SYS_YES THEN
4526:
4527: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
4528: (p_app_short_name => 'MSC',
4529: p_error_code => 'MSC_PP_NO_DELETION',
4530: p_message_text => lv_message_text,
4531: p_error_text => lv_error_text,

Line 4543: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

4539:
4540: END IF;
4541:
4542: IF rec3.deleted_flag NOT IN(1,2) THEN
4543: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
4544: (p_app_short_name => 'MSC',
4545: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
4546: p_message_text => lv_message_text,
4547: p_error_text => lv_error_text,

Line 4557: lv_return := MSC_ST_UTIL.LOG_ERROR

4553: lv_where_str := ' AND st_transaction_id = '||lv_transaction_id;
4554:
4555: --Logging a warning for those records where the deleted_flag value
4556: --is other than Yes/No.
4557: lv_return := MSC_ST_UTIL.LOG_ERROR
4558: (p_table_name => 'MSC_ST_SHIFT_TIMES',
4559: p_instance_code => v_instance_code,
4560: p_row => lv_column_names,
4561: p_severity => G_SEV_WARNING,

Line 4636: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

4632: lv_transaction_id;
4633:
4634: EXCEPTION
4635: WHEN NO_DATA_FOUND THEN
4636: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
4637: (p_app_short_name => 'MSC',
4638: p_error_code => 'MSC_PP_SHIFT_TIME_OVERLAP',
4639: p_message_text => lv_message_text,
4640: p_error_text => lv_error_text);

Line 4667: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

4663: --validation for the table msc_st_Calendar_exceptions.
4664: --Added to fix the bug#2748859
4665:
4666: --Getting the error message text
4667: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
4668: (p_app_short_name => 'MSC',
4669: p_error_code => 'MSC_PP_DUP_REC_FOR_XML',
4670: p_message_text => lv_message_text,
4671: p_error_text => lv_error_text);

Line 4695: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

4691: AND mc1.sr_instance_code = v_instance_code
4692: AND NVL(mc1.message_id,NULL_VALUE) <> NULL_VALUE;
4693:
4694:
4695: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
4696: (p_app_short_name => 'MSC',
4697: p_error_code => 'MSC_PP_DUP_REC_FOR_BATCH_LOAD',
4698: p_message_text => lv_message_text,
4699: p_error_text => lv_error_text);

Line 4757: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

4753: created_by = v_current_user
4754: WHERE rowid = rec4.rowid;
4755:
4756: IF rec4.deleted_flag = SYS_YES THEN
4757: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
4758: (p_app_short_name => 'MSC',
4759: p_error_code => 'MSC_PP_NO_DELETION',
4760: p_message_text => lv_message_text,
4761: p_error_text => lv_error_text,

Line 4772: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

4768: RAISE ex_critical_err;
4769:
4770: ELSIF rec4.exception_date IS NULL THEN
4771:
4772: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
4773: (p_app_short_name => 'MSC',
4774: p_error_code => 'MSC_PP_COL_VAL_NULL',
4775: p_message_text => lv_message_text,
4776: p_error_text => lv_error_text,

Line 4787: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

4783: RAISE ex_critical_err;
4784:
4785: ELSIF (rec4.exception_date < rec1.calendar_start_date OR
4786: rec4.exception_date > rec1.calendar_end_date) THEN
4787: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
4788: (p_app_short_name => 'MSC',
4789: p_error_code => 'MSC_PP_EXCEP_DATE_INVALID',
4790: p_message_text => lv_message_text,
4791: p_error_text => lv_error_text);

Line 4799: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

4795: END IF;
4796: RAISE ex_critical_err;
4797:
4798: ELSIF rec4.exception_type NOT IN(1,2) THEN
4799: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
4800: (p_app_short_name => 'MSC',
4801: p_error_code => 'MSC_PP_INVALID_VALUE',
4802: p_message_text => lv_message_text,
4803: p_error_text => lv_error_text,

Line 4827: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

4823: EXECUTE IMMEDIATE lv_sql_stmt
4824: USING lv_transaction_id;
4825:
4826: IF SQL%NOTFOUND THEN
4827: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
4828: (p_app_short_name => 'MSC',
4829: p_error_code => 'MSC_PP_INVALID_VALUE',
4830: p_message_text => lv_message_text,
4831: p_error_text => lv_error_text,

Line 4854: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

4850:
4851: END IF;
4852:
4853: IF rec4.deleted_flag NOT IN(1,2) THEN
4854: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
4855: (p_app_short_name => 'MSC',
4856: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
4857: p_message_text => lv_message_text,
4858: p_error_text => lv_error_text,

Line 4868: lv_return := MSC_ST_UTIL.LOG_ERROR

4864: lv_where_str := ' AND st_transaction_id = '||lv_transaction_id;
4865:
4866: --Logging a warning for those records where the deleted_flag value
4867: --is other than Yes/No.
4868: lv_return := MSC_ST_UTIL.LOG_ERROR
4869: (p_table_name => 'MSC_ST_CALENDAR_EXCEPTIONS',
4870: p_instance_code => v_instance_code,
4871: p_row => lv_column_names,
4872: p_severity => G_SEV_WARNING,

Line 4904: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

4900: --validation for the table msc_st_shift_exceptions.
4901: --Added to fix the bug#2748859
4902:
4903: --Getting the error message text
4904: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
4905: (p_app_short_name => 'MSC',
4906: p_error_code => 'MSC_PP_DUP_REC_FOR_XML',
4907: p_message_text => lv_message_text,
4908: p_error_text => lv_error_text);

Line 4934: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

4930: AND mc1.sr_instance_code = v_instance_code
4931: AND NVL(mc1.message_id,NULL_VALUE) <> NULL_VALUE;
4932:
4933:
4934: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
4935: (p_app_short_name => 'MSC',
4936: p_error_code => 'MSC_PP_DUP_REC_FOR_BATCH_LOAD',
4937: p_message_text => lv_message_text,
4938: p_error_text => lv_error_text);

Line 4999: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

4995: created_by = v_current_user
4996: WHERE rowid = rec5.rowid;
4997:
4998: IF rec5.deleted_flag = SYS_YES THEN
4999: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
5000: (p_app_short_name => 'MSC',
5001: p_error_code => 'MSC_PP_NO_DELETION',
5002: p_message_text => lv_message_text,
5003: p_error_text => lv_error_text,

Line 5013: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

5009: END IF;
5010: RAISE ex_critical_err;
5011:
5012: ELSIF rec5.exception_date IS NULL THEN
5013: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
5014: (p_app_short_name => 'MSC',
5015: p_error_code => 'MSC_PP_COL_VAL_NULL',
5016: p_message_text => lv_message_text,
5017: p_error_text => lv_error_text,

Line 5028: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

5024: RAISE ex_critical_err;
5025:
5026: ELSIF (rec5.exception_date < rec1.calendar_start_date OR
5027: rec5.exception_date > rec1.calendar_end_date) THEN
5028: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
5029: (p_app_short_name => 'MSC',
5030: p_error_code => 'MSC_PP_EXCEP_DATE_INVALID',
5031: p_message_text => lv_message_text,
5032: p_error_text => lv_error_text);

Line 5040: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

5036: END IF;
5037: RAISE ex_critical_err;
5038:
5039: ELSIF rec5.exception_type NOT IN(1,2) THEN
5040: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
5041: (p_app_short_name => 'MSC',
5042: p_error_code => 'MSC_PP_INVALID_VALUE',
5043: p_message_text => lv_message_text,
5044: p_error_text => lv_error_text,

Line 5054: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

5050: END IF;
5051: RAISE ex_critical_err;
5052:
5053: ELSIF rec5.shift_name IS NULL THEN
5054: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
5055: (p_app_short_name => 'MSC',
5056: p_error_code => 'MSC_PP_COL_VAL_NULL',
5057: p_message_text => lv_message_text,
5058: p_error_text => lv_error_text,

Line 5083: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

5079: EXECUTE IMMEDIATE lv_sql_stmt
5080: USING lv_transaction_id;
5081:
5082: IF SQL%NOTFOUND THEN
5083: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
5084: (p_app_short_name => 'MSC',
5085: p_error_code => 'MSC_PP_INVALID_VALUE',
5086: p_message_text => lv_message_text,
5087: p_error_text => lv_error_text,

Line 5110: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

5106:
5107: END IF;
5108:
5109: IF rec5.deleted_flag NOT IN(1,2) THEN
5110: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
5111: (p_app_short_name => 'MSC',
5112: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
5113: p_message_text => lv_message_text,
5114: p_error_text => lv_error_text,

Line 5124: lv_return := MSC_ST_UTIL.LOG_ERROR

5120: lv_where_str := ' AND st_transaction_id = '||lv_transaction_id;
5121:
5122: --Logging a warning for those records where the deleted_flag value
5123: --is other than Yes/No.
5124: lv_return := MSC_ST_UTIL.LOG_ERROR
5125: (p_table_name => 'MSC_ST_SHIFT_EXCEPTIONS',
5126: p_instance_code => v_instance_code,
5127: p_row => lv_column_names,
5128: p_severity => G_SEV_WARNING,

Line 5158: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG

5154: END LOOP;
5155:
5156: lv_where_str :=
5157: ' AND calendar_code = '||''''||rec1.calendar_code||'''';
5158: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG
5159: (p_table_name => 'MSC_ST_CALENDARS',
5160: p_instance_id => v_instance_id,
5161: p_instance_code => v_instance_code,
5162: p_process_flag => G_VALID,

Line 5171: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG

5167: IF lv_return <> 0 THEN
5168: RAISE ex_logging_err;
5169: END IF;
5170:
5171: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG
5172: (p_table_name => 'MSC_ST_WORKDAY_PATTERNS',
5173: p_instance_id => v_instance_id,
5174: p_instance_code => v_instance_code,
5175: p_process_flag => G_VALID,

Line 5185: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG

5181: RAISE ex_logging_err;
5182: END IF;
5183:
5184:
5185: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG
5186: (p_table_name => 'MSC_ST_CALENDAR_SHIFTS',
5187: p_instance_id => v_instance_id,
5188: p_instance_code => v_instance_code,
5189: p_process_flag => G_VALID,

Line 5198: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG

5194: IF lv_return <> 0 THEN
5195: RAISE ex_logging_err;
5196: END IF;
5197:
5198: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG
5199: (p_table_name => 'MSC_ST_SHIFT_TIMES',
5200: p_instance_id => v_instance_id,
5201: p_instance_code => v_instance_code,
5202: p_process_flag => G_VALID,

Line 5211: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG

5207: IF lv_return <> 0 THEN
5208: RAISE ex_logging_err;
5209: END IF;
5210:
5211: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG
5212: (p_table_name => 'MSC_ST_CALENDAR_EXCEPTIONS',
5213: p_instance_id => v_instance_id,
5214: p_instance_code => v_instance_code,
5215: p_process_flag => G_VALID,

Line 5224: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG

5220: IF lv_return <> 0 THEN
5221: RAISE ex_logging_err;
5222: END IF;
5223:
5224: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG
5225: (p_table_name => 'MSC_ST_SHIFT_EXCEPTIONS',
5226: p_instance_id => v_instance_id,
5227: p_instance_code => v_instance_code,
5228: p_process_flag => G_VALID,

Line 5743: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

5739: AND batch_id = p_batch_id;
5740:
5741: BEGIN
5742:
5743: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
5744: (p_app_short_name => 'MSC',
5745: p_error_code => 'MSC_PP_DUP_REC_FOR_BATCH_LOAD',
5746: p_message_text => lv_message_text,
5747: p_error_text => lv_error_text);

Line 5865: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

5861: created_by = v_current_user
5862: WHERE rowid = lb_rowid(j);
5863:
5864:
5865: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
5866: (p_app_short_name => 'MSC',
5867: p_error_code => 'MSC_PP_NO_DELETION',
5868: p_message_text => lv_message_text,
5869: p_error_text => lv_error_text,

Line 5893: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

5889: USING lv_batch_id,
5890: v_instance_code;
5891:
5892:
5893: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
5894: (p_app_short_name => 'MSC',
5895: p_error_code => 'MSC_PP_COL_VAL_NULL',
5896: p_message_text => lv_message_text,
5897: p_error_text => lv_error_text,

Line 5928: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

5924: USING lv_batch_id,
5925: v_instance_code;
5926:
5927:
5928: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
5929: (p_app_short_name => 'MSC',
5930: p_error_code => 'MSC_PP_NO_UPDATION',
5931: p_message_text => lv_message_text,
5932: p_error_text => lv_error_text,

Line 5954: msc_st_util.log_message(lv_sql_stmt);

5950: ||' FROM msc_demand_classes msd'
5951: ||' WHERE mstd.demand_class = msd.demand_class'
5952: ||' AND msd.sr_instance_id = :v_instance_id)';
5953: IF V_DEBUG THEN
5954: msc_st_util.log_message(lv_sql_stmt);
5955: END IF;
5956:
5957: EXECUTE IMMEDIATE lv_sql_stmt
5958: USING lv_batch_id,

Line 5963: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

5959: v_instance_code,
5960: v_instance_id; */
5961:
5962:
5963: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
5964: (p_app_short_name => 'MSC',
5965: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
5966: p_message_text => lv_message_text,
5967: p_error_text => lv_error_text,

Line 5983: lv_return := MSC_ST_UTIL.LOG_ERROR

5979:
5980: lv_where_str := ' AND NVL(deleted_flag,'||NULL_VALUE||') '
5981: ||' NOT IN(1,2)';
5982:
5983: lv_return := MSC_ST_UTIL.LOG_ERROR
5984: (p_table_name => 'MSC_ST_DEMAND_CLASSES',
5985: p_instance_code => v_instance_code,
5986: p_row => lv_column_names,
5987: p_severity => G_SEV_WARNING,

Line 6000: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

5996: IF lv_return <> 0 THEN
5997: RAISE ex_logging_err;
5998: END IF;
5999:
6000: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
6001: (p_app_short_name => 'MSC',
6002: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
6003: p_message_text => lv_message_text,
6004: p_error_text => lv_error_text,

Line 6020: lv_return := MSC_ST_UTIL.LOG_ERROR

6016:
6017: lv_where_str := ' AND NVL(enabled_flag,'||NULL_VALUE||') '
6018: ||' NOT IN(1,2)';
6019:
6020: lv_return := MSC_ST_UTIL.LOG_ERROR
6021: (p_table_name => 'MSC_ST_DEMAND_CLASSES',
6022: p_instance_code => v_instance_code,
6023: p_row => lv_column_names,
6024: p_severity => G_SEV_WARNING,

Line 6037: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

6033: IF lv_return <> 0 THEN
6034: RAISE ex_logging_err;
6035: END IF;
6036:
6037: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
6038: (p_app_short_name => 'MSC',
6039: p_error_code => 'MSC_PP_INVALID_VALUE',
6040: p_message_text => lv_message_text,
6041: p_error_text => lv_error_text,

Line 6088: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG

6084: END IF;
6085:
6086:
6087: -- Set the process flag as Valid and populate instance_id
6088: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG
6089: (p_table_name => 'MSC_ST_DEMAND_CLASSES',
6090: p_instance_id => v_instance_id,
6091: p_instance_code => v_instance_code,
6092: p_process_flag => G_VALID,

Line 6104: lv_return := MSC_ST_UTIL.LOG_ERROR

6100:
6101: -- At the end calling the LOG_ERROR for logging all
6102: -- errored out records.
6103:
6104: lv_return := MSC_ST_UTIL.LOG_ERROR
6105: (p_table_name => 'MSC_ST_DEMAND_CLASSES',
6106: p_instance_code => v_instance_code,
6107: p_row => lv_column_names,
6108: p_severity => G_SEV_ERROR,

Line 6152: msc_st_util.log_message(lv_sql_stmt);

6148: ||' AND mstd.sr_instance_code = :v_instance_code'
6149: ||' AND mstd.process_flag = '||G_VALID ;
6150:
6151: IF V_DEBUG THEN
6152: msc_st_util.log_message(lv_sql_stmt);
6153: END IF;
6154:
6155: EXECUTE IMMEDIATE lv_sql_stmt
6156: USING lv_batch_id,

Line 6444: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

6440: GROUP BY location;
6441:
6442: BEGIN
6443:
6444: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
6445: (p_app_short_name => 'MSC',
6446: p_error_code => 'MSC_PP_DUP_REC_FOR_BATCH_LOAD',
6447: p_message_text => lv_message_text,
6448: p_error_text => lv_error_text);

Line 6544: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

6540: USING v_instance_code;
6541:
6542:
6543:
6544: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
6545: (p_app_short_name => 'MSC',
6546: p_error_code => 'MSC_PP_DUP_REC_FOR_XML',
6547: p_message_text => lv_message_text,
6548: p_error_text => lv_error_text);

Line 6684: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

6680: creation_date = v_current_date,
6681: created_by = v_current_user
6682: WHERE rowid = lb_rowid(j);
6683:
6684: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
6685: (p_app_short_name => 'MSC',
6686: p_error_code => 'MSC_PP_NO_DELETION',
6687: p_message_text => lv_message_text,
6688: p_error_text => lv_error_text,

Line 6711: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

6707: EXECUTE IMMEDIATE lv_sql_stmt
6708: USING lv_batch_id,
6709: v_instance_code;
6710:
6711: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
6712: (p_app_short_name => 'MSC',
6713: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
6714: p_message_text => lv_message_text,
6715: p_error_text => lv_error_text,

Line 6731: lv_return := MSC_ST_UTIL.LOG_ERROR

6727:
6728: lv_where_str := ' AND NVL(deleted_flag,'||NULL_VALUE||') '
6729: ||' NOT IN(1,2)';
6730:
6731: lv_return := MSC_ST_UTIL.LOG_ERROR
6732: (p_table_name => 'MSC_ST_TRADING_PARTNERS',
6733: p_instance_code => v_instance_code,
6734: p_row => lv_column_names,
6735: p_severity => G_SEV_WARNING,

Line 6748: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

6744: IF lv_return <> 0 THEN
6745: RAISE ex_logging_err;
6746: END IF;
6747:
6748: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
6749: (p_app_short_name => 'MSC',
6750: p_error_code => 'MSC_PP_COL_VAL_NULL',
6751: p_message_text => lv_message_text,
6752: p_error_text => lv_error_text,

Line 6780: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

6776: USING lv_batch_id,
6777: v_instance_code;
6778:
6779:
6780: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
6781: (p_app_short_name => 'MSC',
6782: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
6783: p_message_text => lv_message_text,
6784: p_error_text => lv_error_text,

Line 6811: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

6807: USING v_instance_code,
6808: lv_batch_id;
6809:
6810:
6811: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
6812: (p_app_short_name => 'MSC',
6813: p_error_code => 'MSC_PP_COL_VAL_NULL',
6814: p_message_text => lv_message_text,
6815: p_error_text => lv_error_text,

Line 6845: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

6841: lv_batch_id;
6842:
6843: --- changes for SRP
6844:
6845: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
6846: (p_app_short_name => 'MSC',
6847: p_error_code => 'MSC_PP_INVALID_VALUE',
6848: p_message_text => lv_message_text,
6849: p_error_text => lv_error_text,

Line 6896: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

6892: -- unless these belong to this company - to allow updation
6893: -- Bypass this check if it is SCE Standalone
6894:
6895: IF v_MSC_CONFIGURATION <> 3 THEN
6896: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
6897: (p_app_short_name => 'MSC',
6898: p_error_code => 'MSC_PP_INVALID_VALUE',
6899: p_message_text => lv_message_text,
6900: p_error_text => lv_error_text,

Line 6929: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

6925: AND nvl(mlis.char2, NULL_CHAR) = nvl(mstp.company_name,NULL_CHAR));
6926: END IF;
6927:
6928:
6929: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
6930: (p_app_short_name => 'MSC',
6931: p_error_code => 'MSC_PP_COL_VAL_NULL',
6932: p_message_text => lv_message_text,
6933: p_error_text => lv_error_text,

Line 6979: msc_st_util.log_message(lv_sql_stmt);

6975: ||' AND batch_id = :lv_batch_id'
6976: ||' AND process_flag = '||G_IN_PROCESS;
6977:
6978: IF V_DEBUG THEN
6979: msc_st_util.log_message(lv_sql_stmt);
6980: END IF;
6981: EXECUTE IMMEDIATE lv_sql_stmt
6982: USING v_instance_code,
6983: lv_batch_id; */

Line 6985: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

6981: EXECUTE IMMEDIATE lv_sql_stmt
6982: USING v_instance_code,
6983: lv_batch_id; */
6984:
6985: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
6986: (p_app_short_name => 'MSC',
6987: p_error_code => 'MSC_PP_COL_REF_NOT_EXIST',
6988: p_message_text => lv_message_text,
6989: p_error_text => lv_error_text,

Line 7024: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

7020: USING v_instance_id,
7021: v_instance_code,
7022: lv_batch_id;
7023:
7024: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
7025: (p_app_short_name => 'MSC',
7026: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
7027: p_message_text => lv_message_text,
7028: p_error_text => lv_error_text,

Line 7041: lv_return := MSC_ST_UTIL.LOG_ERROR

7037: lv_where_str :=
7038: ' AND calendar_exception_set_id <> -1 '
7039: ||' AND partner_type = '||G_ORGANIZATION ;
7040:
7041: lv_return := MSC_ST_UTIL.LOG_ERROR
7042: (p_table_name => 'MSC_ST_TRADING_PARTNERS',
7043: p_instance_code => v_instance_code,
7044: p_row => lv_column_names,
7045: p_severity => G_SEV_WARNING,

Line 7059: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

7055: RAISE ex_logging_err;
7056: END IF;
7057:
7058:
7059: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
7060: (p_app_short_name => 'MSC',
7061: p_error_code => 'MSC_PP_COL_REF_NOT_EXIST',
7062: p_message_text => lv_message_text,
7063: p_error_text => lv_error_text,

Line 7107: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

7103: USING v_instance_id,
7104: v_instance_code,
7105: lv_batch_id;
7106:
7107: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
7108: (p_app_short_name => 'MSC',
7109: p_error_code => 'MSC_PP_COL_REF_NOT_EXIST',
7110: p_message_text => lv_message_text,
7111: p_error_text => lv_error_text,

Line 7154: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

7150: v_instance_code,
7151: lv_batch_id;
7152:
7153:
7154: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
7155: (p_app_short_name => 'MSC',
7156: p_error_code => 'MSC_PP_INVALID_VALUE',
7157: p_message_text => lv_message_text,
7158: p_error_text => lv_error_text,

Line 7166: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

7162: IF lv_return <> 0 THEN
7163: RAISE ex_logging_err;
7164: END IF;
7165:
7166: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
7167: (p_app_short_name => 'MSC',
7168: p_error_code => 'MSC_PP_INVALID_VALUE',
7169: p_message_text => lv_message_text,
7170: p_error_text => lv_error_text,

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

7179: -- Validate Demand Class, if value provided it should exists
7180: -- in ODS or staging table
7181:
7182: lv_return :=
7183: MSC_ST_UTIL.VALIDATE_DMD_CLASS(p_table_name => 'MSC_ST_TRADING_PARTNERS',
7184: p_dmd_class_column => 'DEFAULT_DEMAND_CLASS',
7185: p_instance_id => v_instance_id,
7186: p_instance_code => v_instance_code,
7187: p_severity => G_SEV3_ERROR,

Line 7199: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

7195: end if;
7196:
7197:
7198: IF v_sce_installed THEN
7199: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
7200: (p_app_short_name => 'MSC',
7201: p_error_code => 'MSC_PP_INVALID_VALUE',
7202: p_message_text => lv_message_text,
7203: p_error_text => lv_error_text,

Line 7212: lv_return := MSC_ST_UTIL.DERIVE_COMPANY_ID

7208: RAISE ex_logging_err;
7209: END IF;
7210:
7211: --Derive company_id
7212: lv_return := MSC_ST_UTIL.DERIVE_COMPANY_ID
7213: (p_table_name => 'MSC_ST_TRADING_PARTNERS',
7214: p_company_name => 'COMPANY_NAME',
7215: p_company_id => 'COMPANY_ID',
7216: p_instance_code => v_instance_code,

Line 7263: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

7259: AND mscu.batch_id = lv_batch_id;
7260:
7261: -- Set the message
7262:
7263: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
7264: (p_app_short_name => 'MSC',
7265: p_error_code => 'MSC_PP_INVALID_VALUE',
7266: p_message_text => lv_message_text,
7267: p_error_text => lv_error_text,

Line 7286: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

7282:
7283: END IF;
7284: */
7285:
7286: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
7287: (p_app_short_name => 'MSC',
7288: p_error_code => 'MSC_PP_INVALID_VALUE',
7289: p_message_text => lv_message_text,
7290: p_error_text => lv_error_text,

Line 7299: lv_return :=msc_st_util.derive_partner_org_id

7295: RAISE ex_logging_err;
7296: END IF;
7297:
7298: -- Derive source_org_id
7299: lv_return :=msc_st_util.derive_partner_org_id
7300: (p_table_name => 'MSC_ST_TRADING_PARTNERS',
7301: p_org_partner_name => 'SOURCE_ORG_CODE',
7302: p_org_partner_id => 'SOURCE_ORG_ID',
7303: p_instance_code => v_instance_code,

Line 7317: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

7313: END IF;
7314: END IF; --v_msc_installed
7315:
7316: -- ssurendr - bug 2647423: check for partner name - org code mismatch with respect to ODS - begin.
7317: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
7318: (p_app_short_name => 'MSC',
7319: p_error_code => 'MSC_PP_INVALID_VALUE',
7320: p_message_text => lv_message_text,
7321: p_error_text => lv_error_text,

Line 7386: lv_return :=msc_st_util.derive_partner_org_id

7382: lv_batch_id;
7383: -- ssurendr - bug 2647423: check for partner name - org code mismatch with respect to ODS - end.
7384:
7385: -- Derive sr_tp_id(Organization)
7386: lv_return :=msc_st_util.derive_partner_org_id
7387: (p_table_name => 'MSC_ST_TRADING_PARTNERS',
7388: p_org_partner_name => 'ORGANIZATION_CODE',
7389: p_org_partner_id => 'SR_TP_ID',
7390: p_instance_code => v_instance_code,

Line 7401: lv_return :=msc_st_util.derive_partner_org_id

7397: RAISE ex_logging_err;
7398: END IF;
7399:
7400: -- Derive sr_tp_id(Customer)
7401: lv_return :=msc_st_util.derive_partner_org_id
7402: (p_table_name => 'MSC_ST_TRADING_PARTNERS',
7403: p_org_partner_name => 'PARTNER_NAME',
7404: p_cust_account_number=>'CUST_ACCOUNT_NUMBER',
7405: p_org_partner_id => 'SR_TP_ID',

Line 7417: lv_return :=msc_st_util.derive_partner_org_id

7413: RAISE ex_logging_err;
7414: END IF;
7415:
7416: -- Derive sr_tp_id(Supplier).
7417: lv_return :=msc_st_util.derive_partner_org_id
7418: (p_table_name => 'MSC_ST_TRADING_PARTNERS',
7419: p_org_partner_name => 'PARTNER_NAME',
7420: p_org_partner_id => 'SR_TP_ID',
7421: p_instance_code => v_instance_code,

Line 7432: lv_return :=msc_st_util.derive_partner_org_id

7428: RAISE ex_logging_err;
7429: END IF;
7430:
7431: -- Derive sr_tp_id(Carrier).
7432: lv_return :=msc_st_util.derive_partner_org_id
7433: (p_table_name => 'MSC_ST_TRADING_PARTNERS',
7434: p_org_partner_name => 'PARTNER_NAME',
7435: p_org_partner_id => 'SR_TP_ID',
7436: p_instance_code => v_instance_code,

Line 7447: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

7443: RAISE ex_logging_err;
7444: END IF;
7445:
7446:
7447: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
7448: (p_app_short_name => 'MSC',
7449: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
7450: p_message_text => lv_message_text,
7451: p_error_text => lv_error_text,

Line 7468: lv_return := MSC_ST_UTIL.LOG_ERROR

7464: lv_where_str := ' AND NVL(INHERIT_OC_OP_SEQ_NUM,'||NULL_VALUE||') '
7465: ||' NOT IN(1,2)'
7466: ||' AND partner_type = '||G_ORGANIZATION ;
7467:
7468: lv_return := MSC_ST_UTIL.LOG_ERROR
7469: (p_table_name => 'MSC_ST_TRADING_PARTNERS',
7470: p_instance_code => v_instance_code,
7471: p_row => lv_column_names,
7472: p_severity => G_SEV_WARNING,

Line 7567: msc_st_util.log_message(lv_sql_stmt);

7563: ||' AND batch_id = :lv_batch_id'
7564: ||' AND process_flag = '||G_IN_PROCESS;
7565:
7566: IF V_DEBUG THEN
7567: msc_st_util.log_message(lv_sql_stmt);
7568: END IF;
7569: EXECUTE IMMEDIATE lv_sql_stmt
7570: USING v_instance_code,
7571: lv_batch_id; */

Line 7574: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG

7570: USING v_instance_code,
7571: lv_batch_id; */
7572:
7573: -- Set the process flag as Valid and populate instance_id
7574: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG
7575: (p_table_name => 'MSC_ST_TRADING_PARTNERS',
7576: p_instance_id => v_instance_id,
7577: p_instance_code => v_instance_code,
7578: p_process_flag => G_VALID,

Line 7590: lv_return := MSC_ST_UTIL.LOG_ERROR

7586:
7587: -- At the end calling the LOG_ERROR for logging all
7588: -- errored out records.
7589:
7590: lv_return := MSC_ST_UTIL.LOG_ERROR
7591: (p_table_name => 'MSC_ST_TRADING_PARTNERS',
7592: p_instance_code => v_instance_code,
7593: p_row => lv_column_names,
7594: p_severity => G_SEV_ERROR,

Line 7634: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

7630: END LOOP;
7631:
7632: --Validation for MSC_ST_TRADING_PARTNER_SITES
7633:
7634: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
7635: (p_app_short_name => 'MSC',
7636: p_error_code => 'MSC_PP_DUP_REC_FOR_BATCH_LOAD',
7637: p_message_text => lv_message_text,
7638: p_error_text => lv_error_text);

Line 7668: msc_st_util.log_message(lv_sql_stmt);

7664: ||' AND mstp1.sr_instance_code = :v_instance_code '
7665: ||' AND NVL(mstp1.message_id,'||NULL_VALUE||') = '||NULL_VALUE;
7666:
7667: IF V_DEBUG THEN
7668: msc_st_util.log_message(lv_sql_stmt);
7669: END IF;
7670:
7671: EXECUTE IMMEDIATE lv_sql_stmt
7672: USING v_instance_code;

Line 7737: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

7733:
7734:
7735: EXECUTE IMMEDIATE lv_sql_stmt
7736: USING v_instance_code;
7737: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
7738: (p_app_short_name => 'MSC',
7739: p_error_code => 'MSC_PP_DUP_REC_FOR_XML',
7740: p_message_text => lv_message_text,
7741: p_error_text => lv_error_text);

Line 7830: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

7826: creation_date = v_current_date,
7827: created_by = v_current_user
7828: WHERE rowid = lb_rowid(j);
7829:
7830: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
7831: (p_app_short_name => 'MSC',
7832: p_error_code => 'MSC_PP_NO_DELETION',
7833: p_message_text => lv_message_text,
7834: p_error_text => lv_error_text,

Line 7862: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

7858: USING lv_batch_id,
7859: v_instance_code;
7860:
7861:
7862: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
7863: (p_app_short_name => 'MSC',
7864: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
7865: p_message_text => lv_message_text,
7866: p_error_text => lv_error_text,

Line 7882: lv_return := MSC_ST_UTIL.LOG_ERROR

7878:
7879: lv_where_str := ' AND NVL(deleted_flag,'||NULL_VALUE||') '
7880: ||' NOT IN(1,2)';
7881:
7882: lv_return := MSC_ST_UTIL.LOG_ERROR
7883: (p_table_name => 'MSC_ST_TRADING_PARTNER_SITES',
7884: p_instance_code => v_instance_code,
7885: p_row => lv_column_names,
7886: p_severity => G_SEV_WARNING,

Line 7900: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

7896: IF lv_return <> 0 THEN
7897: RAISE ex_logging_err;
7898: END IF;
7899:
7900: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
7901: (p_app_short_name => 'MSC',
7902: p_error_code => 'MSC_PP_INVALID_VALUE',
7903: p_message_text => lv_message_text,
7904: p_error_text => lv_error_text,

Line 7935: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

7931: -- ODP changes , error out the record if only DP is installed
7932: -- then only partner_type = 2 (customer ) should come in
7933:
7934: IF (NOT v_install_msc) THEN
7935: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
7936: (p_app_short_name => 'MSC',
7937: p_error_code => 'MSC_PP_INVALID_VALUE',
7938: p_message_text => lv_message_text,
7939: p_error_text => lv_error_text,

Line 7969: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

7965: END IF ; --v_msc_install
7966:
7967:
7968:
7969: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
7970: (p_app_short_name => 'MSC',
7971: p_error_code => 'MSC_PP_COL_VAL_NULL',
7972: p_message_text => lv_message_text,
7973: p_error_text => lv_error_text,

Line 8006: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

8002: USING v_instance_code,
8003: lv_batch_id;
8004:
8005: IF (v_install_msc) THEN
8006: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
8007: (p_app_short_name => 'MSC',
8008: p_error_code => 'MSC_PP_COL_VAL_NULL',
8009: p_message_text => lv_message_text,
8010: p_error_text => lv_error_text,

Line 8042: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

8038: EXECUTE IMMEDIATE lv_sql_stmt
8039: USING v_instance_code,
8040: lv_batch_id;
8041:
8042: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
8043: (p_app_short_name => 'MSC',
8044: p_error_code => 'MSC_PP_INVALID_VALUE',
8045: p_message_text => lv_message_text,
8046: p_error_text => lv_error_text,

Line 8055: lv_return :=msc_st_util.derive_partner_org_id

8051: RAISE ex_logging_err;
8052: END IF;
8053:
8054: -- Update sr_tp_id(customer)
8055: lv_return :=msc_st_util.derive_partner_org_id
8056: (p_table_name =>'MSC_ST_TRADING_PARTNER_SITES',
8057: p_org_partner_name =>'PARTNER_NAME',
8058: p_cust_account_number=>'CUST_ACCOUNT_NUMBER',
8059: p_org_partner_id =>'SR_TP_ID',

Line 8071: lv_return :=msc_st_util.derive_partner_org_id

8067: RAISE ex_logging_err;
8068: END IF;
8069:
8070: -- Update sr_tp_id(Organization)
8071: lv_return :=msc_st_util.derive_partner_org_id
8072: (p_table_name => 'MSC_ST_TRADING_PARTNER_SITES',
8073: p_org_partner_name => 'PARTNER_NAME',
8074: p_org_partner_id => 'SR_TP_ID',
8075: p_instance_code => v_instance_code,

Line 8087: lv_return :=msc_st_util.derive_partner_org_id

8083: END IF;
8084: END IF ; --v_install_msc
8085:
8086: -- Update sr_tp_id(supplier)
8087: lv_return :=msc_st_util.derive_partner_org_id
8088: (p_table_name =>'MSC_ST_TRADING_PARTNER_SITES',
8089: p_org_partner_name =>'PARTNER_NAME',
8090: p_org_partner_id =>'SR_TP_ID',
8091: p_instance_code => v_instance_code,

Line 8121: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

8117: EXECUTE IMMEDIATE lv_sql_stmt
8118: USING lv_batch_id,
8119: v_instance_code;
8120:
8121: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
8122: (p_app_short_name => 'MSC',
8123: p_error_code => 'MSC_PP_INVALID_VALUE',
8124: p_message_text => lv_message_text,
8125: p_error_text => lv_error_text,

Line 8134: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_SITE_ID

8130: RAISE ex_logging_err;
8131: END IF;
8132:
8133: -- Update sr_tp_site_id(Vendor)
8134: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_SITE_ID
8135: (p_table_name => 'MSC_ST_TRADING_PARTNER_SITES',
8136: p_partner_name => 'PARTNER_NAME',
8137: p_partner_site_code => 'TP_SITE_CODE',
8138: p_partner_site_id => 'SR_TP_SITE_ID',

Line 8152: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_SITE_ID

8148: END IF;
8149:
8150: IF(v_install_msc) THEN
8151: -- Update sr_tp_site_id(Customer)
8152: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_SITE_ID
8153: (p_table_name => 'MSC_ST_TRADING_PARTNER_SITES',
8154: p_partner_name => 'PARTNER_NAME',
8155: p_partner_site_code => 'TP_SITE_CODE',
8156: p_CUST_ACCOUNT_NUMBER =>'CUST_ACCOUNT_NUMBER',

Line 8218: msc_st_util.log_message(lv_sql_stmt);

8214: ||' WHERE mls.entity_name = ''LOCATION_ID'' '
8215: ||' AND mls.instance_id = :v_instance_id' ;
8216:
8217: IF V_DEBUG THEN
8218: msc_st_util.log_message(lv_sql_stmt);
8219: END IF;
8220:
8221: EXECUTE IMMEDIATE lv_sql_stmt
8222: USING lv_batch_id,

Line 8487: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG

8483:
8484:
8485:
8486: -- Set the process flag as Valid and poulate instance_id
8487: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG
8488: (p_table_name => 'MSC_ST_TRADING_PARTNER_SITES',
8489: p_instance_id => v_instance_id,
8490: p_instance_code => v_instance_code,
8491: p_process_flag => G_VALID,

Line 8502: lv_return := MSC_ST_UTIL.LOG_ERROR

8498: END IF;
8499:
8500: -- At the end calling the LOG_ERROR for logging all errored out records
8501:
8502: lv_return := MSC_ST_UTIL.LOG_ERROR
8503: (p_table_name => 'MSC_ST_TRADING_PARTNER_SITES',
8504: p_instance_code => v_instance_code,
8505: p_row => lv_column_names,
8506: p_severity => G_SEV_ERROR,

Line 8548: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

8544:
8545: --Validation for MSC_ST_SUB_INVENTORIES
8546:
8547:
8548: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
8549: (p_app_short_name => 'MSC',
8550: p_error_code => 'MSC_PP_DUP_REC_FOR_BATCH_LOAD',
8551: p_message_text => lv_message_text,
8552: p_error_text => lv_error_text);

Line 8585: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

8581: EXECUTE IMMEDIATE lv_sql_stmt
8582: USING v_instance_code;
8583:
8584:
8585: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
8586: (p_app_short_name => 'MSC',
8587: p_error_code => 'MSC_PP_DUP_REC_FOR_XML',
8588: p_message_text => lv_message_text,
8589: p_error_text => lv_error_text);

Line 8678: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

8674: created_by = v_current_user
8675: WHERE rowid = lb_rowid(j);
8676:
8677:
8678: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
8679: (p_app_short_name => 'MSC',
8680: p_error_code => 'MSC_PP_NO_DELETION',
8681: p_message_text => lv_message_text,
8682: p_error_text => lv_error_text,

Line 8709: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

8705: EXECUTE IMMEDIATE lv_sql_stmt
8706: USING lv_batch_id,
8707: v_instance_code;
8708:
8709: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
8710: (p_app_short_name => 'MSC',
8711: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
8712: p_message_text => lv_message_text,
8713: p_error_text => lv_error_text,

Line 8729: lv_return := MSC_ST_UTIL.LOG_ERROR

8725:
8726: lv_where_str := ' AND NVL(deleted_flag,'||NULL_VALUE||') '
8727: ||' NOT IN(1,2)';
8728:
8729: lv_return := MSC_ST_UTIL.LOG_ERROR
8730: (p_table_name => 'MSC_ST_SUB_INVENTORIES',
8731: p_instance_code => v_instance_code,
8732: p_row => lv_column_names,
8733: p_severity => G_SEV_WARNING,

Line 8746: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

8742: IF lv_return <> 0 THEN
8743: RAISE ex_logging_err;
8744: END IF;
8745:
8746: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
8747: (p_app_short_name => 'MSC',
8748: p_error_code => 'MSC_PP_COL_VAL_NULL',
8749: p_message_text => lv_message_text,
8750: p_error_text => lv_error_text,

Line 8777: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

8773: EXECUTE IMMEDIATE lv_sql_stmt
8774: USING v_instance_code,
8775: lv_batch_id;
8776:
8777: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
8778: (p_app_short_name => 'MSC',
8779: p_error_code => 'MSC_PP_INVALID_VALUE',
8780: p_message_text => lv_message_text,
8781: p_error_text => lv_error_text,

Line 8790: lv_return := msc_st_util.derive_partner_org_id

8786: RAISE ex_logging_err;
8787: END IF;
8788:
8789: -- Update organization_id
8790: lv_return := msc_st_util.derive_partner_org_id
8791: (p_table_name => 'MSC_ST_SUB_INVENTORIES',
8792: p_org_partner_name => 'ORGANIZATION_CODE',
8793: p_org_partner_id => 'ORGANIZATION_ID',
8794: p_instance_code => v_instance_code,

Line 8807: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

8803: if(lv_return <> 0) then
8804: RAISE ex_logging_err;
8805: end if;
8806:
8807: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
8808: (p_app_short_name => 'MSC',
8809: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
8810: p_message_text => lv_message_text,
8811: p_error_text => lv_error_text,

Line 8823: lv_return := MSC_ST_UTIL.LOG_ERROR

8819: END IF;
8820:
8821: -- Default netting_type as 2 if NOT IN (1,2)
8822: lv_where_str := ' AND nvl(netting_type,'||NULL_VALUE||') NOT IN (1,2)';
8823: lv_return := MSC_ST_UTIL.LOG_ERROR
8824: (p_table_name => 'MSC_ST_SUB_INVENTORIES',
8825: p_instance_code => v_instance_code,
8826: p_row => lv_column_names,
8827: p_severity => G_SEV_WARNING,

Line 8854: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG

8850: RAISE ex_logging_err;
8851: END IF;
8852:
8853: -- Set the processf flag as Valid and poulate instance_id
8854: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG
8855: (p_table_name => 'MSC_ST_SUB_INVENTORIES',
8856: p_instance_id => v_instance_id,
8857: p_instance_code => v_instance_code,
8858: p_process_flag => G_VALID,

Line 8869: lv_return := MSC_ST_UTIL.LOG_ERROR

8865: END IF;
8866:
8867: -- At the end calling the LOG_ERROR for logging all errored out records
8868:
8869: lv_return := MSC_ST_UTIL.LOG_ERROR
8870: (p_table_name =>'MSC_ST_SUB_INVENTORIES',
8871: p_instance_code =>v_instance_code,
8872: p_row =>lv_column_names,
8873: p_severity =>G_SEV_ERROR,

Line 8886: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

8882: COMMIT;
8883: END LOOP;
8884:
8885:
8886: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
8887: (p_app_short_name => 'MSC',
8888: p_error_code => 'MSC_PP_DUP_REC_FOR_BATCH_LOAD',
8889: p_message_text => lv_message_text,
8890: p_error_text => lv_error_text);

Line 8932: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

8928: EXECUTE IMMEDIATE lv_sql_stmt
8929: USING v_instance_code;
8930:
8931:
8932: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
8933: (p_app_short_name => 'MSC',
8934: p_error_code => 'MSC_PP_DUP_REC_FOR_XML',
8935: p_message_text => lv_message_text,
8936: p_error_text => lv_error_text);

Line 9021: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

9017: creation_date = v_current_date,
9018: created_by = v_current_user
9019: WHERE rowid = lb_rowid(j);
9020:
9021: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
9022: (p_app_short_name => 'MSC',
9023: p_error_code => 'MSC_PP_NO_DELETION',
9024: p_message_text => lv_message_text,
9025: p_error_text => lv_error_text,

Line 9048: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

9044: USING lv_batch_id,
9045: v_instance_code;
9046:
9047:
9048: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
9049: (p_app_short_name => 'MSC',
9050: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
9051: p_message_text => lv_message_text,
9052: p_error_text => lv_error_text,

Line 9068: lv_return := MSC_ST_UTIL.LOG_ERROR

9064:
9065: lv_where_str := ' AND NVL(deleted_flag,'||NULL_VALUE||') '
9066: ||' NOT IN(1,2)';
9067:
9068: lv_return := MSC_ST_UTIL.LOG_ERROR
9069: (p_table_name => 'MSC_ST_LOCATION_ASSOCIATIONS',
9070: p_instance_code => v_instance_code,
9071: p_row => lv_column_names,
9072: p_severity => G_SEV_WARNING,

Line 9085: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

9081: IF lv_return <> 0 THEN
9082: RAISE ex_logging_err;
9083: END IF;
9084:
9085: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
9086: (p_app_short_name => 'MSC',
9087: p_error_code => 'MSC_PP_COL_VAL_NULL',
9088: p_message_text => lv_message_text,
9089: p_error_text => lv_error_text,

Line 9121: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

9117: USING lv_batch_id,
9118: v_instance_code;
9119:
9120:
9121: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
9122: (p_app_short_name => 'MSC',
9123: p_error_code => 'MSC_PP_INVALID_VALUE',
9124: p_message_text => lv_message_text,
9125: p_error_text => lv_error_text,

Line 9150: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

9146: EXECUTE IMMEDIATE lv_sql_stmt
9147: USING v_instance_code,
9148: lv_batch_id;
9149:
9150: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
9151: (p_app_short_name => 'MSC',
9152: p_error_code => 'MSC_PP_INVALID_VALUE',
9153: p_message_text => lv_message_text,
9154: p_error_text => lv_error_text,

Line 9163: lv_return :=msc_st_util.derive_partner_org_id

9159: RAISE ex_logging_err;
9160: END IF;
9161:
9162: -- Update organization_id
9163: lv_return :=msc_st_util.derive_partner_org_id
9164: (p_table_name =>'MSC_ST_LOCATION_ASSOCIATIONS',
9165: p_org_partner_name =>'ORGANIZATION_CODE',
9166: p_org_partner_id =>'ORGANIZATION_ID',
9167: p_instance_code => v_instance_code,

Line 9200: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

9196:
9197:
9198:
9199:
9200: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
9201: (p_app_short_name => 'MSC',
9202: p_error_code => 'MSC_PP_INVALID_VALUE',
9203: p_message_text => lv_message_text,
9204: p_error_text => lv_error_text,

Line 9213: lv_return :=msc_st_util.derive_partner_org_id

9209: RAISE ex_logging_err;
9210: END IF;
9211:
9212: -- Update sr_tp_id(customer)
9213: lv_return :=msc_st_util.derive_partner_org_id
9214: (p_table_name =>'MSC_ST_LOCATION_ASSOCIATIONS',
9215: p_org_partner_name =>'PARTNER_NAME',
9216: p_org_partner_id =>'SR_TP_ID',
9217: p_instance_code => v_instance_code,

Line 9228: lv_return :=msc_st_util.derive_partner_org_id

9224: RAISE ex_logging_err;
9225: END IF;
9226:
9227: -- Update sr_tp_id(supplier)
9228: lv_return :=msc_st_util.derive_partner_org_id
9229: (p_table_name =>'MSC_ST_LOCATION_ASSOCIATIONS',
9230: p_org_partner_name =>'PARTNER_NAME',
9231: p_org_partner_id =>'SR_TP_ID',
9232: p_instance_code => v_instance_code,

Line 9245: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

9241: RAISE ex_logging_err;
9242: END IF;
9243:
9244:
9245: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
9246: (p_app_short_name => 'MSC',
9247: p_error_code => 'MSC_PP_INVALID_VALUE',
9248: p_message_text => lv_message_text,
9249: p_error_text => lv_error_text,

Line 9258: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_SITE_ID

9254: RAISE ex_logging_err;
9255: END IF;
9256:
9257: -- Derive sr_tp_site_id(Customer)
9258: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_SITE_ID
9259: (p_table_name => 'MSC_ST_LOCATION_ASSOCIATIONS',
9260: p_partner_name => 'PARTNER_NAME',
9261: p_partner_site_code => 'TP_SITE_CODE',
9262: p_partner_site_id => 'SR_TP_SITE_ID',

Line 9277: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_SITE_ID

9273: RAISE ex_logging_err;
9274: END IF;
9275:
9276: -- Derive sr_tp_site_id(Supplier)
9277: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_SITE_ID
9278: (p_table_name => 'MSC_ST_LOCATION_ASSOCIATIONS',
9279: p_partner_name => 'PARTNER_NAME',
9280: p_partner_site_code => 'TP_SITE_CODE',
9281: p_partner_site_id => 'SR_TP_SITE_ID',

Line 9317: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

9313: USING lv_batch_id,
9314: v_instance_code;
9315:
9316: /*
9317: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
9318: (p_app_short_name => 'MSC',
9319: p_error_code => 'MSC_PP_INVALID_VALUE',
9320: p_message_text => lv_message_text,
9321: p_error_text => lv_error_text,

Line 9341: msc_st_util.log_message(lv_sql_stmt);

9337: ||' AND process_flag = '||G_IN_PROCESS
9338: ||' AND sr_instance_code = :v_instance_code';
9339:
9340: IF V_DEBUG THEN
9341: msc_st_util.log_message(lv_sql_stmt);
9342: END IF;
9343: EXECUTE IMMEDIATE lv_sql_stmt
9344: USING lv_batch_id,
9345: v_instance_code;

Line 9457: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG

9453: v_instance_code;
9454:
9455:
9456: -- Set the process flag as Valid and populate instance_id
9457: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG
9458: (p_table_name => 'MSC_ST_LOCATION_ASSOCIATIONS',
9459: p_instance_id => v_instance_id,
9460: p_instance_code => v_instance_code,
9461: p_process_flag => G_VALID,

Line 9472: lv_return := MSC_ST_UTIL.LOG_ERROR

9468: END IF;
9469:
9470: -- At the end calling the LOG_ERROR for logging all
9471: -- errored out records.
9472: lv_return := MSC_ST_UTIL.LOG_ERROR
9473: (p_table_name => 'MSC_ST_LOCATION_ASSOCIATIONS',
9474: p_instance_code => v_instance_code,
9475: p_row => lv_column_names,
9476: p_severity => G_SEV_ERROR,

Line 9490: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

9486: COMMIT;
9487: END LOOP;
9488:
9489:
9490: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
9491: (p_app_short_name => 'MSC',
9492: p_error_code => 'MSC_PP_DUP_REC_FOR_BATCH_LOAD',
9493: p_message_text => lv_message_text,
9494: p_error_text => lv_error_text);

Line 9534: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

9530: EXECUTE IMMEDIATE lv_sql_stmt
9531: USING v_instance_code;
9532:
9533:
9534: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
9535: (p_app_short_name => 'MSC',
9536: p_error_code => 'MSC_PP_DUP_REC_FOR_XML',
9537: p_message_text => lv_message_text,
9538: p_error_text => lv_error_text);

Line 9625: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

9621: created_by = v_current_user
9622: WHERE rowid = lb_rowid(j);
9623:
9624: /*
9625: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
9626: (p_app_short_name => 'MSC',
9627: p_error_code => 'MSC_PP_NO_DELETION',
9628: p_message_text => lv_message_text,
9629: p_error_text => lv_error_text,

Line 9645: msc_st_util.log_message(lv_sql_stmt);

9641: ||' AND batch_id = :lv_batch_id'
9642: ||' AND sr_instance_code = :v_instance_code';
9643:
9644: IF V_DEBUG THEN
9645: msc_st_util.log_message(lv_sql_stmt);
9646: END IF;
9647:
9648: EXECUTE IMMEDIATE lv_sql_stmt
9649: USING lv_batch_id,

Line 9655: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

9651:
9652: */
9653:
9654:
9655: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
9656: (p_app_short_name => 'MSC',
9657: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
9658: p_message_text => lv_message_text,
9659: p_error_text => lv_error_text,

Line 9675: lv_return := MSC_ST_UTIL.LOG_ERROR

9671:
9672: lv_where_str := ' AND NVL(deleted_flag,'||NULL_VALUE||') '
9673: ||' NOT IN(1,2)';
9674:
9675: lv_return := MSC_ST_UTIL.LOG_ERROR
9676: (p_table_name => 'MSC_ST_PARTNER_CONTACTS',
9677: p_instance_code => v_instance_code,
9678: p_row => lv_column_names,
9679: p_severity => G_SEV_WARNING,

Line 9692: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

9688: IF lv_return <> 0 THEN
9689: RAISE ex_logging_err;
9690: END IF;
9691:
9692: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
9693: (p_app_short_name => 'MSC',
9694: p_error_code => 'MSC_PP_COL_VAL_NULL',
9695: p_message_text => lv_message_text,
9696: p_error_text => lv_error_text,

Line 9730: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

9726: USING lv_batch_id,
9727: v_instance_code;
9728:
9729:
9730: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
9731: (p_app_short_name => 'MSC',
9732: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
9733: p_message_text => lv_message_text,
9734: p_error_text => lv_error_text,

Line 9759: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

9755: EXECUTE IMMEDIATE lv_sql_stmt
9756: USING v_instance_code,
9757: lv_batch_id;
9758:
9759: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
9760: (p_app_short_name => 'MSC',
9761: p_error_code => 'MSC_PP_INVALID_VALUE',
9762: p_message_text => lv_message_text,
9763: p_error_text => lv_error_text,

Line 9772: lv_return :=msc_st_util.derive_partner_org_id

9768: RAISE ex_logging_err;
9769: END IF;
9770:
9771: -- Update sr_tp_id(customer)
9772: lv_return :=msc_st_util.derive_partner_org_id
9773: (p_table_name =>'MSC_ST_PARTNER_CONTACTS',
9774: p_org_partner_name =>'PARTNER_NAME',
9775: p_org_partner_id =>'PARTNER_ID',
9776: p_instance_code => v_instance_code,

Line 9787: lv_return :=msc_st_util.derive_partner_org_id

9783: RAISE ex_logging_err;
9784: END IF;
9785:
9786: -- Update sr_tp_id(supplier)
9787: lv_return :=msc_st_util.derive_partner_org_id
9788: (p_table_name =>'MSC_ST_PARTNER_CONTACTS',
9789: p_org_partner_name =>'PARTNER_NAME',
9790: p_org_partner_id =>'PARTNER_ID',
9791: p_instance_code => v_instance_code,

Line 9803: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

9799: IF lv_return <> 0 THEN
9800: RAISE ex_logging_err;
9801: END IF;
9802:
9803: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
9804: (p_app_short_name => 'MSC',
9805: p_error_code => 'MSC_PP_INVALID_VALUE',
9806: p_message_text => lv_message_text,
9807: p_error_text => lv_error_text,

Line 9816: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_SITE_ID

9812: RAISE ex_logging_err;
9813: END IF;
9814:
9815: -- Derive sr_tp_site_id(Customer)
9816: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_SITE_ID
9817: (p_table_name => 'MSC_ST_PARTNER_CONTACTS',
9818: p_partner_name => 'PARTNER_NAME',
9819: p_partner_site_code => 'TP_SITE_CODE',
9820: p_partner_site_id => 'PARTNER_SITE_ID',

Line 9833: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_SITE_ID

9829: RAISE ex_logging_err;
9830: END IF;
9831:
9832: -- Derive sr_tp_site_id(Supplier)
9833: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_SITE_ID
9834: (p_table_name => 'MSC_ST_PARTNER_CONTACTS',
9835: p_partner_name => 'PARTNER_NAME',
9836: p_partner_site_code => 'TP_SITE_CODE',
9837: p_partner_site_id => 'PARTNER_SITE_ID',

Line 9865: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG

9861: RAISE ex_logging_err;
9862: END IF;
9863:
9864: -- Set the process flag as Valid and populate instance_id
9865: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG
9866: (p_table_name => 'MSC_ST_PARTNER_CONTACTS',
9867: p_instance_id => v_instance_id,
9868: p_instance_code => v_instance_code,
9869: p_process_flag => G_VALID,

Line 9880: lv_return := MSC_ST_UTIL.LOG_ERROR

9876: END IF;
9877:
9878: -- At the end calling the LOG_ERROR for logging all
9879: -- errored out records.
9880: lv_return := MSC_ST_UTIL.LOG_ERROR
9881: (p_table_name => 'MSC_ST_PARTNER_CONTACTS',
9882: p_instance_code => v_instance_code,
9883: p_row => lv_column_names,
9884: p_severity => G_SEV_ERROR,

Line 9900: lv_return := MSC_ST_util.GET_ERROR_MESSAGE

9896:
9897:
9898: --Validation for GROUPS IS
9899:
9900: lv_return := MSC_ST_util.GET_ERROR_MESSAGE
9901: (p_app_short_name => 'MSC',
9902: p_error_code => 'MSC_PP_DUP_REC_FOR_XML',
9903: p_message_text => lv_message_text,
9904: p_error_text => lv_error_text);

Line 9931: lv_return := MSC_ST_util.GET_ERROR_MESSAGE

9927:
9928: EXECUTE IMMEDIATE lv_sql_stmt
9929: USING v_instance_code;
9930:
9931: lv_return := MSC_ST_util.GET_ERROR_MESSAGE
9932: (p_app_short_name => 'MSC',
9933: p_error_code => 'MSC_PP_DUP_REC_FOR_BATCH_LOAD',
9934: p_message_text => lv_message_text,
9935: p_error_text => lv_error_text);

Line 10036: lv_return := MSC_ST_util.GET_ERROR_MESSAGE

10032: created_by = v_current_user
10033: WHERE rowid = lb_rowid(j);
10034:
10035: -- Set the message
10036: lv_return := MSC_ST_util.GET_ERROR_MESSAGE
10037: (p_app_short_name => 'MSC',
10038: p_error_code => 'MSC_PP_NO_DELETION',
10039: p_message_text => lv_message_text,
10040: p_error_text => lv_error_text,

Line 10066: lv_return := MSC_ST_util.GET_ERROR_MESSAGE

10062: EXECUTE IMMEDIATE lv_sql_stmt USING lv_batch_id,v_instance_code;
10063:
10064: -- Set the message for deleted flag
10065:
10066: lv_return := MSC_ST_util.GET_ERROR_MESSAGE
10067: (p_app_short_name => 'MSC',
10068: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
10069: p_message_text => lv_message_text,
10070: p_error_text => lv_error_text,

Line 10086: lv_return := MSC_ST_util.LOG_ERROR

10082:
10083: lv_where_str :=
10084: ' AND NVL(deleted_flag,'||NULL_VALUE||') NOT IN(1,2)';
10085:
10086: lv_return := MSC_ST_util.LOG_ERROR
10087: (p_table_name => 'MSC_ST_GROUPS',
10088: p_instance_code => v_instance_code,
10089: p_row => lv_column_names,
10090: p_severity => G_SEV_WARNING,

Line 10105: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

10101: END IF;
10102:
10103: -- Set the error message for invalid group type
10104:
10105: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
10106: (p_app_short_name => 'MSC',
10107: p_error_code => 'MSC_PP_INVALID_VALUE',
10108: p_message_text => lv_message_text,
10109: p_error_text => lv_error_text,

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

10140: -- 3.Contact Doc URL
10141: -- 4.Group Owner Id.
10142:
10143: lv_return :=
10144: MSC_ST_util.GET_ERROR_MESSAGE (p_app_short_name => 'MSC',
10145: p_error_code => 'MSC_PP_COL_VAL_NULL',
10146: p_message_text => lv_message_text,
10147: p_error_text => lv_error_text,
10148: p_token1 => 'COLUMN_NAME',

Line 10182: lv_return := MSC_ST_util.GET_ERROR_MESSAGE

10178: v_instance_code;
10179:
10180: -- Set the error message for DISABLE_DATE should be greater than EFFECTIVE_DATE
10181:
10182: lv_return := MSC_ST_util.GET_ERROR_MESSAGE
10183: (p_app_short_name => 'MSC',
10184: p_error_code => 'MSC_PP_END_GT_ST_DATE',
10185: p_message_text => lv_message_text,
10186: p_error_text => lv_error_text);

Line 10236: lv_return := MSC_ST_util.GET_ERROR_MESSAGE

10232:
10233:
10234: -- Error out the invalid Contact User Name
10235:
10236: lv_return := MSC_ST_util.GET_ERROR_MESSAGE
10237: (p_app_short_name => 'MSC',
10238: p_error_code => 'MSC_PP_INVALID_VALUE',
10239: p_message_text => lv_message_text,
10240: p_error_text => lv_error_text,

Line 10270: lv_return := MSC_ST_util.DERIVE_GROUP_ID

10266: v_instance_code;
10267:
10268: --DERIVE GROUP_ID
10269:
10270: lv_return := MSC_ST_util.DERIVE_GROUP_ID
10271: (p_table_name =>'MSC_ST_GROUPS',
10272: p_grp_col_name => 'GROUP_NAME',
10273: p_grp_col_id => 'GROUP_ID',
10274: p_instance_code => v_instance_code,

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

10284: END IF;
10285:
10286: select fnd_global.user_id into lv_user_id from dual;
10287:
10288: IF NOT MSC_ST_util.IS_OPERATOR(lv_user_id) THEN
10289: lv_return := MSC_ST_util.GET_ERROR_MESSAGE
10290: (p_app_short_name => 'MSC',
10291: p_error_code => 'MSC_PP_INVALID_VALUE',
10292: p_message_text => lv_message_text,

Line 10289: lv_return := MSC_ST_util.GET_ERROR_MESSAGE

10285:
10286: select fnd_global.user_id into lv_user_id from dual;
10287:
10288: IF NOT MSC_ST_util.IS_OPERATOR(lv_user_id) THEN
10289: lv_return := MSC_ST_util.GET_ERROR_MESSAGE
10290: (p_app_short_name => 'MSC',
10291: p_error_code => 'MSC_PP_INVALID_VALUE',
10292: p_message_text => lv_message_text,
10293: p_error_text => lv_error_text,

Line 10383: lv_return := MSC_ST_util.SET_PROCESS_FLAG

10379:
10380:
10381: -- Set the process flag as Valid and derive sr_instance_id
10382:
10383: lv_return := MSC_ST_util.SET_PROCESS_FLAG
10384: (p_table_name => 'MSC_ST_GROUPS',
10385: p_instance_id => v_instance_id,
10386: p_instance_code => v_instance_code,
10387: p_process_flag => G_VALID,

Line 10398: lv_return := MSC_ST_util.LOG_ERROR

10394: END IF;
10395:
10396: -- Inserting all the errored out records into MSC_ERRORS
10397:
10398: lv_return := MSC_ST_util.LOG_ERROR
10399: (p_table_name => 'MSC_ST_GROUPS',
10400: p_instance_code => v_instance_code,
10401: p_row => lv_column_names,
10402: p_severity => G_SEV_ERROR,

Line 10566: lv_return := MSC_ST_util.GET_ERROR_MESSAGE

10562: END LOOP;
10563:
10564: --Validation for GROUP COMPANIES IS
10565:
10566: lv_return := MSC_ST_util.GET_ERROR_MESSAGE
10567: (p_app_short_name => 'MSC',
10568: p_error_code => 'MSC_PP_DUP_REC_FOR_XML',
10569: p_message_text => lv_message_text,
10570: p_error_text => lv_error_text);

Line 10598: lv_return := MSC_ST_util.GET_ERROR_MESSAGE

10594:
10595: EXECUTE IMMEDIATE lv_sql_stmt
10596: USING v_instance_code;
10597:
10598: lv_return := MSC_ST_util.GET_ERROR_MESSAGE
10599: (p_app_short_name => 'MSC',
10600: p_error_code => 'MSC_PP_DUP_REC_FOR_BATCH_LOAD',
10601: p_message_text => lv_message_text,
10602: p_error_text => lv_error_text);

Line 10704: lv_return := MSC_ST_util.GET_ERROR_MESSAGE

10700:
10701:
10702: -- Set the message for no deletion is allowed.
10703:
10704: lv_return := MSC_ST_util.GET_ERROR_MESSAGE
10705: (p_app_short_name => 'MSC',
10706: p_error_code => 'MSC_PP_NO_DELETION',
10707: p_message_text => lv_message_text,
10708: p_error_text => lv_error_text,

Line 10734: lv_return := MSC_ST_util.GET_ERROR_MESSAGE

10730: EXECUTE IMMEDIATE lv_sql_stmt USING lv_batch_id,v_instance_code;
10731:
10732: -- Set the message for deleted flag
10733:
10734: lv_return := MSC_ST_util.GET_ERROR_MESSAGE
10735: (p_app_short_name => 'MSC',
10736: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
10737: p_message_text => lv_message_text,
10738: p_error_text => lv_error_text,

Line 10754: lv_return := MSC_ST_util.LOG_ERROR

10750:
10751: lv_where_str :=
10752: ' AND NVL(deleted_flag,'||NULL_VALUE||') NOT IN(1,2)';
10753:
10754: lv_return := MSC_ST_util.LOG_ERROR
10755: (p_table_name => 'MSC_ST_GROUP_COMPANIES',
10756: p_instance_code => v_instance_code,
10757: p_row => lv_column_names,
10758: p_severity => G_SEV_WARNING,

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

10769: END IF;
10770:
10771: -- Effective Date is a mandatory column in MSC_GROUP_COMPANIES , set error message
10772: lv_return :=
10773: MSC_ST_util.GET_ERROR_MESSAGE (p_app_short_name => 'MSC',
10774: p_error_code => 'MSC_PP_COL_VAL_NULL',
10775: p_message_text => lv_message_text,
10776: p_error_text => lv_error_text,
10777: p_token1 => 'COLUMN_NAME',

Line 10805: lv_return := MSC_ST_util.GET_ERROR_MESSAGE

10801: v_instance_code;
10802:
10803: -- Set the error message for DISABLE_DATE should be greater than EFFECTIVE_DATE
10804:
10805: lv_return := MSC_ST_util.GET_ERROR_MESSAGE
10806: (p_app_short_name => 'MSC',
10807: p_error_code => 'MSC_PP_END_GT_ST_DATE',
10808: p_message_text => lv_message_text,
10809: p_error_text => lv_error_text);

Line 10837: lv_return := MSC_ST_util.GET_ERROR_MESSAGE

10833: v_instance_code;
10834:
10835: --DERIVE GROUP_ID
10836:
10837: lv_return := MSC_ST_util.GET_ERROR_MESSAGE
10838: (p_app_short_name => 'MSC',
10839: p_error_code => 'MSC_PP_INVALID_VALUE',
10840: p_message_text => lv_message_text,
10841: p_error_text => lv_error_text,

Line 10846: lv_return := MSC_ST_util.DERIVE_GROUP_ID

10842: p_token1 => 'COLUMN_NAME',
10843: p_token_value1 => 'GROUP_NAME');
10844:
10845:
10846: lv_return := MSC_ST_util.DERIVE_GROUP_ID
10847: (p_table_name =>'MSC_ST_GROUP_COMPANIES',
10848: p_grp_col_name => 'GROUP_NAME',
10849: p_grp_col_id => 'GROUP_ID',
10850: p_instance_code => v_instance_code,

Line 10868: lv_return := MSC_ST_util.GET_ERROR_MESSAGE

10864: -- Only group owner or operator can update
10865:
10866: select fnd_global.user_id into lv_user_id from dual;
10867:
10868: lv_return := MSC_ST_util.GET_ERROR_MESSAGE
10869: (p_app_short_name => 'MSC',
10870: p_error_code => 'MSC_PP_INVALID_VALUE',
10871: p_message_text => lv_message_text,
10872: p_error_text => lv_error_text,

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

10878: END IF;
10879:
10880: -- changes
10881:
10882: IF NOT MSC_ST_util.IS_OPERATOR(lv_user_id) THEN
10883:
10884: v_sql_stmt := 76;
10885: lv_sql_stmt :=
10886: 'UPDATE msc_st_group_companies msg'

Line 10932: lv_return := MSC_ST_util.GET_ERROR_MESSAGE

10928: lv_batch_id;
10929:
10930: -- Error out the invalid company Name
10931:
10932: lv_return := MSC_ST_util.GET_ERROR_MESSAGE
10933: (p_app_short_name => 'MSC',
10934: p_error_code => 'MSC_PP_INVALID_VALUE',
10935: p_message_text => lv_message_text,
10936: p_error_text => lv_error_text,

Line 10965: lv_return := MSC_ST_util.GET_ERROR_MESSAGE

10961: v_instance_code;
10962:
10963: -- Error out the invalid Contact User Name
10964:
10965: lv_return := MSC_ST_util.GET_ERROR_MESSAGE
10966: (p_app_short_name => 'MSC',
10967: p_error_code => 'MSC_PP_INVALID_VALUE',
10968: p_message_text => lv_message_text,
10969: p_error_text => lv_error_text,

Line 10989: lv_return := MSC_ST_util.GET_ERROR_MESSAGE

10985: ||' AND batch_id = :lv_batch_id'
10986: ||' AND sr_instance_code = :v_instance_code'
10987: ||' AND process_flag = '||G_IN_PROCESS;
10988:
10989: lv_return := MSC_ST_util.GET_ERROR_MESSAGE
10990: (p_app_short_name => 'MSC',
10991: p_error_code => 'MSC_PP_COL_REF_NOT_EXIST',
10992: p_message_text => lv_message_text,
10993: p_error_text => lv_error_text,

Line 11043: lv_return := MSC_ST_util.SET_PROCESS_FLAG

11039: END IF;
11040:
11041: -- Set the process flag as Valid and derive sr_instance_id
11042:
11043: lv_return := MSC_ST_util.SET_PROCESS_FLAG
11044: (p_table_name => 'MSC_ST_GROUP_COMPANIES',
11045: p_instance_id => v_instance_id,
11046: p_instance_code => v_instance_code,
11047: p_process_flag => G_VALID,

Line 11058: lv_return := MSC_ST_util.LOG_ERROR

11054: END IF;
11055:
11056: -- Inserting all the errored out records into MSC_ERRORS
11057:
11058: lv_return := MSC_ST_util.LOG_ERROR
11059: (p_table_name => 'MSC_ST_GROUP_COMPANIES',
11060: p_instance_code => v_instance_code,
11061: p_row => lv_column_names,
11062: p_severity => G_SEV_ERROR,

Line 11259: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

11255: AND sr_instance_code = v_instance_code;
11256:
11257: BEGIN
11258:
11259: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
11260: (p_app_short_name => 'MSC',
11261: p_error_code => 'MSC_PP_DUP_REC_FOR_XML',
11262: p_message_text => lv_message_text,
11263: p_error_text => lv_error_text);

Line 11308: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

11304:
11305: EXECUTE IMMEDIATE lv_sql_stmt
11306: USING v_instance_code;
11307:
11308: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
11309: (p_app_short_name => 'MSC',
11310: p_error_code => 'MSC_PP_DUP_REC_FOR_BATCH_LOAD',
11311: p_message_text => lv_message_text,
11312: p_error_text => lv_error_text);

Line 11411: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

11407: WHERE rowid = lb_rowid(j);
11408:
11409: -- set the error message
11410:
11411: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
11412: (p_app_short_name => 'MSC',
11413: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
11414: p_message_text => lv_message_text,
11415: p_error_text => lv_error_text,

Line 11430: lv_return := MSC_ST_UTIL.LOG_ERROR

11426: ' AND NVL(deleted_flag,'||NULL_VALUE||') '
11427: ||' NOT IN(1,2)';
11428: --Log a warning for those records where the deleted_flag has a value other
11429: --than SYS_NO
11430: lv_return := MSC_ST_UTIL.LOG_ERROR
11431: (p_table_name => 'MSC_ST_CALENDAR_ASSIGNMENTS',
11432: p_instance_code => v_instance_code,
11433: p_row => lv_column_names,
11434: p_severity => G_SEV_WARNING,

Line 11447: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

11443: IF lv_return <> 0 THEN
11444: RAISE ex_logging_err;
11445: END IF;
11446:
11447: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
11448: (p_app_short_name => 'MSC',
11449: p_error_code => 'MSC_PP_INVALID_VALUE',
11450: p_message_text => lv_message_text,
11451: p_error_text => lv_error_text,

Line 11477: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

11473: USING lv_batch_id,
11474: v_instance_code;
11475:
11476:
11477: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
11478: (p_app_short_name => 'MSC',
11479: p_error_code => 'MSC_PP_INVALID_VALUE',
11480: p_message_text => lv_message_text,
11481: p_error_text => lv_error_text,

Line 11509: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

11505: USING lv_batch_id,
11506: v_instance_code;
11507:
11508:
11509: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
11510: (p_app_short_name => 'MSC',
11511: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
11512: p_message_text => lv_message_text,
11513: p_error_text => lv_error_text,

Line 11538: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

11534: EXECUTE IMMEDIATE lv_sql_stmt
11535: USING v_instance_code,
11536: lv_batch_id;
11537:
11538: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
11539: (p_app_short_name => 'MSC',
11540: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
11541: p_message_text => lv_message_text,
11542: p_error_text => lv_error_text,

Line 11568: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

11564: USING v_instance_code,
11565: lv_batch_id;
11566:
11567:
11568: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
11569: (p_app_short_name => 'MSC',
11570: p_error_code => 'MSC_PP_COL_VAL_NULL',
11571: p_message_text => lv_message_text,
11572: p_error_text => lv_error_text,

Line 11603: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

11599: -- We need to check correct association_type is attached to that particular record.
11600: -- 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
11601:
11602:
11603: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
11604: (p_app_short_name => 'MSC',
11605: p_error_code => 'MSC_PP_INVAL_ASSO_COMB',
11606: p_message_text => lv_message_text,
11607: p_error_text => lv_error_text,

Line 11641: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

11637: lv_batch_id;
11638:
11639:
11640:
11641: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
11642: (p_app_short_name => 'MSC',
11643: p_error_code => 'MSC_PP_INVAL_ASSO_COMB',
11644: p_message_text => lv_message_text,
11645: p_error_text => lv_error_text,

Line 11676: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

11672: USING v_instance_code,
11673: lv_batch_id;
11674:
11675:
11676: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
11677: (p_app_short_name => 'MSC',
11678: p_error_code => 'MSC_PP_INVAL_ASSO_COMB',
11679: p_message_text => lv_message_text,
11680: p_error_text => lv_error_text,

Line 11710: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

11706: USING v_instance_code,
11707: lv_batch_id;
11708:
11709:
11710: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
11711: (p_app_short_name => 'MSC',
11712: p_error_code => 'MSC_PP_INVAL_ASSO_COMB',
11713: p_message_text => lv_message_text,
11714: p_error_text => lv_error_text,

Line 11744: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

11740: USING v_instance_code,
11741: lv_batch_id;
11742:
11743:
11744: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
11745: (p_app_short_name => 'MSC',
11746: p_error_code => 'MSC_PP_INVAL_ASSO_COMB',
11747: p_message_text => lv_message_text,
11748: p_error_text => lv_error_text,

Line 11783: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

11779: lv_batch_id;
11780:
11781:
11782:
11783: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
11784: (p_app_short_name => 'MSC',
11785: p_error_code => 'MSC_PP_COL_REF_NOT_EXIST',
11786: p_message_text => lv_message_text,
11787: p_error_text => lv_error_text,

Line 11821: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

11817:
11818:
11819: -- Derive partner_id (supplier)
11820:
11821: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
11822: (p_app_short_name => 'MSC',
11823: p_error_code => 'MSC_PP_INVALID_VALUE',
11824: p_message_text => lv_message_text,
11825: p_error_text => lv_error_text,

Line 11833: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID

11829: IF lv_return <> 0 THEN
11830: RAISE ex_logging_err;
11831: END IF;
11832:
11833: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID
11834: (p_table_name => 'MSC_ST_CALENDAR_ASSIGNMENTS',
11835: p_org_partner_name => 'PARTNER_NAME',
11836: p_org_partner_id => 'PARTNER_ID',
11837: p_instance_code => v_instance_code,

Line 11852: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

11848: END IF;
11849:
11850: -- Derive partner_id (Customer)
11851:
11852: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
11853: (p_app_short_name => 'MSC',
11854: p_error_code => 'MSC_PP_INVALID_VALUE',
11855: p_message_text => lv_message_text,
11856: p_error_text => lv_error_text,

Line 11864: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID

11860: IF lv_return <> 0 THEN
11861: RAISE ex_logging_err;
11862: END IF;
11863:
11864: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID
11865: (p_table_name => 'MSC_ST_CALENDAR_ASSIGNMENTS',
11866: p_org_partner_name => 'PARTNER_NAME',
11867: p_org_partner_id => 'PARTNER_ID',
11868: p_instance_code => v_instance_code,

Line 11881: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

11877: IF lv_return <> 0 THEN
11878: RAISE ex_logging_err;
11879: END IF;
11880:
11881: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
11882: (p_app_short_name => 'MSC',
11883: p_error_code => 'MSC_PP_INVALID_VALUE',
11884: p_message_text => lv_message_text,
11885: p_error_text => lv_error_text,

Line 11894: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID

11890: RAISE ex_logging_err;
11891: END IF;
11892:
11893: --Derive Organization_id
11894: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID
11895: (p_table_name => 'MSC_ST_CALENDAR_ASSIGNMENTS',
11896: p_org_partner_name => 'ORGANIZATION_CODE',
11897: p_org_partner_id => 'ORGANIZATION_ID',
11898: p_instance_code => v_instance_code,

Line 11913: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

11909: END IF;
11910:
11911: -- Derive carrier_partner_id (Carrier)
11912:
11913: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
11914: (p_app_short_name => 'MSC',
11915: p_error_code => 'MSC_PP_INVALID_VALUE',
11916: p_message_text => lv_message_text,
11917: p_error_text => lv_error_text,

Line 11925: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID

11921: IF lv_return <> 0 THEN
11922: RAISE ex_logging_err;
11923: END IF;
11924:
11925: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID
11926: (p_table_name => 'MSC_ST_CALENDAR_ASSIGNMENTS',
11927: p_org_partner_name => 'CARRIER_PARTNER_CODE',
11928: p_org_partner_id => 'CARRIER_PARTNER_ID',
11929: p_instance_code => v_instance_code,

Line 11942: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

11938: IF lv_return <> 0 THEN
11939: RAISE ex_logging_err;
11940: END IF;
11941:
11942: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
11943: (p_app_short_name => 'MSC',
11944: p_error_code => 'MSC_PP_INVALID_VALUE',
11945: p_message_text => lv_message_text,
11946: p_error_text => lv_error_text,

Line 11955: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_SITE_ID

11951: RAISE ex_logging_err;
11952: END IF;
11953:
11954: --Derive partner_site_id (Supplier)
11955: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_SITE_ID
11956: (p_table_name => 'MSC_ST_CALENDAR_ASSIGNMENTS',
11957: p_partner_name => 'PARTNER_NAME',
11958: p_partner_site_code => 'PARTNER_SITE_CODE',
11959: p_partner_site_id => 'PARTNER_SITE_ID',

Line 11973: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

11969: IF lv_return <> 0 THEN
11970: RAISE ex_logging_err;
11971: END IF;
11972:
11973: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
11974: (p_app_short_name => 'MSC',
11975: p_error_code => 'MSC_PP_INVALID_VALUE',
11976: p_message_text => lv_message_text,
11977: p_error_text => lv_error_text,

Line 11986: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_SITE_ID

11982: RAISE ex_logging_err;
11983: END IF;
11984:
11985: --Derive partner_site_id (Customer)
11986: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_SITE_ID
11987: (p_table_name => 'MSC_ST_CALENDAR_ASSIGNMENTS',
11988: p_partner_name => 'PARTNER_NAME',
11989: p_partner_site_code => 'PARTNER_SITE_CODE',
11990: p_partner_site_id => 'PARTNER_SITE_ID',

Line 12017: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG

12013: IF NVL(lv_return,0) <> 0 THEN
12014: RAISE ex_logging_err;
12015: END IF;
12016:
12017: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG
12018: (p_table_name => 'MSC_ST_CALENDAR_ASSIGNMENTS',
12019: p_instance_id => v_instance_id,
12020: p_instance_code => v_instance_code,
12021: p_process_flag => G_VALID,

Line 12030: lv_return := MSC_ST_UTIL.LOG_ERROR

12026: IF lv_return <> 0 THEN
12027: RAISE ex_logging_err;
12028: END IF;
12029:
12030: lv_return := MSC_ST_UTIL.LOG_ERROR
12031: (p_table_name => 'MSC_ST_CALENDAR_ASSIGNMENTS',
12032: p_instance_code => v_instance_code,
12033: p_row => lv_column_names,
12034: p_severity => G_SEV_ERROR,

Line 12087: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

12083: AND sr_instance_code = v_instance_code;
12084:
12085: BEGIN
12086:
12087: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
12088: (p_app_short_name => 'MSC',
12089: p_error_code => 'MSC_PP_DUP_REC_FOR_BATCH_LOAD',
12090: p_message_text => lv_message_text,
12091: p_error_text => lv_error_text);

Line 12186: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

12182: WHERE rowid = lb_rowid(j);
12183:
12184:
12185:
12186: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
12187: (p_app_short_name => 'MSC',
12188: p_error_code => 'MSC_PP_NO_DELETION',
12189: p_message_text => lv_message_text,
12190: p_error_text => lv_error_text,

Line 12211: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

12207:
12208: EXECUTE IMMEDIATE lv_sql_stmt
12209: USING 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_COL_VAL_NULL',
12214: p_message_text => lv_message_text,
12215: p_error_text => lv_error_text,

Line 12242: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

12238: EXECUTE IMMEDIATE lv_sql_stmt
12239: USING v_instance_code;
12240:
12241:
12242: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
12243: (p_app_short_name => 'MSC',
12244: p_error_code => 'MSC_PP_NO_UPDATION',
12245: p_message_text => lv_message_text,
12246: p_error_text => lv_error_text,

Line 12251: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

12247: p_token1 => 'TABLE_NAME',
12248: p_token_value1 => 'MSC_ST_SR_LOOKUPS');
12249:
12250:
12251: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
12252: (p_app_short_name => 'MSC',
12253: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
12254: p_message_text => lv_message_text,
12255: p_error_text => lv_error_text,

Line 12271: lv_return := MSC_ST_UTIL.LOG_ERROR

12267:
12268: lv_where_str := ' AND NVL(enabled_flag,'||NULL_VALUE||') '
12269: ||' NOT IN(1,2)';
12270:
12271: lv_return := MSC_ST_UTIL.LOG_ERROR
12272: (p_table_name => 'MSC_ST_SR_LOOKUPS',
12273: p_instance_code => v_instance_code,
12274: p_row => lv_column_names,
12275: p_severity => G_SEV_WARNING,

Line 12287: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

12283: IF lv_return <> 0 THEN
12284: RAISE ex_logging_err;
12285: END IF;
12286:
12287: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
12288: (p_app_short_name => 'MSC',
12289: p_error_code => 'MSC_PP_INVALID_VALUE',
12290: p_message_text => lv_message_text,
12291: p_error_text => lv_error_text,

Line 12332: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG

12328: IF NVL(lv_return,0) <> 0 THEN
12329: RAISE ex_logging_err;
12330: END IF;
12331: -- Set the process flag as Valid and populate instance_id
12332: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG
12333: (p_table_name => 'MSC_ST_SR_LOOKUPS',
12334: p_instance_id => v_instance_id,
12335: p_instance_code => v_instance_code,
12336: p_process_flag => G_VALID,

Line 12347: lv_return := MSC_ST_UTIL.LOG_ERROR

12343:
12344: -- At the end calling the LOG_ERROR for logging all
12345: -- errored out records.
12346:
12347: lv_return := MSC_ST_UTIL.LOG_ERROR
12348: (p_table_name => 'MSC_ST_SR_LOOKUPS',
12349: p_instance_code => v_instance_code,
12350: p_row => lv_column_names,
12351: p_severity => G_SEV_ERROR,

Line 12439: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

12435:
12436:
12437: -- set the message
12438:
12439: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
12440: (p_app_short_name => 'MSC',
12441: p_error_code => 'MSC_PP_COL_VAL_NULL',
12442: p_message_text => lv_message_text,
12443: p_error_text => lv_error_text,

Line 12494: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

12490: USING v_instance_code;
12491:
12492: -- set the message
12493:
12494: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
12495: (p_app_short_name => 'MSC',
12496: p_error_code => 'MSC_PP_END_GT_ST_DATE',
12497: p_message_text => lv_message_text,
12498: p_error_text => lv_error_text );

Line 12537: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG

12533: IF NVL(lv_return,0) <> 0 THEN
12534: RAISE ex_logging_err;
12535: END IF;
12536: -- Set the process flag as Valid and populate instance_id
12537: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG
12538: (p_table_name => 'MSC_ST_CALENDAR_MONTHS',
12539: p_instance_id => v_instance_id,
12540: p_instance_code => v_instance_code,
12541: p_process_flag => G_VALID,

Line 12551: lv_return := MSC_ST_UTIL.LOG_ERROR

12547: END IF;
12548:
12549: -- Inserting all the errored out records into MSC_ERRORS:
12550:
12551: lv_return := MSC_ST_UTIL.LOG_ERROR
12552: (p_table_name => 'MSC_ST_CALENDAR_MONTHS',
12553: p_instance_code => v_instance_code,
12554: p_row => lv_column_names,
12555: p_severity => G_SEV_ERROR,

Line 12613: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

12609: GROUP BY sr_instance_code,visit_name;
12610:
12611: BEGIN
12612: MSC_UTIL.LOG_MSG(MSC_UTIL.G_LVL_STATUS,'IN LOAD VISIT ');
12613: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
12614: (p_app_short_name => 'MSC',
12615: p_error_code => 'MSC_PP_DUP_REC_FOR_BATCH_LOAD',
12616: p_message_text => lv_message_text,
12617: p_error_text => lv_error_text);

Line 12725: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

12721: creation_date = v_current_date,
12722: created_by = v_current_user
12723: WHERE rowid = lb_rowid(j);
12724:
12725: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
12726: (p_app_short_name => 'MSC',
12727: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
12728: p_message_text => lv_message_text,
12729: p_error_text => lv_error_text,

Line 12744: lv_return := MSC_ST_UTIL.LOG_ERROR

12740: ' AND NVL(deleted_flag,'||NULL_VALUE||') '
12741: ||' NOT IN(1,2)';
12742: --Log a warning for those records where the deleted_flag has a value other
12743: --than SYS_NO
12744: lv_return := MSC_ST_UTIL.LOG_ERROR
12745: (p_table_name => 'MSC_ST_VISITS',
12746: p_instance_code => v_instance_code,
12747: p_row => lv_column_names,
12748: p_severity => G_SEV_WARNING,

Line 12761: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

12757: IF lv_return <> 0 THEN
12758: RAISE ex_logging_err;
12759: END IF;
12760:
12761: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
12762: (p_app_short_name => 'MSC',
12763: p_error_code => 'MSC_PP_COL_VAL_NULL',
12764: p_message_text => lv_message_text,
12765: p_error_text => lv_error_text,

Line 12797: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

12793: USING lv_batch_id,v_instance_code;
12794:
12795:
12796:
12797: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
12798: (p_app_short_name => 'MSC',
12799: p_error_code => 'MSC_PP_END_GT_ST_DATE',
12800: p_message_text => lv_message_text,
12801: p_error_text => lv_error_text );

Line 12827: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

12823: USING lv_batch_id,v_instance_code;
12824:
12825: -- Set the message
12826:
12827: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
12828: (p_app_short_name => 'MSC',
12829: p_error_code => 'MSC_PP_INVALID_VALUE',
12830: p_message_text => lv_message_text,
12831: p_error_text => lv_error_text,

Line 12842: MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID(p_table_name => 'MSC_ST_VISITS',

12838:
12839: -- Populate organization id
12840:
12841: lv_return :=
12842: MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID(p_table_name => 'MSC_ST_VISITS',
12843: p_org_partner_name => 'ORGANIZATION_CODE',
12844: p_org_partner_id => 'ORGANIZATION_ID',
12845: p_instance_code => v_instance_code,
12846: p_partner_type => G_ORGANIZATION,

Line 12962: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG

12958: IF NVL(lv_return,0) <> 0 THEN
12959: RAISE ex_logging_err;
12960: END IF;
12961: -- Set the process flag as Valid and populate instance_id
12962: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG
12963: (p_table_name => 'MSC_ST_VISITS',
12964: p_instance_id => v_instance_id,
12965: p_instance_code => v_instance_code,
12966: p_process_flag => G_VALID,

Line 12977: lv_return := MSC_ST_UTIL.LOG_ERROR

12973:
12974: -- At the end calling the LOG_ERROR for logging all
12975: -- errored out records.
12976:
12977: lv_return := MSC_ST_UTIL.LOG_ERROR
12978: (p_table_name => 'MSC_ST_VISITS',
12979: p_instance_code => v_instance_code,
12980: p_row => lv_column_names,
12981: p_severity => G_SEV_ERROR,

Line 13030: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

13026:
13027: BEGIN
13028: MSC_UTIL.LOG_MSG(MSC_UTIL.G_LVL_STATUS,'IN LOAD MILESTONES ');
13029:
13030: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
13031: (p_app_short_name => 'MSC',
13032: p_error_code => 'MSC_PP_DUP_REC_FOR_BATCH_LOAD',
13033: p_message_text => lv_message_text,
13034: p_error_text => lv_error_text);

Line 13144: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

13140: created_by = v_current_user
13141: WHERE rowid = lb_rowid(j);
13142:
13143:
13144: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
13145: (p_app_short_name => 'MSC',
13146: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
13147: p_message_text => lv_message_text,
13148: p_error_text => lv_error_text,

Line 13163: lv_return := MSC_ST_UTIL.LOG_ERROR

13159: ' AND NVL(deleted_flag,'||NULL_VALUE||') '
13160: ||' NOT IN(1,2)';
13161: --Log a warning for those records where the deleted_flag has a value other
13162: --than SYS_NO
13163: lv_return := MSC_ST_UTIL.LOG_ERROR
13164: (p_table_name => 'MSC_ST_WO_MILESTONES',
13165: p_instance_code => v_instance_code,
13166: p_row => lv_column_names,
13167: p_severity => G_SEV_WARNING,

Line 13180: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

13176: IF lv_return <> 0 THEN
13177: RAISE ex_logging_err;
13178: END IF;
13179:
13180: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
13181: (p_app_short_name => 'MSC',
13182: p_error_code => 'MSC_PP_COL_VAL_NULL',
13183: p_message_text => lv_message_text,
13184: p_error_text => lv_error_text,

Line 13214: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

13210:
13211:
13212: -- Set the message
13213:
13214: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
13215: (p_app_short_name => 'MSC',
13216: p_error_code => 'MSC_PP_INVALID_VALUE',
13217: p_message_text => lv_message_text,
13218: p_error_text => lv_error_text,

Line 13229: MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID(p_table_name => 'MSC_ST_WO_MILESTONES',

13225:
13226: -- Populate organization id
13227:
13228: lv_return :=
13229: MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID(p_table_name => 'MSC_ST_WO_MILESTONES',
13230: p_org_partner_name => 'ORGANIZATION_CODE',
13231: p_org_partner_id => 'ORGANIZATION_ID',
13232: p_instance_code => v_instance_code,
13233: p_partner_type => G_ORGANIZATION,

Line 13266: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

13262: EXECUTE IMMEDIATE lv_sql_stmt
13263: USING lv_batch_id,
13264: v_instance_code;
13265:
13266: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
13267: (p_app_short_name => 'MSC',
13268: p_error_code => 'MSC_PP_INVALID_VALUE',
13269: p_message_text => lv_message_text,
13270: p_error_text => lv_error_text,

Line 13306: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG

13302: IF NVL(lv_return,0) <> 0 THEN
13303: RAISE ex_logging_err;
13304: END IF;
13305: -- Set the process flag as Valid and populate instance_id
13306: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG
13307: (p_table_name => 'MSC_ST_WO_MILESTONES',
13308: p_instance_id => v_instance_id,
13309: p_instance_code => v_instance_code,
13310: p_process_flag => G_VALID,

Line 13321: lv_return := MSC_ST_UTIL.LOG_ERROR

13317:
13318: -- At the end calling the LOG_ERROR for logging all
13319: -- errored out records.
13320:
13321: lv_return := MSC_ST_UTIL.LOG_ERROR
13322: (p_table_name => 'MSC_ST_WO_MILESTONES',
13323: p_instance_code => v_instance_code,
13324: p_row => lv_column_names,
13325: p_severity => G_SEV_ERROR,

Line 13371: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

13367:
13368: BEGIN
13369: MSC_UTIL.LOG_MSG(MSC_UTIL.G_LVL_STATUS,'IN LOAD WBS ');
13370:
13371: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
13372: (p_app_short_name => 'MSC',
13373: p_error_code => 'MSC_PP_DUP_REC_FOR_BATCH_LOAD',
13374: p_message_text => lv_message_text,
13375: p_error_text => lv_error_text);

Line 13464: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

13460: created_by = v_current_user
13461: WHERE rowid = lb_rowid(j);
13462:
13463:
13464: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
13465: (p_app_short_name => 'MSC',
13466: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
13467: p_message_text => lv_message_text,
13468: p_error_text => lv_error_text,

Line 13483: lv_return := MSC_ST_UTIL.LOG_ERROR

13479: ' AND NVL(deleted_flag,'||NULL_VALUE||') '
13480: ||' NOT IN(1,2)';
13481: --Log a warning for those records where the deleted_flag has a value other
13482: --than SYS_NO
13483: lv_return := MSC_ST_UTIL.LOG_ERROR
13484: (p_table_name => 'MSC_ST_WORK_BREAKDOWN_STRUCT',
13485: p_instance_code => v_instance_code,
13486: p_row => lv_column_names,
13487: p_severity => G_SEV_WARNING,

Line 13500: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

13496: RAISE ex_logging_err;
13497: END IF;
13498: -- Set the message
13499:
13500: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
13501: (p_app_short_name => 'MSC',
13502: p_error_code => 'MSC_PP_INVALID_VALUE',
13503: p_message_text => lv_message_text,
13504: p_error_text => lv_error_text,

Line 13515: MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID(p_table_name => 'MSC_ST_WORK_BREAKDOWN_STRUCT',

13511:
13512: -- Populate organization id
13513:
13514: lv_return :=
13515: MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID(p_table_name => 'MSC_ST_WORK_BREAKDOWN_STRUCT',
13516: p_org_partner_name => 'ORGANIZATION_CODE',
13517: p_org_partner_id => 'ORGANIZATION_ID',
13518: p_instance_code => v_instance_code,
13519: p_partner_type => G_ORGANIZATION,

Line 13543: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG

13539: IF NVL(lv_return,0) <> 0 THEN
13540: RAISE ex_logging_err;
13541: END IF;
13542: -- Set the process flag as Valid and populate instance_id
13543: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG
13544: (p_table_name => 'MSC_ST_WORK_BREAKDOWN_STRUCT',
13545: p_instance_id => v_instance_id,
13546: p_instance_code => v_instance_code,
13547: p_process_flag => G_VALID,

Line 13558: lv_return := MSC_ST_UTIL.LOG_ERROR

13554:
13555: -- At the end calling the LOG_ERROR for logging all
13556: -- errored out records.
13557:
13558: lv_return := MSC_ST_UTIL.LOG_ERROR
13559: (p_table_name => 'MSC_ST_WORK_BREAKDOWN_STRUCT',
13560: p_instance_code => v_instance_code,
13561: p_row => lv_column_names,
13562: p_severity => G_SEV_ERROR,

Line 13610: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

13606:
13607: BEGIN
13608: MSC_UTIL.LOG_MSG(MSC_UTIL.G_LVL_STATUS,'IN LOAD WO Attributes ');
13609:
13610: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
13611: (p_app_short_name => 'MSC',
13612: p_error_code => 'MSC_PP_DUP_REC_FOR_BATCH_LOAD',
13613: p_message_text => lv_message_text,
13614: p_error_text => lv_error_text);

Line 13743: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

13739: created_by = v_current_user
13740: WHERE rowid = lb_rowid(j);
13741:
13742:
13743: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
13744: (p_app_short_name => 'MSC',
13745: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
13746: p_message_text => lv_message_text,
13747: p_error_text => lv_error_text,

Line 13762: lv_return := MSC_ST_UTIL.LOG_ERROR

13758: ' AND NVL(deleted_flag,'||NULL_VALUE||') '
13759: ||' NOT IN(1,2)';
13760: --Log a warning for those records where the deleted_flag has a value other
13761: --than SYS_NO
13762: lv_return := MSC_ST_UTIL.LOG_ERROR
13763: (p_table_name => 'MSC_ST_WO_ATTRIBUTES',
13764: p_instance_code => v_instance_code,
13765: p_row => lv_column_names,
13766: p_severity => G_SEV_WARNING,

Line 13779: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

13775: IF lv_return <> 0 THEN
13776: RAISE ex_logging_err;
13777: END IF;
13778:
13779: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
13780: (p_app_short_name => 'MSC',
13781: p_error_code => 'MSC_PP_COL_VAL_NULL',
13782: p_message_text => lv_message_text,
13783: p_error_text => lv_error_text,

Line 13813: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

13809:
13810:
13811: -- Set the message
13812:
13813: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
13814: (p_app_short_name => 'MSC',
13815: p_error_code => 'MSC_PP_INVALID_VALUE',
13816: p_message_text => lv_message_text,
13817: p_error_text => lv_error_text,

Line 13828: MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID(p_table_name => 'MSC_ST_WO_ATTRIBUTES',

13824:
13825: -- Populate organization id
13826:
13827: lv_return :=
13828: MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID(p_table_name => 'MSC_ST_WO_ATTRIBUTES',
13829: p_org_partner_name => 'ORGANIZATION_CODE',
13830: p_org_partner_id => 'ORGANIZATION_ID',
13831: p_instance_code => v_instance_code,
13832: p_partner_type => G_ORGANIZATION,

Line 13844: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

13840: if(lv_return <> 0) then
13841: RAISE ex_logging_err;
13842: end if;
13843:
13844: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
13845: (p_app_short_name => 'MSC',
13846: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
13847: p_message_text => lv_message_text,
13848: p_error_text => lv_error_text,

Line 13864: lv_return := MSC_ST_UTIL.LOG_ERROR

13860:
13861: lv_where_str := ' AND NVL(PRODUCES_TO_STOCK,'||NULL_VALUE||') '
13862: ||' NOT IN(1,2)';
13863:
13864: lv_return := MSC_ST_UTIL.LOG_ERROR
13865: (p_table_name => 'MSC_ST_WO_ATTRIBUTES',
13866: p_instance_code => v_instance_code,
13867: p_row => lv_column_names,
13868: p_severity => G_SEV_WARNING,

Line 13882: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

13878: RAISE ex_logging_err;
13879: END IF;
13880:
13881: -- Set the error message
13882: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
13883: (p_app_short_name => 'MSC',
13884: p_error_code => 'MSC_PP_INVALID_VALUE',
13885: p_message_text => lv_message_text,
13886: p_error_text => lv_error_text,

Line 13936: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

13932: EXECUTE IMMEDIATE lv_sql_stmt
13933: USING lv_batch_id,
13934: v_instance_code;
13935:
13936: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
13937: (p_app_short_name => 'MSC',
13938: p_error_code => 'MSC_PP_INVALID_VALUE',
13939: p_message_text => lv_message_text,
13940: p_error_text => lv_error_text,

Line 13965: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

13961:
13962: -- Set the error message
13963: -- Value for PREVIOUS_MILESTONE is validated from msc_wo_milestones table.
13964:
13965: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
13966: (p_app_short_name => 'MSC',
13967: p_error_code => 'MSC_PP_COL_REF_NOT_EXIST',
13968: p_message_text => lv_message_text,
13969: p_error_text => lv_error_text,

Line 14015: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

14011: lv_batch_id;
14012: -- next milestone
14013:
14014: -- Set the error message
14015: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
14016: (p_app_short_name => 'MSC',
14017: p_error_code => 'MSC_PP_INVALID_VALUE',
14018: p_message_text => lv_message_text,
14019: p_error_text => lv_error_text,

Line 14030: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

14026:
14027:
14028: -- Value for NEXT_MILESTONE is validated from msc_wo_milestones table.
14029:
14030: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
14031: (p_app_short_name => 'MSC',
14032: p_error_code => 'MSC_PP_COL_REF_NOT_EXIST',
14033: p_message_text => lv_message_text,
14034: p_error_text => lv_error_text,

Line 14117: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

14113: EXECUTE IMMEDIATE lv_sql_stmt
14114: USING v_instance_id,lv_batch_id,
14115: v_instance_code;
14116:
14117: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
14118: (p_app_short_name => 'MSC',
14119: p_error_code => 'MSC_PP_INVALID_VALUE',
14120: p_message_text => lv_message_text,
14121: p_error_text => lv_error_text,

Line 14157: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG

14153: IF NVL(lv_return,0) <> 0 THEN
14154: RAISE ex_logging_err;
14155: END IF;
14156: -- Set the process flag as Valid and populate instance_id
14157: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG
14158: (p_table_name => 'MSC_ST_WO_ATTRIBUTES',
14159: p_instance_id => v_instance_id,
14160: p_instance_code => v_instance_code,
14161: p_process_flag => G_VALID,

Line 14172: lv_return := MSC_ST_UTIL.LOG_ERROR

14168:
14169: -- At the end calling the LOG_ERROR for logging all
14170: -- errored out records.
14171:
14172: lv_return := MSC_ST_UTIL.LOG_ERROR
14173: (p_table_name => 'MSC_ST_WO_ATTRIBUTES',
14174: p_instance_code => v_instance_code,
14175: p_row => lv_column_names,
14176: p_severity => G_SEV_ERROR,

Line 14224: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

14220:
14221: BEGIN
14222: MSC_UTIL.LOG_MSG(MSC_UTIL.G_LVL_STATUS,'IN LOAD WO TASK hierarchy ');
14223:
14224: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
14225: (p_app_short_name => 'MSC',
14226: p_error_code => 'MSC_PP_DUP_REC_FOR_BATCH_LOAD',
14227: p_message_text => lv_message_text,
14228: p_error_text => lv_error_text);

Line 14343: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

14339: created_by = v_current_user
14340: WHERE rowid = lb_rowid(j);
14341:
14342:
14343: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
14344: (p_app_short_name => 'MSC',
14345: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
14346: p_message_text => lv_message_text,
14347: p_error_text => lv_error_text,

Line 14362: lv_return := MSC_ST_UTIL.LOG_ERROR

14358: ' AND NVL(deleted_flag,'||NULL_VALUE||') '
14359: ||' NOT IN(1,2)';
14360: --Log a warning for those records where the deleted_flag has a value other
14361: --than SYS_NO
14362: lv_return := MSC_ST_UTIL.LOG_ERROR
14363: (p_table_name => 'MSC_ST_WO_TASK_HIERARCHY',
14364: p_instance_code => v_instance_code,
14365: p_row => lv_column_names,
14366: p_severity => G_SEV_WARNING,

Line 14379: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

14375: IF lv_return <> 0 THEN
14376: RAISE ex_logging_err;
14377: END IF;
14378:
14379: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
14380: (p_app_short_name => 'MSC',
14381: p_error_code => 'MSC_PP_COL_VAL_NULL',
14382: p_message_text => lv_message_text,
14383: p_error_text => lv_error_text,

Line 14415: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

14411:
14412:
14413: -- Set the message
14414:
14415: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
14416: (p_app_short_name => 'MSC',
14417: p_error_code => 'MSC_PP_INVALID_VALUE',
14418: p_message_text => lv_message_text,
14419: p_error_text => lv_error_text,

Line 14468: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

14464: USING lv_batch_id,v_instance_code;
14465:
14466: -- Set the message
14467:
14468: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
14469: (p_app_short_name => 'MSC',
14470: p_error_code => 'MSC_PP_INVALID_VALUE',
14471: p_message_text => lv_message_text,
14472: p_error_text => lv_error_text,

Line 14521: /* lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

14517: USING lv_batch_id,v_instance_code;
14518:
14519: -- Set the message
14520:
14521: /* lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
14522: (p_app_short_name => 'MSC',
14523: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
14524: p_message_text => lv_message_text,
14525: p_error_text => lv_error_text,

Line 14541: lv_return := MSC_ST_UTIL.LOG_ERROR

14537:
14538: lv_where_str := ' AND NVL(PRECEDENCE_CONSTRAINT,'||NULL_VALUE||') '
14539: ||' NOT IN(1,2,3)';
14540:
14541: lv_return := MSC_ST_UTIL.LOG_ERROR
14542: (p_table_name => 'MSC_ST_WO_TASK_HIERARCHY',
14543: p_instance_code => v_instance_code,
14544: p_row => lv_column_names,
14545: p_severity => G_SEV_WARNING,

Line 14599: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

14595: EXECUTE IMMEDIATE lv_sql_stmt
14596: USING v_instance_id,lv_batch_id,
14597: v_instance_code;
14598:
14599: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
14600: (p_app_short_name => 'MSC',
14601: p_error_code => 'MSC_PP_INVALID_VALUE',
14602: p_message_text => lv_message_text,
14603: p_error_text => lv_error_text,

Line 14647: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

14643: EXECUTE IMMEDIATE lv_sql_stmt
14644: USING v_instance_id,lv_batch_id,
14645: v_instance_code;
14646:
14647: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
14648: (p_app_short_name => 'MSC',
14649: p_error_code => 'MSC_PP_INVALID_VALUE',
14650: p_message_text => lv_message_text,
14651: p_error_text => lv_error_text,

Line 14674: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

14670: USING lv_batch_id,v_instance_code;
14671:
14672: -- Set the message
14673:
14674: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
14675: (p_app_short_name => 'MSC',
14676: p_error_code => 'MSC_PP_INVALID_VALUE',
14677: p_message_text => lv_message_text,
14678: p_error_text => lv_error_text,

Line 14689: MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID(p_table_name => 'MSC_ST_WO_TASK_HIERARCHY',

14685:
14686: -- Populate organization id
14687:
14688: lv_return :=
14689: MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID(p_table_name => 'MSC_ST_WO_TASK_HIERARCHY',
14690: p_org_partner_name => 'ORGANIZATION_CODE',
14691: p_org_partner_id => 'ORGANIZATION_ID',
14692: p_instance_code => v_instance_code,
14693: p_partner_type => G_ORGANIZATION,

Line 14718: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG

14714: IF NVL(lv_return,0) <> 0 THEN
14715: RAISE ex_logging_err;
14716: END IF;
14717: -- Set the process flag as Valid and populate instance_id
14718: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG
14719: (p_table_name => 'MSC_ST_WO_TASK_HIERARCHY',
14720: p_instance_id => v_instance_id,
14721: p_instance_code => v_instance_code,
14722: p_process_flag => G_VALID,

Line 14733: lv_return := MSC_ST_UTIL.LOG_ERROR

14729:
14730: -- At the end calling the LOG_ERROR for logging all
14731: -- errored out records.
14732:
14733: lv_return := MSC_ST_UTIL.LOG_ERROR
14734: (p_table_name => 'MSC_ST_WO_TASK_HIERARCHY',
14735: p_instance_code => v_instance_code,
14736: p_row => lv_column_names,
14737: p_severity => G_SEV_ERROR,

Line 14785: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

14781:
14782: BEGIN
14783: MSC_UTIL.LOG_MSG(MSC_UTIL.G_LVL_STATUS,'IN LOAD WO OPERATION REL -');
14784:
14785: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
14786: (p_app_short_name => 'MSC',
14787: p_error_code => 'MSC_PP_DUP_REC_FOR_BATCH_LOAD',
14788: p_message_text => lv_message_text,
14789: p_error_text => lv_error_text);

Line 14915: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

14911: created_by = v_current_user
14912: WHERE rowid = lb_rowid(j);
14913:
14914:
14915: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
14916: (p_app_short_name => 'MSC',
14917: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
14918: p_message_text => lv_message_text,
14919: p_error_text => lv_error_text,

Line 14934: lv_return := MSC_ST_UTIL.LOG_ERROR

14930: ' AND NVL(deleted_flag,'||NULL_VALUE||') '
14931: ||' NOT IN(1,2)';
14932: --Log a warning for those records where the deleted_flag has a value other
14933: --than SYS_NO
14934: lv_return := MSC_ST_UTIL.LOG_ERROR
14935: (p_table_name => 'MSC_ST_WO_OPERATION_REL',
14936: p_instance_code => v_instance_code,
14937: p_row => lv_column_names,
14938: p_severity => G_SEV_WARNING,

Line 14951: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

14947: IF lv_return <> 0 THEN
14948: RAISE ex_logging_err;
14949: END IF;
14950:
14951: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
14952: (p_app_short_name => 'MSC',
14953: p_error_code => 'MSC_PP_COL_VAL_NULL',
14954: p_message_text => lv_message_text,
14955: p_error_text => lv_error_text,

Line 14983: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

14979:
14980:
14981: -- Set the message
14982:
14983: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
14984: (p_app_short_name => 'MSC',
14985: p_error_code => 'MSC_PP_INVALID_VALUE',
14986: p_message_text => lv_message_text,
14987: p_error_text => lv_error_text,

Line 15034: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

15030: USING lv_batch_id,v_instance_code;
15031:
15032: -- Set the message
15033:
15034: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
15035: (p_app_short_name => 'MSC',
15036: p_error_code => 'MSC_PP_INVALID_VALUE',
15037: p_message_text => lv_message_text,
15038: p_error_text => lv_error_text,

Line 15083: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

15079: USING lv_batch_id,v_instance_code;
15080:
15081: /* -- Set the message
15082: MSC_UTIL.LOG_MSG(MSC_UTIL.G_LVL_DEBUG_1,lv_sql_stmt);
15083: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
15084: (p_app_short_name => 'MSC',
15085: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
15086: p_message_text => lv_message_text,
15087: p_error_text => lv_error_text,

Line 15103: lv_return := MSC_ST_UTIL.LOG_ERROR

15099:
15100: lv_where_str := ' AND NVL(PRECEDENCE_CONSTRAINT,'||NULL_VALUE||') '
15101: ||' NOT IN(1,2,3)';
15102:
15103: lv_return := MSC_ST_UTIL.LOG_ERROR
15104: (p_table_name => 'MSC_ST_WO_OPERATION_REL',
15105: p_instance_code => v_instance_code,
15106: p_row => lv_column_names,
15107: p_severity => G_SEV_WARNING,

Line 15140: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

15136: EXECUTE IMMEDIATE lv_sql_stmt
15137: USING lv_batch_id,v_instance_code;
15138: -- Set the message
15139:
15140: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
15141: (p_app_short_name => 'MSC',
15142: p_error_code => 'MSC_PP_INVALID_VALUE',
15143: p_message_text => lv_message_text,
15144: p_error_text => lv_error_text,

Line 15155: MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID(p_table_name => 'MSC_ST_WO_OPERATION_REL',

15151:
15152: -- Populate organization id
15153:
15154: lv_return :=
15155: MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID(p_table_name => 'MSC_ST_WO_OPERATION_REL',
15156: p_org_partner_name => 'ORGANIZATION_CODE',
15157: p_org_partner_id => 'ORGANIZATION_ID',
15158: p_instance_code => v_instance_code,
15159: p_partner_type => G_ORGANIZATION,

Line 15193: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

15189: EXECUTE IMMEDIATE lv_sql_stmt
15190: USING v_instance_id,lv_batch_id,
15191: v_instance_code;
15192:
15193: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
15194: (p_app_short_name => 'MSC',
15195: p_error_code => 'MSC_PP_INVALID_VALUE',
15196: p_message_text => lv_message_text,
15197: p_error_text => lv_error_text,

Line 15222: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

15218: --OP code validations
15219:
15220: -- Set the message
15221:
15222: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
15223: (p_app_short_name => 'MSC',
15224: p_error_code => 'MSC_PP_INVALID_VALUE',
15225: p_message_text => lv_message_text,
15226: p_error_text => lv_error_text,

Line 15259: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

15255: USING v_instance_id,lv_batch_id,v_instance_code;
15256:
15257: -- Set the message
15258:
15259: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
15260: (p_app_short_name => 'MSC',
15261: p_error_code => 'MSC_PP_INVALID_VALUE',
15262: p_message_text => lv_message_text,
15263: p_error_text => lv_error_text,

Line 15297: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

15293: USING v_instance_id,lv_batch_id,v_instance_code;
15294:
15295: -- Set the message
15296:
15297: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
15298: (p_app_short_name => 'MSC',
15299: p_error_code => 'MSC_PP_INVALID_VALUE',
15300: p_message_text => lv_message_text,
15301: p_error_text => lv_error_text,

Line 15334: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

15330: USING v_instance_id,lv_batch_id,v_instance_code;
15331:
15332: -- Set the message
15333:
15334: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
15335: (p_app_short_name => 'MSC',
15336: p_error_code => 'MSC_PP_INVALID_VALUE',
15337: p_message_text => lv_message_text,
15338: p_error_text => lv_error_text,

Line 15383: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG

15379: IF NVL(lv_return,0) <> 0 THEN
15380: RAISE ex_logging_err;
15381: END IF;
15382: -- Set the process flag as Valid and populate instance_id
15383: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG
15384: (p_table_name => 'MSC_ST_WO_OPERATION_REL',
15385: p_instance_id => v_instance_id,
15386: p_instance_code => v_instance_code,
15387: p_process_flag => G_VALID,

Line 15398: lv_return := MSC_ST_UTIL.LOG_ERROR

15394:
15395: -- At the end calling the LOG_ERROR for logging all
15396: -- errored out records.
15397:
15398: lv_return := MSC_ST_UTIL.LOG_ERROR
15399: (p_table_name => 'MSC_ST_WO_OPERATION_REL',
15400: p_instance_code => v_instance_code,
15401: p_row => lv_column_names,
15402: p_severity => G_SEV_ERROR,

Line 15474: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

15470: and x.process_flag = G_VALID;
15471:
15472: BEGIN
15473:
15474: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
15475: (p_app_short_name => 'MSC',
15476: p_error_code => 'MSC_PP_DUP_REC_FOR_XML',
15477: p_message_text => lv_message_text,
15478: p_error_text => lv_error_text);

Line 15510: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

15506:
15507: EXECUTE IMMEDIATE lv_sql_stmt
15508: USING v_instance_code;
15509:
15510: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
15511: (p_app_short_name => 'MSC',
15512: p_error_code => 'MSC_PP_DUP_REC_FOR_BATCH_LOAD',
15513: p_message_text => lv_message_text,
15514: p_error_text => lv_error_text);

Line 15601: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

15597: created_by = v_current_user
15598: WHERE rowid = lb_rowid(j);
15599:
15600: /* --Deletion is not allowed on this table.
15601: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
15602: (p_app_short_name => 'MSC',
15603: p_error_code => 'MSC_PP_NO_DELETION',
15604: p_message_text => lv_message_text,
15605: p_error_text => lv_error_text,

Line 15624: msc_st_util.log_message(lv_sql_stmt);

15620: ||' AND batch_id = :lv_batch_id'
15621: ||' AND sr_instance_code = :v_instance_code';
15622:
15623:
15624: msc_st_util.log_message(lv_sql_stmt);
15625: END IF;
15626:
15627: EXECUTE IMMEDIATE lv_sql_stmt
15628: USING lv_batch_id,

Line 15632: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

15628: USING lv_batch_id,
15629: v_instance_code;
15630: */
15631:
15632: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
15633: (p_app_short_name => 'MSC',
15634: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
15635: p_message_text => lv_message_text,
15636: p_error_text => lv_error_text,

Line 15651: lv_return := MSC_ST_UTIL.LOG_ERROR

15647: ' AND NVL(deleted_flag,'||NULL_VALUE||') '
15648: ||' NOT IN(1,2)';
15649: --Log a warning for those records where the deleted_flag has a value other
15650: --than SYS_NO
15651: lv_return := MSC_ST_UTIL.LOG_ERROR
15652: (p_table_name => 'MSC_ST_PLANNERS',
15653: p_instance_code => v_instance_code,
15654: p_row => lv_column_names,
15655: p_severity => G_SEV_WARNING,

Line 15668: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

15664: IF lv_return <> 0 THEN
15665: RAISE ex_logging_err;
15666: END IF;
15667:
15668: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
15669: (p_app_short_name => 'MSC',
15670: p_error_code => 'MSC_PP_COL_VAL_NULL',
15671: p_message_text => lv_message_text,
15672: p_error_text => lv_error_text,

Line 15698: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

15694: EXECUTE IMMEDIATE lv_sql_stmt
15695: USING lv_batch_id,
15696: v_instance_code;
15697:
15698: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
15699: (p_app_short_name => 'MSC',
15700: p_error_code => 'MSC_PP_INVALID_VALUE',
15701: p_message_text => lv_message_text,
15702: p_error_text => lv_error_text,

Line 15728: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

15724: USING lv_batch_id,
15725: v_instance_code;
15726:
15727:
15728: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
15729: (p_app_short_name => 'MSC',
15730: p_error_code => 'MSC_PP_INVALID_VALUE',
15731: p_message_text => lv_message_text,
15732: p_error_text => lv_error_text,

Line 15762: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

15758: v_instance_code;
15759:
15760: -- Set the message
15761:
15762: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
15763: (p_app_short_name => 'MSC',
15764: p_error_code => 'MSC_PP_INVALID_VALUE',
15765: p_message_text => lv_message_text,
15766: p_error_text => lv_error_text,

Line 15776: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID

15772: END IF;
15773:
15774: -- Derive organization_id
15775:
15776: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID
15777: (p_table_name => 'MSC_ST_PLANNERS',
15778: p_org_partner_name => 'ORGANIZATION_CODE',
15779: p_org_partner_id => 'ORGANIZATION_ID',
15780: p_instance_code => v_instance_code,

Line 15792: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

15788: IF lv_return <> 0 THEN
15789: RAISE ex_logging_err;
15790: END IF;
15791: /*
15792: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
15793: (p_app_short_name => 'MSC',
15794: p_error_code => 'MSC_PP_NO_UPDATION',
15795: p_message_text => lv_message_text,
15796: p_error_text => lv_error_text,

Line 15821: msc_st_util.log_message(lv_sql_stmt);

15817: ||' AND msp2.planner_code = msp1.planner_code'
15818: ||' AND msp2.sr_instance_id = ' ||v_instance_id ||')';
15819:
15820:
15821: msc_st_util.log_message(lv_sql_stmt);
15822: END IF;
15823:
15824: EXECUTE IMMEDIATE lv_sql_stmt
15825: USING lv_batch_id,

Line 15861: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG

15857: IF NVL(lv_return,0) <> 0 THEN
15858: RAISE ex_logging_err;
15859: END IF;
15860:
15861: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG
15862: (p_table_name => 'MSC_ST_PLANNERS',
15863: p_instance_id => v_instance_id,
15864: p_instance_code => v_instance_code,
15865: p_process_flag => G_VALID,

Line 15874: lv_return := MSC_ST_UTIL.LOG_ERROR

15870: IF lv_return <> 0 THEN
15871: RAISE ex_logging_err;
15872: END IF;
15873:
15874: lv_return := MSC_ST_UTIL.LOG_ERROR
15875: (p_table_name => 'MSC_ST_PLANNERS',
15876: p_instance_code => v_instance_code,
15877: p_row => lv_column_names,
15878: p_severity => G_SEV_ERROR,

Line 16031: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

16027: AND batch_id = p_batch_id;
16028:
16029: BEGIN
16030:
16031: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
16032: (p_app_short_name => 'MSC',
16033: p_error_code => 'MSC_PP_DUP_REC_FOR_BATCH_LOAD',
16034: p_message_text => lv_message_text,
16035: p_error_text => lv_error_text);

Line 16116: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

16112:
16113: EXECUTE IMMEDIATE lv_sql_stmt
16114: USING v_instance_code;
16115:
16116: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
16117: (p_app_short_name => 'MSC',
16118: p_error_code => 'MSC_PP_DUP_REC_FOR_XML',
16119: p_message_text => lv_message_text,
16120: p_error_text => lv_error_text);

Line 16256: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

16252: creation_date = v_current_date,
16253: created_by = v_current_user
16254: WHERE rowid = lb_rowid(j);
16255:
16256: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
16257: (p_app_short_name => 'MSC',
16258: p_error_code => 'MSC_PP_NO_DELETION',
16259: p_message_text => lv_message_text,
16260: p_error_text => lv_error_text,

Line 16285: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

16281: v_instance_code;
16282:
16283: -- set the message
16284:
16285: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
16286: (p_app_short_name => 'MSC',
16287: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
16288: p_message_text => lv_message_text,
16289: p_error_text => lv_error_text,

Line 16305: lv_return := MSC_ST_UTIL.LOG_ERROR

16301:
16302: lv_where_str := ' AND NVL(deleted_flag,'||NULL_VALUE||') '
16303: ||' NOT IN(1,2)';
16304:
16305: lv_return := MSC_ST_UTIL.LOG_ERROR
16306: (p_table_name => 'MSC_ST_INTERORG_SHIP_METHODS',
16307: p_instance_code => v_instance_code,
16308: p_row => lv_column_names,
16309: p_severity => G_SEV_WARNING,

Line 16322: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

16318: IF lv_return <> 0 THEN
16319: RAISE ex_logging_err;
16320: END IF;
16321:
16322: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
16323: (p_app_short_name => 'MSC',
16324: p_error_code => 'MSC_PP_COL_VAL_NULL',
16325: p_message_text => lv_message_text,
16326: p_error_text => lv_error_text,

Line 16354: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

16350: v_instance_code;
16351:
16352: -- Set the message
16353:
16354: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
16355: (p_app_short_name => 'MSC',
16356: p_error_code => 'MSC_PP_INVALID_VALUE',
16357: p_message_text => lv_message_text,
16358: p_error_text => lv_error_text,

Line 16368: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID

16364: END IF;
16365:
16366: -- Derive from_organization_id
16367:
16368: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID
16369: (p_table_name => 'MSC_ST_INTERORG_SHIP_METHODS',
16370: p_org_partner_name => 'FROM_ORGANIZATION_CODE',
16371: p_org_partner_id => 'FROM_ORGANIZATION_ID',
16372: p_instance_code => v_instance_code,

Line 16404: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

16400: v_instance_code;
16401:
16402: -- Set the message
16403:
16404: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
16405: (p_app_short_name => 'MSC',
16406: p_error_code => 'MSC_PP_INVALID_VALUE',
16407: p_message_text => lv_message_text,
16408: p_error_text => lv_error_text,

Line 16418: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID

16414: END IF;
16415:
16416: -- Derive to_organization_id
16417:
16418: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID
16419: (p_table_name => 'MSC_ST_INTERORG_SHIP_METHODS',
16420: p_org_partner_name => 'TO_ORGANIZATION_CODE',
16421: p_org_partner_id => 'TO_ORGANIZATION_ID',
16422: p_instance_code => v_instance_code,

Line 16498: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

16494:
16495:
16496: -- if from or to location code was provided, error out if doesn't exists in local id.
16497:
16498: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
16499: (p_app_short_name => 'MSC',
16500: p_error_code => 'MSC_PP_INVALID_VALUE',
16501: p_message_text => lv_message_text,
16502: p_error_text => lv_error_text,

Line 16531: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

16527: USING lv_batch_id,
16528: v_instance_code;
16529:
16530:
16531: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
16532: (p_app_short_name => 'MSC',
16533: p_error_code => 'MSC_PP_INVALID_VALUE',
16534: p_message_text => lv_message_text,
16535: p_error_text => lv_error_text,

Line 16682: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

16678: -- records should either have organization id's populated or location id's populated or both.
16679:
16680: -- Set the message
16681:
16682: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
16683: (p_app_short_name => 'MSC',
16684: p_error_code => 'MSC_PP_INVALID_VALUE',
16685: p_message_text => lv_message_text,
16686: p_error_text => lv_error_text,

Line 16721: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

16717: v_instance_code;
16718:
16719:
16720: -- Set the message
16721: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
16722: (p_app_short_name => 'MSC',
16723: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
16724: p_message_text => lv_message_text,
16725: p_error_text => lv_error_text,

Line 16735: lv_return := MSC_ST_UTIL.LOG_ERROR

16731:
16732: lv_where_str := ' AND NVL(default_flag,'||NULL_VALUE||') '
16733: ||' NOT IN(1,2)';
16734:
16735: lv_return := MSC_ST_UTIL.LOG_ERROR
16736: (p_table_name => 'MSC_ST_INTERORG_SHIP_METHODS',
16737: p_instance_code => v_instance_code,
16738: p_row => lv_column_names,
16739: p_severity => G_SEV_WARNING,

Line 16753: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

16749: RAISE ex_logging_err;
16750: END IF;
16751:
16752:
16753: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
16754: (p_app_short_name => 'MSC',
16755: p_error_code => 'MSC_PP_DEFAULT_SHIP_METHOD',
16756: p_message_text => lv_message_text,
16757: p_error_text => lv_error_text,

Line 16825: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

16821: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_id,
16822: lv_batch_id,
16823: v_instance_code;
16824:
16825: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
16826: (p_app_short_name => 'MSC',
16827: p_error_code => 'MSC_PP_INVALID_VALUE',
16828: p_message_text => lv_message_text,
16829: p_error_text => lv_error_text,

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

16836:
16837: -- Validate Volume UOM
16838:
16839: lv_return :=
16840: MSC_ST_UTIL.VALIDATE_UOM (p_table_name => 'MSC_ST_INTERORG_SHIP_METHODS',
16841: p_uom_col_name => 'VOLUME_UOM',
16842: p_instance_id => v_instance_id,
16843: p_instance_code => v_instance_code,
16844: p_severity => G_SEV3_ERROR,

Line 16854: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

16850: if(lv_return <> 0) then
16851: RAISE ex_logging_err;
16852: end if;
16853:
16854: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
16855: (p_app_short_name => 'MSC',
16856: p_error_code => 'MSC_PP_INVALID_VALUE',
16857: p_message_text => lv_message_text,
16858: p_error_text => lv_error_text,

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

16865:
16866: -- Validate Weight UOM
16867:
16868: lv_return :=
16869: MSC_ST_UTIL.VALIDATE_UOM (p_table_name => 'MSC_ST_INTERORG_SHIP_METHODS',
16870: p_uom_col_name => 'WEIGHT_UOM',
16871: p_instance_id => v_instance_id,
16872: p_instance_code => v_instance_code,
16873: p_severity => G_SEV3_ERROR,

Line 16898: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG

16894: RAISE ex_logging_err;
16895: END IF;
16896:
16897:
16898: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG
16899: (p_table_name => 'MSC_ST_INTERORG_SHIP_METHODS',
16900: p_instance_id => v_instance_id,
16901: p_instance_code => v_instance_code,
16902: p_process_flag => G_VALID,

Line 16925: lv_return := MSC_ST_UTIL.LOG_ERROR

16921:
16922:
16923: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
16924:
16925: lv_return := MSC_ST_UTIL.LOG_ERROR
16926: (p_table_name => 'MSC_ST_INTERORG_SHIP_METHODS',
16927: p_instance_code => v_instance_code,
16928: p_row => lv_column_names,
16929: p_severity => G_SEV_ERROR,

Line 17039: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

17035:
17036: BEGIN
17037:
17038: --Getting the error message text
17039: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
17040: (p_app_short_name => 'MSC',
17041: p_error_code => 'MSC_PP_DUP_REC_FOR_XML',
17042: p_message_text => lv_message_text,
17043: p_error_text => lv_error_text);

Line 17115: msc_st_util.log_message(lv_sql_stmt);

17111: ||' AND msr1.region_type in (10,11) '
17112: ||' AND NVL(msr1.message_id,'||NULL_VALUE||') <> '||NULL_VALUE;
17113:
17114: IF V_DEBUG THEN
17115: msc_st_util.log_message(lv_sql_stmt);
17116: END IF;
17117:
17118: EXECUTE IMMEDIATE lv_sql_stmt
17119: USING v_instance_code; */

Line 17122: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

17118: EXECUTE IMMEDIATE lv_sql_stmt
17119: USING v_instance_code; */
17120:
17121:
17122: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
17123: (p_app_short_name => 'MSC',
17124: p_error_code => 'MSC_PP_DUP_REC_FOR_BATCH_LOAD',
17125: p_message_text => lv_message_text,
17126: p_error_text => lv_error_text);

Line 17238: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

17234: creation_date = v_current_date,
17235: created_by = v_current_user
17236: WHERE rowid = lb_rowid(j);
17237:
17238: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
17239: (p_app_short_name => 'MSC',
17240: p_error_code => 'MSC_PP_NO_DELETION',
17241: p_message_text => lv_message_text,
17242: p_error_text => lv_error_text,

Line 17268: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

17264: v_instance_code;
17265:
17266: -- set the message
17267:
17268: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
17269: (p_app_short_name => 'MSC',
17270: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
17271: p_message_text => lv_message_text,
17272: p_error_text => lv_error_text,

Line 17288: lv_return := MSC_ST_UTIL.LOG_ERROR

17284:
17285: lv_where_str := ' AND NVL(deleted_flag,'||NULL_VALUE||') '
17286: ||' NOT IN(1,2)';
17287:
17288: lv_return := MSC_ST_UTIL.LOG_ERROR
17289: (p_table_name => 'MSC_ST_REGIONS',
17290: p_instance_code => v_instance_code,
17291: p_row => lv_column_names,
17292: p_severity => G_SEV_WARNING,

Line 17306: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

17302: RAISE ex_logging_err;
17303: END IF;
17304:
17305:
17306: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
17307: (p_app_short_name => 'MSC',
17308: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
17309: p_message_text => lv_message_text,
17310: p_error_text => lv_error_text,

Line 17350: /* lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

17346:
17347:
17348: -- write message text here
17349:
17350: /* lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
17351: (p_app_short_name => 'MSC',
17352: p_error_code => 'MSC_PP_POSTAL_CODE_OVERLAP',
17353: p_message_text => lv_message_text,
17354: p_error_text => lv_error_text);

Line 17397: msc_st_util.log_message(lv_sql_stmt);

17393: ||' AND msr1.region_type in (0,1,2,3) ';
17394:
17395:
17396:
17397: msc_st_util.log_message(lv_sql_stmt);
17398:
17399:
17400: EXECUTE IMMEDIATE lv_sql_stmt
17401: USING v_instance_code;

Line 17445: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

17441: USING lv_batch_id,
17442: v_instance_code;
17443:
17444:
17445: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
17446: (p_app_short_name => 'MSC',
17447: p_error_code => 'MSC_PP_NO_UPDATION',
17448: p_message_text => lv_message_text,
17449: p_error_text => lv_error_text,

Line 17584: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG

17580:
17581:
17582: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code, lv_batch_id;
17583:
17584: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG
17585: (p_table_name => 'MSC_ST_REGIONS',
17586: p_instance_id => v_instance_id,
17587: p_instance_code => v_instance_code,
17588: p_process_flag => G_VALID,

Line 17596: lv_return := MSC_ST_UTIL.LOG_ERROR

17592: IF lv_return <> 0 THEN
17593: RAISE ex_logging_err;
17594: END IF;
17595:
17596: lv_return := MSC_ST_UTIL.LOG_ERROR
17597: (p_table_name => 'MSC_ST_REGIONS',
17598: p_instance_code => v_instance_code,
17599: p_row => lv_column_names,
17600: p_severity => G_SEV_ERROR,

Line 17695: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

17691:
17692: -- Validation for Zone Regions
17693:
17694: --Getting the error message text
17695: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
17696: (p_app_short_name => 'MSC',
17697: p_error_code => 'MSC_PP_DUP_REC_FOR_XML',
17698: p_message_text => lv_message_text,
17699: p_error_text => lv_error_text);

Line 17743: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

17739:
17740: EXECUTE IMMEDIATE lv_sql_stmt
17741: USING v_instance_code;
17742:
17743: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
17744: (p_app_short_name => 'MSC',
17745: p_error_code => 'MSC_PP_DUP_REC_FOR_BATCH_LOAD',
17746: p_message_text => lv_message_text,
17747: p_error_text => lv_error_text);

Line 17846: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

17842: creation_date = v_current_date,
17843: created_by = v_current_user
17844: WHERE rowid = lb_rowid(j);
17845:
17846: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
17847: (p_app_short_name => 'MSC',
17848: p_error_code => 'MSC_PP_NO_DELETION',
17849: p_message_text => lv_message_text,
17850: p_error_text => lv_error_text,

Line 17875: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

17871: v_instance_code;
17872:
17873: -- set the message
17874:
17875: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
17876: (p_app_short_name => 'MSC',
17877: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
17878: p_message_text => lv_message_text,
17879: p_error_text => lv_error_text,

Line 17895: lv_return := MSC_ST_UTIL.LOG_ERROR

17891:
17892: lv_where_str := ' AND NVL(deleted_flag,'||NULL_VALUE||') '
17893: ||' NOT IN(1,2)';
17894:
17895: lv_return := MSC_ST_UTIL.LOG_ERROR
17896: (p_table_name => 'MSC_ST_ZONE_REGIONS',
17897: p_instance_code => v_instance_code,
17898: p_row => lv_column_names,
17899: p_severity => G_SEV_WARNING,

Line 17912: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

17908: IF lv_return <> 0 THEN
17909: RAISE ex_logging_err;
17910: END IF;
17911:
17912: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
17913: (p_app_short_name => 'MSC',
17914: p_error_code => 'MSC_PP_COL_VAL_NULL',
17915: p_message_text => lv_message_text,
17916: p_error_text => lv_error_text,

Line 17984: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

17980: EXECUTE IMMEDIATE lv_sql_stmt
17981: USING lv_batch_id,
17982: v_instance_code;
17983:
17984: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
17985: (p_app_short_name => 'MSC',
17986: p_error_code => 'MSC_PP_COL_VAL_NULL',
17987: p_message_text => lv_message_text,
17988: p_error_text => lv_error_text,

Line 18035: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

18031: EXECUTE IMMEDIATE lv_sql_stmt
18032: USING lv_batch_id,
18033: v_instance_code;
18034:
18035: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
18036: (p_app_short_name => 'MSC',
18037: p_error_code => 'MSC_PP_COL_VAL_NULL',
18038: p_message_text => lv_message_text,
18039: p_error_text => lv_error_text,

Line 18193: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG

18189:
18190: END IF;
18191: CLOSE c5 ;
18192:
18193: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG
18194: (p_table_name => 'MSC_ST_ZONE_REGIONS',
18195: p_instance_id => v_instance_id,
18196: p_instance_code => v_instance_code,
18197: p_process_flag => G_VALID,

Line 18205: lv_return := MSC_ST_UTIL.LOG_ERROR

18201: IF lv_return <> 0 THEN
18202: RAISE ex_logging_err;
18203: END IF;
18204:
18205: lv_return := MSC_ST_UTIL.LOG_ERROR
18206: (p_table_name => 'MSC_ST_ZONE_REGIONS',
18207: p_instance_code => v_instance_code,
18208: p_row => lv_column_names,
18209: p_severity => G_SEV_ERROR,

Line 18263: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

18259:
18260: -- validation for Region Locations
18261:
18262: --Getting the error message text
18263: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
18264: (p_app_short_name => 'MSC',
18265: p_error_code => 'MSC_PP_DUP_REC_FOR_XML',
18266: p_message_text => lv_message_text,
18267: p_error_text => lv_error_text);

Line 18316: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

18312: EXECUTE IMMEDIATE lv_sql_stmt
18313: USING v_instance_code;
18314:
18315:
18316: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
18317: (p_app_short_name => 'MSC',
18318: p_error_code => 'MSC_PP_DUP_REC_FOR_BATCH_LOAD',
18319: p_message_text => lv_message_text,
18320: p_error_text => lv_error_text);

Line 18429: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

18425: creation_date = v_current_date,
18426: created_by = v_current_user
18427: WHERE rowid = lb_rowid(j);
18428:
18429: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
18430: (p_app_short_name => 'MSC',
18431: p_error_code => 'MSC_PP_NO_DELETION',
18432: p_message_text => lv_message_text,
18433: p_error_text => lv_error_text,

Line 18458: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

18454: v_instance_code;
18455:
18456: -- set the message
18457:
18458: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
18459: (p_app_short_name => 'MSC',
18460: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
18461: p_message_text => lv_message_text,
18462: p_error_text => lv_error_text,

Line 18478: lv_return := MSC_ST_UTIL.LOG_ERROR

18474:
18475: lv_where_str := ' AND NVL(deleted_flag,'||NULL_VALUE||') '
18476: ||' NOT IN(1,2)';
18477:
18478: lv_return := MSC_ST_UTIL.LOG_ERROR
18479: (p_table_name => 'MSC_ST_REGION_LOCATIONS',
18480: p_instance_code => v_instance_code,
18481: p_row => lv_column_names,
18482: p_severity => G_SEV_WARNING,

Line 18495: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

18491: IF lv_return <> 0 THEN
18492: RAISE ex_logging_err;
18493: END IF;
18494:
18495: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
18496: (p_app_short_name => 'MSC',
18497: p_error_code => 'MSC_PP_COL_VAL_NULL',
18498: p_message_text => lv_message_text,
18499: p_error_text => lv_error_text,

Line 18585: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

18581: USING lv_batch_id,
18582: v_instance_code;
18583:
18584:
18585: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
18586: (p_app_short_name => 'MSC',
18587: p_error_code => 'MSC_PP_NO_UPDATION',
18588: p_message_text => lv_message_text,
18589: p_error_text => lv_error_text,

Line 18691: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG

18687: USING lv_batch_id,
18688: v_instance_code;
18689:
18690: -- Set the process flag as Valid and populate instance_id
18691: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG
18692: (p_table_name => 'MSC_ST_REGION_LOCATIONS',
18693: p_instance_id => v_instance_id,
18694: p_instance_code => v_instance_code,
18695: p_process_flag => G_VALID,

Line 18706: lv_return := MSC_ST_UTIL.LOG_ERROR

18702: END IF;
18703:
18704: -- At the end calling the LOG_ERROR for logging all
18705: -- errored out records.
18706: lv_return := MSC_ST_UTIL.LOG_ERROR
18707: (p_table_name => 'MSC_ST_REGION_LOCATIONS',
18708: p_instance_code => v_instance_code,
18709: p_row => lv_column_names,
18710: p_severity => G_SEV_ERROR,

Line 18766: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

18762:
18763: -- validation for region sites
18764:
18765: --Getting the error message text
18766: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
18767: (p_app_short_name => 'MSC',
18768: p_error_code => 'MSC_PP_DUP_REC_FOR_XML',
18769: p_message_text => lv_message_text,
18770: p_error_text => lv_error_text);

Line 18819: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

18815:
18816: EXECUTE IMMEDIATE lv_sql_stmt
18817: USING v_instance_code;
18818:
18819: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
18820: (p_app_short_name => 'MSC',
18821: p_error_code => 'MSC_PP_DUP_REC_FOR_BATCH_LOAD',
18822: p_message_text => lv_message_text,
18823: p_error_text => lv_error_text);

Line 18932: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

18928: creation_date = v_current_date,
18929: created_by = v_current_user
18930: WHERE rowid = lb_rowid(j);
18931:
18932: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
18933: (p_app_short_name => 'MSC',
18934: p_error_code => 'MSC_PP_NO_DELETION',
18935: p_message_text => lv_message_text,
18936: p_error_text => lv_error_text,

Line 18961: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

18957: v_instance_code;
18958:
18959: -- set the message
18960:
18961: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
18962: (p_app_short_name => 'MSC',
18963: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
18964: p_message_text => lv_message_text,
18965: p_error_text => lv_error_text,

Line 18981: lv_return := MSC_ST_UTIL.LOG_ERROR

18977:
18978: lv_where_str := ' AND NVL(deleted_flag,'||NULL_VALUE||') '
18979: ||' NOT IN(1,2)';
18980:
18981: lv_return := MSC_ST_UTIL.LOG_ERROR
18982: (p_table_name => 'MSC_ST_REGION_SITES',
18983: p_instance_code => v_instance_code,
18984: p_row => lv_column_names,
18985: p_severity => G_SEV_WARNING,

Line 19035: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

19031: EXECUTE IMMEDIATE lv_sql_stmt
19032: USING lv_batch_id,
19033: v_instance_code;
19034:
19035: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
19036: (p_app_short_name => 'MSC',
19037: p_error_code => 'MSC_PP_INVALID_VALUE',
19038: p_message_text => lv_message_text,
19039: p_error_text => lv_error_text,

Line 19048: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_SITE_ID

19044: RAISE ex_logging_err;
19045: END IF;
19046:
19047: --Derive vendor_site_id
19048: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_SITE_ID
19049: (p_table_name => 'MSC_ST_REGION_SITES',
19050: p_partner_name => 'VENDOR_NAME',
19051: p_partner_site_code => 'VENDOR_SITE_CODE',
19052: p_partner_site_id => 'VENDOR_SITE_ID',

Line 19066: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

19062: IF lv_return <> 0 THEN
19063: RAISE ex_logging_err;
19064: END IF;
19065:
19066: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
19067: (p_app_short_name => 'MSC',
19068: p_error_code => 'MSC_PP_NO_UPDATION',
19069: p_message_text => lv_message_text,
19070: p_error_text => lv_error_text,

Line 19116: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG

19112: RAISE ex_logging_err;
19113: END IF;
19114:
19115: -- Set the process flag as Valid and populate instance_id
19116: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG
19117: (p_table_name => 'MSC_ST_REGION_SITES',
19118: p_instance_id => v_instance_id,
19119: p_instance_code => v_instance_code,
19120: p_process_flag => G_VALID,

Line 19131: lv_return := MSC_ST_UTIL.LOG_ERROR

19127: END IF;
19128:
19129: -- At the end calling the LOG_ERROR for logging all
19130: -- errored out records.
19131: lv_return := MSC_ST_UTIL.LOG_ERROR
19132: (p_table_name => 'MSC_ST_REGION_SITES',
19133: p_instance_code => v_instance_code,
19134: p_row => lv_column_names,
19135: p_severity => G_SEV_ERROR,

Line 19241: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

19237:
19238: BEGIN
19239:
19240: --Getting the error message text
19241: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
19242: (p_app_short_name => 'MSC',
19243: p_error_code => 'MSC_PP_DUP_REC_FOR_XML',
19244: p_message_text => lv_message_text,
19245: p_error_text => lv_error_text);

Line 19276: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

19272: EXECUTE IMMEDIATE lv_sql_stmt
19273: USING v_instance_code;
19274:
19275:
19276: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
19277: (p_app_short_name => 'MSC',
19278: p_error_code => 'MSC_PP_DUP_REC_FOR_BATCH_LOAD',
19279: p_message_text => lv_message_text,
19280: p_error_text => lv_error_text);

Line 19362: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

19358: creation_date = v_current_date,
19359: created_by = v_current_user
19360: WHERE rowid = lb_rowid(j);
19361:
19362: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
19363: (p_app_short_name => 'MSC',
19364: p_error_code => 'MSC_PP_NO_DELETION',
19365: p_message_text => lv_message_text,
19366: p_error_text => lv_error_text,

Line 19392: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

19388: EXECUTE IMMEDIATE lv_sql_stmt
19389: USING lv_batch_id,
19390: v_instance_code;
19391:
19392: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
19393: (p_app_short_name => 'MSC',
19394: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
19395: p_message_text => lv_message_text,
19396: p_error_text => lv_error_text,

Line 19412: lv_return := MSC_ST_UTIL.LOG_ERROR

19408: ||' NOT IN(1,2)';
19409:
19410: --Logging a warning for those records where the deleted_flag value
19411: --is other than Yes/No.
19412: lv_return := MSC_ST_UTIL.LOG_ERROR
19413: (p_table_name => 'MSC_ST_CATEGORY_SETS',
19414: p_instance_code => v_instance_code,
19415: p_row => lv_column_names,
19416: p_severity => G_SEV_WARNING,

Line 19429: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

19425: IF lv_return <> 0 THEN
19426: RAISE ex_logging_err;
19427: END IF;
19428:
19429: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
19430: (p_app_short_name => 'MSC',
19431: p_error_code => 'MSC_PP_COL_VAL_NULL',
19432: p_message_text => lv_message_text,
19433: p_error_text => lv_error_text,

Line 19459: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

19455: USING lv_batch_id,
19456: v_instance_code;
19457:
19458:
19459: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
19460: (p_app_short_name => 'MSC',
19461: p_error_code => 'MSC_PP_INVALID_VALUE',
19462: p_message_text => lv_message_text,
19463: p_error_text => lv_error_text,

Line 19489: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

19485: USING lv_batch_id,
19486: v_instance_code;
19487:
19488:
19489: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
19490: (p_app_short_name => 'MSC',
19491: p_error_code => 'MSC_PP_DEFAULT_FLG_INVALID',
19492: p_message_text => lv_message_text,
19493: p_error_text => lv_error_text);

Line 19613: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG

19609:
19610: END IF;
19611: CLOSE c2 ;
19612:
19613: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG
19614: (p_table_name => 'MSC_ST_CATEGORY_SETS',
19615: p_instance_id => v_instance_id,
19616: p_instance_code => v_instance_code,
19617: p_process_flag => G_VALID,

Line 19626: lv_return := MSC_ST_UTIL.LOG_ERROR

19622: IF lv_return <> 0 THEN
19623: RAISE ex_logging_err;
19624: END IF;
19625:
19626: lv_return := MSC_ST_UTIL.LOG_ERROR
19627: (p_table_name => 'MSC_ST_CATEGORY_SETS',
19628: p_instance_code => v_instance_code,
19629: p_row => lv_column_names,
19630: p_severity => G_SEV_ERROR,

Line 19686: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

19682: AND sr_instance_code = v_instance_code;
19683:
19684: BEGIN
19685: --*********Validation for msc_st_units_of_measure***********
19686: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
19687: (p_app_short_name => 'MSC',
19688: p_error_code => 'MSC_PP_DUP_REC_FOR_XML',
19689: p_message_text => lv_message_text,
19690: p_error_text => lv_error_text);

Line 19722: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

19718:
19719: EXECUTE IMMEDIATE lv_sql_stmt
19720: USING v_instance_code;
19721:
19722: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
19723: (p_app_short_name => 'MSC',
19724: p_error_code => 'MSC_PP_DUP_REC_FOR_BATCH_LOAD',
19725: p_message_text => lv_message_text,
19726: p_error_text => lv_error_text);

Line 19813: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

19809: created_by = v_current_user
19810: WHERE rowid = lb_rowid(j);
19811:
19812: --Deletion is not allowed on this table.
19813: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
19814: (p_app_short_name => 'MSC',
19815: p_error_code => 'MSC_PP_NO_DELETION',
19816: p_message_text => lv_message_text,
19817: p_error_text => lv_error_text,

Line 19842: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

19838: EXECUTE IMMEDIATE lv_sql_stmt
19839: USING lv_batch_id,
19840: v_instance_code;
19841:
19842: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
19843: (p_app_short_name => 'MSC',
19844: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
19845: p_message_text => lv_message_text,
19846: p_error_text => lv_error_text,

Line 19861: lv_return := MSC_ST_UTIL.LOG_ERROR

19857: ' AND NVL(deleted_flag,'||NULL_VALUE||') '
19858: ||' NOT IN(1,2)';
19859: --Log a warning for those records where the deleted_flag has a value other
19860: --than SYS_NO
19861: lv_return := MSC_ST_UTIL.LOG_ERROR
19862: (p_table_name => 'MSC_ST_UNITS_OF_MEASURE',
19863: p_instance_code => v_instance_code,
19864: p_row => lv_column_names,
19865: p_severity => G_SEV_WARNING,

Line 19878: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

19874: IF lv_return <> 0 THEN
19875: RAISE ex_logging_err;
19876: END IF;
19877:
19878: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
19879: (p_app_short_name => 'MSC',
19880: p_error_code => 'MSC_PP_COL_VAL_NULL',
19881: p_message_text => lv_message_text,
19882: p_error_text => lv_error_text,

Line 19930: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

19926: v_instance_code;
19927:
19928: --A UOM class can have one and only one base UOM.
19929:
19930: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
19931: (p_app_short_name => 'MSC',
19932: p_error_code => 'MSC_PP_BASE_UOM_INVALID',
19933: p_message_text => lv_message_text,
19934: p_error_text => lv_error_text);

Line 19977: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

19973: EXECUTE IMMEDIATE lv_sql_stmt
19974: USING lv_batch_id,
19975: v_instance_code;
19976:
19977: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
19978: (p_app_short_name => 'MSC',
19979: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
19980: p_message_text => lv_message_text,
19981: p_error_text => lv_error_text,

Line 19995: lv_return := MSC_ST_UTIL.LOG_ERROR

19991: ||' NOT IN(''Y'',''N'' )';
19992: --Log a warning for those records where the base_uom_flag has value
19993: --other than('Y','N')
19994:
19995: lv_return := MSC_ST_UTIL.LOG_ERROR
19996: (p_table_name => 'MSC_ST_UNITS_OF_MEASURE',
19997: p_instance_code => v_instance_code,
19998: p_row => lv_column_names,
19999: p_severity => G_SEV_WARNING,

Line 20025: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG

20021: IF NVL(lv_return,0) <> 0 THEN
20022: RAISE ex_logging_err;
20023: END IF;
20024:
20025: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG
20026: (p_table_name => 'MSC_ST_UNITS_OF_MEASURE',
20027: p_instance_id => v_instance_id,
20028: p_instance_code => v_instance_code,
20029: p_process_flag => G_VALID,

Line 20038: lv_return := MSC_ST_UTIL.LOG_ERROR

20034: IF lv_return <> 0 THEN
20035: RAISE ex_logging_err;
20036: END IF;
20037:
20038: lv_return := MSC_ST_UTIL.LOG_ERROR
20039: (p_table_name => 'MSC_ST_UNITS_OF_MEASURE',
20040: p_instance_code => v_instance_code,
20041: p_row => lv_column_names,
20042: p_severity => G_SEV_ERROR,

Line 20127: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

20123:
20124: BEGIN
20125: --*****Validation for the table msc_st_uom_class_conversions.*****
20126:
20127: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
20128: (p_app_short_name => 'MSC',
20129: p_error_code => 'MSC_PP_DUP_REC_FOR_XML',
20130: p_message_text => lv_message_text,
20131: p_error_text => lv_error_text);

Line 20175: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

20171: EXECUTE IMMEDIATE lv_sql_stmt
20172: USING v_instance_code;
20173:
20174:
20175: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
20176: (p_app_short_name => 'MSC',
20177: p_error_code => 'MSC_PP_DUP_REC_FOR_BATCH_LOAD',
20178: p_message_text => lv_message_text,
20179: p_error_text => lv_error_text);

Line 20216: msc_st_util.log_message(lv_sql_stmt);

20212: ||' AND mcc1.sr_instance_code = :v_instance_code'
20213: ||' AND NVL(mcc1.message_id,'||NULL_VALUE||') = '||NULL_VALUE;
20214:
20215:
20216: msc_st_util.log_message(lv_sql_stmt);
20217:
20218: EXECUTE IMMEDIATE lv_sql_stmt
20219: USING v_instance_code;
20220: */

Line 20322: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

20318: creation_date = v_current_date,
20319: created_by = v_current_user
20320: WHERE rowid = lb_rowid(j);
20321:
20322: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
20323: (p_app_short_name => 'MSC',
20324: p_error_code => 'MSC_PP_NO_DELETION',
20325: p_message_text => lv_message_text,
20326: p_error_text => lv_error_text,

Line 20352: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

20348: EXECUTE IMMEDIATE lv_sql_stmt
20349: USING lv_batch_id,
20350: v_instance_code;
20351:
20352: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
20353: (p_app_short_name => 'MSC',
20354: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
20355: p_message_text => lv_message_text,
20356: p_error_text => lv_error_text,

Line 20371: lv_return := MSC_ST_UTIL.LOG_ERROR

20367: ||' NOT IN(1,2)';
20368:
20369: --Log a warning for those records where the deleted_flag has a value other
20370: --than SYS_NO
20371: lv_return := MSC_ST_UTIL.LOG_ERROR
20372: (p_table_name => 'MSC_ST_UOM_CLASS_CONVERSIONS',
20373: p_instance_code => v_instance_code,
20374: p_row => lv_column_names,
20375: p_severity => G_SEV_WARNING,

Line 20388: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

20384: IF lv_return <> 0 THEN
20385: RAISE ex_logging_err;
20386: END IF;
20387:
20388: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
20389: (p_app_short_name => 'MSC',
20390: p_error_code => 'MSC_PP_COL_VAL_NULL',
20391: p_message_text => lv_message_text,
20392: p_error_text => lv_error_text,

Line 20460: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

20456: EXECUTE IMMEDIATE lv_sql_stmt
20457: USING lv_batch_id,
20458: v_instance_code;
20459:
20460: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
20461: (p_app_short_name => 'MSC',
20462: p_error_code => 'MSC_PP_COL_REF_NOT_EXIST',
20463: p_message_text => lv_message_text,
20464: p_error_text => lv_error_text,

Line 20509: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

20505: USING lv_batch_id,
20506: v_instance_code;
20507:
20508:
20509: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
20510: (p_app_short_name => 'MSC',
20511: p_error_code => 'MSC_PP_COL_REF_NOT_EXIST',
20512: p_message_text => lv_message_text,
20513: p_error_text => lv_error_text,

Line 20556: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

20552: USING lv_batch_id,
20553: v_instance_code;
20554:
20555:
20556: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
20557: (p_app_short_name => 'MSC',
20558: p_error_code => 'MSC_PP_CONV_RT_NEG',
20559: p_message_text => lv_message_text,
20560: p_error_text => lv_error_text,

Line 20586: /* lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

20582: USING lv_batch_id,
20583: v_instance_code;
20584:
20585:
20586: /* lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
20587: (p_app_short_name => 'MSC',
20588: p_error_code => 'MSC_PP_COL_VAL_NULL',
20589: p_message_text => lv_message_text,
20590: p_error_text => lv_error_text,

Line 20613: msc_st_util.log_message(lv_sql_stmt);

20609: ||' AND batch_id = :lv_batch_id'
20610: ||' AND sr_instance_code = :v_instance_code';
20611:
20612:
20613: msc_st_util.log_message(lv_sql_stmt);
20614:
20615: EXECUTE IMMEDIATE lv_sql_stmt
20616: USING lv_batch_id,
20617: v_instance_code;

Line 20619: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

20615: EXECUTE IMMEDIATE lv_sql_stmt
20616: USING lv_batch_id,
20617: v_instance_code;
20618:
20619: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
20620: (p_app_short_name => 'MSC',
20621: p_error_code => 'MSC_PP_INVALID_VALUE',
20622: p_message_text => lv_message_text,
20623: p_error_text => lv_error_text,

Line 20632: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID

20628: RAISE ex_logging_err;
20629: END IF;
20630:
20631: --Derive Organization_id
20632: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID
20633: (p_table_name => 'MSC_ST_UOM_CLASS_CONVERSIONS',
20634: p_org_partner_name => 'ORGANIZATION_CODE',
20635: p_org_partner_id => 'ORGANIZATION_ID',
20636: p_instance_code => v_instance_code,

Line 20675: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

20671: v_instance_code,
20672: lv_batch_id;
20673:
20674:
20675: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
20676: (p_app_short_name => 'MSC',
20677: p_error_code => 'MSC_PP_INVALID_VALUE',
20678: p_message_text => lv_message_text,
20679: p_error_text => lv_error_text,

Line 20728: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG

20724: AND process_flag = G_IN_PROCESS
20725: AND batch_id = lv_batch_id
20726: AND sr_instance_code = v_instance_code;
20727:
20728: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG
20729: (p_table_name => 'MSC_ST_UOM_CLASS_CONVERSIONS',
20730: p_instance_id => v_instance_id,
20731: p_instance_code => v_instance_code,
20732: p_process_flag => G_VALID,

Line 20741: lv_return := MSC_ST_UTIL.LOG_ERROR

20737: IF lv_return <> 0 THEN
20738: RAISE ex_logging_err;
20739: END IF;
20740:
20741: lv_return := MSC_ST_UTIL.LOG_ERROR
20742: (p_table_name => 'MSC_ST_UOM_CLASS_CONVERSIONS',
20743: p_instance_code => v_instance_code,
20744: p_row => lv_column_names,
20745: p_severity => G_SEV_ERROR,

Line 20760: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

20756: END LOOP;
20757:
20758: --Validation check for the table msc_st_uom_class_conversions.
20759:
20760: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
20761: (p_app_short_name => 'MSC',
20762: p_error_code => 'MSC_PP_DUP_REC_FOR_XML',
20763: p_message_text => lv_message_text,
20764: p_error_text => lv_error_text);

Line 20798: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

20794: EXECUTE IMMEDIATE lv_sql_stmt
20795: USING v_instance_code;
20796:
20797:
20798: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
20799: (p_app_short_name => 'MSC',
20800: p_error_code => 'MSC_PP_DUP_REC_FOR_BATCH_LOAD',
20801: p_message_text => lv_message_text,
20802: p_error_text => lv_error_text);

Line 20892: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

20888: creation_date = v_current_date,
20889: created_by = v_current_user
20890: WHERE rowid = lb_rowid(j);
20891:
20892: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
20893: (p_app_short_name => 'MSC',
20894: p_error_code => 'MSC_PP_NO_DELETION',
20895: p_message_text => lv_message_text,
20896: p_error_text => lv_error_text,

Line 20922: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

20918: EXECUTE IMMEDIATE lv_sql_stmt
20919: USING lv_batch_id,
20920: v_instance_code;
20921:
20922: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
20923: (p_app_short_name => 'MSC',
20924: p_error_code => 'MSC_PP_COL_VAL_NULL',
20925: p_message_text => lv_message_text,
20926: p_error_text => lv_error_text,

Line 20954: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

20950: USING lv_batch_id,
20951: v_instance_code;
20952:
20953:
20954: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
20955: (p_app_short_name => 'MSC',
20956: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
20957: p_message_text => lv_message_text,
20958: p_error_text => lv_error_text,

Line 20974: lv_return := MSC_ST_UTIL.LOG_ERROR

20970: ||' NOT IN(1,2)';
20971:
20972: --Log a warning for those records where the deleted_flag has a value other
20973: --than SYS_NO
20974: lv_return := MSC_ST_UTIL.LOG_ERROR
20975: (p_table_name => 'MSC_ST_UOM_CONVERSIONS',
20976: p_instance_code => v_instance_code,
20977: p_row => lv_column_names,
20978: p_severity => G_SEV_WARNING,

Line 20991: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

20987: IF lv_return <> 0 THEN
20988: RAISE ex_logging_err;
20989: END IF;
20990:
20991: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
20992: (p_app_short_name => 'MSC',
20993: p_error_code => 'MSC_PP_COL_VAL_NULL',
20994: p_message_text => lv_message_text,
20995: p_error_text => lv_error_text,

Line 21039: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

21035: EXECUTE IMMEDIATE lv_sql_stmt
21036: USING lv_batch_id,
21037: v_instance_code;
21038:
21039: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
21040: (p_app_short_name => 'MSC',
21041: p_error_code => 'MSC_PP_COL_REF_NOT_EXIST',
21042: p_message_text => lv_message_text,
21043: p_error_text => lv_error_text,

Line 21083: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

21079: USING lv_batch_id,
21080: v_instance_code;
21081:
21082:
21083: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
21084: (p_app_short_name => 'MSC',
21085: p_error_code => 'MSC_PP_CONV_RT_NEG',
21086: p_message_text => lv_message_text,
21087: p_error_text => lv_error_text,

Line 21112: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

21108: EXECUTE IMMEDIATE lv_sql_stmt
21109: USING lv_batch_id,
21110: v_instance_code;
21111:
21112: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
21113: (p_app_short_name => 'MSC',
21114: p_error_code => 'MSC_PP_COL_VAL_NULL',
21115: p_message_text => lv_message_text,
21116: p_error_text => lv_error_text,

Line 21139: msc_st_util.log_message(lv_sql_stmt);

21135: ||' AND batch_id = :lv_batch_id'
21136: ||' AND sr_instance_code = :v_instance_code';
21137:
21138:
21139: msc_st_util.log_message(lv_sql_stmt);
21140:
21141: EXECUTE IMMEDIATE lv_sql_stmt
21142: USING lv_batch_id,
21143: v_instance_code;

Line 21146: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

21142: USING lv_batch_id,
21143: v_instance_code;
21144:
21145:
21146: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
21147: (p_app_short_name => 'MSC',
21148: p_error_code => 'MSC_PP_INVALID_VALUE',
21149: p_message_text => lv_message_text,
21150: p_error_text => lv_error_text,

Line 21159: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID

21155: RAISE ex_logging_err;
21156: END IF;
21157:
21158: --Derive Organization_id
21159: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID
21160: (p_table_name => 'MSC_ST_UOM_CONVERSIONS',
21161: p_org_partner_name => 'ORGANIZATION_CODE',
21162: p_org_partner_id => 'ORGANIZATION_ID',
21163: p_instance_code => v_instance_code,

Line 21202: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

21198: v_instance_code,
21199: lv_batch_id;
21200:
21201:
21202: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
21203: (p_app_short_name => 'MSC',
21204: p_error_code => 'MSC_PP_INVALID_VALUE',
21205: p_message_text => lv_message_text,
21206: p_error_text => lv_error_text,

Line 21261: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG

21257: IF NVL(lv_return,0) <> 0 THEN
21258: RAISE ex_logging_err;
21259: END IF;
21260:
21261: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG
21262: (p_table_name => 'MSC_ST_UOM_CONVERSIONS',
21263: p_instance_id => v_instance_id,
21264: p_instance_code => v_instance_code,
21265: p_process_flag => G_VALID,

Line 21274: lv_return := MSC_ST_UTIL.LOG_ERROR

21270: IF lv_return <> 0 THEN
21271: RAISE ex_logging_err;
21272: END IF;
21273:
21274: lv_return := MSC_ST_UTIL.LOG_ERROR
21275: (p_table_name => 'MSC_ST_UOM_CONVERSIONS',
21276: p_instance_code => v_instance_code,
21277: p_row => lv_column_names,
21278: p_severity => G_SEV_ERROR,

Line 21336: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

21332: AND batch_id = lv_batch_id;
21333:
21334: BEGIN
21335:
21336: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
21337: (p_app_short_name => 'MSC',
21338: p_error_code => 'MSC_PP_DUP_REC_FOR_XML',
21339: p_message_text => lv_message_text,
21340: p_error_text => lv_error_text);

Line 21373: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

21369:
21370: EXECUTE IMMEDIATE lv_sql_stmt
21371: USING v_instance_code;
21372:
21373: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
21374: (p_app_short_name => 'MSC',
21375: p_error_code => 'MSC_PP_DUP_REC_FOR_BATCH_LOAD',
21376: p_message_text => lv_message_text,
21377: p_error_text => lv_error_text);

Line 21481: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

21477: creation_date = v_current_date,
21478: created_by = v_current_user
21479: WHERE rowid = lb_rowid(j);
21480:
21481: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
21482: (p_app_short_name => 'MSC',
21483: p_error_code => 'MSC_PP_INVALID_VALUE',
21484: p_message_text => lv_message_text,
21485: p_error_text => lv_error_text,

Line 21513: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

21509: v_instance_code;
21510:
21511: -- Set message
21512:
21513: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
21514: (p_app_short_name => 'MSC',
21515: p_error_code => 'MSC_PP_NO_DELETION',
21516: p_message_text => lv_message_text,
21517: p_error_text => lv_error_text,

Line 21545: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

21541: v_instance_code;
21542:
21543:
21544:
21545: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
21546: (p_app_short_name => 'MSC',
21547: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
21548: p_message_text => lv_message_text,
21549: p_error_text => lv_error_text,

Line 21564: lv_return := MSC_ST_UTIL.LOG_ERROR

21560: ' AND NVL(deleted_flag,'||NULL_VALUE||') NOT IN(1,2)';
21561:
21562: --Log a warning for those records where the deleted_flag has a value other
21563: --SYS_NO
21564: lv_return := MSC_ST_UTIL.LOG_ERROR
21565: (p_table_name => 'MSC_ST_DESIGNATORS',
21566: p_instance_code => v_instance_code,
21567: p_row => lv_column_names,
21568: p_severity => G_SEV_WARNING,

Line 21581: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

21577: IF lv_return <> 0 THEN
21578: RAISE ex_logging_err;
21579: END IF;
21580:
21581: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
21582: (p_app_short_name => 'MSC',
21583: p_error_code => 'MSC_PP_INVALID_VALUE',
21584: p_message_text => lv_message_text,
21585: p_error_text => lv_error_text,

Line 21594: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID

21590: RAISE ex_logging_err;
21591: END IF;
21592:
21593: --Derive Organization_id
21594: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID
21595: (p_table_name => 'MSC_ST_DESIGNATORS',
21596: p_org_partner_name => 'ORGANIZATION_CODE',
21597: p_org_partner_id => 'ORGANIZATION_ID',
21598: p_instance_code => v_instance_code,

Line 21611: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

21607: IF lv_return <> 0 THEN
21608: RAISE ex_logging_err;
21609: END IF;
21610:
21611: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
21612: (p_app_short_name => 'MSC',
21613: p_error_code => 'MSC_PP_COL_VAL_NULL',
21614: p_message_text => lv_message_text,
21615: p_error_text => lv_error_text,

Line 21642: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

21638: EXECUTE IMMEDIATE lv_sql_stmt
21639: USING lv_batch_id,
21640: v_instance_code;
21641:
21642: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
21643: (p_app_short_name => 'MSC',
21644: p_error_code => 'MSC_PP_INVALID_VALUE',
21645: p_message_text => lv_message_text,
21646: p_error_text => lv_error_text,

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

21653:
21654: -- Validate Demand Class, if value provided it should exists
21655: -- in ODS or staging table
21656: lv_return :=
21657: MSC_ST_UTIL.VALIDATE_DMD_CLASS(p_table_name => 'MSC_ST_DESIGNATORS',
21658: p_dmd_class_column => 'DEMAND_CLASS',
21659: p_instance_id => v_instance_id,
21660: p_instance_code => v_instance_code,
21661: p_severity => G_SEV3_ERROR,

Line 21743: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

21739: USING lv_batch_id,
21740: v_instance_code;
21741:
21742:
21743: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
21744: (p_app_short_name => 'MSC',
21745: p_error_code => 'MSC_PP_INVALID_VALUE',
21746: p_message_text => lv_message_text,
21747: p_error_text => lv_error_text,

Line 21756: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID

21752: RAISE ex_logging_err;
21753: END IF;
21754:
21755: --Derive Customer_id
21756: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID
21757: (p_table_name => 'MSC_ST_DESIGNATORS',
21758: p_org_partner_name => 'CUSTOMER_NAME',
21759: p_org_partner_id => 'CUSTOMER_ID',
21760: p_instance_code => v_instance_code,

Line 21773: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

21769: IF lv_return <> 0 THEN
21770: RAISE ex_logging_err;
21771: END IF;
21772:
21773: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
21774: (p_app_short_name => 'MSC',
21775: p_error_code => 'MSC_PP_INVALID_VALUE',
21776: p_message_text => lv_message_text,
21777: p_error_text => lv_error_text,

Line 21786: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_SITE_ID

21782: RAISE ex_logging_err;
21783: END IF;
21784:
21785: --Derive Bill_id
21786: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_SITE_ID
21787: (p_table_name => 'MSC_ST_DESIGNATORS',
21788: p_partner_name => 'CUSTOMER_NAME',
21789: p_partner_site_code => 'BILL_TO_SITE_CODE',
21790: p_partner_site_id => 'BILL_ID',

Line 21804: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

21800: IF lv_return <> 0 THEN
21801: RAISE ex_logging_err;
21802: END IF;
21803:
21804: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
21805: (p_app_short_name => 'MSC',
21806: p_error_code => 'MSC_PP_INVALID_VALUE',
21807: p_message_text => lv_message_text,
21808: p_error_text => lv_error_text,

Line 21817: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_SITE_ID

21813: RAISE ex_logging_err;
21814: END IF;
21815:
21816: --Derive Ship_id
21817: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_SITE_ID
21818: (p_table_name => 'MSC_ST_DESIGNATORS',
21819: p_partner_name => 'CUSTOMER_NAME',
21820: p_partner_site_code => 'SHIP_TO_SITE_CODE',
21821: p_partner_site_id => 'SHIP_ID',

Line 21849: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

21845: RAISE ex_logging_err;
21846: END IF;
21847:
21848:
21849: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
21850: (p_app_short_name => 'MSC',
21851: p_error_code => 'MSC_PP_COL_VAL_EXISTS',
21852: p_message_text => lv_message_text,
21853: p_error_text => lv_error_text,

Line 21991: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG

21987: v_instance_code;
21988:
21989:
21990:
21991: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG
21992: (p_table_name => 'MSC_ST_DESIGNATORS',
21993: p_instance_id => v_instance_id,
21994: p_instance_code => v_instance_code,
21995: p_process_flag => G_VALID,

Line 22004: lv_return := MSC_ST_UTIL.LOG_ERROR

22000: IF lv_return <> 0 THEN
22001: RAISE ex_logging_err;
22002: END IF;
22003:
22004: lv_return := MSC_ST_UTIL.LOG_ERROR
22005: (p_table_name => 'MSC_ST_DESIGNATORS',
22006: p_instance_code => v_instance_code,
22007: p_row => lv_column_names,
22008: p_severity => G_SEV_ERROR,

Line 22259: msc_st_util.log_message(lv_error_text);

22255: EXIT;
22256: EXCEPTION
22257: WHEN busy THEN
22258: lv_error_text := substr('MSC_CL_PRE_PROCESS.LOAD_ITEM'||'(' ||v_sql_stmt||')'|| SQLERRM, 1, 240);
22259: msc_st_util.log_message(lv_error_text);
22260: dbms_lock.sleep(5);
22261: WHEN OTHERS THEN
22262: lv_error_text := substr('MSC_CL_PRE_PROCESS.LOAD_ITEM'||'(' ||v_sql_stmt||')'|| SQLERRM, 1, 240);
22263: msc_st_util.log_message(lv_error_text);

Line 22263: msc_st_util.log_message(lv_error_text);

22259: msc_st_util.log_message(lv_error_text);
22260: dbms_lock.sleep(5);
22261: WHEN OTHERS THEN
22262: lv_error_text := substr('MSC_CL_PRE_PROCESS.LOAD_ITEM'||'(' ||v_sql_stmt||')'|| SQLERRM, 1, 240);
22263: msc_st_util.log_message(lv_error_text);
22264:
22265: v_sql_stmt := 03;
22266: lv_sql_stmt :=
22267: 'UPDATE msc_st_system_items '

Line 22275: msc_st_util.log_message(lv_sql_stmt);

22271: ||' AND process_flag = '||G_IN_PROCESS
22272: ||' AND sr_instance_code = :v_instance_code';
22273:
22274:
22275: msc_st_util.log_message(lv_sql_stmt);
22276:
22277: EXECUTE IMMEDIATE lv_sql_stmt USING p_batch_id,v_instance_code;
22278: COMMIT;
22279: RETURN;

Line 22307: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

22303:
22304:
22305: -- Set the error message
22306:
22307: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
22308: (p_app_short_name => 'MSC',
22309: p_error_code => 'MSC_PP_COL_VAL_NULL',
22310: p_message_text => lv_message_text,
22311: p_error_text => lv_error_text,

Line 22343: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

22339: v_instance_code;
22340:
22341: -- Set the error message
22342:
22343: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
22344: (p_app_short_name => 'MSC',
22345: p_error_code => 'MSC_PP_NO_DELETION',
22346: p_message_text => lv_message_text,
22347: p_error_text => lv_error_text,

Line 22376: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

22372: v_instance_code;
22373:
22374: -- Set the error message , PIP FIX
22375:
22376: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
22377: (p_app_short_name => 'MSC',
22378: p_error_code => 'MSC_PP_INVALID_VALUE',
22379: p_message_text => lv_message_text,
22380: p_error_text => lv_error_text,

Line 22410: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

22406:
22407: -- create supply flag validation
22408: -- Set the error message
22409:
22410: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
22411: (p_app_short_name => 'MSC',
22412: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
22413: p_message_text => lv_message_text,
22414: p_error_text => lv_error_text,

Line 22443: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

22439: v_instance_code;
22440:
22441: -- Set the message
22442:
22443: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
22444: (p_app_short_name => 'MSC',
22445: p_error_code => 'MSC_PP_INVALID_VALUE',
22446: p_message_text => lv_message_text,
22447: p_error_text => lv_error_text,

Line 22457: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID

22453: END IF;
22454:
22455:
22456: -- Derive organization id
22457: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID
22458: (p_table_name => 'MSC_ST_SYSTEM_ITEMS',
22459: p_org_partner_name => 'ORGANIZATION_CODE',
22460: p_org_partner_id => 'ORGANIZATION_ID',
22461: p_instance_code => v_instance_code,

Line 22501: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

22497:
22498: ---- Changes for SRP legacy collections -----
22499:
22500: -- Set the error message
22501: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
22502: (p_app_short_name => 'MSC',
22503: p_error_code => 'MSC_PP_INVALID_VALUE',
22504: p_message_text => lv_message_text,
22505: p_error_text => lv_error_text,

Line 22535: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

22531: USING lv_batch_id,
22532: v_instance_code;
22533:
22534: -- Set the error message
22535: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
22536: (p_app_short_name => 'MSC',
22537: p_error_code => 'MSC_PP_INVALID_VALUE',
22538: p_message_text => lv_message_text,
22539: p_error_text => lv_error_text,

Line 22575: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

22571:
22572: -- Now check for UOM code if it is Invalid error out
22573: -- Set the error message
22574:
22575: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
22576: (p_app_short_name => 'MSC',
22577: p_error_code => 'MSC_PP_COL_REF_NOT_EXIST',
22578: p_message_text => lv_message_text,
22579: p_error_text => lv_error_text,

Line 22618: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

22614: lv_batch_id;
22615:
22616: -- Set the message
22617:
22618: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
22619: (p_app_short_name => 'MSC',
22620: p_error_code => 'MSC_PP_COL_REF_NOT_EXIST',
22621: p_message_text => lv_message_text,
22622: p_error_text => lv_error_text,

Line 22666: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

22662: lv_batch_id;
22663:
22664: -- Set the message
22665:
22666: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
22667: (p_app_short_name => 'MSC',
22668: p_error_code => 'MSC_PP_COL_REF_NOT_EXIST',
22669: p_message_text => lv_message_text,
22670: p_error_text => lv_error_text,

Line 22712: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

22708: v_instance_code,
22709: lv_batch_id;
22710:
22711: -- Set the error message
22712: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
22713: (p_app_short_name => 'MSC',
22714: p_error_code => 'MSC_PP_INVALID_VALUE',
22715: p_message_text => lv_message_text,
22716: p_error_text => lv_error_text,

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

22724:
22725: -- Update Source org id
22726:
22727: lv_return :=
22728: MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID(p_table_name => 'MSC_ST_SYSTEM_ITEMS',
22729: p_org_partner_name =>'SOURCE_ORG_CODE',
22730: p_org_partner_id =>'SOURCE_ORG_ID',
22731: p_instance_code => v_instance_code,
22732: p_partner_type => G_ORGANIZATION,

Line 22744: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

22740: END IF;
22741:
22742:
22743: -- Set the error message
22744: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
22745: (p_app_short_name => 'MSC',
22746: p_error_code => 'MSC_PP_INVALID_VALUE',
22747: p_message_text => lv_message_text,
22748: p_error_text => lv_error_text,

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

22756:
22757: -- Update primary_supplier_name
22758:
22759: lv_return :=
22760: MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID(p_table_name => 'MSC_ST_SYSTEM_ITEMS',
22761: p_org_partner_name =>'PRIMARY_SUPPLIER_NAME',
22762: p_org_partner_id =>'PRIMARY_SUPPLIER_ID',
22763: p_instance_code => v_instance_code,
22764: p_partner_type => G_VENDOR,

Line 22776: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

22772: END IF;
22773:
22774: -- Set the message
22775:
22776: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
22777: (p_app_short_name => 'MSC',
22778: p_error_code => 'MSC_PP_INVALID_VALUE',
22779: p_message_text => lv_message_text,
22780: p_error_text => lv_error_text,

Line 23111: /* lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

23107:
23108: IF(v_install_msc) THEN
23109: -- Set the message
23110:
23111: /* lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
23112: (p_app_short_name => 'MSC',
23113: p_error_code => 'MSC_PP_INVALID_VALUE',
23114: p_message_text => lv_message_text,
23115: p_error_text => lv_error_text,

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

23121: END IF;
23122:
23123: -- Poplulate base item id
23124: lv_return :=
23125: MSC_ST_UTIL.DERIVE_ITEM_ID(p_table_name => 'MSC_ST_SYSTEM_ITEMS',
23126: p_item_col_name => 'BASE_ITEM_NAME',
23127: p_item_col_id =>'BASE_ITEM_ID',
23128: p_instance_code => v_instance_code,
23129: p_instance_id => v_instance_id,

Line 23145: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

23141: COMMIT;
23142:
23143: -- Set the message
23144:
23145: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
23146: (p_app_short_name => 'MSC',
23147: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
23148: p_message_text => lv_message_text,
23149: p_error_text => lv_error_text,

Line 23165: lv_return := MSC_ST_UTIL.LOG_ERROR

23161:
23162: lv_where_str :=
23163: ' AND NVL(deleted_flag,'||NULL_VALUE||') <>'||SYS_NO;
23164:
23165: lv_return := MSC_ST_UTIL.LOG_ERROR
23166: (p_table_name => 'MSC_ST_SYSTEM_ITEMS',
23167: p_instance_code => v_instance_code,
23168: p_row => lv_column_names,
23169: p_severity => G_SEV_WARNING,

Line 23185: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

23181:
23182:
23183:
23184: -- Set the error message
23185: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
23186: (p_app_short_name => 'MSC',
23187: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
23188: p_message_text => lv_message_text,
23189: p_error_text => lv_error_text,

Line 23205: lv_return := MSC_ST_UTIL.LOG_ERROR

23201: lv_where_str :=
23202: ' AND NVL(lot_control_code,'||NULL_VALUE||')'
23203: ||' NOT IN (1,2)';
23204:
23205: lv_return := MSC_ST_UTIL.LOG_ERROR
23206: (p_table_name => 'MSC_ST_SYSTEM_ITEMS',
23207: p_instance_code => v_instance_code,
23208: p_row => lv_column_names,
23209: p_severity => G_SEV_WARNING,

Line 23223: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

23219: RAISE ex_logging_err;
23220: END IF;
23221:
23222: -- Set the error message
23223: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
23224: (p_app_short_name => 'MSC',
23225: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
23226: p_message_text => lv_message_text,
23227: p_error_text => lv_error_text,

Line 23243: lv_return := MSC_ST_UTIL.LOG_ERROR

23239: lv_where_str :=
23240: ' AND NVL(rounding_control_type,'||NULL_VALUE||')'
23241: ||' NOT IN (1,2)';
23242:
23243: lv_return := MSC_ST_UTIL.LOG_ERROR
23244: (p_table_name => 'MSC_ST_SYSTEM_ITEMS',
23245: p_instance_code => v_instance_code,
23246: p_row => lv_column_names,
23247: p_severity => G_SEV_WARNING,

Line 23261: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

23257: RAISE ex_logging_err;
23258: END IF;
23259:
23260: -- Set the error message
23261: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
23262: (p_app_short_name => 'MSC',
23263: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
23264: p_message_text => lv_message_text,
23265: p_error_text => lv_error_text,

Line 23281: lv_return := MSC_ST_UTIL.LOG_ERROR

23277: lv_where_str :=
23278: ' AND NVL(in_source_plan,'||NULL_VALUE||')'
23279: ||' NOT IN (1,2)';
23280:
23281: lv_return := MSC_ST_UTIL.LOG_ERROR
23282: (p_table_name => 'MSC_ST_SYSTEM_ITEMS',
23283: p_instance_code => v_instance_code,
23284: p_row => lv_column_names,
23285: p_severity => G_SEV_WARNING,

Line 23299: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

23295: RAISE ex_logging_err;
23296: END IF;
23297:
23298: -- Set the error message
23299: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
23300: (p_app_short_name => 'MSC',
23301: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
23302: p_message_text => lv_message_text,
23303: p_error_text => lv_error_text,

Line 23320: lv_return := MSC_ST_UTIL.LOG_ERROR

23316: ' AND NVL(mrp_planning_code,'||NULL_VALUE||')'
23317: ||' NOT IN (3,4,6,7,8,9)';
23318:
23319:
23320: lv_return := MSC_ST_UTIL.LOG_ERROR
23321: (p_table_name => 'MSC_ST_SYSTEM_ITEMS',
23322: p_instance_code => v_instance_code,
23323: p_row => lv_column_names,
23324: p_severity => G_SEV_WARNING,

Line 23338: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

23334: RAISE ex_logging_err;
23335: END IF;
23336:
23337: -- Set the error message
23338: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
23339: (p_app_short_name => 'MSC',
23340: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
23341: p_message_text => lv_message_text,
23342: p_error_text => lv_error_text,

Line 23358: lv_return := MSC_ST_UTIL.LOG_ERROR

23354: lv_where_str :=
23355: ' AND NVL(mrp_calculate_atp_flag,'||NULL_VALUE||')'
23356: ||' NOT IN (1,2)';
23357:
23358: lv_return := MSC_ST_UTIL.LOG_ERROR
23359: (p_table_name => 'MSC_ST_SYSTEM_ITEMS',
23360: p_instance_code => v_instance_code,
23361: p_row => lv_column_names,
23362: p_severity => G_SEV_WARNING,

Line 23376: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

23372: RAISE ex_logging_err;
23373: END IF;
23374:
23375: -- Set the error message
23376: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
23377: (p_app_short_name => 'MSC',
23378: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
23379: p_message_text => lv_message_text,
23380: p_error_text => lv_error_text,

Line 23396: lv_return := MSC_ST_UTIL.LOG_ERROR

23392: lv_where_str :=
23393: ' AND NVL(atp_components_flag ,'||''''||NULL_CHAR||''''||')'
23394: ||' NOT IN (''Y'', ''N'', ''C'', ''R'')'; -- Added C and R as part of bug 12781762
23395:
23396: lv_return := MSC_ST_UTIL.LOG_ERROR
23397: (p_table_name => 'MSC_ST_SYSTEM_ITEMS',
23398: p_instance_code => v_instance_code,
23399: p_row => lv_column_names,
23400: p_severity => G_SEV_WARNING,

Line 23414: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

23410: RAISE ex_logging_err;
23411: END IF;
23412:
23413: -- Set the error message
23414: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
23415: (p_app_short_name => 'MSC',
23416: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
23417: p_message_text => lv_message_text,
23418: p_error_text => lv_error_text,

Line 23433: lv_return := MSC_ST_UTIL.LOG_ERROR

23429:
23430: lv_where_str :=
23431: ' AND NVL(built_in_wip_flag ,'||NULL_VALUE||') NOT IN (1,2)';
23432:
23433: lv_return := MSC_ST_UTIL.LOG_ERROR
23434: (p_table_name => 'MSC_ST_SYSTEM_ITEMS',
23435: p_instance_code => v_instance_code,
23436: p_row => lv_column_names,
23437: p_severity => G_SEV_WARNING,

Line 23451: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

23447: RAISE ex_logging_err;
23448: END IF;
23449:
23450: -- Set the error message
23451: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
23452: (p_app_short_name => 'MSC',
23453: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
23454: p_message_text => lv_message_text,
23455: p_error_text => lv_error_text,

Line 23470: lv_return := MSC_ST_UTIL.LOG_ERROR

23466:
23467: lv_where_str :=
23468: ' AND NVL(purchasing_enabled_flag,'||NULL_VALUE||') NOT IN (1,2) ';
23469:
23470: lv_return := MSC_ST_UTIL.LOG_ERROR
23471: (p_table_name => 'MSC_ST_SYSTEM_ITEMS',
23472: p_instance_code => v_instance_code,
23473: p_row => lv_column_names,
23474: p_severity => G_SEV_WARNING,

Line 23488: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

23484: RAISE ex_logging_err;
23485: END IF;
23486:
23487: -- Set the error message
23488: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
23489: (p_app_short_name => 'MSC',
23490: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
23491: p_message_text => lv_message_text,
23492: p_error_text => lv_error_text,

Line 23508: lv_return := MSC_ST_UTIL.LOG_ERROR

23504:
23505: lv_where_str :=
23506: ' AND NVL(planning_make_buy_code,'||NULL_VALUE||') NOT IN (1,2)';
23507:
23508: lv_return := MSC_ST_UTIL.LOG_ERROR
23509: (p_table_name => 'MSC_ST_SYSTEM_ITEMS',
23510: p_instance_code => v_instance_code,
23511: p_row => lv_column_names,
23512: p_severity => G_SEV_WARNING,

Line 23526: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

23522: RAISE ex_logging_err;
23523: END IF;
23524:
23525: -- Set the error message
23526: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
23527: (p_app_short_name => 'MSC',
23528: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
23529: p_message_text => lv_message_text,
23530: p_error_text => lv_error_text,

Line 23545: lv_return := MSC_ST_UTIL.LOG_ERROR

23541:
23542: lv_where_str :=
23543: ' AND NVL(inventory_planning_code,'||NULL_VALUE||') NOT IN (1,2,6)';
23544:
23545: lv_return := MSC_ST_UTIL.LOG_ERROR
23546: (p_table_name => 'MSC_ST_SYSTEM_ITEMS',
23547: p_instance_code => v_instance_code,
23548: p_row => lv_column_names,
23549: p_severity => G_SEV_WARNING,

Line 23563: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

23559: RAISE ex_logging_err;
23560: END IF;
23561:
23562: -- Set the error message
23563: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
23564: (p_app_short_name => 'MSC',
23565: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
23566: p_message_text => lv_message_text,
23567: p_error_text => lv_error_text,

Line 23582: lv_return := MSC_ST_UTIL.LOG_ERROR

23578:
23579: lv_where_str :=
23580: ' AND NVL(repetitive_type,'||NULL_VALUE||') NOT IN (1,2)';
23581:
23582: lv_return := MSC_ST_UTIL.LOG_ERROR
23583: (p_table_name => 'MSC_ST_SYSTEM_ITEMS',
23584: p_instance_code => v_instance_code,
23585: p_row => lv_column_names,
23586: p_severity => G_SEV_WARNING,

Line 23600: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

23596: RAISE ex_logging_err;
23597: END IF;
23598:
23599: -- Set the error message
23600: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
23601: (p_app_short_name => 'MSC',
23602: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
23603: p_message_text => lv_message_text,
23604: p_error_text => lv_error_text,

Line 23618: lv_return := MSC_ST_UTIL.LOG_ERROR

23614: -- Valid value for engineering_item_flag are (1,2),default it to 2
23615: lv_where_str :=
23616: ' AND NVL(engineering_item_flag ,'||NULL_VALUE||') NOT IN (1,2)';
23617:
23618: lv_return := MSC_ST_UTIL.LOG_ERROR
23619: (p_table_name => 'MSC_ST_SYSTEM_ITEMS',
23620: p_instance_code => v_instance_code,
23621: p_row => lv_column_names,
23622: p_severity => G_SEV_WARNING,

Line 23636: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

23632: RAISE ex_logging_err;
23633: END IF;
23634:
23635: -- Set the error message
23636: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
23637: (p_app_short_name => 'MSC',
23638: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
23639: p_message_text => lv_message_text,
23640: p_error_text => lv_error_text,

Line 23657: lv_return := MSC_ST_UTIL.LOG_ERROR

23653: lv_where_str :=
23654: ' AND NVL(mrp_safety_stock_code,'||NULL_VALUE||') <>'||' 1 AND'
23655: ||' NVL(mrp_safety_stock_percent,'||NULL_VALUE||')='||NULL_VALUE;
23656:
23657: lv_return := MSC_ST_UTIL.LOG_ERROR
23658: (p_table_name => 'MSC_ST_SYSTEM_ITEMS',
23659: p_instance_code => v_instance_code,
23660: p_row => lv_column_names,
23661: p_severity => G_SEV_WARNING,

Line 23675: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

23671: RAISE ex_logging_err;
23672: END IF;
23673:
23674: -- Set the error message
23675: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
23676: (p_app_short_name => 'MSC',
23677: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
23678: p_message_text => lv_message_text,
23679: p_error_text => lv_error_text,

Line 23696: lv_return := MSC_ST_UTIL.LOG_ERROR

23692: lv_where_str :=
23693: ' AND NVL(mrp_safety_stock_code,'||NULL_VALUE||') <>'||' 2 AND'
23694: ||' NVL(mrp_safety_stock_percent,'||NULL_VALUE||')<>'||NULL_VALUE;
23695:
23696: lv_return := MSC_ST_UTIL.LOG_ERROR
23697: (p_table_name => 'MSC_ST_SYSTEM_ITEMS',
23698: p_instance_code => v_instance_code,
23699: p_row => lv_column_names,
23700: p_severity => G_SEV_WARNING,

Line 23714: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

23710: RAISE ex_logging_err;
23711: END IF;
23712:
23713: -- Set the error message
23714: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
23715: (p_app_short_name => 'MSC',
23716: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
23717: p_message_text => lv_message_text,
23718: p_error_text => lv_error_text,

Line 23734: lv_return := MSC_ST_UTIL.LOG_ERROR

23730: lv_where_str :=
23731: ' AND NVL(atp_flag ,'||''''||NULL_CHAR||''''||')'
23732: ||' NOT IN (''Y'', ''N'', ''C'')';
23733:
23734: lv_return := MSC_ST_UTIL.LOG_ERROR
23735: (p_table_name => 'MSC_ST_SYSTEM_ITEMS',
23736: p_instance_code => v_instance_code,
23737: p_row => lv_column_names,
23738: p_severity => G_SEV_WARNING,

Line 23752: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

23748: RAISE ex_logging_err;
23749: END IF;
23750:
23751: -- Set the error message
23752: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
23753: (p_app_short_name => 'MSC',
23754: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
23755: p_message_text => lv_message_text,
23756: p_error_text => lv_error_text,

Line 23772: lv_return := MSC_ST_UTIL.LOG_ERROR

23768: lv_where_str :=
23769: ' AND NVL(inventory_asset_flag,'||''''||NULL_CHAR||''''||')'
23770: ||' NOT IN (''Y'', ''N'')';
23771:
23772: lv_return := MSC_ST_UTIL.LOG_ERROR
23773: (p_table_name => 'MSC_ST_SYSTEM_ITEMS',
23774: p_instance_code => v_instance_code,
23775: p_row => lv_column_names,
23776: p_severity => G_SEV_WARNING,

Line 23790: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

23786: RAISE ex_logging_err;
23787: END IF;
23788:
23789: -- Set the error message
23790: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
23791: (p_app_short_name => 'MSC',
23792: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
23793: p_message_text => lv_message_text,
23794: p_error_text => lv_error_text,

Line 23810: lv_return := MSC_ST_UTIL.LOG_ERROR

23806: -- ('A','B','I','N','X','Y'),default it to N
23807:
23808: lv_where_str :=
23809: ' AND end_assembly_pegging_flag NOT IN (''A'',''B'',''X'',''I'',''N'',''Y'')';
23810: lv_return := MSC_ST_UTIL.LOG_ERROR
23811: (p_table_name => 'MSC_ST_SYSTEM_ITEMS',
23812: p_instance_code => v_instance_code,
23813: p_row => lv_column_names,
23814: p_severity => G_SEV_WARNING,

Line 23828: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

23824: RAISE ex_logging_err;
23825: END IF;
23826:
23827: -- Set the error message
23828: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
23829: (p_app_short_name => 'MSC',
23830: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
23831: p_message_text => lv_message_text,
23832: p_error_text => lv_error_text,

Line 23847: lv_return := MSC_ST_UTIL.LOG_ERROR

23843: -- Valid value for wip_supply_type are (1,2,3,4,5,6,7),default it to 1
23844:
23845: lv_where_str := ' AND NVL(wip_supply_type,'||NULL_VALUE||') NOT IN (1,2,3,4,5,6,7) ';
23846:
23847: lv_return := MSC_ST_UTIL.LOG_ERROR
23848: (p_table_name => 'MSC_ST_SYSTEM_ITEMS',
23849: p_instance_code => v_instance_code,
23850: p_row => lv_column_names,
23851: p_severity => G_SEV_WARNING,

Line 23866: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

23862: END IF;
23863:
23864:
23865: -- Set the error message
23866: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
23867: (p_app_short_name => 'MSC',
23868: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
23869: p_message_text => lv_message_text,
23870: p_error_text => lv_error_text,

Line 23884: lv_return := MSC_ST_UTIL.LOG_ERROR

23880: -- Default ato_forecast_control to 3 if NOT IN (1,2,3)
23881:
23882: lv_where_str := ' AND ato_forecast_control NOT IN (1,2,3) ';
23883:
23884: lv_return := MSC_ST_UTIL.LOG_ERROR
23885: (p_table_name => 'MSC_ST_SYSTEM_ITEMS',
23886: p_instance_code => v_instance_code,
23887: p_row => lv_column_names,
23888: p_severity => G_SEV_WARNING,

Line 23902: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

23898: RAISE ex_logging_err;
23899: END IF;
23900:
23901: -- Set the error message
23902: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
23903: (p_app_short_name => 'MSC',
23904: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
23905: p_message_text => lv_message_text,
23906: p_error_text => lv_error_text,

Line 23920: lv_return := MSC_ST_UTIL.LOG_ERROR

23916: -- Default inventory_item_flag to 1 if NOT IN (1,2)
23917:
23918: lv_where_str := ' AND inventory_item_flag NOT IN (1,2) ';
23919:
23920: lv_return := MSC_ST_UTIL.LOG_ERROR
23921: (p_table_name => 'MSC_ST_SYSTEM_ITEMS',
23922: p_instance_code => v_instance_code,
23923: p_row => lv_column_names,
23924: p_severity => G_SEV_WARNING,

Line 23938: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

23934: RAISE ex_logging_err;
23935: END IF;
23936:
23937: -- Set the error message
23938: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
23939: (p_app_short_name => 'MSC',
23940: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
23941: p_message_text => lv_message_text,
23942: p_error_text => lv_error_text,

Line 23956: lv_return := MSC_ST_UTIL.LOG_ERROR

23952: -- Default inventory_item_flag to 1 if NOT IN (1,2)
23953:
23954: lv_where_str := ' AND inventory_type NOT IN (1,2,3,4,5,6,7,8) ';
23955:
23956: lv_return := MSC_ST_UTIL.LOG_ERROR
23957: (p_table_name => 'MSC_ST_SYSTEM_ITEMS',
23958: p_instance_code => v_instance_code,
23959: p_row => lv_column_names,
23960: p_severity => G_SEV_WARNING,

Line 23974: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

23970: RAISE ex_logging_err;
23971: END IF;
23972: END IF ; --v_install_msc
23973: -- Set the error message
23974: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
23975: (p_app_short_name => 'MSC',
23976: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
23977: p_message_text => lv_message_text,
23978: p_error_text => lv_error_text,

Line 23992: lv_return := MSC_ST_UTIL.LOG_ERROR

23988: -- Default BOM Item Type to 4 if NOT IN (1,2,3,4,5)
23989:
23990: lv_where_str := ' AND bom_item_type NOT IN (1,2,3,4,5) ';
23991:
23992: lv_return := MSC_ST_UTIL.LOG_ERROR
23993: (p_table_name => 'MSC_ST_SYSTEM_ITEMS',
23994: p_instance_code => v_instance_code,
23995: p_row => lv_column_names,
23996: p_severity => G_SEV_WARNING,

Line 24011: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

24007: END IF;
24008:
24009:
24010: -- Set the error message for DRP_PLANNED flag
24011: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
24012: (p_app_short_name => 'MSC',
24013: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
24014: p_message_text => lv_message_text,
24015: p_error_text => lv_error_text,

Line 24031: lv_return := MSC_ST_UTIL.LOG_ERROR

24027: lv_where_str :=
24028: ' AND NVL(drp_planned,'||NULL_VALUE||')'
24029: ||' NOT IN (1,2)';
24030:
24031: lv_return := MSC_ST_UTIL.LOG_ERROR
24032: (p_table_name => 'MSC_ST_SYSTEM_ITEMS',
24033: p_instance_code => v_instance_code,
24034: p_row => lv_column_names,
24035: p_severity => G_SEV_WARNING,

Line 24051: lv_return := MSC_ST_util.GET_ERROR_MESSAGE

24047:
24048:
24049: -- Set the error message for SERIAL_NUMBER_CONTROL_CODE
24050:
24051: lv_return := MSC_ST_util.GET_ERROR_MESSAGE
24052: (p_app_short_name => 'MSC',
24053: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
24054: p_message_text => lv_message_text,
24055: p_error_text => lv_error_text,

Line 24071: lv_return := MSC_ST_util.LOG_ERROR

24067: lv_where_str :=
24068: ' AND NVL(SERIAL_NUMBER_CONTROL_CODE,2)'
24069: ||' NOT IN (1,2)';
24070:
24071: lv_return := MSC_ST_util.LOG_ERROR
24072: (p_table_name => 'MSC_ST_SYSTEM_ITEMS',
24073: p_instance_code => v_instance_code,
24074: p_row => lv_column_names,
24075: p_severity => G_SEV_WARNING,

Line 24094: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

24090:
24091: -- Assumes the org_id,inventory_item_id and sr_instance_id is derrived by now.
24092: -- Set the error message
24093:
24094: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
24095: (p_app_short_name => 'MSC',
24096: p_error_code => 'MSC_PP_SERIAL_FLAG_NOT_CHANGED',
24097: p_message_text => lv_message_text,
24098: p_error_text => lv_error_text);

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

24176: /*** Setting the process_flag to valid in LOAD_ITEM_ABC_CLASSES -- fix for the bug 2191021
24177: -- Set the process flag as Valid and populate instance_id */
24178:
24179: lv_return :=
24180: MSC_ST_UTIL.SET_PROCESS_FLAG(p_table_name => 'MSC_ST_SYSTEM_ITEMS',
24181: p_instance_id => v_instance_id,
24182: p_instance_code => v_instance_code,
24183: p_process_flag => G_VALID,
24184: p_error_text => lv_error_text,

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

24192:
24193: -- At the end calling the LOG_ERROR for logging all errored out records
24194:
24195: lv_return :=
24196: MSC_ST_UTIL.LOG_ERROR(p_table_name =>'MSC_ST_SYSTEM_ITEMS',
24197: p_instance_code =>v_instance_code,
24198: p_row =>lv_column_names,
24199: p_severity =>G_SEV_ERROR,
24200: p_message_text =>NULL,

Line 24292: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

24288: AND sr_instance_code = v_instance_code;
24289:
24290: BEGIN
24291:
24292: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
24293: (p_app_short_name => 'MSC',
24294: p_error_code => 'MSC_PP_DUP_REC_FOR_XML',
24295: p_message_text => lv_message_text,
24296: p_error_text => lv_error_text);

Line 24337: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

24333:
24334: EXECUTE IMMEDIATE lv_sql_stmt
24335: USING v_instance_code;
24336:
24337: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
24338: (p_app_short_name => 'MSC',
24339: p_error_code => 'MSC_PP_DUP_REC_FOR_BATCH_LOAD',
24340: p_message_text => lv_message_text,
24341: p_error_text => lv_error_text);

Line 24440: /* lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

24436: creation_date = v_current_date,
24437: created_by = v_current_user
24438: WHERE rowid = lb_rowid(j);
24439:
24440: /* lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
24441: (p_app_short_name => 'MSC',
24442: p_error_code => 'MSC_PP_NO_DELETION',
24443: p_message_text => lv_message_text,
24444: p_error_text => lv_error_text,

Line 24475: lv_return := MSC_ST_UTIL.LOG_ERROR

24471:
24472: -- RELATIONSHIP_TYPE default to 2
24473:
24474: lv_where_str := ' AND RELATIONSHIP_TYPE IS NULL';
24475: lv_return := MSC_ST_UTIL.LOG_ERROR
24476: (p_table_name => 'msc_st_item_substitutes',
24477: p_instance_code => v_instance_code,
24478: p_row => lv_column_names,
24479: p_severity => G_SEV_WARNING,

Line 24493: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

24489: RAISE ex_logging_err;
24490: END IF;
24491:
24492: -- Set the error message
24493: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
24494: (p_app_short_name => 'MSC',
24495: p_error_code => 'MSC_PP_INVALID_VALUE',
24496: p_message_text => lv_message_text,
24497: p_error_text => lv_error_text,

Line 24527: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

24523: USING lv_batch_id,
24524: v_instance_code;
24525:
24526: -- Set the error message
24527: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
24528: (p_app_short_name => 'MSC',
24529: p_error_code => 'MSC_PP_INVALID_VALUE',
24530: p_message_text => lv_message_text,
24531: p_error_text => lv_error_text,

Line 24561: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

24557: EXECUTE IMMEDIATE lv_sql_stmt
24558: USING lv_batch_id,
24559: v_instance_code;
24560:
24561: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
24562: (p_app_short_name => 'MSC',
24563: p_error_code => 'MSC_PP_INVALID_VALUE',
24564: p_message_text => lv_message_text,
24565: p_error_text => lv_error_text,

Line 24574: lv_return :=msc_st_util.derive_partner_org_id

24570: RAISE ex_logging_err;
24571: END IF;
24572:
24573: -- Derive organization_id
24574: lv_return :=msc_st_util.derive_partner_org_id
24575: (p_table_name => 'MSC_ST_ITEM_SUBSTITUTES',
24576: p_org_partner_name => 'ORGANIZATION_CODE',
24577: p_org_partner_id => 'ORGANIZATION_ID',
24578: p_instance_code => v_instance_code,

Line 24588: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

24584: IF lv_return <> 0 THEN
24585: RAISE ex_logging_err;
24586: END IF;
24587:
24588: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
24589: (p_app_short_name => 'MSC',
24590: p_error_code => 'MSC_PP_INVALID_VALUE',
24591: p_message_text => lv_message_text,
24592: p_error_text => lv_error_text,

Line 24603: lv_return :=msc_st_util.derive_partner_org_id

24599:
24600: lv_where_str := ' AND RELATIONSHIP_TYPE = 2';
24601:
24602: -- Derive sr_tp_id(Customer)
24603: lv_return :=msc_st_util.derive_partner_org_id
24604: (p_table_name => 'MSC_ST_ITEM_SUBSTITUTES',
24605: p_org_partner_name => 'CUSTOMER_NAME',
24606: p_org_partner_id => 'CUSTOMER_ID',
24607: p_instance_code => v_instance_code,

Line 24622: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

24618: RAISE ex_logging_err;
24619: END IF;
24620:
24621:
24622: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
24623: (p_app_short_name => 'MSC',
24624: p_error_code => 'MSC_PP_INVALID_VALUE',
24625: p_message_text => lv_message_text,
24626: p_error_text => lv_error_text,

Line 24632: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_SITE_ID

24628: p_token_value1 => 'CUSTOMER_SITE_CODE');
24629:
24630: lv_where_str := ' AND RELATIONSHIP_TYPE = 2';
24631: -- Derive sr_tp_site_id(Customer)
24632: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_SITE_ID
24633: (p_table_name => 'MSC_ST_ITEM_SUBSTITUTES',
24634: p_partner_name => 'CUSTOMER_NAME',
24635: p_partner_site_code => 'CUSTOMER_SITE_CODE',
24636: p_partner_site_id => 'CUSTOMER_SITE_ID',

Line 24652: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

24648: END IF;
24649:
24650: --DERIVE LOWER_ITEM_ID
24651:
24652: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
24653: (p_app_short_name => 'MSC',
24654: p_error_code => 'MSC_PP_INVALID_VALUE',
24655: p_message_text => lv_message_text,
24656: p_error_text => lv_error_text,

Line 24661: lv_return := MSC_ST_UTIL.DERIVE_ITEM_ID

24657: p_token1 => 'COLUMN_NAME',
24658: p_token_value1 => 'ITEM_NAME');
24659:
24660:
24661: lv_return := MSC_ST_UTIL.DERIVE_ITEM_ID
24662: (p_table_name =>'MSC_ST_ITEM_SUBSTITUTES',
24663: p_item_col_name =>'ITEM_NAME',
24664: p_item_col_id =>'LOWER_ITEM_ID',
24665: p_instance_code => v_instance_code,

Line 24682: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

24678:
24679:
24680: --DERIVE HIGHER_ITEM_ID
24681:
24682: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
24683: (p_app_short_name => 'MSC',
24684: p_error_code => 'MSC_PP_INVALID_VALUE',
24685: p_message_text => lv_message_text,
24686: p_error_text => lv_error_text,

Line 24691: lv_return := MSC_ST_UTIL.DERIVE_ITEM_ID

24687: p_token1 => 'COLUMN_NAME',
24688: p_token_value1 => 'SUBSTITUTE_ITEM_NAME');
24689:
24690:
24691: lv_return := MSC_ST_UTIL.DERIVE_ITEM_ID
24692: (p_table_name =>'msc_st_item_substitutes',
24693: p_item_col_name =>'SUBSTITUTE_ITEM_NAME',
24694: p_item_col_id =>'HIGHER_ITEM_ID',
24695: p_instance_code => v_instance_code,

Line 24713: lv_return := MSC_ST_UTIL.LOG_ERROR

24709: -- SUBSTITUTION_SET always default to 'DEFAULT'
24710:
24711: lv_where_str :=
24712: ' AND NVL(SUBSTITUTION_SET,'||''''||NULL_CHAR||''''||') = '||''''||NULL_CHAR||'''';
24713: lv_return := MSC_ST_UTIL.LOG_ERROR
24714: (p_table_name => 'msc_st_item_substitutes',
24715: p_instance_code => v_instance_code,
24716: p_row => lv_column_names,
24717: p_severity => G_SEV_WARNING,

Line 24731: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

24727: RAISE ex_logging_err;
24728: END IF;
24729:
24730: /* removed for SRP
24731: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
24732: (p_app_short_name => 'MSC',
24733: p_error_code => 'MSC_PP_NO_UPDATION',
24734: p_message_text => lv_message_text,
24735: p_error_text => lv_error_text,

Line 24775: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

24771: */
24772: ------ Changes for SRP legacy collections
24773:
24774: ---set message
24775: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
24776: (p_app_short_name => 'MSC',
24777: p_error_code => 'MSC_PP_INVALID_VALUE',
24778: p_message_text => lv_message_text,
24779: p_error_text => lv_error_text,

Line 24823: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG

24819: END IF;
24820:
24821: -- Set the process flag as Valid and derive sr_instance_id
24822:
24823: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG
24824: (p_table_name => 'MSC_ST_ITEM_SUBSTITUTES',
24825: p_instance_id => v_instance_id,
24826: p_instance_code => v_instance_code,
24827: p_process_flag => G_VALID,

Line 24838: lv_return := MSC_ST_UTIL.LOG_ERROR

24834: END IF;
24835:
24836: -- Inserting all the errored out records into MSC_ERRORS
24837:
24838: lv_return := MSC_ST_UTIL.LOG_ERROR
24839: (p_table_name => 'MSC_ST_ITEM_SUBSTITUTES',
24840: p_instance_code => v_instance_code,
24841: p_row => lv_column_names,
24842: p_severity => G_SEV_ERROR,

Line 25001: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

24997:
24998: --Validation check fot the table MSC_ST_ITEM_SUPPLIERS.
24999: --Duplicate records check for the records whose source is XML
25000:
25001: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
25002: (p_app_short_name => 'MSC',
25003: p_error_code => 'MSC_PP_DUP_REC_FOR_XML',
25004: p_message_text => lv_message_text,
25005: p_error_text => lv_error_text);

Line 25044: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

25040: --Duplicate records check for the records whose source is other than XML
25041: --Different SQL is used because in XML we can identify the latest records
25042: --whereas in batch load we cannot.
25043:
25044: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
25045: (p_app_short_name => 'MSC',
25046: p_error_code => 'MSC_PP_DUP_REC_FOR_BATCH_LOAD',
25047: p_message_text => lv_message_text,
25048: p_error_text => lv_error_text);

Line 25143: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

25139: WHERE rowid = lb_rowid(j);
25140:
25141: --Deletion is not allowed on this table.
25142:
25143: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
25144: (p_app_short_name => 'MSC',
25145: p_error_code => 'MSC_PP_NO_DELETION',
25146: p_message_text => lv_message_text,
25147: p_error_text => lv_error_text,

Line 25172: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

25168: EXECUTE IMMEDIATE lv_sql_stmt
25169: USING lv_batch_id,
25170: v_instance_code;
25171:
25172: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
25173: (p_app_short_name => 'MSC',
25174: p_error_code => 'MSC_PP_INVALID_VALUE',
25175: p_message_text => lv_message_text,
25176: p_error_text => lv_error_text,

Line 25203: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

25199: USING lv_batch_id,
25200: v_instance_code;
25201:
25202:
25203: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
25204: (p_app_short_name => 'MSC',
25205: p_error_code => 'MSC_PP_COL_REF_NOT_EXIST',
25206: p_message_text => lv_message_text,
25207: p_error_text => lv_error_text,

Line 25251: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

25247: USING v_instance_id,
25248: v_instance_code,
25249: lv_batch_id;
25250:
25251: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
25252: (p_app_short_name => 'MSC',
25253: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
25254: p_message_text => lv_message_text,
25255: p_error_text => lv_error_text,

Line 25271: lv_return := MSC_ST_UTIL.LOG_ERROR

25267: ||' NOT IN(1,2)';
25268: --Log a warning for those records where the deleted_flag has a value other
25269: --than SYS_NO
25270:
25271: lv_return := MSC_ST_UTIL.LOG_ERROR
25272: (p_table_name => 'MSC_ST_ITEM_SUPPLIERS',
25273: p_instance_code => v_instance_code,
25274: p_row => lv_column_names,
25275: p_severity => G_SEV_WARNING,

Line 25288: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

25284: IF lv_return <> 0 THEN
25285: RAISE ex_logging_err;
25286: END IF;
25287:
25288: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
25289: (p_app_short_name => 'MSC',
25290: p_error_code => 'MSC_PP_INVALID_VALUE',
25291: p_message_text => lv_message_text,
25292: p_error_text => lv_error_text,

Line 25301: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID

25297: RAISE ex_logging_err;
25298: END IF;
25299:
25300: --Derive Organization_id
25301: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID
25302: (p_table_name => 'MSC_ST_ITEM_SUPPLIERS',
25303: p_org_partner_name => 'ORGANIZATION_CODE',
25304: p_org_partner_id => 'ORGANIZATION_ID',
25305: p_instance_code => v_instance_code,

Line 25318: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

25314: IF lv_return <> 0 THEN
25315: RAISE ex_logging_err;
25316: END IF;
25317:
25318: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
25319: (p_app_short_name => 'MSC',
25320: p_error_code => 'MSC_PP_INVALID_VALUE',
25321: p_message_text => lv_message_text,
25322: p_error_text => lv_error_text,

Line 25327: lv_return := MSC_ST_UTIL.DERIVE_ITEM_ID

25323: p_token1 => 'COLUMN_NAME',
25324: p_token_value1 => 'ITEM_NAME');
25325:
25326: --Derive Inventory_item_id
25327: lv_return := MSC_ST_UTIL.DERIVE_ITEM_ID
25328: (p_table_name => 'MSC_ST_ITEM_SUPPLIERS',
25329: p_item_col_name => 'ITEM_NAME',
25330: p_item_col_id => 'INVENTORY_ITEM_ID',
25331: p_instance_id => v_instance_id,

Line 25345: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

25341: RAISE ex_logging_err;
25342: END IF;
25343:
25344: --Derive Supplier_id
25345: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
25346: (p_app_short_name => 'MSC',
25347: p_error_code => 'MSC_PP_INVALID_VALUE',
25348: p_message_text => lv_message_text,
25349: p_error_text => lv_error_text,

Line 25357: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID

25353: IF lv_return <> 0 THEN
25354: RAISE ex_logging_err;
25355: END IF;
25356:
25357: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID
25358: (p_table_name => 'MSC_ST_ITEM_SUPPLIERS',
25359: p_org_partner_name => 'VENDOR_NAME',
25360: p_org_partner_id => 'SUPPLIER_ID',
25361: p_instance_code => v_instance_code,

Line 25374: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

25370: IF lv_return <> 0 THEN
25371: RAISE ex_logging_err;
25372: END IF;
25373:
25374: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
25375: (p_app_short_name => 'MSC',
25376: p_error_code => 'MSC_PP_INVALID_VALUE',
25377: p_message_text => lv_message_text,
25378: p_error_text => lv_error_text,

Line 25387: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_SITE_ID

25383: RAISE ex_logging_err;
25384: END IF;
25385:
25386: --Derive Supplier_site_id
25387: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_SITE_ID
25388: (p_table_name => 'MSC_ST_ITEM_SUPPLIERS',
25389: p_partner_name => 'VENDOR_NAME',
25390: p_partner_site_code => 'VENDOR_SITE_CODE',
25391: p_partner_site_id => 'SUPPLIER_SITE_ID',

Line 25422: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

25418: USING v_instance_code,
25419: lv_batch_id; */
25420:
25421:
25422: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
25423: (p_app_short_name => 'MSC',
25424: p_error_code => 'MSC_PP_COL_REF_NOT_EXIST',
25425: p_message_text => lv_message_text,
25426: p_error_text => lv_error_text,

Line 25486: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

25482: lv_batch_id;
25483:
25484: -- validation for REPLENISHMENT_METHOD
25485: -- Set the error message
25486: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
25487: (p_app_short_name => 'MSC',
25488: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
25489: p_message_text => lv_message_text,
25490: p_error_text => lv_error_text,

Line 25505: lv_return := MSC_ST_UTIL.LOG_ERROR

25501:
25502: lv_where_str :=
25503: ' AND NVL(REPLENISHMENT_METHOD,'||NULL_VALUE||') NOT IN(1,2,3,4)';
25504:
25505: lv_return := MSC_ST_UTIL.LOG_ERROR
25506: (p_table_name => 'MSC_ST_ITEM_SUPPLIERS',
25507: p_instance_code => v_instance_code,
25508: p_row => lv_column_names,
25509: p_severity => G_SEV_WARNING,

Line 25544: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

25540:
25541: -- company_id derivation
25542: -- derive the company_id . if not found then error out record
25543:
25544: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
25545: (p_app_short_name => 'MSC',
25546: p_error_code => 'MSC_PP_INVALID_VALUE',
25547: p_message_text => lv_message_text,
25548: p_error_text => lv_error_text,

Line 25556: lv_return := MSC_ST_UTIL.DERIVE_COMPANY_ID

25552: IF lv_return <> 0 THEN
25553: RAISE ex_logging_err;
25554: END IF;
25555:
25556: lv_return := MSC_ST_UTIL.DERIVE_COMPANY_ID
25557: (p_table_name => 'MSC_ST_ITEM_SUPPLIERS',
25558: p_company_name => 'COMPANY_NAME',
25559: p_company_id => 'COMPANY_ID',
25560: p_instance_code => v_instance_code,

Line 25610: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG

25606: END IF; -- SCE installed
25607:
25608: -- SCE Changes end here
25609:
25610: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG
25611: (p_table_name => 'MSC_ST_ITEM_SUPPLIERS',
25612: p_instance_id => v_instance_id,
25613: p_instance_code => v_instance_code,
25614: p_process_flag => G_VALID,

Line 25623: lv_return := MSC_ST_UTIL.LOG_ERROR

25619: IF lv_return <> 0 THEN
25620: RAISE ex_logging_err;
25621: END IF;
25622:
25623: lv_return := MSC_ST_UTIL.LOG_ERROR
25624: (p_table_name => 'MSC_ST_ITEM_SUPPLIERS',
25625: p_instance_code => v_instance_code,
25626: p_row => lv_column_names,
25627: p_severity => G_SEV_ERROR,

Line 25642: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

25638: END LOOP;
25639:
25640: --******Validation for MSC_ST_SUPPLIER_CAPACITIES***********
25641:
25642: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
25643: (p_app_short_name => 'MSC',
25644: p_error_code => 'MSC_PP_DUP_REC_FOR_XML',
25645: p_message_text => lv_message_text,
25646: p_error_text => lv_error_text);

Line 25681: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

25677:
25678: EXECUTE IMMEDIATE lv_sql_stmt
25679: USING v_instance_code;
25680:
25681: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
25682: (p_app_short_name => 'MSC',
25683: p_error_code => 'MSC_PP_DUP_REC_FOR_BATCH_LOAD',
25684: p_message_text => lv_message_text,
25685: p_error_text => lv_error_text);

Line 25778: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

25774: created_by = v_current_user
25775: WHERE rowid = lb_rowid(j);
25776:
25777:
25778: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
25779: (p_app_short_name => 'MSC',
25780: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
25781: p_message_text => lv_message_text,
25782: p_error_text => lv_error_text,

Line 25797: lv_return := MSC_ST_UTIL.LOG_ERROR

25793: ' AND NVL(deleted_flag,'||NULL_VALUE||') '
25794: ||' NOT IN(1,2)';
25795: --Log a warning for those records where the deleted_flag has a value other
25796: --than SYS_NO
25797: lv_return := MSC_ST_UTIL.LOG_ERROR
25798: (p_table_name => 'MSC_ST_SUPPLIER_CAPACITIES',
25799: p_instance_code => v_instance_code,
25800: p_row => lv_column_names,
25801: p_severity => G_SEV_WARNING,

Line 25814: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

25810: IF lv_return <> 0 THEN
25811: RAISE ex_logging_err;
25812: END IF;
25813:
25814: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
25815: (p_app_short_name => 'MSC',
25816: p_error_code => 'MSC_PP_INVALID_VALUE',
25817: p_message_text => lv_message_text,
25818: p_error_text => lv_error_text,

Line 25823: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID

25819: p_token1 => 'COLUMN_NAME',
25820: p_token_value1 => 'ORGANIZATION_CODE');
25821:
25822: --Derive Organization_id
25823: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID
25824: (p_table_name => 'MSC_ST_SUPPLIER_CAPACITIES',
25825: p_org_partner_name => 'ORGANIZATION_CODE',
25826: p_org_partner_id => 'ORGANIZATION_ID',
25827: p_instance_code => v_instance_code,

Line 25840: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

25836: IF lv_return <> 0 THEN
25837: RAISE ex_logging_err;
25838: END IF;
25839:
25840: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
25841: (p_app_short_name => 'MSC',
25842: p_error_code => 'MSC_PP_INVALID_VALUE',
25843: p_message_text => lv_message_text,
25844: p_error_text => lv_error_text,

Line 25853: lv_return := MSC_ST_UTIL.DERIVE_ITEM_ID

25849: RAISE ex_logging_err;
25850: END IF;
25851:
25852: --Derive Inventory_item_id
25853: lv_return := MSC_ST_UTIL.DERIVE_ITEM_ID
25854: (p_table_name => 'MSC_ST_SUPPLIER_CAPACITIES',
25855: p_item_col_name => 'ITEM_NAME',
25856: p_item_col_id => 'INVENTORY_ITEM_ID',
25857: p_instance_id => v_instance_id,

Line 25870: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

25866: IF lv_return <> 0 THEN
25867: RAISE ex_logging_err;
25868: END IF;
25869:
25870: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
25871: (p_app_short_name => 'MSC',
25872: p_error_code => 'MSC_PP_INVALID_VALUE',
25873: p_message_text => lv_message_text,
25874: p_error_text => lv_error_text,

Line 25883: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID

25879: RAISE ex_logging_err;
25880: END IF;
25881:
25882: --Derive Supplier_id
25883: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID
25884: (p_table_name => 'MSC_ST_SUPPLIER_CAPACITIES',
25885: p_org_partner_name => 'VENDOR_NAME',
25886: p_org_partner_id => 'SUPPLIER_ID',
25887: p_instance_code => v_instance_code,

Line 25900: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

25896: IF lv_return <> 0 THEN
25897: RAISE ex_logging_err;
25898: END IF;
25899:
25900: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
25901: (p_app_short_name => 'MSC',
25902: p_error_code => 'MSC_PP_INVALID_VALUE',
25903: p_message_text => lv_message_text,
25904: p_error_text => lv_error_text,

Line 25913: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_SITE_ID

25909: RAISE ex_logging_err;
25910: END IF;
25911:
25912: --Derive Supplier_site_id
25913: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_SITE_ID
25914: (p_table_name => 'MSC_ST_SUPPLIER_CAPACITIES',
25915: p_partner_name => 'VENDOR_NAME',
25916: p_partner_site_code => 'VENDOR_SITE_CODE',
25917: p_partner_site_id => 'SUPPLIER_SITE_ID',

Line 25932: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

25928: RAISE ex_logging_err;
25929: END IF;
25930:
25931:
25932: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
25933: (p_app_short_name => 'MSC',
25934: p_error_code => 'MSC_PP_SUPP_NOT_EXIST',
25935: p_message_text => lv_message_text,
25936: p_error_text => lv_error_text,

Line 26017: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

26013: EXECUTE IMMEDIATE lv_sql_stmt
26014: USING v_instance_code,
26015: lv_batch_id;
26016:
26017: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
26018: (p_app_short_name => 'MSC',
26019: p_error_code => 'MSC_PP_COL_VAL_NULL',
26020: p_message_text => lv_message_text,
26021: p_error_text => lv_error_text,

Line 26063: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG

26059: IF NVL(lv_return,0) <> 0 THEN
26060: RAISE ex_logging_err;
26061: END IF;
26062:
26063: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG
26064: (p_table_name => 'MSC_ST_SUPPLIER_CAPACITIES',
26065: p_instance_id => v_instance_id,
26066: p_instance_code => v_instance_code,
26067: p_process_flag => G_VALID,

Line 26076: lv_return := MSC_ST_UTIL.LOG_ERROR

26072: IF lv_return <> 0 THEN
26073: RAISE ex_logging_err;
26074: END IF;
26075:
26076: lv_return := MSC_ST_UTIL.LOG_ERROR
26077: (p_table_name => 'MSC_ST_SUPPLIER_CAPACITIES',
26078: p_instance_code => v_instance_code,
26079: p_row => lv_column_names,
26080: p_severity => G_SEV_ERROR,

Line 26094: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

26090: END LOOP;
26091:
26092: --*********Validation for MSC_ST_SUPPLIER_FLEX_FENCES***********
26093:
26094: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
26095: (p_app_short_name => 'MSC',
26096: p_error_code => 'MSC_PP_DUP_REC_FOR_XML',
26097: p_message_text => lv_message_text,
26098: p_error_text => lv_error_text);

Line 26136: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

26132: --Duplicate records check for the records whose source is other than XML
26133: --Different SQL is used because in XML we can identify the latest records
26134: --whereas in batch load we cannot.
26135:
26136: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
26137: (p_app_short_name => 'MSC',
26138: p_error_code => 'MSC_PP_DUP_REC_FOR_BATCH_LOAD',
26139: p_message_text => lv_message_text,
26140: p_error_text => lv_error_text);

Line 26228: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

26224: created_by = v_current_user
26225: WHERE rowid = lb_rowid(j);
26226:
26227:
26228: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
26229: (p_app_short_name => 'MSC',
26230: p_error_code => 'MSC_PP_NO_DELETION',
26231: p_message_text => lv_message_text,
26232: p_error_text => lv_error_text,

Line 26258: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

26254: EXECUTE IMMEDIATE lv_sql_stmt
26255: USING lv_batch_id,
26256: v_instance_code;
26257:
26258: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
26259: (p_app_short_name => 'MSC',
26260: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
26261: p_message_text => lv_message_text,
26262: p_error_text => lv_error_text,

Line 26277: lv_return := MSC_ST_UTIL.LOG_ERROR

26273: ||' NOT IN(1,2)';
26274:
26275: --Log a warning for those records where the deleted_flag has a value other
26276: --than SYS_NO
26277: lv_return := MSC_ST_UTIL.LOG_ERROR
26278: (p_table_name => 'MSC_ST_SUPPLIER_FLEX_FENCES',
26279: p_instance_code => v_instance_code,
26280: p_row => lv_column_names,
26281: p_severity => G_SEV_WARNING,

Line 26294: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

26290: IF lv_return <> 0 THEN
26291: RAISE ex_logging_err;
26292: END IF;
26293:
26294: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
26295: (p_app_short_name => 'MSC',
26296: p_error_code => 'MSC_PP_INVALID_VALUE',
26297: p_message_text => lv_message_text,
26298: p_error_text => lv_error_text,

Line 26307: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID

26303: RAISE ex_logging_err;
26304: END IF;
26305:
26306: --Derive Organization_id
26307: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID
26308: (p_table_name => 'MSC_ST_SUPPLIER_FLEX_FENCES',
26309: p_org_partner_name => 'ORGANIZATION_CODE',
26310: p_org_partner_id => 'ORGANIZATION_ID',
26311: p_instance_code => v_instance_code,

Line 26324: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

26320: IF lv_return <> 0 THEN
26321: RAISE ex_logging_err;
26322: END IF;
26323:
26324: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
26325: (p_app_short_name => 'MSC',
26326: p_error_code => 'MSC_PP_INVALID_VALUE',
26327: p_message_text => lv_message_text,
26328: p_error_text => lv_error_text,

Line 26337: lv_return := MSC_ST_UTIL.DERIVE_ITEM_ID

26333: RAISE ex_logging_err;
26334: END IF;
26335:
26336: --Derive Inventory_item_id
26337: lv_return := MSC_ST_UTIL.DERIVE_ITEM_ID
26338: (p_table_name => 'MSC_ST_SUPPLIER_FLEX_FENCES',
26339: p_item_col_name => 'ITEM_NAME',
26340: p_item_col_id => 'INVENTORY_ITEM_ID',
26341: p_instance_id => v_instance_id,

Line 26354: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

26350: IF lv_return <> 0 THEN
26351: RAISE ex_logging_err;
26352: END IF;
26353:
26354: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
26355: (p_app_short_name => 'MSC',
26356: p_error_code => 'MSC_PP_INVALID_VALUE',
26357: p_message_text => lv_message_text,
26358: p_error_text => lv_error_text,

Line 26367: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID

26363: RAISE ex_logging_err;
26364: END IF;
26365:
26366: --Derive Supplier_id
26367: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID
26368: (p_table_name => 'MSC_ST_SUPPLIER_FLEX_FENCES',
26369: p_org_partner_name => 'VENDOR_NAME',
26370: p_org_partner_id => 'SUPPLIER_ID',
26371: p_instance_code => v_instance_code,

Line 26384: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

26380: IF lv_return <> 0 THEN
26381: RAISE ex_logging_err;
26382: END IF;
26383:
26384: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
26385: (p_app_short_name => 'MSC',
26386: p_error_code => 'MSC_PP_INVALID_VALUE',
26387: p_message_text => lv_message_text,
26388: p_error_text => lv_error_text,

Line 26397: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_SITE_ID

26393: RAISE ex_logging_err;
26394: END IF;
26395:
26396: --Derive Supplier_site_id
26397: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_SITE_ID
26398: (p_table_name => 'MSC_ST_SUPPLIER_FLEX_FENCES',
26399: p_partner_name => 'VENDOR_NAME',
26400: p_partner_site_code=> 'VENDOR_SITE_CODE',
26401: p_partner_site_id => 'SUPPLIER_SITE_ID',

Line 26415: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

26411: IF lv_return <> 0 THEN
26412: RAISE ex_logging_err;
26413: END IF;
26414:
26415: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
26416: (p_app_short_name => 'MSC',
26417: p_error_code => 'MSC_PP_SUPP_NOT_EXIST',
26418: p_message_text => lv_message_text,
26419: p_error_text => lv_error_text,

Line 26498: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

26494: EXECUTE IMMEDIATE lv_sql_stmt
26495: USING lv_batch_id,
26496: v_instance_code;
26497:
26498: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
26499: (p_app_short_name => 'MSC',
26500: p_error_code => 'MSC_PP_COL_VAL_NULL',
26501: p_message_text => lv_message_text,
26502: p_error_text => lv_error_text,

Line 26542: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG

26538: IF NVL(lv_return,0) <> 0 THEN
26539: RAISE ex_logging_err;
26540: END IF;
26541:
26542: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG
26543: (p_table_name => 'MSC_ST_SUPPLIER_FLEX_FENCES',
26544: p_instance_id => v_instance_id,
26545: p_instance_code => v_instance_code,
26546: p_process_flag => G_VALID,

Line 26555: lv_return := MSC_ST_UTIL.LOG_ERROR

26551: IF lv_return <> 0 THEN
26552: RAISE ex_logging_err;
26553: END IF;
26554:
26555: lv_return := MSC_ST_UTIL.LOG_ERROR
26556: (p_table_name => 'MSC_ST_SUPPLIER_FLEX_FENCES',
26557: p_instance_code => v_instance_code,
26558: p_row => lv_column_names,
26559: p_severity => G_ERROR_FLG,

Line 26609: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

26605: AND sr_instance_code = v_instance_code;
26606:
26607: BEGIN
26608:
26609: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
26610: (p_app_short_name => 'MSC',
26611: p_error_code => 'MSC_PP_DUP_REC_FOR_XML',
26612: p_message_text => lv_message_text,
26613: p_error_text => lv_error_text);

Line 26645: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

26641:
26642: EXECUTE IMMEDIATE lv_sql_stmt
26643: USING v_instance_code;
26644:
26645: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
26646: (p_app_short_name => 'MSC',
26647: p_error_code => 'MSC_PP_DUP_REC_FOR_BATCH_LOAD',
26648: p_message_text => lv_message_text,
26649: p_error_text => lv_error_text);

Line 26734: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

26730: creation_date = v_current_date,
26731: created_by = v_current_user
26732: WHERE rowid = lb_rowid(j);
26733:
26734: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
26735: (p_app_short_name => 'MSC',
26736: p_error_code => 'MSC_PP_NO_DELETION',
26737: p_message_text => lv_message_text,
26738: p_error_text => lv_error_text,

Line 26764: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

26760: EXECUTE IMMEDIATE lv_sql_stmt
26761: USING lv_batch_id,
26762: v_instance_code;
26763:
26764: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
26765: (p_app_short_name => 'MSC',
26766: p_error_code => 'MSC_PP_COL_VAL_NULL',
26767: p_message_text => lv_message_text,
26768: p_error_text => lv_error_text,

Line 26793: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

26789: EXECUTE IMMEDIATE lv_sql_stmt
26790: USING lv_batch_id,
26791: v_instance_code;
26792:
26793: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
26794: (p_app_short_name => 'MSC',
26795: p_error_code => 'MSC_PP_INVALID_VALUE',
26796: p_message_text => lv_message_text,
26797: p_error_text => lv_error_text,

Line 26806: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID

26802: RAISE ex_logging_err;
26803: END IF;
26804:
26805: --Derive Organization_id
26806: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID
26807: (p_table_name => 'MSC_ST_SAFETY_STOCKS',
26808: p_org_partner_name => 'ORGANIZATION_CODE',
26809: p_org_partner_id => 'ORGANIZATION_ID',
26810: p_instance_code => v_instance_code,

Line 26823: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

26819: IF lv_return <> 0 THEN
26820: RAISE ex_logging_err;
26821: END IF;
26822:
26823: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
26824: (p_app_short_name => 'MSC',
26825: p_error_code => 'MSC_PP_INVALID_VALUE',
26826: p_message_text => lv_message_text,
26827: p_error_text => lv_error_text,

Line 26836: lv_return := MSC_ST_UTIL.DERIVE_ITEM_ID

26832: RAISE ex_logging_err;
26833: END IF;
26834:
26835: --Derive Inventory_item_id
26836: lv_return := MSC_ST_UTIL.DERIVE_ITEM_ID
26837: (p_table_name => 'MSC_ST_SAFETY_STOCKS',
26838: p_item_col_name => 'ITEM_NAME',
26839: p_item_col_id => 'INVENTORY_ITEM_ID',
26840: p_instance_id => v_instance_id,

Line 26853: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

26849: IF lv_return <> 0 THEN
26850: RAISE ex_logging_err;
26851: END IF;
26852:
26853: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
26854: (p_app_short_name => 'MSC',
26855: p_error_code => 'MSC_PP_SAFETY_STOCK_INVALID',
26856: p_message_text => lv_message_text,
26857: p_error_text => lv_error_text);

Line 26900: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

26896: USING lv_batch_id,
26897: v_instance_code;
26898:
26899:
26900: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
26901: (p_app_short_name => 'MSC',
26902: p_error_code => 'MSC_PP_FK_REF_NOT_EXIST',
26903: p_message_text => lv_message_text,
26904: p_error_text => lv_error_text,

Line 26916: lv_return := MSC_ST_UTIL.DERIVE_PROJ_TASK_ID

26912: RAISE ex_logging_err;
26913: END IF;
26914:
26915: --Derive Project Id.
26916: lv_return := MSC_ST_UTIL.DERIVE_PROJ_TASK_ID
26917: (p_table_name => 'MSC_ST_SAFETY_STOCKS',
26918: p_proj_col_name => 'PROJECT_NUMBER',
26919: p_proj_task_col_id => 'PROJECT_ID',
26920: p_instance_code => v_instance_code,

Line 26932: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

26928: IF lv_return <> 0 THEN
26929: RAISE ex_logging_err;
26930: END IF;
26931:
26932: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
26933: (p_app_short_name => 'MSC',
26934: p_error_code => 'MSC_PP_FK_REF_NOT_EXIST',
26935: p_message_text => lv_message_text,
26936: p_error_text => lv_error_text,

Line 26949: lv_return := MSC_ST_UTIL.DERIVE_PROJ_TASK_ID

26945: RAISE ex_logging_err;
26946: END IF;
26947:
26948: --Derive Task Id.
26949: lv_return := MSC_ST_UTIL.DERIVE_PROJ_TASK_ID
26950: (p_table_name => 'MSC_ST_SAFETY_STOCKS',
26951: p_proj_col_name => 'PROJECT_NUMBER',
26952: p_proj_task_col_id => 'TASK_ID',
26953: p_instance_code => v_instance_code,

Line 26980: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG

26976: IF NVL(lv_return,0) <> 0 THEN
26977: RAISE ex_logging_err;
26978: END IF;
26979:
26980: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG
26981: (p_table_name => 'MSC_ST_SAFETY_STOCKS',
26982: p_instance_id => v_instance_id,
26983: p_instance_code => v_instance_code,
26984: p_process_flag => G_VALID,

Line 26993: lv_return := MSC_ST_UTIL.LOG_ERROR

26989: IF lv_return <> 0 THEN
26990: RAISE ex_logging_err;
26991: END IF;
26992:
26993: lv_return := MSC_ST_UTIL.LOG_ERROR
26994: (p_table_name => 'MSC_ST_SAFETY_STOCKS',
26995: p_instance_code => v_instance_code,
26996: p_row => lv_column_names,
26997: p_severity => G_SEV_ERROR,

Line 27081: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

27077: GROUP BY sr_instance_code,company_name,category_name ;
27078:
27079: BEGIN
27080:
27081: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
27082: (p_app_short_name => 'MSC',
27083: p_error_code => 'MSC_PP_DUP_REC_FOR_XML',
27084: p_message_text => lv_message_text,
27085: p_error_text => lv_error_text);

Line 27119: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

27115: MSC_UTIL.LOG_MSG(MSC_UTIL.G_LVL_DEBUG_1,lv_sql_stmt);
27116: EXECUTE IMMEDIATE lv_sql_stmt
27117: USING v_instance_code;
27118:
27119: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
27120: (p_app_short_name => 'MSC',
27121: p_error_code => 'MSC_PP_DUP_REC_FOR_BATCH_LOAD',
27122: p_message_text => lv_message_text,
27123: p_error_text => lv_error_text);

Line 27239: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

27235: creation_date = v_current_date,
27236: created_by = v_current_user
27237: WHERE rowid = lb_rowid(j);
27238:
27239: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
27240: (p_app_short_name => 'MSC',
27241: p_error_code => 'MSC_PP_NO_DELETION',
27242: p_message_text => lv_message_text,
27243: p_error_text => lv_error_text,

Line 27269: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

27265: EXECUTE IMMEDIATE lv_sql_stmt
27266: USING lv_batch_id,
27267: v_instance_code;
27268:
27269: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
27270: (p_app_short_name => 'MSC',
27271: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
27272: p_message_text => lv_message_text,
27273: p_error_text => lv_error_text,

Line 27289: lv_return := MSC_ST_UTIL.LOG_ERROR

27285: ||' NOT IN(1,2)';
27286:
27287: --Log a warning for those records where the deleted_flag has a value other
27288: --SYS_NO
27289: lv_return := MSC_ST_UTIL.LOG_ERROR
27290: (p_table_name => 'MSC_ST_ITEM_CATEGORIES',
27291: p_instance_code => v_instance_code,
27292: p_row => lv_column_names,
27293: p_severity => G_SEV_WARNING,

Line 27306: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

27302: IF lv_return <> 0 THEN
27303: RAISE ex_logging_err;
27304: END IF;
27305:
27306: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
27307: (p_app_short_name => 'MSC',
27308: p_error_code => 'MSC_PP_INVALID_VALUE',
27309: p_message_text => lv_message_text,
27310: p_error_text => lv_error_text,

Line 27319: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID

27315: RAISE ex_logging_err;
27316: END IF;
27317:
27318: --Derive Organization_id
27319: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID
27320: (p_table_name => 'MSC_ST_ITEM_CATEGORIES',
27321: p_org_partner_name => 'ORGANIZATION_CODE',
27322: p_org_partner_id => 'ORGANIZATION_ID',
27323: p_instance_code => v_instance_code,

Line 27336: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

27332: IF lv_return <> 0 THEN
27333: RAISE ex_logging_err;
27334: END IF;
27335:
27336: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
27337: (p_app_short_name => 'MSC',
27338: p_error_code => 'MSC_PP_INVALID_VALUE',
27339: p_message_text => lv_message_text,
27340: p_error_text => lv_error_text,

Line 27349: lv_return := MSC_ST_UTIL.DERIVE_ITEM_ID

27345: RAISE ex_logging_err;
27346: END IF;
27347:
27348: --Derive Inventory_item_id
27349: lv_return := MSC_ST_UTIL.DERIVE_ITEM_ID
27350: (p_table_name => 'MSC_ST_ITEM_CATEGORIES',
27351: p_item_col_name => 'ITEM_NAME',
27352: p_item_col_id => 'INVENTORY_ITEM_ID',
27353: p_instance_id => v_instance_id,

Line 27390: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

27386: USING v_instance_code,
27387: lv_batch_id;
27388:
27389: if(v_install_msc) THEN -- category set should exists
27390: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
27391: (p_app_short_name => 'MSC',
27392: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
27393: p_message_text => lv_message_text,
27394: p_error_text => lv_error_text,

Line 27543: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG

27539: EXECUTE IMMEDIATE lv_sql_stmt
27540: USING lv_batch_id,
27541: v_instance_code;
27542:
27543: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG
27544: (p_table_name => 'MSC_ST_ITEM_CATEGORIES',
27545: p_instance_id => v_instance_id,
27546: p_instance_code => v_instance_code,
27547: p_process_flag => G_VALID,

Line 27556: lv_return := MSC_ST_UTIL.LOG_ERROR

27552: IF lv_return <> 0 THEN
27553: RAISE ex_logging_err;
27554: END IF;
27555:
27556: lv_return := MSC_ST_UTIL.LOG_ERROR
27557: (p_table_name => 'MSC_ST_ITEM_CATEGORIES',
27558: p_instance_code => v_instance_code,
27559: p_row => lv_column_names,
27560: p_severity => G_SEV_ERROR,

Line 27722: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

27718: BEGIN
27719:
27720: --Duplicate records check for the records whose source is XML
27721:
27722: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
27723: (p_app_short_name => 'MSC',
27724: p_error_code => 'MSC_PP_DUP_REC_FOR_XML',
27725: p_message_text => lv_message_text,
27726: p_error_text => lv_error_text);

Line 27772: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

27768: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code;
27769:
27770: --Duplicate records check for the records whose source is batch load
27771:
27772: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
27773: (p_app_short_name => 'MSC',
27774: p_error_code => 'MSC_PP_DUP_REC_FOR_BATCH_LOAD',
27775: p_message_text => lv_message_text,
27776: p_error_text => lv_error_text);

Line 27887: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

27883: USING v_instance_id;
27884: EXCEPTION
27885: WHEN NO_DATA_FOUND THEN
27886: -- Set the message
27887: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
27888: (p_app_short_name => 'MSC',
27889: p_error_code => 'MSC_PP_DEF_CAT_NOT_EXISTS',
27890: p_message_text => lv_message_text,
27891: p_error_text => lv_error_text);

Line 27956: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

27952: WHERE rowid = lb_rowid(j);
27953:
27954: -- Set the error message
27955:
27956: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
27957: (p_app_short_name => 'MSC',
27958: p_error_code => 'MSC_PP_NO_DELETION',
27959: p_message_text => lv_message_text,
27960: p_error_text => lv_error_text,

Line 27988: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

27984: USING lv_batch_id,
27985: v_instance_code;
27986:
27987: -- Set the error message
27988: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
27989: (p_app_short_name => 'MSC',
27990: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
27991: p_message_text => lv_message_text,
27992: p_error_text => lv_error_text,

Line 28007: lv_return := MSC_ST_UTIL.LOG_ERROR

28003:
28004: lv_where_str :=
28005: ' AND NVL(deleted_flag,'||NULL_VALUE||') NOT IN(1,2)';
28006:
28007: lv_return := MSC_ST_UTIL.LOG_ERROR
28008: (p_table_name => 'MSC_ST_ITEM_SOURCING',
28009: p_instance_code => v_instance_code,
28010: p_row => lv_column_names,
28011: p_severity => G_SEV_WARNING,

Line 28025: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

28021: IF lv_return <> 0 THEN
28022: RAISE ex_logging_err;
28023: END IF;
28024:
28025: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
28026: (p_app_short_name => 'MSC',
28027: p_error_code => 'MSC_PP_INVALID_VALUE',
28028: p_message_text => lv_message_text,
28029: p_error_text => lv_error_text,

Line 28053: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

28049: MSC_UTIL.LOG_MSG(MSC_UTIL.G_LVL_DEBUG_1,lv_sql_stmt);
28050:
28051: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
28052:
28053: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
28054: (p_app_short_name => 'MSC',
28055: p_error_code => 'MSC_PP_INVALID_VALUE',
28056: p_message_text => lv_message_text,
28057: p_error_text => lv_error_text,

Line 28086: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

28082:
28083:
28084: -- Set the message
28085:
28086: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
28087: (p_app_short_name => 'MSC',
28088: p_error_code => 'MSC_PP_INVALID_VALUE',
28089: p_message_text => lv_message_text,
28090: p_error_text => lv_error_text,

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

28097:
28098: -- Udpate organization_id for all the records
28099:
28100: lv_return :=
28101: MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID(p_table_name => 'MSC_ST_ITEM_SOURCING',
28102: p_org_partner_name =>'ORGANIZATION_CODE',
28103: p_org_partner_id =>'ORGANIZATION_ID',
28104: p_instance_code => v_instance_code,
28105: p_partner_type => G_ORGANIZATION,

Line 28155: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

28151: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
28152:
28153:
28154: -- Set the error message
28155: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
28156: (p_app_short_name => 'MSC',
28157: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
28158: p_message_text => lv_message_text,
28159: p_error_text => lv_error_text,

Line 28174: lv_return := MSC_ST_UTIL.LOG_ERROR

28170: -- Default planning_active as 1
28171:
28172: lv_where_str := ' AND NVL(planning_active,'||NULL_VALUE||') NOT IN (1,2)';
28173:
28174: lv_return := MSC_ST_UTIL.LOG_ERROR
28175: (p_table_name => 'MSC_ST_ITEM_SOURCING',
28176: p_instance_code => v_instance_code,
28177: p_row => lv_column_names,
28178: p_severity => G_SEV_WARNING,

Line 28194: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

28190: END IF;
28191:
28192: -- Set the message
28193:
28194: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
28195: (p_app_short_name => 'MSC',
28196: p_error_code => 'MSC_PP_INVALID_VALUE',
28197: p_message_text => lv_message_text,
28198: p_error_text => lv_error_text,

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

28207: -- As of now our assumption is that receipt_org_instance_code is same as
28208: -- v_instance_code ,
28209:
28210: lv_return :=
28211: MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID(p_table_name => 'MSC_ST_ITEM_SOURCING',
28212: p_org_partner_name =>'RECEIPT_ORGANIZATION_CODE',
28213: p_org_partner_id =>'RECEIPT_ORGANIZATION_ID',
28214: p_instance_code => v_instance_code,
28215: p_partner_type => G_ORGANIZATION,

Line 28263: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

28259: v_instance_code,lv_batch_id;
28260:
28261: -- Set the message
28262:
28263: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
28264: (p_app_short_name => 'MSC',
28265: p_error_code => 'MSC_PP_INVALID_VALUE',
28266: p_message_text => lv_message_text,
28267: p_error_text => lv_error_text,

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

28275:
28276: -- Derive inventory_item_id
28277:
28278: lv_return :=
28279: msc_st_util.derive_item_id(p_table_name => 'MSC_ST_ITEM_SOURCING',
28280: p_item_col_name => 'ITEM_NAME',
28281: p_item_col_id => 'INVENTORY_ITEM_ID',
28282: p_instance_code => v_instance_code,
28283: p_instance_id => v_instance_id,

Line 28317: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

28313: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
28314:
28315: -- Set the message
28316:
28317: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
28318: (p_app_short_name => 'MSC',
28319: p_error_code => 'MSC_PP_COL_VAL_NULL',
28320: p_message_text => lv_message_text,
28321: p_error_text => lv_error_text,

Line 28398: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

28394: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
28395:
28396: -- Set the message
28397:
28398: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
28399: (p_app_short_name => 'MSC',
28400: p_error_code => 'MSC_PP_INVALID_VALUE',
28401: p_message_text => lv_message_text,
28402: p_error_text => lv_error_text,

Line 28429: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

28425: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
28426:
28427: -- Set the message
28428:
28429: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
28430: (p_app_short_name => 'MSC',
28431: p_error_code => 'MSC_PP_INVALID_VALUE',
28432: p_message_text => lv_message_text,
28433: p_error_text => lv_error_text,

Line 28467: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

28463: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
28464:
28465: -- Set the message
28466:
28467: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
28468: (p_app_short_name => 'MSC',
28469: p_error_code => 'MSC_PP_COL_VAL_NULL',
28470: p_message_text => lv_message_text,
28471: p_error_text => lv_error_text,

Line 28502: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

28498: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
28499:
28500: -- Set the message
28501:
28502: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
28503: (p_app_short_name => 'MSC',
28504: p_error_code => 'MSC_PP_INVALID_VALUE',
28505: p_message_text => lv_message_text,
28506: p_error_text => lv_error_text,

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

28513:
28514:
28515: -- Now derive the source_partner_id
28516: lv_return :=
28517: msc_st_util.derive_partner_org_id(p_table_name => 'MSC_ST_ITEM_SOURCING',
28518: p_org_partner_name =>'SOURCE_PARTNER_NAME',
28519: p_org_partner_id =>'SOURCE_PARTNER_ID',
28520: p_instance_code => v_instance_code,
28521: p_partner_type => G_VENDOR,

Line 28534: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

28530: END IF;
28531:
28532: -- Set the message
28533:
28534: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
28535: (p_app_short_name => 'MSC',
28536: p_error_code => 'MSC_PP_INVALID_VALUE',
28537: p_message_text => lv_message_text,
28538: p_error_text => lv_error_text,

Line 28549: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_SITE_ID

28545:
28546:
28547: -- Derive source_partner_site_id
28548:
28549: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_SITE_ID
28550: (p_table_name => 'MSC_ST_ITEM_SOURCING',
28551: p_partner_name => 'SOURCE_PARTNER_NAME',
28552: p_partner_site_code => 'SOURCE_PARTNER_SITE_CODE',
28553: p_partner_site_id => 'SOURCE_PARTNER_SITE_ID',

Line 28569: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

28565: END IF;
28566:
28567: -- Set the message
28568:
28569: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
28570: (p_app_short_name => 'MSC',
28571: p_error_code => 'MSC_PP_COL_VAL_NULL',
28572: p_message_text => lv_message_text,
28573: p_error_text => lv_error_text,

Line 28605: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

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

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

28616:
28617: -- Derive source_organization_id
28618:
28619: lv_return :=
28620: msc_st_util.derive_partner_org_id(p_table_name => 'MSC_ST_ITEM_SOURCING',
28621: p_org_partner_name =>'SOURCE_ORGANIZATION_CODE',
28622: p_org_partner_id =>'SOURCE_ORGANIZATION_ID',
28623: p_instance_code => v_instance_code,
28624: p_partner_type => G_ORGANIZATION,

Line 28776: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

28772: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
28773:
28774: -- Set the message
28775:
28776: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
28777: (p_app_short_name => 'MSC',
28778: p_error_code => 'MSC_PP_DELETE_FAIL',
28779: p_message_text => lv_message_text,
28780: p_error_text => lv_error_text);

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

29571: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
29572:
29573: -- Set the processf flag as Valid and poulate instance_id
29574: lv_return :=
29575: MSC_ST_UTIL.SET_PROCESS_FLAG(p_table_name => 'MSC_ST_ITEM_SOURCING',
29576: p_instance_id => v_instance_id,
29577: p_instance_code => v_instance_code,
29578: p_process_flag => G_VALID,
29579: p_error_text => lv_error_text,

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

29586:
29587: -- At the end calling the LOG_ERROR for logging all errored out records
29588:
29589: lv_return :=
29590: msc_st_util.log_error(p_table_name => 'MSC_ST_ITEM_SOURCING',
29591: p_instance_code => v_instance_code,
29592: p_row => lv_column_names,
29593: p_severity => G_SEV_ERROR,
29594: p_error_text => lv_error_text,

Line 29698: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

29694:
29695:
29696: --Duplicate records check for the records whose source is XML
29697:
29698: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
29699: (p_app_short_name => 'MSC',
29700: p_error_code => 'MSC_PP_DUP_REC_FOR_XML',
29701: p_message_text => lv_message_text,
29702: p_error_text => lv_error_text);

Line 29734: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

29730: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code;
29731:
29732: --Duplicate records check for the records whose source is batch load
29733:
29734: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
29735: (p_app_short_name => 'MSC',
29736: p_error_code => 'MSC_PP_DUP_REC_FOR_BATCH_LOAD',
29737: p_message_text => lv_message_text,
29738: p_error_text => lv_error_text);

Line 29837: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

29833: WHERE rowid = lb_rowid(j);
29834:
29835:
29836: -- Set the message
29837: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
29838: (p_app_short_name => 'MSC',
29839: p_error_code => 'MSC_PP_NO_DELETION',
29840: p_message_text => lv_message_text,
29841: p_error_text => lv_error_text,

Line 29866: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

29862:
29863: EXECUTE IMMEDIATE lv_sql_stmt USING lv_batch_id,v_instance_code;
29864:
29865: -- Set the error message
29866: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
29867: (p_app_short_name => 'MSC',
29868: p_error_code => 'MSC_PP_COL_VAL_NULL',
29869: p_message_text => lv_message_text,
29870: p_error_text => lv_error_text,

Line 29899: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

29895: v_instance_code;
29896:
29897:
29898: -- Set the message
29899: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
29900: (p_app_short_name => 'MSC',
29901: p_error_code => 'MSC_PP_INVALID_VALUE',
29902: p_message_text => lv_message_text,
29903: p_error_text => lv_error_text,

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

29909: END IF;
29910:
29911: -- Derive organization id
29912: lv_return :=
29913: MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID(p_table_name =>'MSC_ST_PROJECT_TASKS',
29914: p_org_partner_name =>'ORGANIZATION_CODE',
29915: p_org_partner_id =>'ORGANIZATION_ID',
29916: p_instance_code => v_instance_code,
29917: p_partner_type => G_ORGANIZATION,

Line 29929: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

29925: RAISE ex_logging_err;
29926: END IF;
29927:
29928: -- Set the error message
29929: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
29930: (p_app_short_name => 'MSC',
29931: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
29932: p_message_text => lv_message_text,
29933: p_error_text => lv_error_text,

Line 29949: lv_return := MSC_ST_UTIL.LOG_ERROR

29945:
29946: lv_where_str :=
29947: ' AND NVL(deleted_flag,'||NULL_VALUE||') <>'||SYS_NO;
29948:
29949: lv_return := MSC_ST_UTIL.LOG_ERROR
29950: (p_table_name => 'MSC_ST_PROJECT_TASKS',
29951: p_instance_code => v_instance_code,
29952: p_row => lv_column_names,
29953: p_severity => G_SEV_WARNING,

Line 29969: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

29965: END IF;
29966:
29967:
29968: -- Set the error message
29969: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
29970: (p_app_short_name => 'MSC',
29971: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
29972: p_message_text => lv_message_text,
29973: p_error_text => lv_error_text,

Line 29987: lv_return := MSC_ST_UTIL.LOG_ERROR

29983: -- Default SEIBAN NUMBER FLAG as 2 if not in (1,2)
29984:
29985: lv_where_str := ' AND NVL(seiban_number_flag,'||NULL_VALUE||') NOT IN (1,2) ';
29986:
29987: lv_return := MSC_ST_UTIL.LOG_ERROR
29988: (p_table_name => 'MSC_ST_PROJECT_TASKS',
29989: p_instance_code => v_instance_code,
29990: p_row => lv_column_names,
29991: p_severity => G_SEV_WARNING,

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

30002: END IF;
30003:
30004: -- Derive Project id
30005: lv_return :=
30006: MSC_ST_UTIL.DERIVE_PROJ_TASK_ID(p_table_name => 'MSC_ST_PROJECT_TASKS',
30007: p_proj_col_name => 'PROJECT_NUMBER',
30008: p_proj_task_col_id => 'PROJECT_ID',
30009: p_instance_code => v_instance_code,
30010: p_entity_name => 'PROJECT_ID',

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

30018: END IF;
30019:
30020: -- Derive task id
30021: lv_return :=
30022: MSC_ST_UTIL.DERIVE_PROJ_TASK_ID(p_table_name =>'MSC_ST_PROJECT_TASKS',
30023: p_proj_col_name =>'PROJECT_NUMBER',
30024: p_proj_task_col_id =>'TASK_ID',
30025: p_task_col_name =>'TASK_NUMBER',
30026: p_instance_code => v_instance_code,

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

30238: CLOSE c3;
30239:
30240: -- Derive Project id
30241: lv_return :=
30242: MSC_ST_UTIL.DERIVE_PROJ_TASK_ID(p_table_name => 'MSC_ST_PROJECT_TASKS',
30243: p_proj_col_name => 'PROJECT_NUMBER',
30244: p_proj_task_col_id => 'PROJECT_ID',
30245: p_instance_code => v_instance_code,
30246: p_entity_name => 'PROJECT_ID',

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

30317: CLOSE c4;
30318:
30319: -- Derive task id
30320: lv_return :=
30321: MSC_ST_UTIL.DERIVE_PROJ_TASK_ID(p_table_name =>'MSC_ST_PROJECT_TASKS',
30322: p_proj_col_name =>'PROJECT_NUMBER',
30323: p_proj_task_col_id =>'TASK_ID',
30324: p_task_col_name =>'TASK_NUMBER',
30325: p_instance_code => v_instance_code,

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

30397: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
30398:
30399: -- Set the process flag as Valid and poulate instance_id
30400: lv_return :=
30401: MSC_ST_UTIL.SET_PROCESS_FLAG(p_table_name => 'MSC_ST_PROJECT_TASKS',
30402: p_instance_id => v_instance_id,
30403: p_instance_code => v_instance_code,
30404: p_process_flag => G_VALID,
30405: p_error_text => lv_error_text,

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

30413:
30414: -- At the end calling the LOG_ERROR for logging all errored out records
30415:
30416: lv_return :=
30417: MSC_ST_UTIL.LOG_ERROR(p_table_name => 'MSC_ST_PROJECT_TASKS',
30418: p_instance_code => v_instance_code,
30419: p_row => lv_column_names,
30420: p_severity => G_SEV_ERROR,
30421: p_message_text => NULL,

Line 30557: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

30553: AND batch_id = p_batch_id;
30554:
30555: BEGIN
30556:
30557: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
30558: (p_app_short_name => 'MSC',
30559: p_error_code => 'MSC_PP_DUP_REC_FOR_XML',
30560: p_message_text => lv_message_text,
30561: p_error_text => lv_error_text);

Line 30591: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

30587:
30588: EXECUTE IMMEDIATE lv_sql_stmt
30589: USING v_instance_code;
30590:
30591: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
30592: (p_app_short_name => 'MSC',
30593: p_error_code => 'MSC_PP_DUP_REC_FOR_BATCH_LOAD',
30594: p_message_text => lv_message_text,
30595: p_error_text => lv_error_text);

Line 30679: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

30675: creation_date = v_current_date,
30676: created_by = v_current_user
30677: WHERE rowid = lb_rowid(j);
30678:
30679: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
30680: (p_app_short_name => 'MSC',
30681: p_error_code => 'MSC_PP_NO_DELETION',
30682: p_message_text => lv_message_text,
30683: p_error_text => lv_error_text,

Line 30709: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

30705: EXECUTE IMMEDIATE lv_sql_stmt
30706: USING lv_batch_id,
30707: v_instance_code;
30708:
30709: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
30710: (p_app_short_name => 'MSC',
30711: p_error_code => 'MSC_PP_COL_VAL_NULL',
30712: p_message_text => lv_message_text,
30713: p_error_text => lv_error_text,

Line 30739: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

30735: USING lv_batch_id,
30736: v_instance_code;
30737:
30738:
30739: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
30740: (p_app_short_name => 'MSC',
30741: p_error_code => 'MSC_PP_INVALID_VALUE',
30742: p_message_text => lv_message_text,
30743: p_error_text => lv_error_text,

Line 30767: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

30763: EXECUTE IMMEDIATE lv_sql_stmt
30764: USING lv_batch_id,
30765: v_instance_code;
30766:
30767: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
30768: (p_app_short_name => 'MSC',
30769: p_error_code => 'MSC_PP_NO_UPDATION',
30770: p_message_text => lv_message_text,
30771: p_error_text => lv_error_text,

Line 30802: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

30798: USING lv_batch_id,
30799: v_instance_code;
30800:
30801: -- Set the error message
30802: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
30803: (p_app_short_name => 'MSC',
30804: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
30805: p_message_text => lv_message_text,
30806: p_error_text => lv_error_text,

Line 30822: lv_return := MSC_ST_UTIL.LOG_ERROR

30818:
30819: lv_where_str :=
30820: ' AND NVL(enabled_flag,'||NULL_VALUE||') NOT IN (1,2) ';
30821:
30822: lv_return := MSC_ST_UTIL.LOG_ERROR
30823: (p_table_name => 'MSC_ST_RESOURCE_GROUPS',
30824: p_instance_code => v_instance_code,
30825: p_row => lv_column_names,
30826: p_severity => G_SEV_WARNING,

Line 30852: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG

30848: IF NVL(lv_return,0) <> 0 THEN
30849: RAISE ex_logging_err;
30850: END IF;
30851:
30852: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG
30853: (p_table_name => 'MSC_ST_RESOURCE_GROUPS',
30854: p_instance_id => v_instance_id,
30855: p_instance_code => v_instance_code,
30856: p_process_flag => G_VALID,

Line 30865: lv_return := MSC_ST_UTIL.LOG_ERROR

30861: IF lv_return <> 0 THEN
30862: RAISE ex_logging_err;
30863: END IF;
30864:
30865: lv_return := MSC_ST_UTIL.LOG_ERROR
30866: (p_table_name => 'MSC_ST_RESOURCE_GROUPS',
30867: p_instance_code => v_instance_code,
30868: p_row => lv_column_names,
30869: p_severity => G_SEV_ERROR,

Line 30931: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

30927:
30928:
30929: --Duplicate records check for the records whose source is XML
30930:
30931: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
30932: (p_app_short_name => 'MSC',
30933: p_error_code => 'MSC_PP_DUP_REC_FOR_XML',
30934: p_message_text => lv_message_text,
30935: p_error_text => lv_error_text);

Line 30967: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

30963:
30964:
30965: --Duplicate records check for the records whose source is batch load
30966:
30967: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
30968: (p_app_short_name => 'MSC',
30969: p_error_code => 'MSC_PP_DUP_REC_FOR_BATCH_LOAD',
30970: p_message_text => lv_message_text,
30971: p_error_text => lv_error_text);

Line 31090: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

31086: WHERE rowid = lb_rowid(j);
31087:
31088:
31089: -- Set the message
31090: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
31091: (p_app_short_name => 'MSC',
31092: p_error_code => 'MSC_PP_NO_DELETION',
31093: p_message_text => lv_message_text,
31094: p_error_text => lv_error_text,

Line 31119: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

31115: EXECUTE IMMEDIATE lv_sql_stmt USING lv_batch_id,v_instance_code;
31116:
31117: -- bug 8310366 validate SCHEDULE_TO_INSTANCE(SDS Changes)
31118: -- Set the error message
31119: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
31120: (p_app_short_name => 'MSC',
31121: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
31122: p_message_text => lv_message_text,
31123: p_error_text => lv_error_text,

Line 31138: lv_return := MSC_ST_UTIL.LOG_ERROR

31134:
31135: lv_where_str :=
31136: ' AND NVL(SCHEDULE_TO_INSTANCE,'||NULL_VALUE||') NOT IN (''1'',''2'')';
31137:
31138: lv_return := MSC_ST_UTIL.LOG_ERROR
31139: (p_table_name => 'MSC_ST_DEPARTMENT_RESOURCES',
31140: p_instance_code => v_instance_code,
31141: p_row => lv_column_names,
31142: p_severity => G_SEV_WARNING,

Line 31158: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

31154:
31155:
31156:
31157:
31158: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
31159: (p_app_short_name => 'MSC',
31160: p_error_code => 'MSC_PP_INVALID_VALUE',
31161: p_message_text => lv_message_text,
31162: p_error_text => lv_error_text,

Line 31200: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

31196: lv_batch_id;
31197:
31198: -- Set the error message
31199:
31200: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
31201: (p_app_short_name => 'MSC',
31202: p_error_code => 'MSC_PP_COL_VAL_NULL',
31203: p_message_text => lv_message_text,
31204: p_error_text => lv_error_text,

Line 31234: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

31230: USING lv_batch_id,
31231: v_instance_code;
31232:
31233: -- Set the error message
31234: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
31235: (p_app_short_name => 'MSC',
31236: p_error_code => 'MSC_PP_COL_VAL_NULL',
31237: p_message_text => lv_message_text,
31238: p_error_text => lv_error_text,

Line 31271: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

31267:
31268: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
31269:
31270: -- Set the error message
31271: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
31272: (p_app_short_name => 'MSC',
31273: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
31274: p_message_text => lv_message_text,
31275: p_error_text => lv_error_text,

Line 31291: lv_return := MSC_ST_UTIL.LOG_ERROR

31287:
31288: lv_where_str :=
31289: ' AND NVL(deleted_flag,'||NULL_VALUE||') <>'||SYS_NO;
31290:
31291: lv_return := MSC_ST_UTIL.LOG_ERROR
31292: (p_table_name => 'MSC_ST_DEPARTMENT_RESOURCES',
31293: p_instance_code => v_instance_code,
31294: p_row => lv_column_names,
31295: p_severity => G_SEV_WARNING,

Line 31311: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

31307: END IF;
31308:
31309: -- Set the error message
31310:
31311: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
31312: (p_app_short_name => 'MSC',
31313: p_error_code => 'MSC_PP_INVALID_VALUE',
31314: p_message_text => lv_message_text,
31315: p_error_text => lv_error_text,

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

31321: END IF;
31322:
31323: -- Derive organization id
31324: lv_return :=
31325: MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID(p_table_name => 'MSC_ST_DEPARTMENT_RESOURCES',
31326: p_org_partner_name => 'ORGANIZATION_CODE',
31327: p_org_partner_id => 'ORGANIZATION_ID',
31328: p_instance_code => v_instance_code,
31329: p_partner_type => G_ORGANIZATION,

Line 31341: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

31337: RAISE ex_logging_err;
31338: END IF;
31339:
31340: -- Set the error message
31341: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
31342: (p_app_short_name => 'MSC',
31343: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
31344: p_message_text => lv_message_text,
31345: p_error_text => lv_error_text,

Line 31360: lv_return := MSC_ST_UTIL.LOG_ERROR

31356:
31357: lv_where_str :=
31358: ' AND NVL(line_flag,'||NULL_VALUE||') NOT IN (''1'',''2'')';
31359:
31360: lv_return := MSC_ST_UTIL.LOG_ERROR
31361: (p_table_name => 'MSC_ST_DEPARTMENT_RESOURCES',
31362: p_instance_code => v_instance_code,
31363: p_row => lv_column_names,
31364: p_severity => G_SEV_WARNING,

Line 31378: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

31374: RAISE ex_logging_err;
31375: END IF;
31376:
31377: -- Set the error message
31378: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
31379: (p_app_short_name => 'MSC',
31380: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
31381: p_message_text => lv_message_text,
31382: p_error_text => lv_error_text,

Line 31398: lv_return := MSC_ST_UTIL.LOG_ERROR

31394:
31395: lv_where_str :=
31396: ' AND NVL(available_24_hours_flag,'||NULL_VALUE||') NOT IN (1,2)';
31397:
31398: lv_return := MSC_ST_UTIL.LOG_ERROR
31399: (p_table_name => 'MSC_ST_DEPARTMENT_RESOURCES',
31400: p_instance_code => v_instance_code,
31401: p_row => lv_column_names,
31402: p_severity => G_SEV_WARNING,

Line 31417: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

31413: RAISE ex_logging_err;
31414: END IF;
31415:
31416: -- Set the error message
31417: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
31418: (p_app_short_name => 'MSC',
31419: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
31420: p_message_text => lv_message_text,
31421: p_error_text => lv_error_text,

Line 31436: lv_return := MSC_ST_UTIL.LOG_ERROR

31432:
31433: lv_where_str :=
31434: ' AND NVL(ctp_flag,'||NULL_VALUE||') NOT IN (1,2) AND line_flag = ''2'' ';
31435:
31436: lv_return := MSC_ST_UTIL.LOG_ERROR
31437: (p_table_name => 'MSC_ST_DEPARTMENT_RESOURCES',
31438: p_instance_code => v_instance_code,
31439: p_row => lv_column_names,
31440: p_severity => G_SEV_WARNING,

Line 31454: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

31450: RAISE ex_logging_err;
31451: END IF;
31452:
31453: -- Set the error message
31454: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
31455: (p_app_short_name => 'MSC',
31456: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
31457: p_message_text => lv_message_text,
31458: p_error_text => lv_error_text,

Line 31474: lv_return := MSC_ST_UTIL.LOG_ERROR

31470: lv_where_str :=
31471: ' AND NVL(resource_type,'||NULL_VALUE||')'
31472: ||' NOT IN (1,2,3,4,5) AND line_flag = ''2'' ';
31473:
31474: lv_return := MSC_ST_UTIL.LOG_ERROR
31475: (p_table_name => 'MSC_ST_DEPARTMENT_RESOURCES',
31476: p_instance_code => v_instance_code,
31477: p_row => lv_column_names,
31478: p_severity => G_SEV_WARNING,

Line 31494: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

31490: END IF;
31491:
31492: /* commented for Bug 2970460
31493: -- Set the error message
31494: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
31495: (p_app_short_name => 'MSC',
31496: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
31497: p_message_text => lv_message_text,
31498: p_error_text => lv_error_text,

Line 31514: lv_return := MSC_ST_UTIL.LOG_ERROR

31510: lv_where_str :=
31511: ' AND NVL(resource_include_flag,'||NULL_VALUE||')'
31512: ||' NOT IN (1,2) AND line_flag = 2';
31513:
31514: lv_return := MSC_ST_UTIL.LOG_ERROR
31515: (p_table_name => 'MSC_ST_DEPARTMENT_RESOURCES',
31516: p_instance_code => v_instance_code,
31517: p_row => lv_column_names,
31518: p_severity => G_SEV_WARNING,

Line 31533: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

31529: END IF;
31530: */
31531:
31532: -- Set the error message
31533: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
31534: (p_app_short_name => 'MSC',
31535: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
31536: p_message_text => lv_message_text,
31537: p_error_text => lv_error_text,

Line 31554: lv_return := MSC_ST_UTIL.LOG_ERROR

31550: lv_where_str :=
31551: ' AND NVL(aggregated_resource_flag,'||NULL_VALUE||')'
31552: ||' NOT IN (1,2) AND LINE_FLAG = 2';
31553:
31554: lv_return := MSC_ST_UTIL.LOG_ERROR
31555: (p_table_name => 'MSC_ST_DEPARTMENT_RESOURCES',
31556: p_instance_code => v_instance_code,
31557: p_row => lv_column_names,
31558: p_severity => G_SEV_WARNING,

Line 31803: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

31799: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
31800:
31801: -- Error out if owning_department_id is NULL
31802: -- Set the error message
31803: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
31804: (p_app_short_name => 'MSC',
31805: p_error_code => 'MSC_PP_COL_REF_NOT_EXIST',
31806: p_message_text => lv_message_text,
31807: p_error_text => lv_error_text,

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

31982: CLOSE c5;
31983:
31984: -- Set the process flag as Valid and poulate instance_id
31985: lv_return :=
31986: MSC_ST_UTIL.SET_PROCESS_FLAG(p_table_name => 'MSC_ST_DEPARTMENT_RESOURCES',
31987: p_instance_id => v_instance_id,
31988: p_instance_code => v_instance_code,
31989: p_process_flag => G_VALID,
31990: p_error_text => lv_error_text,

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

31997:
31998: -- At the end calling the LOG_ERROR for logging all errored out records
31999:
32000: lv_return :=
32001: MSC_ST_UTIL.LOG_ERROR(p_table_name => 'MSC_ST_DEPARTMENT_RESOURCES',
32002: p_instance_code => v_instance_code,
32003: p_row => lv_column_names,
32004: p_severity => G_SEV_ERROR,
32005: p_message_text => NULL,

Line 32022: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

32018: -- Validation for table MSC_ST_RESOURCE_SHIFTS
32019:
32020: --Duplicate records check for the records whose source is XML
32021:
32022: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
32023: (p_app_short_name => 'MSC',
32024: p_error_code => 'MSC_PP_DUP_REC_FOR_XML',
32025: p_message_text => lv_message_text,
32026: p_error_text => lv_error_text);

Line 32063: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

32059:
32060:
32061: --Duplicate records check for the records whose source is batch load
32062:
32063: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
32064: (p_app_short_name => 'MSC',
32065: p_error_code => 'MSC_PP_DUP_REC_FOR_BATCH_LOAD',
32066: p_message_text => lv_message_text,
32067: p_error_text => lv_error_text);

Line 32156: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

32152:
32153:
32154: -- Set the error message
32155:
32156: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
32157: (p_app_short_name => 'MSC',
32158: p_error_code => 'MSC_PP_INVALID_VALUE',
32159: p_message_text => lv_message_text,
32160: p_error_text => lv_error_text,

Line 32189: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

32185: EXECUTE IMMEDIATE lv_sql_stmt USING lv_batch_id,v_instance_code;
32186:
32187:
32188: -- Set the error message
32189: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
32190: (p_app_short_name => 'MSC',
32191: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
32192: p_message_text => lv_message_text,
32193: p_error_text => lv_error_text,

Line 32209: lv_return := MSC_ST_UTIL.LOG_ERROR

32205:
32206: lv_where_str :=
32207: ' AND NVL(deleted_flag,'||NULL_VALUE||') <>'||SYS_NO;
32208:
32209: lv_return := MSC_ST_UTIL.LOG_ERROR
32210: (p_table_name => 'MSC_ST_RESOURCE_SHIFTS',
32211: p_instance_code => v_instance_code,
32212: p_row => lv_column_names,
32213: p_severity => G_SEV_WARNING,

Line 32229: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

32225: END IF;
32226:
32227: -- Set the error message
32228:
32229: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
32230: (p_app_short_name => 'MSC',
32231: p_error_code => 'MSC_PP_NO_DELETION',
32232: p_message_text => lv_message_text,
32233: p_error_text => lv_error_text,

Line 32265: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

32261:
32262: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
32263:
32264: -- Set the error message
32265: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
32266: (p_app_short_name => 'MSC',
32267: p_error_code => 'MSC_PP_COL_REF_NOT_EXIST',
32268: p_message_text => lv_message_text,
32269: p_error_text => lv_error_text,

Line 32322: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

32318:
32319: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
32320:
32321: -- Set the error message
32322: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
32323: (p_app_short_name => 'MSC',
32324: p_error_code => 'MSC_PP_COL_REF_NOT_EXIST',
32325: p_message_text => lv_message_text,
32326: p_error_text => lv_error_text,

Line 32414: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

32410: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
32411:
32412:
32413: -- Set the error message
32414: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
32415: (p_app_short_name => 'MSC',
32416: p_error_code => 'MSC_PP_COL_REF_NOT_EXIST',
32417: p_message_text => lv_message_text,
32418: p_error_text => lv_error_text,

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

32464:
32465:
32466: -- Set the process flag as Valid and populate instance_id
32467: lv_return :=
32468: MSC_ST_UTIL.SET_PROCESS_FLAG(p_table_name => 'MSC_ST_RESOURCE_SHIFTS',
32469: p_instance_id => v_instance_id,
32470: p_instance_code => v_instance_code,
32471: p_process_flag => G_VALID,
32472: p_error_text => lv_error_text,

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

32479:
32480: -- At the end calling the LOG_ERROR for logging all errored out records
32481:
32482: lv_return :=
32483: MSC_ST_UTIL.LOG_ERROR(p_table_name =>'MSC_ST_RESOURCE_SHIFTS',
32484: p_instance_code =>v_instance_code,
32485: p_row =>lv_column_names,
32486: p_severity =>G_ERROR_FLG,
32487: p_message_text =>NULL,

Line 32504: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

32500: -- Validation for table MSC_ST_RESOURCE_CHANGES
32501:
32502: --Duplicate records check for the records whose source is XML
32503:
32504: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
32505: (p_app_short_name => 'MSC',
32506: p_error_code => 'MSC_PP_DUP_REC_FOR_XML',
32507: p_message_text => lv_message_text,
32508: p_error_text => lv_error_text);

Line 32562: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

32558: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code;
32559:
32560: --Duplicate records check for the records whose source is batch load
32561:
32562: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
32563: (p_app_short_name => 'MSC',
32564: p_error_code => 'MSC_PP_DUP_REC_FOR_BATCH_LOAD',
32565: p_message_text => lv_message_text,
32566: p_error_text => lv_error_text);

Line 32686: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

32682:
32683:
32684: -- Set the error message
32685:
32686: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
32687: (p_app_short_name => 'MSC',
32688: p_error_code => 'MSC_PP_COL_VAL_NULL',
32689: p_message_text => lv_message_text,
32690: p_error_text => lv_error_text,

Line 32717: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

32713: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
32714:
32715: -- Set the message
32716:
32717: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
32718: (p_app_short_name => 'MSC',
32719: p_error_code => 'MSC_PP_INVALID_VALUE',
32720: p_message_text => lv_message_text,
32721: p_error_text => lv_error_text,

Line 32750: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

32746: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
32747:
32748:
32749: -- Set the error message
32750: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
32751: (p_app_short_name => 'MSC',
32752: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
32753: p_message_text => lv_message_text,
32754: p_error_text => lv_error_text,

Line 32768: lv_return := MSC_ST_UTIL.LOG_ERROR

32764: -- Check whether delete flag value is in (1,2),if not default to SYS_NO
32765:
32766: lv_where_str := ' AND NVL(deleted_flag,'||NULL_VALUE||')NOT IN (1,2)';
32767:
32768: lv_return := MSC_ST_UTIL.LOG_ERROR
32769: (p_table_name => 'MSC_ST_RESOURCE_CHANGES',
32770: p_instance_code => v_instance_code,
32771: p_row => lv_column_names,
32772: p_severity => G_SEV_WARNING,

Line 32787: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

32783: RAISE ex_logging_err;
32784: END IF;
32785:
32786: --Set the message
32787: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
32788: (p_app_short_name => 'MSC',
32789: p_error_code => 'MSC_PP_INVALID_VALUE',
32790: p_message_text => lv_message_text,
32791: p_error_text => lv_error_text,

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

32797: END IF;
32798:
32799: -- Derive organization id
32800: lv_return :=
32801: MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID(p_table_name => 'MSC_ST_RESOURCE_CHANGES',
32802: p_org_partner_name => 'ORGANIZATION_CODE',
32803: p_org_partner_id => 'ORGANIZATION_ID',
32804: p_instance_code => v_instance_code,
32805: p_partner_type => G_ORGANIZATION,

Line 32841: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

32837:
32838: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code, lv_batch_id;
32839:
32840: -- Set the error message
32841: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
32842: (p_app_short_name => 'MSC',
32843: p_error_code => 'MSC_PP_COL_REF_NOT_EXIST',
32844: p_message_text => lv_message_text,
32845: p_error_text => lv_error_text,

Line 32900: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

32896: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
32897:
32898:
32899: -- Set the error message
32900: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
32901: (p_app_short_name => 'MSC',
32902: p_error_code => 'MSC_PP_COL_REF_NOT_EXIST',
32903: p_message_text => lv_message_text,
32904: p_error_text => lv_error_text,

Line 32992: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

32988: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
32989:
32990:
32991: -- Set the error message
32992: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
32993: (p_app_short_name => 'MSC',
32994: p_error_code => 'MSC_PP_INVALID_VALUE',
32995: p_message_text => lv_message_text,
32996: p_error_text => lv_error_text,

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

33054:
33055:
33056: -- Set the process flag as Valid and populate instance_id
33057: lv_return :=
33058: MSC_ST_UTIL.SET_PROCESS_FLAG(p_table_name => 'MSC_ST_RESOURCE_CHANGES',
33059: p_instance_id => v_instance_id,
33060: p_instance_code => v_instance_code,
33061: p_process_flag => G_VALID,
33062: p_error_text => lv_error_text,

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

33100:
33101: -- At the end calling the LOG_ERROR for logging all errored out records
33102:
33103: lv_return :=
33104: MSC_ST_UTIL.LOG_ERROR(p_table_name => 'MSC_ST_RESOURCE_CHANGES',
33105: p_instance_code => v_instance_code,
33106: p_row => lv_column_names,
33107: p_severity => G_SEV_ERROR,
33108: p_message_text => NULL,

Line 33183: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

33179: --query--
33180: BEGIN
33181: LOOP
33182:
33183: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
33184: (p_app_short_name => 'MSC',
33185: p_error_code => 'MSC_PP_DUP_REC_FOR_BATCH_LOAD',
33186: p_message_text => lv_message_text,
33187: p_error_text => lv_error_text);

Line 33288: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

33284: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
33285:
33286: -- Set the message for invalid Organization_code
33287:
33288: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
33289: (p_app_short_name => 'MSC',
33290: p_error_code => 'MSC_PP_INVALID_VALUE',
33291: p_message_text => lv_message_text,
33292: p_error_text => lv_error_text,

Line 33305: MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID(p_table_name =>'MSC_ST_RESOURCE_SETUPS',

33301:
33302: v_sql_stmt:= 05;
33303:
33304: lv_return :=
33305: MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID(p_table_name =>'MSC_ST_RESOURCE_SETUPS',
33306: p_org_partner_name =>'ORGANIZATION_CODE',
33307: p_org_partner_id =>'ORGANIZATION_ID',
33308: p_instance_code => v_instance_code,
33309: p_partner_type => G_ORGANIZATION,

Line 33345: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

33341: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
33342:
33343: -- Set the message for invalid resource_code
33344:
33345: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
33346: (p_app_short_name => 'MSC',
33347: p_error_code => 'MSC_PP_INVALID_VALUE',
33348: p_message_text => lv_message_text,
33349: p_error_text => lv_error_text,

Line 33437: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG

33433:
33434: END IF;
33435: CLOSE c3;
33436:
33437: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG
33438: (p_table_name => 'MSC_ST_RESOURCE_SETUPS',
33439: p_instance_id => v_instance_id,
33440: p_instance_code => v_instance_code,
33441: p_process_flag => G_VALID,

Line 33452: lv_return := MSC_ST_UTIL.LOG_ERROR

33448: END IF;
33449:
33450: -- Inserting all the errored out records into MSC_ERRORS
33451:
33452: lv_return := MSC_ST_UTIL.LOG_ERROR
33453: (p_table_name => 'MSC_ST_RESOURCE_SETUPS',
33454: p_instance_code => v_instance_code,
33455: p_row => lv_column_names,
33456: p_severity => G_SEV_ERROR,

Line 33537: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

33533:
33534: EXIT WHEN SQL%NOTFOUND;
33535:
33536:
33537: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
33538: (p_app_short_name => 'MSC',
33539: p_error_code => 'MSC_PP_DUP_REC_FOR_BATCH_LOAD',
33540: p_message_text => lv_message_text,
33541: p_error_text => lv_error_text);

Line 33574: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

33570: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code;
33571:
33572: -- Set the message for invalid Organization_code
33573:
33574: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
33575: (p_app_short_name => 'MSC',
33576: p_error_code => 'MSC_PP_INVALID_VALUE',
33577: p_message_text => lv_message_text,
33578: p_error_text => lv_error_text,

Line 33588: MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID(p_table_name =>'MSC_ST_SETUP_TRANSITIONS',

33584: END IF;
33585:
33586: -- Populate organization id
33587: lv_return :=
33588: MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID(p_table_name =>'MSC_ST_SETUP_TRANSITIONS',
33589: p_org_partner_name =>'ORGANIZATION_CODE',
33590: p_org_partner_id =>'ORGANIZATION_ID',
33591: p_instance_code => v_instance_code,
33592: p_partner_type => G_ORGANIZATION,

Line 33634: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

33630:
33631: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
33632:
33633: -- Set the error message
33634: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
33635: (p_app_short_name => 'MSC',
33636: p_error_code => 'MSC_PP_COL_REF_NOT_EXIST',
33637: p_message_text => lv_message_text,
33638: p_error_text => lv_error_text,

Line 33691: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

33687: MSC_UTIL.LOG_MSG(MSC_UTIL.G_LVL_DEBUG_1,lv_sql_stmt);
33688:
33689: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
33690:
33691: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
33692: (p_app_short_name => 'MSC',
33693: p_error_code => 'MSC_PP_COL_REF_NOT_EXIST',
33694: p_message_text => lv_message_text,
33695: p_error_text => lv_error_text,

Line 33769: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

33765:
33766: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code, lv_batch_id;
33767:
33768: -- Set the error message
33769: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
33770:
33771: (p_app_short_name => 'MSC',
33772: p_error_code => 'MSC_PP_COL_REF_NOT_EXIST',
33773: p_message_text => lv_message_text,

Line 33826: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

33822: MSC_UTIL.LOG_MSG(MSC_UTIL.G_LVL_DEBUG_1,lv_sql_stmt);
33823:
33824: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
33825:
33826: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
33827: (p_app_short_name => 'MSC',
33828: p_error_code => 'MSC_PP_COL_REF_NOT_EXIST',
33829: p_message_text => lv_message_text,
33830: p_error_text => lv_error_text,

Line 33860: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG

33856: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
33857:
33858:
33859:
33860: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG
33861: (p_table_name => 'MSC_ST_SETUP_TRANSITIONS',
33862: p_instance_id => v_instance_id,
33863: p_instance_code => v_instance_code,
33864: p_process_flag => G_VALID,

Line 33875: lv_return := MSC_ST_UTIL.LOG_ERROR

33871: END IF;
33872:
33873: -- Inserting all the errored out records into MSC_ERRORS
33874:
33875: lv_return := MSC_ST_UTIL.LOG_ERROR
33876: (p_table_name => 'MSC_ST_SETUP_TRANSITIONS',
33877: p_instance_code => v_instance_code,
33878: p_row => lv_column_names,
33879: p_severity => G_SEV_ERROR,

Line 34214: lv_return := MSC_ST_UTIL.LOG_ERROR

34210: ||' NOT IN(1,2)';
34211:
34212: --Log a warning for those records where the deleted_flag has a value other
34213: --SYS_NO
34214: lv_return := MSC_ST_UTIL.LOG_ERROR
34215: (p_table_name => 'MSC_ST_SUPPLIES',
34216: p_instance_code => v_instance_code,
34217: p_row => lv_column_names,
34218: p_severity => G_SEV_WARNING,

Line 34233: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

34229: END IF;
34230:
34231: --bug 2773881 (ssurendr) validation on need_by_date/promised_date -- changes begin
34232:
34233: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
34234: (p_app_short_name => 'MSC',
34235: p_error_code => 'MSC_PP_COL_VAL_NULL',
34236: p_message_text => lv_message_text,
34237: p_error_text => lv_error_text,

Line 34267: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

34263: v_instance_code;
34264:
34265: --bug 2773881 (ssurendr) validation on need_by_date/promised_date -- changes end
34266:
34267: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
34268: (p_app_short_name => 'MSC',
34269: p_error_code => 'MSC_PP_INVALID_VALUE',
34270: p_message_text => lv_message_text,
34271: p_error_text => lv_error_text,

Line 34280: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID

34276: RAISE ex_logging_err;
34277: END IF;
34278:
34279: --Derive Organization_id
34280: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID
34281: (p_table_name => 'MSC_ST_SUPPLIES',
34282: p_org_partner_name => 'ORGANIZATION_CODE',
34283: p_org_partner_id => 'ORGANIZATION_ID',
34284: p_instance_code => v_instance_code,

Line 34335: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

34331: CLOSE c6;
34332:
34333: IF v_instance_type = G_INS_OTHER THEN
34334:
34335: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
34336: (p_app_short_name => 'MSC',
34337: p_error_code => 'MSC_PP_INVALID_VALUE',
34338: p_message_text => lv_message_text,
34339: p_error_text => lv_error_text,

Line 34422: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

34418: AND process_flag = G_IN_PROCESS
34419: AND OWNING_TP_TYPE = 2
34420: AND ORDER_TYPE=18;
34421:
34422: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
34423: (p_app_short_name => 'MSC',
34424: p_error_code => 'MSC_PP_INVALID_VALUE',
34425: p_message_text => lv_message_text,
34426: p_error_text => lv_error_text,

Line 34483: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

34479: AND t1.PLANNING_TP_TYPE = 2
34480: AND t1.order_type=18;
34481:
34482:
34483: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
34484: (p_app_short_name => 'MSC',
34485: p_error_code => 'MSC_PP_INVALID_VALUE',
34486: p_message_text => lv_message_text,
34487: p_error_text => lv_error_text,

Line 34533: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

34529: AND t1.process_flag = G_IN_PROCESS
34530: AND t1.OWNING_TP_TYPE = 2
34531: AND t1.order_type=18;
34532:
34533: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
34534: (p_app_short_name => 'MSC',
34535: p_error_code => 'MSC_PP_INVALID_VALUE',
34536: p_message_text => lv_message_text,
34537: p_error_text => lv_error_text,

Line 34558: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

34554: END IF;
34555:
34556: -----------------end of changes for flatfile load into ERP instance-----------
34557:
34558: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
34559: (p_app_short_name => 'MSC',
34560: p_error_code => 'MSC_PP_INVALID_VALUE',
34561: p_message_text => lv_message_text,
34562: p_error_text => lv_error_text,

Line 34571: lv_return := MSC_ST_UTIL.DERIVE_ITEM_ID

34567: RAISE ex_logging_err;
34568: END IF;
34569:
34570: --Derive Inventory_item_id
34571: lv_return := MSC_ST_UTIL.DERIVE_ITEM_ID
34572: (p_table_name => 'MSC_ST_SUPPLIES',
34573: p_item_col_name => 'ITEM_NAME',
34574: p_item_col_id => 'INVENTORY_ITEM_ID',
34575: p_instance_id => v_instance_id,

Line 34588: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

34584: IF lv_return <> 0 THEN
34585: RAISE ex_logging_err;
34586: END IF;
34587:
34588: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
34589: (p_app_short_name => 'MSC',
34590: p_error_code => 'MSC_PP_INVALID_VALUE',
34591: p_message_text => lv_message_text,
34592: p_error_text => lv_error_text,

Line 34601: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID

34597: RAISE ex_logging_err;
34598: END IF;
34599:
34600: --Derive Supplier_id
34601: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID
34602: (p_table_name => 'MSC_ST_SUPPLIES',
34603: p_org_partner_name => 'SUPPLIER_NAME',
34604: p_org_partner_id => 'SUPPLIER_ID',
34605: p_instance_code => v_instance_code,

Line 34619: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

34615: RAISE ex_logging_err;
34616: END IF;
34617:
34618:
34619: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
34620: (p_app_short_name => 'MSC',
34621: p_error_code => 'MSC_PP_INVALID_VALUE',
34622: p_message_text => lv_message_text,
34623: p_error_text => lv_error_text,

Line 34632: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_SITE_ID

34628: RAISE ex_logging_err;
34629: END IF;
34630:
34631: --Derive Supplier_site_id
34632: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_SITE_ID
34633: (p_table_name => 'MSC_ST_SUPPLIES',
34634: p_partner_name => 'SUPPLIER_NAME',
34635: p_partner_site_code => 'SUPPLIER_SITE_CODE',
34636: p_partner_site_id => 'SUPPLIER_SITE_ID',

Line 34650: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

34646: IF lv_return <> 0 THEN
34647: RAISE ex_logging_err;
34648: END IF;
34649:
34650: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
34651: (p_app_short_name => 'MSC',
34652: p_error_code => 'MSC_PP_COL_VAL_NULL',
34653: p_message_text => lv_message_text,
34654: p_error_text => lv_error_text,

Line 34700: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

34696:
34697:
34698: -- bug 2903356
34699:
34700: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
34701: (p_app_short_name => 'MSC',
34702: p_error_code => 'MSC_DOCK_INVALID_VAL',
34703: p_message_text => lv_message_text,
34704: p_error_text => lv_error_text,

Line 34722: lv_return := MSC_ST_UTIL.LOG_ERROR

34718: ||' AND deleted_flag ='||SYS_NO
34719: ||' AND order_type IN(2,11,12,73,87)'
34720: ||' AND process_flag = '||G_IN_PROCESS;
34721:
34722: lv_return := MSC_ST_UTIL.LOG_ERROR
34723: (p_table_name => 'MSC_ST_SUPPLIES',
34724: p_instance_code => v_instance_code,
34725: p_row => lv_column_names,
34726: p_severity => G_SEV_WARNING,

Line 34758: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

34754: USING p_batch_id,
34755: v_instance_code;
34756: */
34757:
34758: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
34759: (p_app_short_name => 'MSC',
34760: p_error_code => 'MSC_PP_POS_NON_ZERO',
34761: p_message_text => lv_message_text,
34762: p_error_text => lv_error_text,

Line 34790: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

34786: USING p_batch_id,
34787: v_instance_code;
34788:
34789:
34790: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
34791: (p_app_short_name => 'MSC',
34792: p_error_code => 'MSC_PP_COL_REF_NOT_EXIST',
34793: p_message_text => lv_message_text,
34794: p_error_text => lv_error_text,

Line 34892: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

34888: --Supply chain exchange and the validation will be done only for PO's
34889:
34890: IF v_instance_type = G_SCE THEN
34891:
34892: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
34893: (p_app_short_name => 'MSC',
34894: p_error_code => 'MSC_PP_COL_REF_NOT_EXIST',
34895: p_message_text => lv_message_text,
34896: p_error_text => lv_error_text,

Line 34930: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

34926: USING p_batch_id,
34927: v_instance_code;
34928:
34929:
34930: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
34931: (p_app_short_name => 'MSC',
34932: p_error_code => 'MSC_PP_COL_REF_NOT_EXIST',
34933: p_message_text => lv_message_text,
34934: p_error_text => lv_error_text,

Line 34972: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

34968: v_instance_code;
34969:
34970: END IF;
34971:
34972: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
34973: (p_app_short_name => 'MSC',
34974: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
34975: p_message_text => lv_message_text,
34976: p_error_text => lv_error_text,

Line 34991: lv_return := MSC_ST_UTIL.LOG_ERROR

34987: ||' AND deleted_flag = '||SYS_NO;
34988:
34989: --Log a warning for those records where the firm_planned_type has a value other
34990: --NOT IN (1,2)
34991: lv_return := MSC_ST_UTIL.LOG_ERROR
34992: (p_table_name => 'MSC_ST_SUPPLIES',
34993: p_instance_code => v_instance_code,
34994: p_row => lv_column_names,
34995: p_severity => G_SEV_WARNING,

Line 35008: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

35004: IF lv_return <> 0 THEN
35005: RAISE ex_logging_err;
35006: END IF;
35007:
35008: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
35009: (p_app_short_name => 'MSC',
35010: p_error_code => 'MSC_PP_FK_REF_NOT_EXIST',
35011: p_message_text => lv_message_text,
35012: p_error_text => lv_error_text,

Line 35024: lv_return := MSC_ST_UTIL.DERIVE_PROJ_TASK_ID

35020: RAISE ex_logging_err;
35021: END IF;
35022:
35023: --Derive Project Id.
35024: lv_return := MSC_ST_UTIL.DERIVE_PROJ_TASK_ID
35025: (p_table_name => 'MSC_ST_SUPPLIES',
35026: p_proj_col_name => 'PROJECT_NUMBER',
35027: p_proj_task_col_id => 'PROJECT_ID',
35028: p_instance_code => v_instance_code,

Line 35040: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

35036: IF lv_return <> 0 THEN
35037: RAISE ex_logging_err;
35038: END IF;
35039:
35040: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
35041: (p_app_short_name => 'MSC',
35042: p_error_code => 'MSC_PP_FK_REF_NOT_EXIST',
35043: p_message_text => lv_message_text,
35044: p_error_text => lv_error_text,

Line 35057: lv_return := MSC_ST_UTIL.DERIVE_PROJ_TASK_ID

35053: RAISE ex_logging_err;
35054: END IF;
35055:
35056: --Derive Task Id.
35057: lv_return := MSC_ST_UTIL.DERIVE_PROJ_TASK_ID
35058: (p_table_name => 'MSC_ST_SUPPLIES',
35059: p_proj_col_name => 'PROJECT_NUMBER',
35060: p_proj_task_col_id => 'TASK_ID',
35061: p_instance_code => v_instance_code,

Line 35075: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

35071: IF lv_return <> 0 THEN
35072: RAISE ex_logging_err;
35073: END IF;
35074:
35075: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
35076: (p_app_short_name => 'MSC',
35077: p_error_code => 'MSC_PP_INVALID_VALUE',
35078: p_message_text => lv_message_text,
35079: p_error_text => lv_error_text,

Line 35088: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID

35084: RAISE ex_logging_err;
35085: END IF;
35086:
35087: --Derive FROM_ORGANIZATION_ID
35088: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID
35089: (p_table_name => 'MSC_ST_SUPPLIES',
35090: p_org_partner_name => 'FROM_ORGANIZATION_CODE',
35091: p_org_partner_id => 'FROM_ORGANIZATION_ID',
35092: p_instance_code => v_instance_code,

Line 35185: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

35181: EXECUTE IMMEDIATE lv_sql_stmt
35182: USING p_batch_id,
35183: v_instance_code;
35184:
35185: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
35186: (p_app_short_name => 'MSC',
35187: p_error_code => 'MSC_PP_DELETE_FAIL',
35188: p_message_text => lv_message_text,
35189: p_error_text => lv_error_text);

Line 35684: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG

35680:
35681:
35682:
35683:
35684: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG
35685: (p_table_name => 'MSC_ST_SUPPLIES',
35686: p_instance_id => v_instance_id,
35687: p_instance_code => v_instance_code,
35688: p_process_flag => G_VALID,

Line 35697: lv_return := MSC_ST_UTIL.LOG_ERROR

35693: IF lv_return <> 0 THEN
35694: RAISE ex_logging_err;
35695: END IF;
35696:
35697: lv_return := MSC_ST_UTIL.LOG_ERROR
35698: (p_table_name => 'MSC_ST_SUPPLIES',
35699: p_instance_code => v_instance_code,
35700: p_row => lv_column_names,
35701: p_severity => G_SEV_ERROR,

Line 35941: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

35937: -- 12620427
35938: IF (lv_retain_src_header_line_id = 1) THEN
35939: -- Set the message
35940:
35941: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
35942: (p_app_short_name => 'MSC',
35943: p_error_code => 'MSC_PP_COL_VAL_NULL',
35944: p_message_text => lv_message_text,
35945: p_error_text => lv_error_text,

Line 36134: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

36130:
36131:
36132: --Set the message
36133:
36134: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
36135: (p_app_short_name => 'MSC',
36136: p_error_code => 'MSC_PP_INVALID_VALUE',
36137: p_message_text => lv_message_text,
36138: p_error_text => lv_error_text,

Line 36164: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

36160: MSC_UTIL.LOG_MSG(MSC_UTIL.G_LVL_DEBUG_1,lv_sql_stmt);
36161:
36162: EXECUTE IMMEDIATE lv_sql_stmt USING p_batch_id,v_instance_code;
36163:
36164: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
36165: (p_app_short_name => 'MSC',
36166: p_error_code => 'MSC_PP_REV_DT_GT_REQ_DATE',
36167: p_message_text => lv_message_text,
36168: p_error_text => lv_error_text);

Line 36180: lv_return := MSC_ST_UTIL.LOG_ERROR

36176: ' AND TRUNC(NVL(REVISED_DMD_DATE,SYSDATE- 36500)) > TRUNC(NVL(REQUIREMENT_DATE,SYSDATE+36500))';
36177:
36178: --Log a warning for those records where the revised_dmd_date is greater
36179: --than firm date(requirement_date)
36180: lv_return := MSC_ST_UTIL.LOG_ERROR
36181: (p_table_name => 'MSC_ST_SALES_ORDERS',
36182: p_instance_code => v_instance_code,
36183: p_row => lv_column_names,
36184: p_severity => G_SEV_WARNING,

Line 36201: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

36197:
36198:
36199: -- Set the message
36200:
36201: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
36202: (p_app_short_name => 'MSC',
36203: p_error_code => 'MSC_PP_COL_VAL_NULL',
36204: p_message_text => lv_message_text,
36205: p_error_text => lv_error_text,

Line 36239: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

36235: EXECUTE IMMEDIATE lv_sql_stmt USING p_batch_id,v_instance_code;
36236:
36237:
36238: -- Set the error message
36239: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
36240: (p_app_short_name => 'MSC',
36241: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
36242: p_message_text => lv_message_text,
36243: p_error_text => lv_error_text,

Line 36259: lv_return := MSC_ST_UTIL.LOG_ERROR

36255: ' AND NVL(deleted_flag,'||NULL_VALUE||') NOT IN(1,2)';
36256:
36257: --Log a warning for those records where the deleted_flag has a value other
36258: --SYS_NO or SYS_YES
36259: lv_return := MSC_ST_UTIL.LOG_ERROR
36260: (p_table_name => 'MSC_ST_SALES_ORDERS',
36261: p_instance_code => v_instance_code,
36262: p_row => lv_column_names,
36263: p_severity => G_SEV_WARNING,

Line 36278: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

36274: END IF;
36275:
36276: -- Set the message
36277:
36278: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
36279: (p_app_short_name => 'MSC',
36280: p_error_code => 'MSC_PP_INVALID_VALUE',
36281: p_message_text => lv_message_text,
36282: p_error_text => lv_error_text,

Line 36291: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID

36287: RAISE ex_logging_err;
36288: END IF;
36289:
36290: --Derive Organization_id
36291: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID
36292: (p_table_name => 'MSC_ST_SALES_ORDERS',
36293: p_org_partner_name => 'ORGANIZATION_CODE',
36294: p_org_partner_id => 'ORGANIZATION_ID',
36295: p_instance_code => v_instance_code,

Line 36310: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

36306: END IF;
36307:
36308: -- Set the message
36309:
36310: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
36311: (p_app_short_name => 'MSC',
36312: p_error_code => 'MSC_PP_INVALID_VALUE',
36313: p_message_text => lv_message_text,
36314: p_error_text => lv_error_text,

Line 36324: lv_return := MSC_ST_UTIL.DERIVE_ITEM_ID

36320: END IF;
36321:
36322: --DERIVE ORIGINAL_ITEM_ID
36323:
36324: lv_return := MSC_ST_UTIL.DERIVE_ITEM_ID
36325: (p_table_name =>'MSC_ST_SALES_ORDERS',
36326: p_item_col_name =>'ORIGINAL_ITEM_NAME',
36327: p_item_col_id =>'ORIGINAL_ITEM_ID',
36328: p_instance_code => v_instance_code,

Line 36343: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

36339: END IF;
36340:
36341: -----------------------------------moved code from below to above demand_id generation E1----------------
36342: -- Set the error message
36343: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
36344: (p_app_short_name => 'MSC',
36345: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
36346: p_message_text => lv_message_text,
36347: p_error_text => lv_error_text,

Line 36363: lv_return := MSC_ST_UTIL.LOG_ERROR

36359: ' AND NVL(reservation_type,'||NULL_VALUE||') NOT IN (1,2,3)'
36360: ||' AND deleted_flag = '||SYS_NO;
36361:
36362:
36363: lv_return := MSC_ST_UTIL.LOG_ERROR
36364: (p_table_name => 'MSC_ST_SALES_ORDERS',
36365: p_instance_code => v_instance_code,
36366: p_row => lv_column_names,
36367: p_severity => G_SEV_WARNING,

Line 36409: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

36405:
36406: EXECUTE IMMEDIATE lv_sql_stmt USING p_batch_id,v_instance_code;
36407:
36408:
36409: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
36410: (p_app_short_name => 'MSC',
36411: p_error_code => 'MSC_PP_DELETE_FAIL',
36412: p_message_text => lv_message_text,
36413: p_error_text => lv_error_text);

Line 36441: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

36437:
36438:
36439: -- Set the message
36440:
36441: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
36442: (p_app_short_name => 'MSC',
36443: p_error_code => 'MSC_PP_COL_VAL_NULL',
36444: p_message_text => lv_message_text,
36445: p_error_text => lv_error_text,

Line 36480: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

36476:
36477:
36478: -- Set the message
36479:
36480: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
36481: (p_app_short_name => 'MSC',
36482: p_error_code => 'MSC_PP_INVALID_VALUE',
36483: p_message_text => lv_message_text,
36484: p_error_text => lv_error_text,

Line 36493: lv_return := MSC_ST_UTIL.DERIVE_ITEM_ID

36489: RAISE ex_logging_err;
36490: END IF;
36491:
36492: --Derive Inventory_item_id
36493: lv_return := MSC_ST_UTIL.DERIVE_ITEM_ID
36494: (p_table_name => 'MSC_ST_SALES_ORDERS',
36495: p_item_col_name => 'ITEM_NAME',
36496: p_item_col_id => 'INVENTORY_ITEM_ID',
36497: p_instance_id => v_instance_id,

Line 36510: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

36506: IF lv_return <> 0 THEN
36507: RAISE ex_logging_err;
36508: END IF;
36509:
36510: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
36511: (p_app_short_name => 'MSC',
36512: p_error_code => 'MSC_PP_COL_REF_NOT_EXIST',
36513: p_message_text => lv_message_text,
36514: p_error_text => lv_error_text,

Line 36568: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

36564: AND sr_instance_code = v_instance_code
36565: AND batch_id = p_batch_id;
36566:
36567:
36568: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
36569: (p_app_short_name => 'MSC',
36570: p_error_code => 'MSC_PP_INVALID_VALUE',
36571: p_message_text => lv_message_text,
36572: p_error_text => lv_error_text,

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

36581: -- Validate Demand Class, if value provided it should exists
36582: -- in ODS or staging table
36583:
36584: lv_return :=
36585: MSC_ST_UTIL.VALIDATE_DMD_CLASS(p_table_name => 'MSC_ST_SALES_ORDERS',
36586: p_dmd_class_column => 'DEMAND_CLASS',
36587: p_instance_id => v_instance_id,
36588: p_instance_code => v_instance_code,
36589: p_severity => G_SEV3_ERROR,

Line 36600: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

36596: RAISE ex_logging_err;
36597: end if;
36598:
36599: -- Set the error message
36600: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
36601: (p_app_short_name => 'MSC',
36602: p_error_code => 'MSC_PP_COL_VAL_NULL_DEFAULT',
36603: p_message_text => lv_message_text,
36604: p_error_text => lv_error_text,

Line 36620: lv_return := MSC_ST_UTIL.LOG_ERROR

36616: lv_where_str :=
36617: ' AND NVL(completed_quantity,'||NULL_VALUE||')'
36618: ||' = '||NULL_VALUE;
36619:
36620: lv_return := MSC_ST_UTIL.LOG_ERROR
36621: (p_table_name => 'MSC_ST_SALES_ORDERS',
36622: p_instance_code => v_instance_code,
36623: p_row => lv_column_names,
36624: p_severity => G_SEV_WARNING,

Line 36638: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

36634: RAISE ex_logging_err;
36635: END IF;
36636:
36637: -- Set the error message
36638: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
36639: (p_app_short_name => 'MSC',
36640: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
36641: p_message_text => lv_message_text,
36642: p_error_text => lv_error_text,

Line 36658: lv_return := MSC_ST_UTIL.LOG_ERROR

36654: lv_where_str :=
36655: ' AND NVL(demand_source_type ,'||NULL_VALUE||') NOT IN (2,8) '
36656: ||' AND deleted_flag = '||SYS_NO;
36657:
36658: lv_return := MSC_ST_UTIL.LOG_ERROR
36659: (p_table_name => 'MSC_ST_SALES_ORDERS',
36660: p_instance_code => v_instance_code,
36661: p_row => lv_column_names,
36662: p_severity => G_SEV_WARNING,

Line 36676: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

36672: RAISE ex_logging_err;
36673: END IF;
36674:
36675: -- Set the error message
36676: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
36677: (p_app_short_name => 'MSC',
36678: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
36679: p_message_text => lv_message_text,
36680: p_error_text => lv_error_text,

Line 36698: lv_return := MSC_ST_UTIL.LOG_ERROR

36694: ||' NOT IN (''Y'', ''N'')'
36695: ||' AND deleted_flag = '||SYS_NO;
36696:
36697:
36698: lv_return := MSC_ST_UTIL.LOG_ERROR
36699: (p_table_name => 'MSC_ST_SALES_ORDERS',
36700: p_instance_code => v_instance_code,
36701: p_row => lv_column_names,
36702: p_severity => G_SEV_WARNING,

Line 36716: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

36712: RAISE ex_logging_err;
36713: END IF;
36714:
36715: -- Set the error message
36716: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
36717: (p_app_short_name => 'MSC',
36718: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
36719: p_message_text => lv_message_text,
36720: p_error_text => lv_error_text,

Line 36735: lv_return := MSC_ST_UTIL.LOG_ERROR

36731:
36732: lv_where_str :=
36733: ' AND NVL(cto_flag,'||NULL_VALUE||') NOT IN (1,2)' ;
36734:
36735: lv_return := MSC_ST_UTIL.LOG_ERROR
36736: (p_table_name => 'MSC_ST_SALES_ORDERS',
36737: p_instance_code => v_instance_code,
36738: p_row => lv_column_names,
36739: p_severity => G_SEV_WARNING,

Line 36753: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

36749: RAISE ex_logging_err;
36750: END IF;
36751:
36752: -- Set the error message
36753: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
36754: (p_app_short_name => 'MSC',
36755: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
36756: p_message_text => lv_message_text,
36757: p_error_text => lv_error_text,

Line 36773: lv_return := MSC_ST_UTIL.LOG_ERROR

36769: lv_where_str :=
36770: ' AND NVL(forecast_visible ,'||''''||NULL_CHAR||''''||')'
36771: ||' NOT IN (''Y'', ''N'') AND deleted_flag = '||SYS_NO ;
36772:
36773: lv_return := MSC_ST_UTIL.LOG_ERROR
36774: (p_table_name => 'MSC_ST_SALES_ORDERS',
36775: p_instance_code => v_instance_code,
36776: p_row => lv_column_names,
36777: p_severity => G_SEV_WARNING,

Line 36791: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

36787: RAISE ex_logging_err;
36788: END IF;
36789:
36790: -- Set the error message
36791: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
36792: (p_app_short_name => 'MSC',
36793: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
36794: p_message_text => lv_message_text,
36795: p_error_text => lv_error_text,

Line 36811: lv_return := MSC_ST_UTIL.LOG_ERROR

36807: lv_where_str :=
36808: ' AND NVL(demand_visible,'||''''||NULL_CHAR||''''||')'
36809: ||' NOT IN (''Y'', ''N'') AND deleted_flag = '||SYS_NO ;
36810:
36811: lv_return := MSC_ST_UTIL.LOG_ERROR
36812: (p_table_name => 'MSC_ST_SALES_ORDERS',
36813: p_instance_code => v_instance_code,
36814: p_row => lv_column_names,
36815: p_severity => G_SEV_WARNING,

Line 36831: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

36827:
36828:
36829: -- Set the message
36830:
36831: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
36832: (p_app_short_name => 'MSC',
36833: p_error_code => 'MSC_PP_INVALID_VALUE',
36834: p_message_text => lv_message_text,
36835: p_error_text => lv_error_text,

Line 36845: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID

36841: END IF;
36842:
36843: -- Derive customer_id
36844:
36845: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID
36846: (p_table_name => 'MSC_ST_SALES_ORDERS',
36847: p_org_partner_name => 'CUSTOMER_NAME',
36848: p_org_partner_id => 'CUSTOMER_ID',
36849: p_instance_code => v_instance_code,

Line 36864: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

36860: END IF;
36861:
36862: -- Set the message
36863:
36864: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
36865: (p_app_short_name => 'MSC',
36866: p_error_code => 'MSC_PP_INVALID_VALUE',
36867: p_message_text => lv_message_text,
36868: p_error_text => lv_error_text,

Line 36877: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_SITE_ID

36873: RAISE ex_logging_err;
36874: END IF;
36875:
36876: -- Derive bill_to_site_id
36877: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_SITE_ID
36878: (p_table_name => 'MSC_ST_SALES_ORDERS',
36879: p_partner_name => 'CUSTOMER_NAME',
36880: p_partner_site_code => 'BILL_TO_SITE_CODE',
36881: p_partner_site_id => 'BILL_TO_SITE_USE_ID',

Line 36897: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

36893: END IF;
36894:
36895: -- Set the message
36896:
36897: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
36898: (p_app_short_name => 'MSC',
36899: p_error_code => 'MSC_PP_INVALID_VALUE',
36900: p_message_text => lv_message_text,
36901: p_error_text => lv_error_text,

Line 36910: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_SITE_ID

36906: RAISE ex_logging_err;
36907: END IF;
36908:
36909: -- Derive ship_to_site_id
36910: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_SITE_ID
36911: (p_table_name => 'MSC_ST_SALES_ORDERS',
36912: p_partner_name => 'CUSTOMER_NAME',
36913: p_partner_site_code => 'SHIP_TO_SITE_CODE',
36914: p_partner_site_id => 'SHIP_TO_SITE_USE_ID',

Line 36928: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

36924: IF lv_return <> 0 THEN
36925: RAISE ex_logging_err;
36926: END IF;
36927: -- Set the error message
36928: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
36929: (p_app_short_name => 'MSC',
36930: p_error_code => 'MSC_PP_FK_REF_NOT_EXIST',
36931: p_message_text => lv_message_text,
36932: p_error_text => lv_error_text,

Line 36944: lv_return:= MSC_ST_UTIL.DERIVE_PROJ_TASK_ID

36940: RAISE ex_logging_err;
36941: END IF;
36942:
36943: --Derive Project Id.
36944: lv_return:= MSC_ST_UTIL.DERIVE_PROJ_TASK_ID
36945: (p_table_name => 'MSC_ST_SALES_ORDERS',
36946: p_proj_col_name => 'PROJECT_NUMBER',
36947: p_proj_task_col_id => 'PROJECT_ID',
36948: p_instance_code => v_instance_code,

Line 36961: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

36957: RAISE ex_logging_err;
36958: END IF;
36959:
36960: -- Set the error message
36961: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
36962: (p_app_short_name => 'MSC',
36963: p_error_code => 'MSC_PP_FK_REF_NOT_EXIST',
36964: p_message_text => lv_message_text,
36965: p_error_text => lv_error_text,

Line 36978: lv_return:= MSC_ST_UTIL.DERIVE_PROJ_TASK_ID

36974: RAISE ex_logging_err;
36975: END IF;
36976:
36977: --Derive Task Id.
36978: lv_return:= MSC_ST_UTIL.DERIVE_PROJ_TASK_ID
36979: (p_table_name => 'MSC_ST_SALES_ORDERS',
36980: p_proj_col_name => 'PROJECT_NUMBER',
36981: p_proj_task_col_id => 'TASK_ID',
36982: p_instance_code => v_instance_code,

Line 37015: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

37011: */
37012: -- valid values for order_date_type_code are 'SHIP' and 'ARRIVE'
37013: -- Set the error message
37014:
37015: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
37016: (p_app_short_name => 'MSC',
37017: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
37018: p_message_text => lv_message_text,
37019: p_error_text => lv_error_text,

Line 37033: lv_return := MSC_ST_UTIL.LOG_ERROR

37029: lv_where_str :=
37030: ' AND NVL(order_date_type_code ,'||NULL_VALUE||') '
37031: ||' NOT IN (1,2)';
37032:
37033: lv_return := MSC_ST_UTIL.LOG_ERROR
37034: (p_table_name => 'MSC_ST_SALES_ORDERS',
37035: p_instance_code => v_instance_code,
37036: p_row => lv_column_names,
37037: p_severity => G_SEV_WARNING,

Line 37402: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG

37398: MSC_UTIL.LOG_MSG(MSC_UTIL.G_LVL_DEBUG_1,lv_sql_stmt);
37399:
37400: EXECUTE IMMEDIATE lv_sql_stmt USING p_batch_id,v_instance_code;
37401:
37402: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG
37403: (p_table_name => 'MSC_ST_SALES_ORDERS',
37404: p_instance_id => v_instance_id,
37405: p_instance_code => v_instance_code,
37406: p_process_flag => G_VALID,

Line 37415: lv_return := MSC_ST_UTIL.LOG_ERROR

37411: IF lv_return <> 0 THEN
37412: RAISE ex_logging_err;
37413: END IF;
37414:
37415: lv_return := MSC_ST_UTIL.LOG_ERROR
37416: (p_table_name => 'MSC_ST_SALES_ORDERS',
37417: p_instance_code => v_instance_code,
37418: p_row => lv_column_names,
37419: p_severity => G_SEV_ERROR,

Line 37486: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

37482: AND batch_id = p_batch_id;
37483:
37484: BEGIN
37485:
37486: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
37487: (p_app_short_name => 'MSC',
37488: p_error_code => 'MSC_PP_DUP_REC_FOR_BATCH_LOAD',
37489: p_message_text => lv_message_text,
37490: p_error_text => lv_error_text);

Line 37733: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

37729: created_by = v_current_user
37730: WHERE rowid = lb_rowid(j);
37731:
37732:
37733: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
37734: (p_app_short_name => 'MSC',
37735: p_error_code => 'MSC_PP_COL_VAL_NULL',
37736: p_message_text => lv_message_text,
37737: p_error_text => lv_error_text,

Line 37765: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

37761: MSC_UTIL.LOG_MSG(MSC_UTIL.G_LVL_DEBUG_1,lv_sql_stmt);
37762:
37763: EXECUTE IMMEDIATE lv_sql_stmt USING lv_batch_id,v_instance_code;
37764:
37765: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
37766: (p_app_short_name => 'MSC',
37767: p_error_code => 'MSC_PP_COL_VAL_NULL',
37768: p_message_text => lv_message_text,
37769: p_error_text => lv_error_text,

Line 37794: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

37790: MSC_UTIL.LOG_MSG(MSC_UTIL.G_LVL_DEBUG_1,lv_sql_stmt);
37791:
37792: EXECUTE IMMEDIATE lv_sql_stmt USING lv_batch_id,v_instance_code;
37793:
37794: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
37795: (p_app_short_name => 'MSC',
37796: p_error_code => 'MSC_PP_COL_VAL_NULL',
37797: p_message_text => lv_message_text,
37798: p_error_text => lv_error_text,

Line 37823: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

37819: MSC_UTIL.LOG_MSG(MSC_UTIL.G_LVL_DEBUG_1,lv_sql_stmt);
37820:
37821: EXECUTE IMMEDIATE lv_sql_stmt USING lv_batch_id,v_instance_code;
37822:
37823: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
37824: (p_app_short_name => 'MSC',
37825: p_error_code => 'MSC_PP_COL_VAL_NULL',
37826: p_message_text => lv_message_text,
37827: p_error_text => lv_error_text,

Line 37853: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

37849:
37850: EXECUTE IMMEDIATE lv_sql_stmt USING lv_batch_id,v_instance_code;
37851:
37852:
37853: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
37854: (p_app_short_name => 'MSC',
37855: p_error_code => 'MSC_PP_INVALID_VALUE',
37856: p_message_text => lv_message_text,
37857: p_error_text => lv_error_text,

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

37866: -- Validate Demand Class, if value provided it should exists
37867: -- in ODS or staging table
37868:
37869: lv_return :=
37870: MSC_ST_UTIL.VALIDATE_DMD_CLASS(p_table_name => 'MSC_ST_RESERVATIONS',
37871: p_dmd_class_column => 'DEMAND_CLASS',
37872: p_instance_id => v_instance_id,
37873: p_instance_code => v_instance_code,
37874: p_severity => G_SEV3_ERROR,

Line 37886: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

37882: end if;
37883:
37884:
37885:
37886: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
37887: (p_app_short_name => 'MSC',
37888: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
37889: p_message_text => lv_message_text,
37890: p_error_text => lv_error_text,

Line 37906: lv_return := MSC_ST_UTIL.LOG_ERROR

37902:
37903: lv_where_str := ' AND NVL(deleted_flag,'||NULL_VALUE||') '
37904: ||' NOT IN(1,2)';
37905:
37906: lv_return := MSC_ST_UTIL.LOG_ERROR
37907: (p_table_name => 'MSC_ST_RESERVATIONS',
37908: p_instance_code => v_instance_code,
37909: p_row => lv_column_names,
37910: p_severity => G_SEV_WARNING,

Line 37986: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

37982:
37983: EXECUTE IMMEDIATE lv_sql_stmt USING lv_batch_id,v_instance_code;
37984:
37985: -- Check DISPOSITION_TYPE column has valid value or not and if not set it to 2
37986: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
37987: (p_app_short_name => 'MSC',
37988: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
37989: p_message_text => lv_message_text,
37990: p_error_text => lv_error_text,

Line 38003: lv_return := MSC_ST_UTIL.LOG_ERROR

37999:
38000: lv_where_str := ' AND NVL(disposition_type,'||NULL_VALUE||') '
38001: ||' <> 2 AND RESERVATION_TYPE =1';
38002:
38003: lv_return := MSC_ST_UTIL.LOG_ERROR
38004: (p_table_name => 'MSC_ST_RESERVATIONS',
38005: p_instance_code => v_instance_code,
38006: p_row => lv_column_names,
38007: p_severity => G_SEV_WARNING,

Line 38020: /* lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

38016: IF lv_return <> 0 THEN
38017: RAISE ex_logging_err;
38018: END IF;
38019:
38020: /* lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
38021: (p_app_short_name => 'MSC',
38022: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
38023: p_message_text => lv_message_text,
38024: p_error_text => lv_error_text,

Line 38039: lv_return := MSC_ST_UTIL.LOG_ERROR

38035:
38036: lv_where_str := ' AND NVL(reservation_type,'||NULL_VALUE||') '
38037: ||' <> 1 ';
38038:
38039: lv_return := MSC_ST_UTIL.LOG_ERROR
38040: (p_table_name => 'MSC_ST_RESERVATIONS',
38041: p_instance_code => v_instance_code,
38042: p_row => lv_column_names,
38043: p_severity => G_SEV_WARNING,

Line 38058: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

38054: END IF;
38055: */
38056: -- Set the message
38057:
38058: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
38059: (p_app_short_name => 'MSC',
38060: p_error_code => 'MSC_PP_INVALID_VALUE',
38061: p_message_text => lv_message_text,
38062: p_error_text => lv_error_text,

Line 38071: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID

38067: RAISE ex_logging_err;
38068: END IF;
38069:
38070: --Derive Organization_id
38071: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID
38072: (p_table_name => 'MSC_ST_RESERVATIONS',
38073: p_org_partner_name => 'ORGANIZATION_CODE',
38074: p_org_partner_id => 'ORGANIZATION_ID',
38075: p_instance_code => v_instance_code,

Line 38091: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

38087:
38088:
38089: -- Set the message
38090:
38091: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
38092: (p_app_short_name => 'MSC',
38093: p_error_code => 'MSC_PP_INVALID_VALUE',
38094: p_message_text => lv_message_text,
38095: p_error_text => lv_error_text,

Line 38104: lv_return := MSC_ST_UTIL.DERIVE_ITEM_ID

38100: RAISE ex_logging_err;
38101: END IF;
38102:
38103: --Derive Inventory_item_id
38104: lv_return := MSC_ST_UTIL.DERIVE_ITEM_ID
38105: (p_table_name => 'MSC_ST_RESERVATIONS',
38106: p_item_col_name => 'ITEM_NAME',
38107: p_item_col_id => 'INVENTORY_ITEM_ID',
38108: p_instance_id => v_instance_id,

Line 38339: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

38335: -- Error out the records if any parent_demand_id or dispostion id
38336: -- derivation fails
38337:
38338: -- Set the error message
38339: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
38340: (p_app_short_name => 'MSC',
38341: p_error_code => 'MSC_PP_FK_REF_NOT_EXIST',
38342: p_message_text => lv_message_text,
38343: p_error_text => lv_error_text,

Line 38410: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

38406:
38407:
38408:
38409: -- Set the error message
38410: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
38411: (p_app_short_name => 'MSC',
38412: p_error_code => 'MSC_PP_FK_REF_NOT_EXIST',
38413: p_message_text => lv_message_text,
38414: p_error_text => lv_error_text,

Line 38425: lv_return:= MSC_ST_UTIL.DERIVE_PROJ_TASK_ID

38421: RAISE ex_logging_err;
38422: END IF;
38423:
38424: --Derive Project Id.
38425: lv_return:= MSC_ST_UTIL.DERIVE_PROJ_TASK_ID
38426: (p_table_name => 'MSC_ST_RESERVATIONS',
38427: p_proj_col_name => 'PROJECT_NUMBER',
38428: p_proj_task_col_id => 'PROJECT_ID',
38429: p_instance_code => v_instance_code,

Line 38442: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

38438: RAISE ex_logging_err;
38439: END IF;
38440:
38441: -- Set the error message
38442: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
38443: (p_app_short_name => 'MSC',
38444: p_error_code => 'MSC_PP_FK_REF_NOT_EXIST',
38445: p_message_text => lv_message_text,
38446: p_error_text => lv_error_text,

Line 38459: lv_return:= MSC_ST_UTIL.DERIVE_PROJ_TASK_ID

38455: RAISE ex_logging_err;
38456: END IF;
38457:
38458: --Derive Task Id.
38459: lv_return:= MSC_ST_UTIL.DERIVE_PROJ_TASK_ID
38460: (p_table_name => 'MSC_ST_RESERVATIONS',
38461: p_proj_col_name => 'PROJECT_NUMBER',
38462: p_proj_task_col_id => 'TASK_ID',
38463: p_instance_code => v_instance_code,

Line 38494: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG

38490: END IF;
38491:
38492:
38493: -- Set the process flag as Valid and populate instance_id
38494: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG
38495: (p_table_name => 'MSC_ST_RESERVATIONS',
38496: p_instance_id => v_instance_id,
38497: p_instance_code => v_instance_code,
38498: p_process_flag => G_VALID,

Line 38510: lv_return := MSC_ST_UTIL.LOG_ERROR

38506:
38507: -- At the end calling the LOG_ERROR for logging all
38508: -- errored out records.
38509:
38510: lv_return := MSC_ST_UTIL.LOG_ERROR
38511: (p_table_name => 'MSC_ST_RESERVATIONS',
38512: p_instance_code => v_instance_code,
38513: p_row => lv_column_names,
38514: p_severity => G_SEV_ERROR,

Line 38655: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

38651: WHERE rowid = lb_rowid(j);
38652:
38653:
38654: -- Set the error message
38655: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
38656: (p_app_short_name => 'MSC',
38657: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
38658: p_message_text => lv_message_text,
38659: p_error_text => lv_error_text,

Line 38674: lv_return:= MSC_ST_UTIL.LOG_ERROR

38670: --SYS_NO or SYS_YES
38671: lv_where_str :=
38672: ' AND NVL(deleted_flag,'||NULL_VALUE||') NOT IN(1,2)';
38673:
38674: lv_return:= MSC_ST_UTIL.LOG_ERROR
38675: (p_table_name => 'MSC_ST_DEMANDS',
38676: p_instance_code => v_instance_code,
38677: p_row => lv_column_names,
38678: p_severity => G_SEV_WARNING,

Line 38696: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

38692:
38693: -- USING_ASSEMBLY_DEMAND_DATE check
38694: -- Set the message
38695:
38696: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
38697: (p_app_short_name => 'MSC',
38698: p_error_code => 'MSC_PP_COL_VAL_NULL',
38699: p_message_text => lv_message_text,
38700: p_error_text => lv_error_text,

Line 38727: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

38723: EXECUTE IMMEDIATE lv_sql_stmt USING p_batch_id,v_instance_code;
38724:
38725: -- Set the message
38726:
38727: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
38728: (p_app_short_name => 'MSC',
38729: p_error_code => 'MSC_PP_INVALID_VALUE',
38730: p_message_text => lv_message_text,
38731: p_error_text => lv_error_text,

Line 38758: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

38754: MSC_UTIL.LOG_MSG(MSC_UTIL.G_LVL_DEBUG_1,lv_sql_stmt);
38755:
38756: EXECUTE IMMEDIATE lv_sql_stmt USING p_batch_id,v_instance_code;
38757:
38758: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
38759: (p_app_short_name => 'MSC',
38760: p_error_code => 'MSC_PP_REV_DT_GT_DMD_DATE',
38761: p_message_text => lv_message_text,
38762: p_error_text => lv_error_text);

Line 38778: lv_return := MSC_ST_UTIL.LOG_ERROR

38774:
38775: --Log a warning for those records where the revised_dmd_date is greater
38776: --than firm date(schedule_date)
38777:
38778: lv_return := MSC_ST_UTIL.LOG_ERROR
38779: (p_table_name => 'MSC_ST_DEMANDS',
38780: p_instance_code => v_instance_code,
38781: p_row => lv_column_names,
38782: p_severity => G_SEV_WARNING,

Line 38794: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

38790: END IF;
38791:
38792: -- Set the message
38793:
38794: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
38795: (p_app_short_name => 'MSC',
38796: p_error_code => 'MSC_PP_COL_VAL_NULL',
38797: p_message_text => lv_message_text,
38798: p_error_text => lv_error_text,

Line 38828: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

38824:
38825: EXECUTE IMMEDIATE lv_sql_stmt USING p_batch_id,v_instance_code;
38826: -- Set the message
38827:
38828: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
38829: (p_app_short_name => 'MSC',
38830: p_error_code => 'MSC_PP_INVALID_VALUE',
38831: p_message_text => lv_message_text,
38832: p_error_text => lv_error_text,

Line 38841: lv_return:= MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID

38837: RAISE ex_logging_err;
38838: END IF;
38839:
38840: --Derive Organization_id
38841: lv_return:= MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID
38842: (p_table_name => 'MSC_ST_DEMANDS',
38843: p_org_partner_name => 'ORGANIZATION_CODE',
38844: p_org_partner_id => 'ORGANIZATION_ID',
38845: p_instance_code => v_instance_code,

Line 38860: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

38856: END IF;
38857:
38858: -- Set the message
38859:
38860: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
38861: (p_app_short_name => 'MSC',
38862: p_error_code => 'MSC_PP_INVALID_VALUE',
38863: p_message_text => lv_message_text,
38864: p_error_text => lv_error_text,

Line 38874: lv_return:= MSC_ST_UTIL.DERIVE_ITEM_ID

38870: END IF;
38871:
38872:
38873: --Derive Inventory_item_id
38874: lv_return:= MSC_ST_UTIL.DERIVE_ITEM_ID
38875: (p_table_name => 'MSC_ST_DEMANDS',
38876: p_item_col_name => 'ITEM_NAME',
38877: p_item_col_id => 'INVENTORY_ITEM_ID',
38878: p_instance_id => v_instance_id,

Line 38892: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

38888: RAISE ex_logging_err;
38889: END IF;
38890:
38891: -- Set the message
38892: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
38893: (p_app_short_name => 'MSC',
38894: p_error_code => 'MSC_PP_INVALID_VALUE',
38895: p_message_text => lv_message_text,
38896: p_error_text => lv_error_text,

Line 38905: lv_return := MSC_ST_UTIL.DERIVE_ITEM_ID

38901: RAISE ex_logging_err;
38902: END IF;
38903:
38904: --Derive Inventory_item_id
38905: lv_return := MSC_ST_UTIL.DERIVE_ITEM_ID
38906: (p_table_name => 'MSC_ST_DEMANDS',
38907: p_item_col_name => 'USING_ASSEMBLY_ITEM_NAME',
38908: p_item_col_id => 'USING_ASSEMBLY_ITEM_ID',
38909: p_instance_id => v_instance_id,

Line 38922: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

38918: IF lv_return <> 0 THEN
38919: RAISE ex_logging_err;
38920: END IF;
38921:
38922: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
38923: (p_app_short_name => 'MSC',
38924: p_error_code => 'MSC_PP_INVALID_VALUE',
38925: p_message_text => lv_message_text,
38926: p_error_text => lv_error_text,

Line 38939: MSC_ST_UTIL.VALIDATE_DMD_CLASS(p_table_name => 'MSC_ST_DEMANDS',

38935: -- Validate Demand Class, if value provided it should exists
38936: -- in ODS or staging table
38937:
38938: lv_return :=
38939: MSC_ST_UTIL.VALIDATE_DMD_CLASS(p_table_name => 'MSC_ST_DEMANDS',
38940: p_dmd_class_column => 'DEMAND_CLASS',
38941: p_instance_id => v_instance_id,
38942: p_instance_code => v_instance_code,
38943: p_severity => G_SEV3_ERROR,

Line 39024: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

39020: EXECUTE IMMEDIATE lv_sql_stmt USING p_batch_id,v_instance_code;
39021:
39022: -- Set the message
39023:
39024: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
39025: (p_app_short_name => 'MSC',
39026: p_error_code => 'MSC_PP_DELETE_FAIL',
39027: p_message_text => lv_message_text,
39028: p_error_text => lv_error_text);

Line 39083: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

39079: EXECUTE IMMEDIATE lv_sql_stmt USING p_batch_id,v_instance_code;
39080:
39081: -- Set the message
39082:
39083: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
39084: (p_app_short_name => 'MSC',
39085: p_error_code => 'MSC_PP_DELETE_FAIL',
39086: p_message_text => lv_message_text,
39087: p_error_text => lv_error_text);

Line 39113: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

39109:
39110: EXECUTE IMMEDIATE lv_sql_stmt USING p_batch_id,v_instance_code;
39111:
39112: -- Set the error message
39113: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
39114: (p_app_short_name => 'MSC',
39115: p_error_code => 'MSC_PP_FK_REF_NOT_EXIST',
39116: p_message_text => lv_message_text,
39117: p_error_text => lv_error_text,

Line 39128: lv_return:= MSC_ST_UTIL.DERIVE_PROJ_TASK_ID

39124: RAISE ex_logging_err;
39125: END IF;
39126:
39127: --Derive Project Id.
39128: lv_return:= MSC_ST_UTIL.DERIVE_PROJ_TASK_ID
39129: (p_table_name => 'MSC_ST_DEMANDS',
39130: p_proj_col_name => 'PROJECT_NUMBER',
39131: p_proj_task_col_id => 'PROJECT_ID',
39132: p_instance_code => v_instance_code,

Line 39145: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

39141: RAISE ex_logging_err;
39142: END IF;
39143:
39144: -- Set the error message
39145: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
39146: (p_app_short_name => 'MSC',
39147: p_error_code => 'MSC_PP_FK_REF_NOT_EXIST',
39148: p_message_text => lv_message_text,
39149: p_error_text => lv_error_text,

Line 39162: lv_return:= MSC_ST_UTIL.DERIVE_PROJ_TASK_ID

39158: RAISE ex_logging_err;
39159: END IF;
39160:
39161: --Derive Task Id.
39162: lv_return:= MSC_ST_UTIL.DERIVE_PROJ_TASK_ID
39163: (p_table_name => 'MSC_ST_DEMANDS',
39164: p_proj_col_name => 'PROJECT_NUMBER',
39165: p_proj_task_col_id => 'TASK_ID',
39166: p_instance_code => v_instance_code,

Line 39183: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

39179:
39180: -- Validations for MDS ( origination_type = 8)
39181:
39182: -- Set the error message
39183: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
39184: (p_app_short_name => 'MSC',
39185: p_error_code => 'MSC_PP_COL_REF_NOT_EXIST',
39186: p_message_text => lv_message_text,
39187: p_error_text => lv_error_text,

Line 39247: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

39243: -- assembly_demand_comp_date is NOT NULL for origination type = 8
39244:
39245: -- Set the message
39246:
39247: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
39248: (p_app_short_name => 'MSC',
39249: p_error_code => 'MSC_PP_INVALID_VALUE',
39250: p_message_text => lv_message_text,
39251: p_error_text => lv_error_text,

Line 39282: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

39278:
39279: -- Validations for Forecast ( origination_type = 29)
39280:
39281: -- Set the error message
39282: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
39283: (p_app_short_name => 'MSC',
39284: p_error_code => 'MSC_PP_COL_REF_NOT_EXIST',
39285: p_message_text => lv_message_text,
39286: p_error_text => lv_error_text,

Line 39339: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

39335: v_instance_code;
39336:
39337:
39338: -- Set the error message
39339: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
39340: (p_app_short_name => 'MSC',
39341: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
39342: p_message_text => lv_message_text,
39343: p_error_text => lv_error_text,

Line 39360: lv_return:= MSC_ST_UTIL.LOG_ERROR

39356: lv_where_str := ' AND NVL(assembly_demand_comp_date,SYSDATE-36500 ) = SYSDATE-36500'
39357: ||' AND NVL(demand_type,'||NULL_VALUE||') <> 1'
39358: ||' AND origination_type = 29 AND deleted_flag ='||SYS_NO ;
39359:
39360: lv_return:= MSC_ST_UTIL.LOG_ERROR
39361: (p_table_name => 'MSC_ST_DEMANDS',
39362: p_instance_code => v_instance_code,
39363: p_row => lv_column_names,
39364: p_severity => G_SEV_WARNING,

Line 39378: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

39374: RAISE ex_logging_err;
39375: END IF;
39376:
39377: -- Set the error message
39378: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
39379: (p_app_short_name => 'MSC',
39380: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
39381: p_message_text => lv_message_text,
39382: p_error_text => lv_error_text,

Line 39398: lv_return:= MSC_ST_UTIL.LOG_ERROR

39394: lv_where_str := ' AND NVL(assembly_demand_comp_date,SYSDATE-36500 ) <> SYSDATE-36500 '
39395: ||' AND NVL(demand_type,'||NULL_VALUE||') <> 2'
39396: ||' AND origination_type = 29 AND deleted_flag ='||SYS_NO ;
39397:
39398: lv_return:= MSC_ST_UTIL.LOG_ERROR
39399: (p_table_name => 'MSC_ST_DEMANDS',
39400: p_instance_code => v_instance_code,
39401: p_row => lv_column_names,
39402: p_severity => G_SEV_WARNING,

Line 39416: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

39412: RAISE ex_logging_err;
39413: END IF;
39414:
39415: -- Set the error message
39416: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
39417: (p_app_short_name => 'MSC',
39418: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
39419: p_message_text => lv_message_text,
39420: p_error_text => lv_error_text,

Line 39435: lv_return:= MSC_ST_UTIL.LOG_ERROR

39431:
39432: lv_where_str := ' AND NVL(bucket_type,'||NULL_VALUE||') NOT IN (1,2,3)'
39433: ||' AND origination_type = 29 AND deleted_flag ='||SYS_NO ;
39434:
39435: lv_return:= MSC_ST_UTIL.LOG_ERROR
39436: (p_table_name => 'MSC_ST_DEMANDS',
39437: p_instance_code => v_instance_code,
39438: p_row => lv_column_names,
39439: p_severity => G_SEV_WARNING,

Line 39454: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

39450: END IF;
39451:
39452: -- Set the message
39453:
39454: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
39455: (p_app_short_name => 'MSC',
39456: p_error_code => 'MSC_PP_INVALID_VALUE',
39457: p_message_text => lv_message_text,
39458: p_error_text => lv_error_text,

Line 39468: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID

39464: END IF;
39465:
39466: -- Derive customer_id
39467:
39468: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID
39469: (p_table_name => 'MSC_ST_DEMANDS',
39470: p_org_partner_name => 'CUSTOMER_NAME',
39471: p_org_partner_id => 'CUSTOMER_ID',
39472: p_instance_code => v_instance_code,

Line 39486: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

39482: RAISE ex_logging_err;
39483: END IF;
39484:
39485: -- Set the message
39486: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
39487: (p_app_short_name => 'MSC',
39488: p_error_code => 'MSC_PP_INVALID_VALUE',
39489: p_message_text => lv_message_text,
39490: p_error_text => lv_error_text,

Line 39501: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_SITE_ID

39497:
39498:
39499: -- Derive customer_site_id
39500:
39501: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_SITE_ID
39502: (p_table_name => 'MSC_ST_DEMANDS',
39503: p_partner_name => 'CUSTOMER_NAME',
39504: p_partner_site_code => 'CUSTOMER_SITE_CODE',
39505: p_partner_site_id => 'CUSTOMER_SITE_ID',

Line 39520: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

39516: RAISE ex_logging_err;
39517: END IF;
39518:
39519: -- Set the message
39520: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
39521: (p_app_short_name => 'MSC',
39522: p_error_code => 'MSC_PP_INVALID_VALUE',
39523: p_message_text => lv_message_text,
39524: p_error_text => lv_error_text,

Line 39534: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_SITE_ID

39530: END IF;
39531:
39532:
39533: -- Derive bill_to_site_id
39534: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_SITE_ID
39535: (p_table_name => 'MSC_ST_DEMANDS',
39536: p_partner_name => 'CUSTOMER_NAME',
39537: p_partner_site_code => 'BILL_CODE',
39538: p_partner_site_id => 'BILL_ID',

Line 39555: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

39551:
39552: -- valid values for order_date_type_code are 'SHIP' and 'ARRIVE'
39553: -- Set the error message
39554:
39555: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
39556: (p_app_short_name => 'MSC',
39557: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
39558: p_message_text => lv_message_text,
39559: p_error_text => lv_error_text,

Line 39574: lv_return := MSC_ST_UTIL.LOG_ERROR

39570: ' AND NVL(order_date_type_code ,'||NULL_VALUE||') '
39571: ||' NOT IN (1,2) AND origination_type in (7, 8)'
39572: ||' AND NVL(order_date_type_code,'||NULL_VALUE||')<> '||NULL_VALUE;
39573:
39574: lv_return := MSC_ST_UTIL.LOG_ERROR
39575: (p_table_name => 'MSC_ST_DEMANDS',
39576: p_instance_code => v_instance_code,
39577: p_row => lv_column_names,
39578: p_severity => G_SEV_WARNING,

Line 39753: lv_return:= MSC_ST_UTIL.SET_PROCESS_FLAG

39749:
39750: END IF;
39751: CLOSE c3 ;
39752:
39753: lv_return:= MSC_ST_UTIL.SET_PROCESS_FLAG
39754: (p_table_name => 'MSC_ST_DEMANDS',
39755: p_instance_id => v_instance_id,
39756: p_instance_code => v_instance_code,
39757: p_process_flag => G_VALID,

Line 39766: lv_return:= MSC_ST_UTIL.LOG_ERROR

39762: IF lv_return<> 0 THEN
39763: RAISE ex_logging_err;
39764: END IF;
39765:
39766: lv_return:= MSC_ST_UTIL.LOG_ERROR
39767: (p_table_name => 'MSC_ST_DEMANDS',
39768: p_instance_code => v_instance_code,
39769: p_row => lv_column_names,
39770: p_severity => G_SEV_ERROR,

Line 39871: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

39867: creation_date = v_current_date,
39868: created_by = v_current_user
39869: WHERE rowid = lb_rowid(j);
39870:
39871: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
39872: (p_app_short_name => 'MSC',
39873: p_error_code => 'MSC_PP_INVALID_VALUE',
39874: p_message_text => lv_message_text,
39875: p_error_text => lv_error_text,

Line 39884: lv_return := MSC_ST_UTIL.DERIVE_COMPANY_ID

39880: RAISE ex_logging_err;
39881: END IF;
39882:
39883:
39884: lv_return := MSC_ST_UTIL.DERIVE_COMPANY_ID
39885: (p_table_name => 'MSC_ST_COMPANY_USERS',
39886: p_company_name => 'COMPANY_NAME',
39887: p_company_id => 'SR_COMPANY_ID',
39888: p_instance_code => v_instance_code,

Line 39911: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

39907: WHERE mscu.process_flag = G_IN_PROCESS
39908: AND mscu.sr_instance_code = v_instance_code
39909: AND mscu.batch_id = lv_batch_id;
39910:
39911: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
39912: (p_app_short_name => 'MSC',
39913: p_error_code => 'MSC_PP_INVALID_VALUE',
39914: p_message_text => lv_message_text,
39915: p_error_text => lv_error_text,

Line 39934: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

39930: AND process_flag = G_IN_PROCESS
39931: AND batch_id = lv_batch_id
39932: AND sr_instance_code = v_instance_code;
39933: */
39934: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
39935: (p_app_short_name => 'MSC',
39936: p_error_code => 'MSC_PP_INVALID_VALUE',
39937: p_message_text => lv_message_text,
39938: p_error_text => lv_error_text,

Line 39987: MSC_ST_UTIL.SET_PROCESS_FLAG(p_table_name => 'MSC_ST_COMPANY_USERS',

39983: END IF;
39984:
39985: -- Set the process flag as Valid and poulate instance_id
39986: lv_return :=
39987: MSC_ST_UTIL.SET_PROCESS_FLAG(p_table_name => 'MSC_ST_COMPANY_USERS',
39988: p_instance_id => v_instance_id,
39989: p_instance_code => v_instance_code,
39990: p_process_flag => G_VALID,
39991: p_error_text => lv_error_text,

Line 40376: MSC_ST_UTIL.SET_PROCESS_FLAG(p_table_name => 'MSC_ST_BOM_COMPONENTS',

40372: End Loop;
40373:
40374: -- Set the process flag as Valid and poulate instance_id
40375: lv_return :=
40376: MSC_ST_UTIL.SET_PROCESS_FLAG(p_table_name => 'MSC_ST_BOM_COMPONENTS',
40377: p_instance_id => v_instance_id,
40378: p_instance_code => v_instance_code,
40379: p_process_flag => G_VALID,
40380: p_error_text => lv_error_text,

Line 40505: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

40501: -- is any duplicates for user defined unique keys (UDKs,)
40502:
40503: --Duplicate records check for the records whose source is XML
40504:
40505: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
40506: (p_app_short_name => 'MSC',
40507: p_error_code => 'MSC_PP_DUP_REC_FOR_XML',
40508: p_message_text => lv_message_text,
40509: p_error_text => lv_error_text);

Line 40544: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

40540: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code;
40541:
40542: --Duplicate records check for the records whose source is batch load
40543:
40544: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
40545: (p_app_short_name => 'MSC',
40546: p_error_code => 'MSC_PP_DUP_REC_FOR_BATCH_LOAD',
40547: p_message_text => lv_message_text,
40548: p_error_text => lv_error_text);

Line 40641: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

40637:
40638:
40639: -- Set the error message
40640:
40641: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
40642: (p_app_short_name => 'MSC',
40643: p_error_code => 'MSC_PP_NO_DELETION',
40644: p_message_text => lv_message_text,
40645: p_error_text => lv_error_text,

Line 40671: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

40667: EXECUTE IMMEDIATE lv_sql_stmt USING lv_batch_id,v_instance_code;
40668:
40669: -- Set the message
40670:
40671: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
40672: (p_app_short_name => 'MSC',
40673: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
40674: p_message_text => lv_message_text,
40675: p_error_text => lv_error_text,

Line 40691: lv_return := MSC_ST_UTIL.LOG_ERROR

40687: -- Log error procedure inserts warning and also defaults the delete flag
40688:
40689: lv_where_str := ' AND NVL(deleted_flag,'||NULL_VALUE||') <>'||SYS_NO;
40690:
40691: lv_return := MSC_ST_UTIL.LOG_ERROR
40692: (p_table_name => 'MSC_ST_BOMS',
40693: p_instance_code => v_instance_code,
40694: p_row => lv_column_names,
40695: p_severity => G_SEV_WARNING,

Line 40711: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

40707: END IF;
40708:
40709: -- Set the message
40710:
40711: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
40712: (p_app_short_name => 'MSC',
40713: p_error_code => 'MSC_PP_INVALID_VALUE',
40714: p_message_text => lv_message_text,
40715: p_error_text => lv_error_text,

Line 40726: MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID(p_table_name => 'MSC_ST_BOMS',

40722:
40723: -- Populate organization id
40724:
40725: lv_return :=
40726: MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID(p_table_name => 'MSC_ST_BOMS',
40727: p_org_partner_name => 'ORGANIZATION_CODE',
40728: p_org_partner_id => 'ORGANIZATION_ID',
40729: p_instance_code => v_instance_code,
40730: p_partner_type => G_ORGANIZATION,

Line 40743: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

40739: end if;
40740:
40741: -- Set the message
40742:
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_ITEM_ID(p_table_name =>'MSC_ST_BOMS',

40753: END IF;
40754:
40755: -- Poplulate assembly item id
40756: lv_return :=
40757: MSC_ST_UTIL.DERIVE_ITEM_ID(p_table_name =>'MSC_ST_BOMS',
40758: p_item_col_name => 'ASSEMBLY_NAME',
40759: p_item_col_id =>'ASSEMBLY_ITEM_ID',
40760: p_instance_code => v_instance_code,
40761: p_instance_id => v_instance_id,

Line 40798: MSC_ST_UTIL.DERIVE_BILL_SEQUENCE_ID

40794:
40795: -- Derive the BILL_SEQUENCE_ID for the BOM from LOCAL ID table
40796:
40797: lv_return :=
40798: MSC_ST_UTIL.DERIVE_BILL_SEQUENCE_ID
40799: (p_table_name => 'MSC_ST_BOMS',
40800: p_bom_col_name => 'BOM_NAME',
40801: p_bom_col_id => 'BILL_SEQUENCE_ID',
40802: p_instance_code => v_instance_code,

Line 40812: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

40808: RAISE ex_logging_err;
40809: END IF;
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 40832: lv_return := MSC_ST_UTIL.LOG_ERROR

40828: --Log warning in error table
40829: lv_where_str :=
40830: ' AND NVL(assembly_quantity,'||NULL_VALUE||') ='|| NULL_VALUE;
40831:
40832: lv_return := MSC_ST_UTIL.LOG_ERROR
40833: (p_table_name => 'MSC_ST_BOMS',
40834: p_instance_code => v_instance_code,
40835: p_row => lv_column_names,
40836: p_severity => G_SEV_WARNING,

Line 40852: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

40848: */
40849: -- Now check for UOM code if it is Invalid error out
40850: -- Set the error message
40851:
40852: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
40853: (p_app_short_name => 'MSC',
40854: p_error_code => 'MSC_PP_INVALID_VALUE',
40855: p_message_text => lv_message_text,
40856: p_error_text => lv_error_text,

Line 40896: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

40892: v_instance_code,
40893: lv_batch_id;
40894:
40895: -- Set the error message
40896: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
40897: (p_app_short_name => 'MSC',
40898: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
40899: p_message_text => lv_message_text,
40900: p_error_text => lv_error_text,

Line 40916: lv_return := MSC_ST_UTIL.LOG_ERROR

40912:
40913: lv_where_str :=
40914: ' AND NVL(assembly_type,'||NULL_VALUE||') NOT IN (1,2)';
40915:
40916: lv_return := MSC_ST_UTIL.LOG_ERROR
40917: (p_table_name => 'MSC_ST_BOMS',
40918: p_instance_code => v_instance_code,
40919: p_row => lv_column_names,
40920: p_severity => G_SEV_WARNING,

Line 40935: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

40931: RAISE ex_logging_err;
40932: END IF;
40933:
40934: -- Set the error message
40935: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
40936: (p_app_short_name => 'MSC',
40937: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
40938: p_message_text => lv_message_text,
40939: p_error_text => lv_error_text,

Line 40954: lv_return := MSC_ST_UTIL.LOG_ERROR

40950: -- Defaulting as NULL if invalid values
40951:
40952: lv_where_str := ' AND bom_scaling_type NOT IN (0,1,2)';
40953:
40954: lv_return := MSC_ST_UTIL.LOG_ERROR
40955: (p_table_name => 'MSC_ST_BOMS',
40956: p_instance_code => v_instance_code,
40957: p_row => lv_column_names,
40958: p_severity => G_SEV_WARNING,

Line 41053: MSC_ST_UTIL.SET_PROCESS_FLAG(p_table_name => 'MSC_ST_BOMS',

41049: CLOSE c3;
41050:
41051: -- Set the process flag as Valid and poulate instance_id
41052: lv_return :=
41053: MSC_ST_UTIL.SET_PROCESS_FLAG(p_table_name => 'MSC_ST_BOMS',
41054: p_instance_id => v_instance_id,
41055: p_instance_code => v_instance_code,
41056: p_process_flag => G_VALID,
41057: p_error_text => lv_error_text,

Line 41068: MSC_ST_UTIL.LOG_ERROR(p_table_name =>'MSC_ST_BOMS',

41064:
41065: -- At the end calling the LOG_ERROR for logging all errored out records
41066:
41067: lv_return :=
41068: MSC_ST_UTIL.LOG_ERROR(p_table_name =>'MSC_ST_BOMS',
41069: p_instance_code =>v_instance_code,
41070: p_row =>lv_column_names,
41071: p_severity =>G_SEV_ERROR,
41072: p_message_text =>NULL,

Line 41088: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

41084: -- Now Validation for MSC_ST_BOM_COMPONENTS
41085:
41086: --Duplicate records check for the records whose source is XML
41087:
41088: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
41089: (p_app_short_name => 'MSC',
41090: p_error_code => 'MSC_PP_DUP_REC_FOR_XML',
41091: p_message_text => lv_message_text,
41092: p_error_text => lv_error_text);

Line 41133: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

41129: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code;
41130:
41131: --Duplicate records check for the records whose source is batch load
41132:
41133: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
41134: (p_app_short_name => 'MSC',
41135: p_error_code => 'MSC_PP_DUP_REC_FOR_BATCH_LOAD',
41136: p_message_text => lv_message_text,
41137: p_error_text => lv_error_text);

Line 41249: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

41245: WHERE rowid = lb_rowid(j);
41246:
41247: -- Set the message
41248:
41249: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
41250: (p_app_short_name => 'MSC',
41251: p_error_code => 'MSC_PP_INVALID_VALUE',
41252: p_message_text => lv_message_text,
41253: p_error_text => lv_error_text,

Line 41264: MSC_ST_UTIL.DERIVE_ITEM_ID(p_table_name => 'MSC_ST_BOM_COMPONENTS',

41260:
41261: -- Populate Inventory Item id for component name
41262:
41263: lv_return :=
41264: MSC_ST_UTIL.DERIVE_ITEM_ID(p_table_name => 'MSC_ST_BOM_COMPONENTS',
41265: p_item_col_name => 'COMPONENT_NAME',
41266: p_item_col_id => 'INVENTORY_ITEM_ID',
41267: p_instance_code => v_instance_code,
41268: p_instance_id => v_instance_id,

Line 41280: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

41276: RAISE ex_logging_err;
41277: end if;
41278:
41279: -- Set the error message
41280: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
41281: (p_app_short_name => 'MSC',
41282: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
41283: p_message_text => lv_message_text,
41284: p_error_text => lv_error_text,

Line 41298: lv_return := MSC_ST_UTIL.LOG_ERROR

41294: -- Check whether delete flag value is in (1,2),if not default to SYS_NO
41295:
41296: lv_where_str := ' AND NVL(deleted_flag,'||NULL_VALUE||')NOT IN (1,2)';
41297:
41298: lv_return := MSC_ST_UTIL.LOG_ERROR
41299: (p_table_name => 'MSC_ST_BOM_COMPONENTS',
41300: p_instance_code => v_instance_code,
41301: p_row => lv_column_names,
41302: p_severity => G_SEV_WARNING,

Line 41318: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

41314: END IF;
41315:
41316: -- Set the message
41317:
41318: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
41319: (p_app_short_name => 'MSC',
41320: p_error_code => 'MSC_PP_INVALID_VALUE',
41321: p_message_text => lv_message_text,
41322: p_error_text => lv_error_text,

Line 41333: MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID(p_table_name => 'MSC_ST_BOM_COMPONENTS',

41329:
41330: -- Populate organization id
41331:
41332: lv_return :=
41333: MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID(p_table_name => 'MSC_ST_BOM_COMPONENTS',
41334: p_org_partner_name =>'ORGANIZATION_CODE',
41335: p_org_partner_id =>'ORGANIZATION_ID',
41336: p_instance_code => v_instance_code,
41337: p_partner_type => G_ORGANIZATION,

Line 41405: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

41401: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
41402:
41403: -- Set the message
41404:
41405: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
41406: (p_app_short_name => 'MSC',
41407: p_error_code => 'MSC_PP_COL_REF_NOT_EXIST',
41408: p_message_text => lv_message_text,
41409: p_error_text => lv_error_text,

Line 41444: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

41440: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
41441:
41442: -- Set the message
41443:
41444: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
41445: (p_app_short_name => 'MSC',
41446: p_error_code => 'MSC_PP_COL_REF_NOT_EXIST',
41447: p_message_text => lv_message_text,
41448: p_error_text => lv_error_text,

Line 41465: MSC_ST_UTIL.DERIVE_BILL_SEQUENCE_ID

41461:
41462:
41463: -- Derive the Bill Sequence Id for the MSC_ST_BOM_COMPONENTS
41464: lv_return :=
41465: MSC_ST_UTIL.DERIVE_BILL_SEQUENCE_ID
41466: (p_table_name => 'MSC_ST_BOM_COMPONENTS',
41467: p_bom_col_name => 'BOM_NAME',
41468: p_bom_col_id => 'BILL_SEQUENCE_ID',
41469: p_instance_code => v_instance_code,

Line 41481: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

41477: RAISE ex_logging_err;
41478: END IF;
41479:
41480: -- Set the error message
41481: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
41482: (p_app_short_name => 'MSC',
41483: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
41484: p_message_text => lv_message_text,
41485: p_error_text => lv_error_text,

Line 41500: lv_return := MSC_ST_UTIL.LOG_ERROR

41496: lv_where_str :=
41497: ' AND NVL(operation_seq_code,'||''''||NULL_CHAR||''''||') '
41498: ||' = '||''''||NULL_CHAR||'''' ;
41499:
41500: lv_return := MSC_ST_UTIL.LOG_ERROR
41501: (p_table_name => 'MSC_ST_BOM_COMPONENTS',
41502: p_instance_code => v_instance_code,
41503: p_row => lv_column_names,
41504: p_severity => G_SEV_WARNING,

Line 41519: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

41515: RAISE ex_logging_err;
41516: END IF;
41517:
41518: -- Set the error message
41519: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
41520: (p_app_short_name => 'MSC',
41521: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
41522: p_message_text => lv_message_text,
41523: p_error_text => lv_error_text,

Line 41539: lv_return := MSC_ST_UTIL.LOG_ERROR

41535:
41536: lv_where_str :=
41537: ' AND NVL(effectivity_date,SYSDATE-36500 ) = SYSDATE-36500' ;
41538:
41539: lv_return := MSC_ST_UTIL.LOG_ERROR
41540: (p_table_name => 'MSC_ST_BOM_COMPONENTS',
41541: p_instance_code => v_instance_code,
41542: p_row => lv_column_names,
41543: p_severity => G_SEV_WARNING,

Line 41585: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

41581: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
41582:
41583: -- Set the message
41584:
41585: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
41586: (p_app_short_name => 'MSC',
41587: p_error_code => 'MSC_PP_DELETE_FAIL',
41588: p_message_text => lv_message_text,
41589: p_error_text => lv_error_text);

Line 41619: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

41615:
41616:
41617: -- Set the message
41618:
41619: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
41620: (p_app_short_name => 'MSC',
41621: p_error_code => 'MSC_PP_DATE_OVERLAP',
41622: p_message_text => lv_message_text,
41623: p_error_text => lv_error_text);

Line 41674: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

41670:
41671:
41672: -- Set the message
41673:
41674: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
41675: (p_app_short_name => 'MSC',
41676: p_error_code => 'MSC_PP_INVALID_VALUE',
41677: p_message_text => lv_message_text,
41678: p_error_text => lv_error_text,

Line 41693: MSC_ST_UTIL.DERIVE_ITEM_ID(p_table_name =>'MSC_ST_BOM_COMPONENTS',

41689:
41690: -- Populate the using_assembly_id from assembly name
41691:
41692: lv_return :=
41693: MSC_ST_UTIL.DERIVE_ITEM_ID(p_table_name =>'MSC_ST_BOM_COMPONENTS',
41694: p_item_col_name => 'ASSEMBLY_NAME',
41695: p_item_col_id =>'USING_ASSEMBLY_ID',
41696: p_instance_code => v_instance_code,
41697: p_instance_id => v_instance_id,

Line 41710: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

41706: end if;
41707:
41708:
41709: -- Set the error message
41710: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
41711: (p_app_short_name => 'MSC',
41712: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
41713: p_message_text => lv_message_text,
41714: p_error_text => lv_error_text,

Line 41729: lv_return := MSC_ST_UTIL.LOG_ERROR

41725:
41726: lv_where_str :=
41727: ' AND NVL(usage_quantity,'||NULL_VALUE||')='|| NULL_VALUE ;
41728:
41729: lv_return := MSC_ST_UTIL.LOG_ERROR
41730: (p_table_name => 'MSC_ST_BOM_COMPONENTS',
41731: p_instance_code => v_instance_code,
41732: p_row => lv_column_names,
41733: p_severity => G_SEV_WARNING,

Line 41748: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

41744: END IF;
41745:
41746: -- Set the message
41747:
41748: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
41749: (p_app_short_name => 'MSC',
41750: p_error_code => 'MSC_PP_INVALID_VALUE',
41751: p_message_text => lv_message_text,
41752: p_error_text => lv_error_text,

Line 41791: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

41787: v_instance_code,
41788: lv_batch_id;
41789:
41790: -- Set the error message
41791: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
41792: (p_app_short_name => 'MSC',
41793: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
41794: p_message_text => lv_message_text,
41795: p_error_text => lv_error_text,

Line 41810: lv_return := MSC_ST_UTIL.LOG_ERROR

41806:
41807: lv_where_str :=
41808: ' AND NVL(component_yield_factor,'||NULL_VALUE||')= '||NULL_VALUE ;
41809:
41810: lv_return := MSC_ST_UTIL.LOG_ERROR
41811: (p_table_name => 'MSC_ST_BOM_COMPONENTS',
41812: p_instance_code => v_instance_code,
41813: p_row => lv_column_names,
41814: p_severity => G_SEV_WARNING,

Line 41829: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

41825: end if;
41826:
41827: -- Set the message
41828:
41829: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
41830: (p_app_short_name => 'MSC',
41831: p_error_code => 'MSC_PP_INVALID_VALUE',
41832: p_message_text => lv_message_text,
41833: p_error_text => lv_error_text,

Line 41844: MSC_ST_UTIL.DERIVE_ITEM_ID(p_table_name => 'MSC_ST_BOM_COMPONENTS',

41840:
41841: --Derive driving item id
41842:
41843: lv_return :=
41844: MSC_ST_UTIL.DERIVE_ITEM_ID(p_table_name => 'MSC_ST_BOM_COMPONENTS',
41845: p_item_col_name => 'DRIVING_ITEM_NAME',
41846: p_item_col_id => 'DRIVING_ITEM_ID',
41847: p_instance_code => v_instance_code,
41848: p_instance_id => v_instance_id,

Line 41860: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

41856: RAISE ex_logging_err;
41857: end if;
41858:
41859: -- Set the error message
41860: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
41861: (p_app_short_name => 'MSC',
41862: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
41863: p_message_text => lv_message_text,
41864: p_error_text => lv_error_text,

Line 41878: lv_return := MSC_ST_UTIL.LOG_ERROR

41874: -- Default the use_up_code as NULL if not in 1,2
41875:
41876: lv_where_str := ' AND use_up_code NOT IN (1,2)';
41877:
41878: lv_return := MSC_ST_UTIL.LOG_ERROR
41879: (p_table_name => 'MSC_ST_BOM_COMPONENTS',
41880: p_instance_code => v_instance_code,
41881: p_row => lv_column_names,
41882: p_severity => G_SEV_WARNING,

Line 41896: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

41892: RAISE ex_logging_err;
41893: end if;
41894:
41895: -- Set the error message
41896: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
41897: (p_app_short_name => 'MSC',
41898: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
41899: p_message_text => lv_message_text,
41900: p_error_text => lv_error_text,

Line 41914: lv_return := MSC_ST_UTIL.LOG_ERROR

41910: -- Default the optional_component as NULL if not in 1,2
41911:
41912: lv_where_str := ' AND optional_component NOT IN (1,2)';
41913:
41914: lv_return := MSC_ST_UTIL.LOG_ERROR
41915: (p_table_name => 'MSC_ST_BOM_COMPONENTS',
41916: p_instance_code => v_instance_code,
41917: p_row => lv_column_names,
41918: p_severity => G_SEV_WARNING,

Line 41932: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

41928: RAISE ex_logging_err;
41929: end if;
41930:
41931: -- Set the error message
41932: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
41933: (p_app_short_name => 'MSC',
41934: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
41935: p_message_text => lv_message_text,
41936: p_error_text => lv_error_text,

Line 41952: MSC_ST_UTIL.LOG_ERROR (p_table_name => 'MSC_ST_BOM_COMPONENTS',

41948: lv_where_str :=
41949: ' AND NVL(wip_supply_type,'||NULL_VALUE||') NOT IN (1,2,3,4,5,6,7)';
41950:
41951: lv_return :=
41952: MSC_ST_UTIL.LOG_ERROR (p_table_name => 'MSC_ST_BOM_COMPONENTS',
41953: p_instance_code => v_instance_code,
41954: p_row => lv_column_names,
41955: p_severity => G_SEV_WARNING,
41956: p_message_text => lv_message_text,

Line 41969: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

41965: RAISE ex_logging_err;
41966: end if;
41967:
41968: -- Set the error message
41969: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
41970: (p_app_short_name => 'MSC',
41971: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
41972: p_message_text => lv_message_text,
41973: p_error_text => lv_error_text,

Line 41990: lv_return := MSC_ST_UTIL.LOG_ERROR

41986:
41987: lv_where_str :=
41988: ' AND NVL(component_type,'||NULL_VALUE||') NOT IN (-1,1,2)';
41989:
41990: lv_return := MSC_ST_UTIL.LOG_ERROR
41991: (p_table_name => 'MSC_ST_BOM_COMPONENTS',
41992: p_instance_code => v_instance_code,
41993: p_row => lv_column_names,
41994: p_severity => G_SEV_WARNING,

Line 42009: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

42005: end if;
42006: */
42007:
42008: -- Set the error message
42009: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
42010: (p_app_short_name => 'MSC',
42011: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
42012: p_message_text => lv_message_text,
42013: p_error_text => lv_error_text,

Line 42028: lv_return := MSC_ST_UTIL.LOG_ERROR

42024:
42025: lv_where_str :=
42026: ' AND NVL(atp_flag,'||NULL_VALUE||')NOT IN (1,2)';
42027:
42028: lv_return := MSC_ST_UTIL.LOG_ERROR
42029: (p_table_name => 'MSC_ST_BOM_COMPONENTS',
42030: p_instance_code => v_instance_code,
42031: p_row => lv_column_names,
42032: p_severity => G_SEV_WARNING,

Line 42195: MSC_ST_UTIL.SET_PROCESS_FLAG(p_table_name => 'MSC_ST_BOM_COMPONENTS',

42191: CLOSE c7;
42192:
42193: -- Set the process flag as Valid and poulate instance_id
42194: lv_return :=
42195: MSC_ST_UTIL.SET_PROCESS_FLAG(p_table_name => 'MSC_ST_BOM_COMPONENTS',
42196: p_instance_id => v_instance_id,
42197: p_instance_code => v_instance_code,
42198: p_process_flag => G_VALID,
42199: p_error_text => lv_error_text,

Line 42210: msc_st_util.log_error(p_table_name =>'MSC_ST_BOM_COMPONENTS',

42206:
42207: -- At the end calling the LOG_ERROR for logging all errored out records
42208:
42209: lv_return :=
42210: msc_st_util.log_error(p_table_name =>'MSC_ST_BOM_COMPONENTS',
42211: p_instance_code =>v_instance_code,
42212: p_row =>lv_column_names,
42213: p_severity =>G_SEV_ERROR,
42214: p_message_text => NULL,

Line 42231: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

42227:
42228:
42229: --Duplicate records check for the records whose source is XML
42230:
42231: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
42232: (p_app_short_name => 'MSC',
42233: p_error_code => 'MSC_PP_DUP_REC_FOR_XML',
42234: p_message_text => lv_message_text,
42235: p_error_text => lv_error_text);

Line 42278: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

42274:
42275:
42276: --Duplicate records check for the records whose source is batch load
42277:
42278: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
42279: (p_app_short_name => 'MSC',
42280: p_error_code => 'MSC_PP_DUP_REC_FOR_BATCH_LOAD',
42281: p_message_text => lv_message_text,
42282: p_error_text => lv_error_text);

Line 42389: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

42385:
42386:
42387: -- Set the error message
42388:
42389: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
42390: (p_app_short_name => 'MSC',
42391: p_error_code => 'MSC_PP_NO_DELETION',
42392: p_message_text => lv_message_text,
42393: p_error_text => lv_error_text,

Line 42418: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

42414:
42415: EXECUTE IMMEDIATE lv_sql_stmt USING lv_batch_id,v_instance_code;
42416:
42417: -- Set the error message
42418: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
42419: (p_app_short_name => 'MSC',
42420: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
42421: p_message_text => lv_message_text,
42422: p_error_text => lv_error_text,

Line 42435: lv_return := MSC_ST_UTIL.LOG_ERROR

42431:
42432: lv_where_str :=
42433: ' AND NVL(deleted_flag,'||NULL_VALUE||')NOT IN (1,2)';
42434:
42435: lv_return := MSC_ST_UTIL.LOG_ERROR
42436: (p_table_name => 'MSC_ST_COMPONENT_SUBSTITUTES',
42437: p_instance_code => v_instance_code,
42438: p_row => lv_column_names,
42439: p_severity => G_SEV_WARNING,

Line 42455: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

42451: END IF;
42452:
42453: -- Set the message
42454:
42455: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
42456: (p_app_short_name => 'MSC',
42457: p_error_code => 'MSC_PP_INVALID_VALUE',
42458: p_message_text => lv_message_text,
42459: p_error_text => lv_error_text,

Line 42469: MSC_ST_UTIL.DERIVE_ITEM_ID(p_table_name => 'MSC_ST_COMPONENT_SUBSTITUTES',

42465: END IF;
42466:
42467: --Derive SUBSTITUTE ITEM ID
42468: lv_return :=
42469: MSC_ST_UTIL.DERIVE_ITEM_ID(p_table_name => 'MSC_ST_COMPONENT_SUBSTITUTES',
42470: p_item_col_name => 'SUB_ITEM_NAME',
42471: p_item_col_id => 'SUBSTITUTE_ITEM_ID',
42472: p_instance_code => v_instance_code,
42473: p_instance_id => v_instance_id,

Line 42486: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

42482: END IF;
42483:
42484: -- Set the message
42485:
42486: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
42487: (p_app_short_name => 'MSC',
42488: p_error_code => 'MSC_PP_INVALID_VALUE',
42489: p_message_text => lv_message_text,
42490: p_error_text => lv_error_text,

Line 42501: MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID(p_table_name => 'MSC_ST_COMPONENT_SUBSTITUTES',

42497:
42498: -- Populate organization id ,
42499:
42500: lv_return :=
42501: MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID(p_table_name => 'MSC_ST_COMPONENT_SUBSTITUTES',
42502: p_org_partner_name => 'ORGANIZATION_CODE',
42503: p_org_partner_id => 'ORGANIZATION_ID',
42504: p_instance_code => v_instance_code,
42505: p_partner_type => G_ORGANIZATION,

Line 42570: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

42566: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
42567:
42568: -- Set the message
42569:
42570: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
42571: (p_app_short_name => 'MSC',
42572: p_error_code => 'MSC_PP_COL_REF_NOT_EXIST',
42573: p_message_text => lv_message_text,
42574: p_error_text => lv_error_text,

Line 42610: MSC_ST_UTIL.DERIVE_BILL_SEQUENCE_ID

42606:
42607:
42608: -- Derive bill sequence id
42609: lv_return :=
42610: MSC_ST_UTIL.DERIVE_BILL_SEQUENCE_ID
42611: (p_table_name => 'MSC_ST_COMPONENT_SUBSTITUTES',
42612: p_bom_col_name => 'BOM_NAME',
42613: p_bom_col_id => 'BILL_SEQUENCE_ID',
42614: p_instance_code => v_instance_code,

Line 42626: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

42622: RAISE ex_logging_err;
42623: END IF;
42624:
42625: -- Set the error message
42626: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
42627: (p_app_short_name => 'MSC',
42628: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
42629: p_message_text => lv_message_text,
42630: p_error_text => lv_error_text,

Line 42646: lv_return := MSC_ST_UTIL.LOG_ERROR

42642:
42643: lv_where_str :=
42644: ' AND NVL(effectivity_date,SYSDATE-36500 ) = SYSDATE-36500' ;
42645:
42646: lv_return := MSC_ST_UTIL.LOG_ERROR
42647: (p_table_name => 'MSC_ST_COMPONENT_SUBSTITUTES',
42648: p_instance_code => v_instance_code,
42649: p_row => lv_column_names,
42650: p_severity => G_SEV_WARNING,

Line 42692: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

42688: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
42689:
42690: -- Set the error message
42691:
42692: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
42693: (p_app_short_name => 'MSC',
42694: p_error_code => 'MSC_PP_COL_REF_NOT_EXIST',
42695: p_message_text => lv_message_text,
42696: p_error_text => lv_error_text,

Line 42727: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

42723:
42724: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
42725:
42726: -- Set the error message
42727: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
42728: (p_app_short_name => 'MSC',
42729: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
42730: p_message_text => lv_message_text,
42731: p_error_text => lv_error_text,

Line 42745: lv_return := MSC_ST_UTIL.LOG_ERROR

42741: -- Default 1 where usage quantity is NULL
42742:
42743: lv_where_str := ' AND NVL(usage_quantity,'||NULL_VALUE||')='|| NULL_VALUE ;
42744:
42745: lv_return := MSC_ST_UTIL.LOG_ERROR
42746: (p_table_name => 'MSC_ST_COMPONENT_SUBSTITUTES',
42747: p_instance_code => v_instance_code,
42748: p_row => lv_column_names,
42749: p_severity => G_SEV_WARNING,

Line 42765: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

42761: END IF;
42762:
42763:
42764: -- Set the error message
42765: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
42766: (p_app_short_name => 'MSC',
42767: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
42768: p_message_text => lv_message_text,
42769: p_error_text => lv_error_text,

Line 42783: lv_return := MSC_ST_UTIL.LOG_ERROR

42779: -- Default PRIORITY as 1 if NULL
42780:
42781: lv_where_str := ' AND NVL(priority,'||NULL_VALUE||')='|| NULL_VALUE ;
42782:
42783: lv_return := MSC_ST_UTIL.LOG_ERROR
42784: (p_table_name => 'MSC_ST_COMPONENT_SUBSTITUTES',
42785: p_instance_code => v_instance_code,
42786: p_row => lv_column_names,
42787: p_severity => G_SEV_WARNING,

Line 42817: MSC_ST_UTIL.SET_PROCESS_FLAG(p_table_name => 'MSC_ST_COMPONENT_SUBSTITUTES',

42813: END IF;
42814:
42815: -- Set the process flag as Valid and poulate instance_id
42816: lv_return :=
42817: MSC_ST_UTIL.SET_PROCESS_FLAG(p_table_name => 'MSC_ST_COMPONENT_SUBSTITUTES',
42818: p_instance_id => v_instance_id,
42819: p_instance_code => v_instance_code,
42820: p_process_flag => G_VALID,
42821: p_error_text => lv_error_text,

Line 42832: msc_st_util.log_error(p_table_name => 'MSC_ST_COMPONENT_SUBSTITUTES',

42828:
42829: -- At the end calling the LOG_ERROR for logging all errored out records
42830:
42831: lv_return :=
42832: msc_st_util.log_error(p_table_name => 'MSC_ST_COMPONENT_SUBSTITUTES',
42833: p_instance_code => v_instance_code,
42834: p_row => lv_column_names,
42835: p_severity => G_SEV_ERROR,
42836: p_error_text => lv_error_text,

Line 42852: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

42848: -- Now validtion for MSC_ST_CO_PRODUCTS
42849:
42850: --Duplicate records check for the records whose source is XML
42851:
42852: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
42853: (p_app_short_name => 'MSC',
42854: p_error_code => 'MSC_PP_DUP_REC_FOR_XML',
42855: p_message_text => lv_message_text,
42856: p_error_text => lv_error_text);

Line 42889: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

42885:
42886:
42887: --Duplicate records check for the records whose source is batch load
42888:
42889: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
42890: (p_app_short_name => 'MSC',
42891: p_error_code => 'MSC_PP_DUP_REC_FOR_BATCH_LOAD',
42892: p_message_text => lv_message_text,
42893: p_error_text => lv_error_text);

Line 42983: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

42979:
42980:
42981: -- Set the error message
42982:
42983: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
42984: (p_app_short_name => 'MSC',
42985: p_error_code => 'MSC_PP_NO_DELETION',
42986: p_message_text => lv_message_text,
42987: p_error_text => lv_error_text,

Line 43012: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

43008:
43009: EXECUTE IMMEDIATE lv_sql_stmt USING lv_batch_id,v_instance_code;
43010:
43011: -- Set the error message
43012: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
43013: (p_app_short_name => 'MSC',
43014: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
43015: p_message_text => lv_message_text,
43016: p_error_text => lv_error_text,

Line 43029: lv_return := MSC_ST_UTIL.LOG_ERROR

43025:
43026: lv_where_str :=
43027: ' AND NVL(deleted_flag,'||NULL_VALUE||')NOT IN (1,2)';
43028:
43029: lv_return := MSC_ST_UTIL.LOG_ERROR
43030: (p_table_name => 'MSC_ST_CO_PRODUCTS',
43031: p_instance_code => v_instance_code,
43032: p_row => lv_column_names,
43033: p_severity => G_SEV_WARNING,

Line 43050: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

43046:
43047:
43048: -- Set the error message
43049:
43050: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
43051: (p_app_short_name => 'MSC',
43052: p_error_code => 'MSC_PP_COL_VAL_NULL',
43053: p_message_text => lv_message_text,
43054: p_error_text => lv_error_text,

Line 43084: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

43080: v_instance_code;
43081:
43082:
43083:
43084: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
43085: (p_app_short_name => 'MSC',
43086: p_error_code => 'MSC_PP_INVALID_VALUE',
43087: p_message_text => lv_message_text,
43088: p_error_text => lv_error_text,

Line 43097: lv_return := MSC_ST_UTIL.DERIVE_ITEM_ID

43093: RAISE ex_logging_err;
43094: END IF;
43095:
43096: -- Derive Component_id
43097: lv_return := MSC_ST_UTIL.DERIVE_ITEM_ID
43098: (p_table_name => 'MSC_ST_CO_PRODUCTS',
43099: p_item_col_name => 'COMPONENT_NAME',
43100: p_item_col_id => 'COMPONENT_ID',
43101: p_instance_id => v_instance_id,

Line 43115: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

43111: RAISE ex_logging_err;
43112: END IF;
43113:
43114:
43115: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
43116: (p_app_short_name => 'MSC',
43117: p_error_code => 'MSC_PP_INVALID_VALUE',
43118: p_message_text => lv_message_text,
43119: p_error_text => lv_error_text,

Line 43128: lv_return := MSC_ST_UTIL.DERIVE_ITEM_ID

43124: RAISE ex_logging_err;
43125: END IF;
43126:
43127: -- Derive Co_product_id
43128: lv_return := MSC_ST_UTIL.DERIVE_ITEM_ID
43129: (p_table_name => 'MSC_ST_CO_PRODUCTS',
43130: p_item_col_name => 'CO_PRODUCT_NAME',
43131: p_item_col_id => 'CO_PRODUCT_ID',
43132: p_instance_id => v_instance_id,

Line 43173: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

43169:
43170: -- Error out all the records for which a CO_PRODUCT_GROUP_ID is derived.
43171: -- the idea is this record was already loaded earlier. Updation not allowed.
43172:
43173: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
43174: (p_app_short_name => 'MSC',
43175: p_error_code => 'MSC_PP_NO_CO_PROD_UPDATE',
43176: p_message_text => lv_message_text,
43177: p_error_text => lv_error_text);

Line 43220: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

43216: END IF;
43217:
43218: -- Set the error message
43219:
43220: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
43221: (p_app_short_name => 'MSC',
43222: p_error_code => 'MSC_PP_INVALID_CO_PROD_SET',
43223: p_message_text => lv_message_text,
43224: p_error_text => lv_error_text);

Line 43266: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

43262:
43263: -- split percentage for a component should add up to 100.
43264: -- Note: assumption is a component can have only one group of co products.
43265: -- Set the error message
43266: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
43267: (p_app_short_name => 'MSC',
43268: p_error_code => 'MSC_PP_CO_PROD_SPLIT_INVALID',
43269: p_message_text => lv_message_text,
43270: p_error_text => lv_error_text,

Line 43301: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

43297:
43298: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code;
43299:
43300: -- one component should have one and only one primary co product.
43301: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
43302: (p_app_short_name => 'MSC',
43303: p_error_code => 'MSC_PP_MULTI_PRI_CO_PROD',
43304: p_message_text => lv_message_text,
43305: p_error_text => lv_error_text,

Line 43400: MSC_ST_UTIL.SET_PROCESS_FLAG(p_table_name => 'MSC_ST_CO_PRODUCTS',

43396:
43397:
43398: -- Set the process flag as Valid and derive sr_instance_id
43399: lv_return :=
43400: MSC_ST_UTIL.SET_PROCESS_FLAG(p_table_name => 'MSC_ST_CO_PRODUCTS',
43401: p_instance_id => v_instance_id,
43402: p_instance_code => v_instance_code,
43403: p_process_flag => G_VALID,
43404: p_error_text => lv_error_text,

Line 43415: MSC_ST_UTIL.LOG_ERROR(p_table_name => 'MSC_ST_CO_PRODUCTS',

43411:
43412: -- At the end calling the LOG_ERROR for logging all errored out records
43413:
43414: lv_return :=
43415: MSC_ST_UTIL.LOG_ERROR(p_table_name => 'MSC_ST_CO_PRODUCTS',
43416: p_instance_code => v_instance_code,
43417: p_row => lv_column_names,
43418: p_severity => G_SEV_ERROR,
43419: p_message_text => NULL,

Line 43568: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

43564:
43565: BEGIN
43566: --Duplicate records check for the records whose source is XML
43567:
43568: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
43569: (p_app_short_name => 'MSC',
43570: p_error_code => 'MSC_PP_DUP_REC_FOR_XML',
43571: p_message_text => lv_message_text,
43572: p_error_text => lv_error_text);

Line 43609: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

43605: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code;
43606:
43607: --Duplicate records check for the records whose source is batch load
43608:
43609: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
43610: (p_app_short_name => 'MSC',
43611: p_error_code => 'MSC_PP_DUP_REC_FOR_BATCH_LOAD',
43612: p_message_text => lv_message_text,
43613: p_error_text => lv_error_text);

Line 43720: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

43716: WHERE rowid = lb_rowid(j);
43717:
43718:
43719: -- Set the message
43720: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
43721: (p_app_short_name => 'MSC',
43722: p_error_code => 'MSC_PP_NO_DELETION',
43723: p_message_text => lv_message_text,
43724: p_error_text => lv_error_text,

Line 43749: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

43745:
43746: EXECUTE IMMEDIATE lv_sql_stmt USING lv_batch_id,v_instance_code;
43747:
43748: -- Set the error message
43749: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
43750: (p_app_short_name => 'MSC',
43751: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
43752: p_message_text => lv_message_text,
43753: p_error_text => lv_error_text,

Line 43769: lv_return := MSC_ST_UTIL.LOG_ERROR

43765:
43766: lv_where_str :=
43767: ' AND NVL(deleted_flag,'||NULL_VALUE||') <>'||SYS_NO;
43768:
43769: lv_return := MSC_ST_UTIL.LOG_ERROR
43770: (p_table_name => 'MSC_ST_ROUTINGS',
43771: p_instance_code => v_instance_code,
43772: p_row => lv_column_names,
43773: p_severity => G_SEV_WARNING,

Line 43788: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

43784: END IF;
43785:
43786: -- Set the message
43787:
43788: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
43789: (p_app_short_name => 'MSC',
43790: p_error_code => 'MSC_PP_INVALID_VALUE',
43791: p_message_text => lv_message_text,
43792: p_error_text => lv_error_text,

Line 43800: -- derive organization id , call utilty package- msc_st_util's procedure

43796: IF lv_return <> 0 THEN
43797: RAISE ex_logging_err;
43798: END IF;
43799:
43800: -- derive organization id , call utilty package- msc_st_util's procedure
43801:
43802: lv_return :=
43803: MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID(p_table_name => 'MSC_ST_ROUTINGS',
43804: p_org_partner_name => 'ORGANIZATION_CODE',

Line 43803: MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID(p_table_name => 'MSC_ST_ROUTINGS',

43799:
43800: -- derive organization id , call utilty package- msc_st_util's procedure
43801:
43802: lv_return :=
43803: MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID(p_table_name => 'MSC_ST_ROUTINGS',
43804: p_org_partner_name => 'ORGANIZATION_CODE',
43805: p_org_partner_id => 'ORGANIZATION_ID',
43806: p_instance_code => v_instance_code,
43807: p_partner_type => G_ORGANIZATION,

Line 43820: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

43816: end if;
43817:
43818: -- Set the message
43819:
43820: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
43821: (p_app_short_name => 'MSC',
43822: p_error_code => 'MSC_PP_INVALID_VALUE',
43823: p_message_text => lv_message_text,
43824: p_error_text => lv_error_text,

Line 43835: MSC_ST_UTIL.DERIVE_ITEM_ID(p_table_name => 'MSC_ST_ROUTINGS',

43831:
43832: -- Derive assembly item id
43833:
43834: lv_return :=
43835: MSC_ST_UTIL.DERIVE_ITEM_ID(p_table_name => 'MSC_ST_ROUTINGS',
43836: p_item_col_name => 'ASSEMBLY_NAME',
43837: p_item_col_id => 'ASSEMBLY_ITEM_ID',
43838: p_instance_code => v_instance_code,
43839: p_instance_id => v_instance_id,

Line 43874: lv_return :=msc_st_util.derive_routing_sequence_id

43870:
43871:
43872: -- Derive the ROUTING_SEQUENCE_ID from LOCAL ID table
43873:
43874: lv_return :=msc_st_util.derive_routing_sequence_id
43875: (p_table_name => 'MSC_ST_ROUTINGS',
43876: p_rtg_col_name => 'ROUTING_NAME',
43877: p_rtg_col_id =>'ROUTING_SEQUENCE_ID',
43878: p_instance_code => v_instance_code,

Line 43888: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

43884: MSC_UTIL.LOG_MSG(MSC_UTIL.G_LVL_STATUS,lv_error_text);
43885: end if;
43886:
43887: -- Set the error message
43888: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
43889: (p_app_short_name => 'MSC',
43890: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
43891: p_message_text => lv_message_text,
43892: p_error_text => lv_error_text,

Line 43907: lv_return := MSC_ST_UTIL.LOG_ERROR

43903:
43904: lv_where_str :=
43905: ' AND NVL(routing_type,'||NULL_VALUE||') NOT IN (1,2)';
43906:
43907: lv_return := MSC_ST_UTIL.LOG_ERROR
43908: (p_table_name => 'MSC_ST_ROUTINGS',
43909: p_instance_code => v_instance_code,
43910: p_row => lv_column_names,
43911: p_severity => G_SEV_WARNING,

Line 43926: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

43922: MSC_UTIL.LOG_MSG(MSC_UTIL.G_LVL_STATUS,lv_error_text);
43923: END IF;
43924:
43925: -- Set the error message
43926: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
43927: (p_app_short_name => 'MSC',
43928: p_error_code => 'MSC_PP_FK_REF_NOT_EXIST',
43929: p_message_text => lv_message_text,
43930: p_error_text => lv_error_text,

Line 43942: lv_return:= MSC_ST_UTIL.DERIVE_PROJ_TASK_ID

43938: RAISE ex_logging_err;
43939: END IF;
43940:
43941: --Derive Project Id.
43942: lv_return:= MSC_ST_UTIL.DERIVE_PROJ_TASK_ID
43943: (p_table_name => 'MSC_ST_ROUTINGS',
43944: p_proj_col_name => 'PROJECT_NUMBER',
43945: p_proj_task_col_id => 'PROJECT_ID',
43946: p_instance_code => v_instance_code,

Line 43959: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

43955: RAISE ex_logging_err;
43956: END IF;
43957:
43958: -- Set the error message
43959: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
43960: (p_app_short_name => 'MSC',
43961: p_error_code => 'MSC_PP_FK_REF_NOT_EXIST',
43962: p_message_text => lv_message_text,
43963: p_error_text => lv_error_text,

Line 43976: lv_return:= MSC_ST_UTIL.DERIVE_PROJ_TASK_ID

43972: RAISE ex_logging_err;
43973: END IF;
43974:
43975: --Derive Task Id.
43976: lv_return:= MSC_ST_UTIL.DERIVE_PROJ_TASK_ID
43977: (p_table_name => 'MSC_ST_ROUTINGS',
43978: p_proj_col_name => 'PROJECT_NUMBER',
43979: p_proj_task_col_id => 'TASK_ID',
43980: p_instance_code => v_instance_code,

Line 44018: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

44014: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
44015:
44016: -- Set the message
44017:
44018: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
44019: (p_app_short_name => 'MSC',
44020: p_error_code => 'MSC_PP_INVALID_VALUE',
44021: p_message_text => lv_message_text,
44022: p_error_text => lv_error_text,

Line 44062: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

44058: v_instance_code,
44059: lv_batch_id;
44060:
44061: -- Set the error message
44062: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
44063: (p_app_short_name => 'MSC',
44064: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
44065: p_message_text => lv_message_text,
44066: p_error_text => lv_error_text,

Line 44080: lv_return := MSC_ST_UTIL.LOG_ERROR

44076: -- Defualt CTP FLAG as 2(No) if NOT IN (1,2)
44077:
44078: lv_where_str := ' AND ctp_flag NOT IN (1,2)';
44079:
44080: lv_return := MSC_ST_UTIL.LOG_ERROR
44081: (p_table_name => 'MSC_ST_ROUTINGS',
44082: p_instance_code => v_instance_code,
44083: p_row => lv_column_names,
44084: p_severity => G_SEV_WARNING,

Line 44098: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

44094: RAISE ex_logging_err;
44095: END IF;
44096:
44097: -- Set the error message
44098: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
44099: (p_app_short_name => 'MSC',
44100: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
44101: p_message_text => lv_message_text,
44102: p_error_text => lv_error_text,

Line 44117: lv_return := MSC_ST_UTIL.LOG_ERROR

44113: -- 3 added for Network Routing, now supported by OSFM integration.
44114:
44115: lv_where_str := ' AND cfm_routing_flag NOT IN (1,2,3)';
44116:
44117: lv_return := MSC_ST_UTIL.LOG_ERROR
44118: (p_table_name => 'MSC_ST_ROUTINGS',
44119: p_instance_code => v_instance_code,
44120: p_row => lv_column_names,
44121: p_severity => G_SEV_WARNING,

Line 44154: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

44150: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
44151:
44152:
44153: -- Set the error message
44154: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
44155: (p_app_short_name => 'MSC',
44156: p_error_code => 'MSC_PP_COL_REF_NOT_EXIST',
44157: p_message_text => lv_message_text,
44158: p_error_text => lv_error_text,

Line 44170: MSC_ST_UTIL.DERIVE_BILL_SEQUENCE_ID

44166:
44167: -- Derive the bill_sequence_id
44168:
44169: lv_return :=
44170: MSC_ST_UTIL.DERIVE_BILL_SEQUENCE_ID
44171: (p_table_name => 'MSC_ST_ROUTINGS',
44172: p_row => lv_column_names,
44173: p_bom_col_name => 'BOM_NAME',
44174: p_bom_col_id => 'BILL_SEQUENCE_ID',

Line 44189: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

44185:
44186: -- For OSFM Integration
44187: -- for Network Routings first_operation_seq_code or last_operation_seq_code cannot be null.
44188: -- Set the error message
44189: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
44190: (p_app_short_name => 'MSC',
44191: p_error_code => 'MSC_PP_COL_VAL_NULL',
44192: p_message_text => lv_message_text,
44193: p_error_text => lv_error_text,

Line 44332: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

44328: CLOSE c3;
44329:
44330: -- set the message
44331:
44332: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
44333: (p_app_short_name => 'MSC',
44334: p_error_code => 'MSC_PP_INVALID_VALUE',
44335: p_message_text => lv_message_text,
44336: p_error_text => lv_error_text,

Line 44354: lv_return := msc_st_util.derive_routing_sequence_id

44350: ||' <> '||''''||NULL_CHAR||'''' ;
44351:
44352:
44353:
44354: lv_return := msc_st_util.derive_routing_sequence_id
44355: (p_table_name => 'MSC_ST_ROUTINGS',
44356: p_rtg_col_name => 'COMMON_ROUTING_NAME',
44357: p_rtg_col_id => 'COMMON_ROUTING_SEQUENCE_ID',
44358: p_instance_code => v_instance_code,

Line 44390: MSC_ST_UTIL.SET_PROCESS_FLAG(p_table_name => 'MSC_ST_ROUTINGS',

44386:
44387:
44388: -- Set the process flag as Valid and poulate instance_id
44389: lv_return :=
44390: MSC_ST_UTIL.SET_PROCESS_FLAG(p_table_name => 'MSC_ST_ROUTINGS',
44391: p_instance_id => v_instance_id,
44392: p_instance_code => v_instance_code,
44393: p_process_flag => G_VALID,
44394: p_error_text => lv_error_text,

Line 44405: MSC_ST_UTIL.LOG_ERROR(p_table_name => 'MSC_ST_ROUTINGS',

44401:
44402: -- At the end calling the LOG_ERROR for logging all errored out records
44403:
44404: lv_return :=
44405: MSC_ST_UTIL.LOG_ERROR(p_table_name => 'MSC_ST_ROUTINGS',
44406: p_instance_code => v_instance_code,
44407: p_row => lv_column_names,
44408: p_severity => G_SEV_ERROR,
44409: p_message_text => NULL,

Line 44428: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

44424:
44425:
44426: --Duplicate records check for the records whose source is XML
44427:
44428: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
44429: (p_app_short_name => 'MSC',
44430: p_error_code => 'MSC_PP_DUP_REC_FOR_XML',
44431: p_message_text => lv_message_text,
44432: p_error_text => lv_error_text);

Line 44470: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

44466:
44467:
44468: --Duplicate records check for the records whose source is batch load
44469:
44470: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
44471: (p_app_short_name => 'MSC',
44472: p_error_code => 'MSC_PP_DUP_REC_FOR_BATCH_LOAD',
44473: p_message_text => lv_message_text,
44474: p_error_text => lv_error_text);

Line 44591: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

44587: created_by = v_current_user
44588: WHERE rowid = lb_rowid(j);
44589:
44590: -- Set the error message
44591: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
44592: (p_app_short_name => 'MSC',
44593: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
44594: p_message_text => lv_message_text,
44595: p_error_text => lv_error_text,

Line 44611: lv_return := MSC_ST_UTIL.LOG_ERROR

44607:
44608: lv_where_str :=
44609: ' AND NVL(deleted_flag,'||NULL_VALUE||') <>'||SYS_NO;
44610:
44611: lv_return := MSC_ST_UTIL.LOG_ERROR
44612: (p_table_name => 'MSC_ST_ROUTING_OPERATIONS',
44613: p_instance_code => v_instance_code,
44614: p_row => lv_column_names,
44615: p_severity => G_SEV_WARNING,

Line 44630: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

44626: END IF;
44627:
44628: -- Set the message
44629:
44630: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
44631: (p_app_short_name => 'MSC',
44632: p_error_code => 'MSC_PP_INVALID_VALUE',
44633: p_message_text => lv_message_text,
44634: p_error_text => lv_error_text,

Line 44644: MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID(p_table_name => 'MSC_ST_ROUTING_OPERATIONS',

44640: END IF;
44641:
44642: -- derive organization id ,
44643: lv_return :=
44644: MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID(p_table_name => 'MSC_ST_ROUTING_OPERATIONS',
44645: p_org_partner_name =>'ORGANIZATION_CODE',
44646: p_org_partner_id =>'ORGANIZATION_ID',
44647: p_instance_code => v_instance_code,
44648: p_partner_type => G_ORGANIZATION,

Line 44678: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

44674:
44675: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
44676:
44677: -- Set the error message
44678: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
44679: (p_app_short_name => 'MSC',
44680: p_error_code => 'MSC_PP_COL_REF_NOT_EXIST',
44681: p_message_text => lv_message_text,
44682: p_error_text => lv_error_text,

Line 44698: MSC_ST_UTIL.DERIVE_ROUTING_SEQUENCE_ID

44694:
44695: -- Derive the ROUTING_SEQUENCE_ID from LOCAL ID table
44696:
44697: lv_return :=
44698: MSC_ST_UTIL.DERIVE_ROUTING_SEQUENCE_ID
44699: (p_table_name => 'MSC_ST_ROUTING_OPERATIONS',
44700: p_rtg_col_name => 'ROUTING_NAME',
44701: p_rtg_col_id => 'ROUTING_SEQUENCE_ID',
44702: p_instance_code => v_instance_code,

Line 44714: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

44710: RAISE ex_logging_err;
44711: end if;
44712:
44713: -- Set the error message
44714: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
44715: (p_app_short_name => 'MSC',
44716: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
44717: p_message_text => lv_message_text,
44718: p_error_text => lv_error_text,

Line 44733: lv_return := MSC_ST_UTIL.LOG_ERROR

44729:
44730: lv_where_str :=
44731: ' AND NVL(effectivity_date,SYSDATE-36500 ) = SYSDATE-36500 ' ;
44732:
44733: lv_return := MSC_ST_UTIL.LOG_ERROR
44734: (p_table_name => 'MSC_ST_ROUTING_OPERATIONS',
44735: p_instance_code => v_instance_code,
44736: p_row => lv_column_names,
44737: p_severity => G_SEV_WARNING,

Line 44751: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

44747: RAISE ex_logging_err;
44748: END IF;
44749:
44750: -- Set the error message
44751: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
44752: (p_app_short_name => 'MSC',
44753: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
44754: p_message_text => lv_message_text,
44755: p_error_text => lv_error_text,

Line 44770: lv_return := MSC_ST_UTIL.LOG_ERROR

44766: lv_where_str :=
44767: ' AND NVL(operation_seq_code,'||''''||NULL_CHAR||''''||') '
44768: ||' = '||''''||NULL_CHAR||'''' ;
44769:
44770: lv_return := MSC_ST_UTIL.LOG_ERROR
44771: (p_table_name => 'MSC_ST_ROUTING_OPERATIONS',
44772: p_instance_code => v_instance_code,
44773: p_row => lv_column_names,
44774: p_severity => G_SEV_WARNING,

Line 44837: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

44833:
44834: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
44835: */
44836: -- Set the error message
44837: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
44838: (p_app_short_name => 'MSC',
44839: p_error_code => 'MSC_PP_DELETE_FAIL',
44840: p_message_text => lv_message_text,
44841: p_error_text => lv_error_text );

Line 44867: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

44863: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
44864:
44865: -- Set the error message
44866:
44867: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
44868: (p_app_short_name => 'MSC',
44869: p_error_code => 'MSC_PP_COL_VAL_NULL',
44870: p_message_text => lv_message_text,
44871: p_error_text => lv_error_text,

Line 45009: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

45005:
45006: /* Bug 3549086 -- we shouldn't be erroing out if department doen't exists.
45007: ERP allows such records. Hence we would genearet department it.
45008: -- Set the error message
45009: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
45010: (p_app_short_name => 'MSC',
45011: p_error_code => 'MSC_PP_COL_REF_NOT_EXIST',
45012: p_message_text => lv_message_text,
45013: p_error_text => lv_error_text,

Line 45046: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

45042: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
45043: */
45044:
45045: -- Set the error message
45046: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
45047: (p_app_short_name => 'MSC',
45048: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
45049: p_message_text => lv_message_text,
45050: p_error_text => lv_error_text,

Line 45065: lv_return := MSC_ST_UTIL.LOG_ERROR

45061:
45062: lv_where_str := ' AND NVL(option_dependent_flag,'||NULL_VALUE||')'
45063: ||' NOT IN (1,2) AND deleted_flag = '||SYS_NO ;
45064:
45065: lv_return := MSC_ST_UTIL.LOG_ERROR
45066: (p_table_name => 'MSC_ST_ROUTING_OPERATIONS',
45067: p_instance_code => v_instance_code,
45068: p_row => lv_column_names,
45069: p_severity => G_SEV_WARNING,

Line 45255: MSC_ST_UTIL.SET_PROCESS_FLAG(p_table_name => 'MSC_ST_ROUTING_OPERATIONS',

45251: v_instance_id,v_instance_id,v_instance_code,v_instance_id,lv_batch_id;
45252:
45253: -- Set the process flag as Valid and derive sr_instance_id
45254: lv_return :=
45255: MSC_ST_UTIL.SET_PROCESS_FLAG(p_table_name => 'MSC_ST_ROUTING_OPERATIONS',
45256: p_instance_id => v_instance_id,
45257: p_instance_code => v_instance_code,
45258: p_process_flag => G_VALID,
45259: p_error_text => lv_error_text,

Line 45271: MSC_ST_UTIL.LOG_ERROR(p_table_name => 'MSC_ST_ROUTING_OPERATIONS',

45267:
45268: -- At the end calling the LOG_ERROR for logging all errored out records
45269:
45270: lv_return :=
45271: MSC_ST_UTIL.LOG_ERROR(p_table_name => 'MSC_ST_ROUTING_OPERATIONS',
45272: p_instance_code => v_instance_code,
45273: p_row => lv_column_names,
45274: p_severity => G_SEV_ERROR,
45275: p_message_text => NULL,

Line 45291: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

45287: -- Validation for the MSC_ST_OPERATION_RESOURCES
45288:
45289: --Duplicate records check for the records whose source is XML
45290:
45291: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
45292: (p_app_short_name => 'MSC',
45293: p_error_code => 'MSC_PP_DUP_REC_FOR_XML',
45294: p_message_text => lv_message_text,
45295: p_error_text => lv_error_text);

Line 45340: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

45336:
45337:
45338: --Duplicate records check for the records whose source is batch load
45339:
45340: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
45341: (p_app_short_name => 'MSC',
45342: p_error_code => 'MSC_PP_DUP_REC_FOR_BATCH_LOAD',
45343: p_message_text => lv_message_text,
45344: p_error_text => lv_error_text);

Line 45451: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

45447: WHERE rowid = lb_rowid(j);
45448:
45449:
45450: -- Set the error message
45451: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
45452: (p_app_short_name => 'MSC',
45453: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
45454: p_message_text => lv_message_text,
45455: p_error_text => lv_error_text,

Line 45471: lv_return := MSC_ST_UTIL.LOG_ERROR

45467:
45468: lv_where_str :=
45469: ' AND NVL(deleted_flag,'||NULL_VALUE||') NOT IN(1,2)';
45470:
45471: lv_return := MSC_ST_UTIL.LOG_ERROR
45472: (p_table_name => 'MSC_ST_OPERATION_RESOURCES',
45473: p_instance_code => v_instance_code,
45474: p_row => lv_column_names,
45475: p_severity => G_SEV_WARNING,

Line 45528: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

45524:
45525: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
45526:
45527: -- Set the message
45528: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
45529: (p_app_short_name => 'MSC',
45530: p_error_code => 'MSC_PP_INVALID_VALUE',
45531: p_message_text => lv_message_text,
45532: p_error_text => lv_error_text,

Line 45542: MSC_ST_UTIL.DERIVE_ROUTING_SEQUENCE_ID

45538: END IF;
45539:
45540: -- Derive the ROUTING_SEQUENCE_ID from LOCAL ID table
45541: lv_return :=
45542: MSC_ST_UTIL.DERIVE_ROUTING_SEQUENCE_ID
45543: (p_table_name => 'MSC_ST_OPERATION_RESOURCES',
45544: p_rtg_col_name => 'ROUTING_NAME',
45545: p_rtg_col_id =>'ROUTING_SEQUENCE_ID',
45546: p_instance_code => v_instance_code,

Line 45560: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

45556:
45557:
45558: -- Set the error message
45559:
45560: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
45561: (p_app_short_name => 'MSC',
45562: p_error_code => 'MSC_PP_INVALID_VALUE',
45563: p_message_text => lv_message_text,
45564: p_error_text => lv_error_text,

Line 45573: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID

45569: RAISE ex_logging_err;
45570: END IF;
45571:
45572: --Derive Organization_id
45573: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID
45574: (p_table_name => 'MSC_ST_OPERATION_RESOURCES',
45575: p_org_partner_name => 'ORGANIZATION_CODE',
45576: p_org_partner_id => 'ORGANIZATION_ID',
45577: p_instance_code => v_instance_code,

Line 45591: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

45587: RAISE ex_logging_err;
45588: END IF;
45589:
45590: -- Set the error message
45591: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
45592: (p_app_short_name => 'MSC',
45593: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
45594: p_message_text => lv_message_text,
45595: p_error_text => lv_error_text,

Line 45610: lv_return := MSC_ST_UTIL.LOG_ERROR

45606:
45607: lv_where_str := ' AND NVL(operation_seq_code,'||''''||NULL_CHAR||''''
45608: ||' ) ='||''''||NULL_CHAR||'''' ;
45609:
45610: lv_return := MSC_ST_UTIL.LOG_ERROR
45611: (p_table_name => 'MSC_ST_OPERATION_RESOURCES',
45612: p_instance_code => v_instance_code,
45613: p_row => lv_column_names,
45614: p_severity => G_SEV_WARNING,

Line 45629: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

45625: END IF;
45626:
45627:
45628: -- Set the error message
45629: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
45630: (p_app_short_name => 'MSC',
45631: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
45632: p_message_text => lv_message_text,
45633: p_error_text => lv_error_text,

Line 45648: lv_return := MSC_ST_UTIL.LOG_ERROR

45644:
45645: lv_where_str :=
45646: ' AND NVL(operation_effectivity_date, SYSDATE-36500 ) = SYSDATE-36500 ' ;
45647:
45648: lv_return := MSC_ST_UTIL.LOG_ERROR
45649: (p_table_name => 'MSC_ST_OPERATION_RESOURCES',
45650: p_instance_code => v_instance_code,
45651: p_row => lv_column_names,
45652: p_severity => G_SEV_WARNING,

Line 45693: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

45689:
45690: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
45691:
45692: -- Set the error message
45693: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
45694: (p_app_short_name => 'MSC',
45695: p_error_code => 'MSC_PP_COL_REF_NOT_EXIST',
45696: p_message_text => lv_message_text,
45697: p_error_text => lv_error_text,

Line 45733: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

45729:
45730: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
45731:
45732: -- Set the error message
45733: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
45734: (p_app_short_name => 'MSC',
45735: p_error_code => 'MSC_PP_COL_VAL_NULL_DEFAULT',
45736: p_message_text => lv_message_text,
45737: p_error_text => lv_error_text,

Line 45752: lv_return := MSC_ST_UTIL.LOG_ERROR

45748:
45749: lv_where_str := ' AND NVL(resource_seq_code,'||''''||NULL_CHAR||''''
45750: ||' ) ='||''''||NULL_CHAR||'''' ;
45751:
45752: lv_return := MSC_ST_UTIL.LOG_ERROR
45753: (p_table_name => 'MSC_ST_OPERATION_RESOURCES',
45754: p_instance_code => v_instance_code,
45755: p_row => lv_column_names,
45756: p_severity => G_SEV_WARNING,

Line 45770: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

45766: RAISE ex_logging_err;
45767: END IF;
45768:
45769: -- Set the error message
45770: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
45771: (p_app_short_name => 'MSC',
45772: p_error_code => 'MSC_PP_COL_VAL_NULL_DEFAULT',
45773: p_message_text => lv_message_text,
45774: p_error_text => lv_error_text,

Line 45788: lv_return := MSC_ST_UTIL.LOG_ERROR

45784: -- Default alternate number as 0 if NULL
45785:
45786: lv_where_str := ' AND NVL(alternate_number,'||NULL_VALUE||') ='||NULL_VALUE ;
45787:
45788: lv_return := MSC_ST_UTIL.LOG_ERROR
45789: (p_table_name => 'MSC_ST_OPERATION_RESOURCES',
45790: p_instance_code => v_instance_code,
45791: p_row => lv_column_names,
45792: p_severity => G_SEV_WARNING,

Line 45835: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

45831:
45832: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
45833:
45834:
45835: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
45836: (p_app_short_name => 'MSC',
45837: p_error_code => 'MSC_PP_DELETE_FAIL',
45838: p_message_text => lv_message_text,
45839: p_error_text => lv_error_text);

Line 45913: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

45909:
45910: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
45911:
45912: -- Set the error message
45913: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
45914: (p_app_short_name => 'MSC',
45915: p_error_code => 'MSC_PP_COL_REF_NOT_EXIST',
45916: p_message_text => lv_message_text,
45917: p_error_text => lv_error_text,

Line 45971: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

45967:
45968: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
45969:
45970: -- Set the error message
45971: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
45972: (p_app_short_name => 'MSC',
45973: p_error_code => 'MSC_PP_COL_REF_NOT_EXIST',
45974: p_message_text => lv_message_text,
45975: p_error_text => lv_error_text,

Line 46008: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

46004:
46005:
46006:
46007: -- Set the error message
46008: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
46009: (p_app_short_name => 'MSC',
46010: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
46011: p_message_text => lv_message_text,
46012: p_error_text => lv_error_text,

Line 46028: lv_return := MSC_ST_UTIL.LOG_ERROR

46024: lv_where_str :=
46025: ' AND NVL(basis_type,'||NULL_VALUE||')'
46026: ||' NOT IN (1,2,3,4,5) AND deleted_flag = 2' ;
46027:
46028: lv_return := MSC_ST_UTIL.LOG_ERROR
46029: (p_table_name => 'MSC_ST_OPERATION_RESOURCES',
46030: p_instance_code => v_instance_code,
46031: p_row => lv_column_names,
46032: p_severity => G_SEV_WARNING,

Line 46045: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

46041: RAISE ex_logging_err;
46042: END IF;
46043:
46044: -- Set the error message
46045: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
46046: (p_app_short_name => 'MSC',
46047: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
46048: p_message_text => lv_message_text,
46049: p_error_text => lv_error_text,

Line 46064: lv_return := MSC_ST_UTIL.LOG_ERROR

46060:
46061: lv_where_str := ' AND NVL(principal_flag,'||NULL_VALUE||')'||' NOT IN (1,2)'
46062: ||'AND deleted_flag = 2';
46063:
46064: lv_return := MSC_ST_UTIL.LOG_ERROR
46065: (p_table_name => 'MSC_ST_OPERATION_RESOURCES',
46066: p_instance_code => v_instance_code,
46067: p_row => lv_column_names,
46068: p_severity => G_SEV_WARNING,

Line 46252: MSC_ST_UTIL.SET_PROCESS_FLAG(p_table_name => 'MSC_ST_OPERATION_RESOURCES',

46248: CLOSE c8 ;
46249:
46250: -- Set the process flag as Valid and derive sr_instance_id
46251: lv_return :=
46252: MSC_ST_UTIL.SET_PROCESS_FLAG(p_table_name => 'MSC_ST_OPERATION_RESOURCES',
46253: p_instance_id => v_instance_id,
46254: p_instance_code => v_instance_code,
46255: p_process_flag => G_VALID,
46256: p_error_text => lv_error_text,

Line 46268: MSC_ST_UTIL.LOG_ERROR(p_table_name =>'MSC_ST_OPERATION_RESOURCES',

46264:
46265: -- At the end calling the LOG_ERROR for logging all errored out records
46266:
46267: lv_return :=
46268: MSC_ST_UTIL.LOG_ERROR(p_table_name =>'MSC_ST_OPERATION_RESOURCES',
46269: p_instance_code =>v_instance_code,
46270: p_row =>lv_column_names,
46271: p_severity =>G_SEV_ERROR,
46272: p_message_text =>NULL,

Line 46290: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

46286: -- Pre processing for MSC_ST_OPERATION_NETWORKS
46287:
46288: --Duplicate records check for the records whose source is XML
46289:
46290: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
46291: (p_app_short_name => 'MSC',
46292: p_error_code => 'MSC_PP_DUP_REC_FOR_XML',
46293: p_message_text => lv_message_text,
46294: p_error_text => lv_error_text);

Line 46334: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

46330:
46331:
46332: --Duplicate records check for the records whose source is batch load
46333:
46334: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
46335: (p_app_short_name => 'MSC',
46336: p_error_code => 'MSC_PP_DUP_REC_FOR_BATCH_LOAD',
46337: p_message_text => lv_message_text,
46338: p_error_text => lv_error_text);

Line 46448: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

46444: WHERE rowid = lb_rowid(j);
46445:
46446:
46447: -- Set the error message
46448: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
46449: (p_app_short_name => 'MSC',
46450: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
46451: p_message_text => lv_message_text,
46452: p_error_text => lv_error_text,

Line 46467: lv_return := MSC_ST_UTIL.LOG_ERROR

46463:
46464: lv_where_str :=
46465: ' AND NVL(deleted_flag,'||NULL_VALUE||') NOT IN(1,2)';
46466:
46467: lv_return := MSC_ST_UTIL.LOG_ERROR
46468: (p_table_name => 'MSC_ST_OPERATION_NETWORKS',
46469: p_instance_code => v_instance_code,
46470: p_row => lv_column_names,
46471: p_severity => G_SEV_WARNING,

Line 46486: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

46482: END IF;
46483:
46484:
46485: -- Set the error message
46486: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
46487: (p_app_short_name => 'MSC',
46488: p_error_code => 'MSC_PP_COL_VAL_NULL',
46489: p_message_text => lv_message_text,
46490: p_error_text => lv_error_text,

Line 46516: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

46512:
46513: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
46514:
46515: -- Set the error message
46516: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
46517: (p_app_short_name => 'MSC',
46518: p_error_code => 'MSC_PP_COL_VAL_NULL',
46519: p_message_text => lv_message_text,
46520: p_error_text => lv_error_text,

Line 46568: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

46564:
46565:
46566:
46567: -- Set the error message
46568: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
46569: (p_app_short_name => 'MSC',
46570: p_error_code => 'MSC_PP_COL_REF_NOT_EXIST',
46571: p_message_text => lv_message_text,
46572: p_error_text => lv_error_text,

Line 46588: MSC_ST_UTIL.DERIVE_ROUTING_SEQUENCE_ID

46584:
46585: -- Derive the ROUTING_SEQUENCE_ID from LOCAL ID table
46586: v_sql_stmt := 59;
46587: lv_return :=
46588: MSC_ST_UTIL.DERIVE_ROUTING_SEQUENCE_ID
46589: (p_table_name => 'MSC_ST_OPERATION_NETWORKS',
46590: p_rtg_col_name => 'ROUTING_NAME',
46591: p_rtg_col_id => 'ROUTING_SEQUENCE_ID',
46592: p_instance_code => v_instance_code,

Line 46606: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

46602:
46603:
46604:
46605: -- Set the error message
46606: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
46607: (p_app_short_name => 'MSC',
46608: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
46609: p_message_text => lv_message_text,
46610: p_error_text => lv_error_text,

Line 46627: lv_return := MSC_ST_UTIL.LOG_ERROR

46623: v_sql_stmt := 60;
46624: lv_where_str :=
46625: ' AND NVL(from_op_effectivity_date,SYSDATE-36500 ) = SYSDATE-36500 ' ;
46626:
46627: lv_return := MSC_ST_UTIL.LOG_ERROR
46628: (p_table_name => 'MSC_ST_OPERATION_NETWORKS',
46629: p_instance_code => v_instance_code,
46630: p_row => lv_column_names,
46631: p_severity => G_SEV_WARNING,

Line 46646: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

46642: END IF;
46643: */
46644:
46645: -- Set the error message
46646: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
46647: (p_app_short_name => 'MSC',
46648: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
46649: p_message_text => lv_message_text,
46650: p_error_text => lv_error_text,

Line 46665: lv_return := MSC_ST_UTIL.LOG_ERROR

46661: v_sql_stmt := 61;
46662: lv_where_str :=
46663: ' AND NVL(to_op_effectivity_date,SYSDATE-36500 ) = SYSDATE-36500 ' ;
46664:
46665: lv_return := MSC_ST_UTIL.LOG_ERROR
46666: (p_table_name => 'MSC_ST_OPERATION_NETWORKS',
46667: p_instance_code => v_instance_code,
46668: p_row => lv_column_names,
46669: p_severity => G_SEV_WARNING,

Line 46683: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

46679: RAISE ex_logging_err;
46680: END IF;
46681:
46682: -- Set the error message
46683: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
46684: (p_app_short_name => 'MSC',
46685: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
46686: p_message_text => lv_message_text,
46687: p_error_text => lv_error_text,

Line 46702: lv_return := MSC_ST_UTIL.LOG_ERROR

46698: v_sql_stmt := 62;
46699: lv_where_str :=
46700: ' AND NVL(efectivity_date,SYSDATE-36500 ) = SYSDATE-36500 ' ;
46701:
46702: lv_return := MSC_ST_UTIL.LOG_ERROR
46703: (p_table_name => 'MSC_ST_OPERATION_NETWORKS',
46704: p_instance_code => v_instance_code,
46705: p_row => lv_column_names,
46706: p_severity => G_SEV_WARNING,

Line 46723: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

46719:
46720:
46721: -- from_operation_seq_code or to_operation_seq_code cannot be null.
46722: -- Set the error message
46723: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
46724: (p_app_short_name => 'MSC',
46725: p_error_code => 'MSC_PP_COL_VAL_NULL',
46726: p_message_text => lv_message_text,
46727: p_error_text => lv_error_text,

Line 46757: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

46753:
46754:
46755:
46756: -- from op_seq_code and to_op_seq_codes cannot be same
46757: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
46758: (p_app_short_name => 'MSC',
46759: p_error_code => 'MSC_PP_FROM_TO_SAME',
46760: p_message_text => lv_message_text,
46761: p_error_text => lv_error_text,

Line 46817: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

46813:
46814:
46815: -- from_op_seq_id cannot be null. Error out the records with null value for them.
46816: -- Set the error message
46817: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
46818: (p_app_short_name => 'MSC',
46819: p_error_code => 'MSC_PP_COL_REF_NOT_EXIST',
46820: p_message_text => lv_message_text,
46821: p_error_text => lv_error_text,

Line 46879: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

46875:
46876:
46877: -- to_op_seq_id cannot be null. Error out the records with null value for them.
46878: -- Set the error message
46879: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
46880: (p_app_short_name => 'MSC',
46881: p_error_code => 'MSC_PP_COL_REF_NOT_EXIST',
46882: p_message_text => lv_message_text,
46883: p_error_text => lv_error_text,

Line 46937: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

46933:
46934:
46935:
46936: -- Set the error message
46937: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
46938: (p_app_short_name => 'MSC',
46939: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
46940: p_message_text => lv_message_text,
46941: p_error_text => lv_error_text,

Line 46956: lv_return := MSC_ST_UTIL.LOG_ERROR

46952: v_sql_stmt := 70;
46953: lv_where_str :=
46954: ' AND NVL(transition_type,'||NULL_VALUE||') NOT IN (1,2)';
46955:
46956: lv_return := MSC_ST_UTIL.LOG_ERROR
46957: (p_table_name => 'MSC_ST_OPERATION_NETWORKS',
46958: p_instance_code => v_instance_code,
46959: p_row => lv_column_names,
46960: p_severity => G_SEV_WARNING,

Line 46975: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

46971: MSC_UTIL.LOG_MSG(MSC_UTIL.G_LVL_STATUS,lv_error_text);
46972: END IF;
46973:
46974: -- Set the error message
46975: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
46976: (p_app_short_name => 'MSC',
46977: p_error_code => 'MSC_PP_END_GT_ST_DATE',
46978: p_message_text => lv_message_text,
46979: p_error_text => lv_error_text,

Line 47028: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

47024: -- There should be at the max only one primary path from a from_operation_seq_code
47025: -- Else error out all the records for that from_operation_seq_code
47026:
47027: -- Set the error message
47028: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
47029: (p_app_short_name => 'MSC',
47030: p_error_code => 'MSC_PP_MULTI_PRI_PATH',
47031: p_message_text => lv_message_text,
47032: p_error_text => lv_error_text,

Line 47076: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

47072: -- The summation of the planning_pct's from a from_operation_sed_code should be exactly 100.
47073: -- Else error out all the records for that from_operation_seq_code
47074:
47075: -- Set the error message
47076: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
47077: (p_app_short_name => 'MSC',
47078: p_error_code => 'MSC_INVALID_PLANNING_PCT',
47079: p_message_text => lv_message_text,
47080: p_error_text => lv_error_text,

Line 47120: MSC_ST_UTIL.SET_PROCESS_FLAG(p_table_name => 'MSC_ST_OPERATION_NETWORKS',

47116: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code;
47117:
47118: -- Set the process flag as Valid and derive sr_instance_id
47119: lv_return :=
47120: MSC_ST_UTIL.SET_PROCESS_FLAG(p_table_name => 'MSC_ST_OPERATION_NETWORKS',
47121: p_instance_id => v_instance_id,
47122: p_instance_code => v_instance_code,
47123: p_process_flag => G_VALID,
47124: p_error_text => lv_error_text,

Line 47135: MSC_ST_UTIL.LOG_ERROR(p_table_name => 'MSC_ST_OPERATION_NETWORKS',

47131:
47132: -- At the end calling the LOG_ERROR for logging all errored out records
47133:
47134: lv_return :=
47135: MSC_ST_UTIL.LOG_ERROR(p_table_name => 'MSC_ST_OPERATION_NETWORKS',
47136: p_instance_code => v_instance_code,
47137: p_row => lv_column_names,
47138: p_severity => G_SEV_ERROR,
47139: p_message_text => NULL,

Line 47346: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

47342: AND deleted_flag = SYS_NO;
47343:
47344: BEGIN
47345:
47346: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
47347: (p_app_short_name => 'MSC',
47348: p_error_code => 'MSC_PP_DUP_REC_FOR_XML',
47349: p_message_text => lv_message_text,
47350: p_error_text => lv_error_text);

Line 47386: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

47382: EXECUTE IMMEDIATE lv_sql_stmt
47383: USING v_instance_code;
47384:
47385:
47386: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
47387: (p_app_short_name => 'MSC',
47388: p_error_code => 'MSC_PP_DUP_REC_FOR_BATCH_LOAD',
47389: p_message_text => lv_message_text,
47390: p_error_text => lv_error_text);

Line 47501: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

47497: creation_date = v_current_date,
47498: created_by = v_current_user
47499: WHERE rowid = lb_rowid(j);
47500:
47501: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
47502: (p_app_short_name => 'MSC',
47503: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
47504: p_message_text => lv_message_text,
47505: p_error_text => lv_error_text,

Line 47519: lv_return := MSC_ST_UTIL.LOG_ERROR

47515: lv_where_str :=
47516: ' AND NVL(deleted_flag,'||NULL_VALUE||') NOT IN(1,2)';
47517: --Log a warning for those records where the deleted_flag has a value other
47518: --SYS_NO
47519: lv_return := MSC_ST_UTIL.LOG_ERROR
47520: (p_table_name => 'MSC_ST_SUPPLIES',
47521: p_instance_code => v_instance_code,
47522: p_row => lv_column_names,
47523: p_severity => G_SEV_WARNING,

Line 47536: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

47532: IF lv_return <> 0 THEN
47533: RAISE ex_logging_err;
47534: END IF;
47535:
47536: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
47537: (p_app_short_name => 'MSC',
47538: p_error_code => 'MSC_PP_INVALID_VALUE',
47539: p_message_text => lv_message_text,
47540: p_error_text => lv_error_text,

Line 47549: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID

47545: RAISE ex_logging_err;
47546: END IF;
47547:
47548: --Derive Organization_id
47549: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID
47550: (p_table_name => 'MSC_ST_SUPPLIES',
47551: p_org_partner_name => 'ORGANIZATION_CODE',
47552: p_org_partner_id => 'ORGANIZATION_ID',
47553: p_instance_code => v_instance_code,

Line 47566: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

47562: IF lv_return <> 0 THEN
47563: RAISE ex_logging_err;
47564: END IF;
47565:
47566: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
47567: (p_app_short_name => 'MSC',
47568: p_error_code => 'MSC_PP_INVALID_VALUE',
47569: p_message_text => lv_message_text,
47570: p_error_text => lv_error_text,

Line 47579: lv_return := MSC_ST_UTIL.DERIVE_ITEM_ID

47575: RAISE ex_logging_err;
47576: END IF;
47577:
47578: --Derive Inventory_item_id
47579: lv_return := MSC_ST_UTIL.DERIVE_ITEM_ID
47580: (p_table_name => 'MSC_ST_SUPPLIES',
47581: p_item_col_name => 'ITEM_NAME',
47582: p_item_col_id => 'INVENTORY_ITEM_ID',
47583: p_instance_id => v_instance_id,

Line 47596: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

47592: IF lv_return <> 0 THEN
47593: RAISE ex_logging_err;
47594: END IF;
47595:
47596: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
47597: (p_app_short_name => 'MSC',
47598: p_error_code => 'MSC_PP_COL_VAL_NULL',
47599: p_message_text => lv_message_text,
47600: p_error_text => lv_error_text,

Line 47627: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

47623: EXECUTE IMMEDIATE lv_sql_stmt
47624: USING lv_batch_id,
47625: v_instance_code;
47626:
47627: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
47628: (p_app_short_name => 'MSC',
47629: p_error_code => 'MSC_PP_COL_VAL_NULL',
47630: p_message_text => lv_message_text,
47631: p_error_text => lv_error_text,

Line 47657: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

47653: EXECUTE IMMEDIATE lv_sql_stmt
47654: USING lv_batch_id,
47655: v_instance_code;
47656:
47657: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
47658: (p_app_short_name => 'MSC',
47659: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
47660: p_message_text => lv_message_text,
47661: p_error_text => lv_error_text,

Line 47678: lv_return := MSC_ST_UTIL.LOG_ERROR

47674:
47675: --Log a warning for those records where the firm_planned_type has a value
47676: --other than 1 and 2
47677:
47678: lv_return := MSC_ST_UTIL.LOG_ERROR
47679: (p_table_name => 'MSC_ST_SUPPLIES',
47680: p_instance_code => v_instance_code,
47681: p_row => lv_column_names,
47682: p_severity => G_SEV_WARNING,

Line 47695: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

47691: IF lv_return <> 0 THEN
47692: RAISE ex_logging_err;
47693: END IF;
47694:
47695: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
47696: (p_app_short_name => 'MSC',
47697: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
47698: p_message_text => lv_message_text,
47699: p_error_text => lv_error_text,

Line 47716: lv_return := MSC_ST_UTIL.LOG_ERROR

47712:
47713: --Log a warning for those records where the wip_status_code has a value other
47714: --than SYS_NO
47715:
47716: lv_return := MSC_ST_UTIL.LOG_ERROR
47717: (p_table_name => 'MSC_ST_SUPPLIES',
47718: p_instance_code => v_instance_code,
47719: p_row => lv_column_names,
47720: p_severity => G_SEV_WARNING,

Line 47733: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

47729: IF lv_return <> 0 THEN
47730: RAISE ex_logging_err;
47731: END IF;
47732:
47733: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
47734: (p_app_short_name => 'MSC',
47735: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
47736: p_message_text => lv_message_text,
47737: p_error_text => lv_error_text,

Line 47754: lv_return := MSC_ST_UTIL.LOG_ERROR

47750:
47751: --Log a warning for those records where the firm_planned_type has a value other
47752: --than SYS_NO
47753:
47754: lv_return := MSC_ST_UTIL.LOG_ERROR
47755: (p_table_name => 'MSC_ST_SUPPLIES',
47756: p_instance_code => v_instance_code,
47757: p_row => lv_column_names,
47758: p_severity => G_SEV_WARNING,

Line 47771: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

47767: IF lv_return <> 0 THEN
47768: RAISE ex_logging_err;
47769: END IF;
47770:
47771: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
47772: (p_app_short_name => 'MSC',
47773: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
47774: p_message_text => lv_message_text,
47775: p_error_text => lv_error_text,

Line 47792: lv_return := MSC_ST_UTIL.LOG_ERROR

47788:
47789: --Log a warning for those records where the wip_supply_type has a value other
47790: --than SYS_NO
47791:
47792: lv_return := MSC_ST_UTIL.LOG_ERROR
47793: (p_table_name => 'MSC_ST_SUPPLIES',
47794: p_instance_code => v_instance_code,
47795: p_row => lv_column_names,
47796: p_severity => G_SEV_WARNING,

Line 47870: lv_return := MSC_ST_UTIL.DERIVE_BILL_SEQUENCE_ID

47866: MSC_UTIL.LOG_MSG(MSC_UTIL.G_LVL_DEBUG_1,lv_sql_stmt);
47867:
47868: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
47869:
47870: lv_return := MSC_ST_UTIL.DERIVE_BILL_SEQUENCE_ID
47871: (p_table_name => 'MSC_ST_SUPPLIES',
47872: p_bom_col_name => 'BILL_NAME',
47873: p_bom_col_id => 'BILL_SEQUENCE_ID',
47874: p_instance_code => v_instance_code,

Line 47884: lv_return := MSC_ST_UTIL.DERIVE_ROUTING_SEQUENCE_ID

47880: IF (lv_return <> 0 ) THEN
47881: RAISE ex_logging_err;
47882: END IF;
47883:
47884: lv_return := MSC_ST_UTIL.DERIVE_ROUTING_SEQUENCE_ID
47885: (p_table_name => 'MSC_ST_SUPPLIES',
47886: p_rtg_col_name => 'ROUTING_NAME',
47887: p_rtg_col_id => 'ROUTING_SEQUENCE_ID',
47888: p_instance_code => v_instance_code,

Line 47944: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

47940: USING lv_batch_id,
47941: v_instance_code;
47942:
47943:
47944: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
47945: (p_app_short_name => 'MSC',
47946: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
47947: p_message_text => lv_message_text,
47948: p_error_text => lv_error_text,

Line 47966: lv_return := MSC_ST_UTIL.LOG_ERROR

47962:
47963: --Log a warning for those records where the bill_sequence_id or
47964: --routing_sequence_id has null values
47965:
47966: lv_return := MSC_ST_UTIL.LOG_ERROR
47967: (p_table_name => 'MSC_ST_SUPPLIES',
47968: p_instance_code => v_instance_code,
47969: p_row => lv_column_names,
47970: p_severity => G_SEV_WARNING,

Line 48005: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

48001: USING lv_batch_id,
48002: v_instance_code;
48003:
48004:
48005: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
48006: (p_app_short_name => 'MSC',
48007: p_error_code => 'MSC_PP_DELETE_FAIL',
48008: p_message_text => lv_message_text,
48009: p_error_text => lv_error_text);

Line 48224: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

48220: WHERE process_flag = G_IN_PROCESS
48221: AND batch_id = lv_batch_id
48222: AND sr_instance_code = v_instance_code;
48223:
48224: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
48225: (p_app_short_name => 'MSC',
48226: p_error_code => 'MSC_PP_FK_REF_NOT_EXIST',
48227: p_message_text => lv_message_text,
48228: p_error_text => lv_error_text,

Line 48240: lv_return := MSC_ST_UTIL.DERIVE_PROJ_TASK_ID

48236: RAISE ex_logging_err;
48237: END IF;
48238:
48239: --Derive Project Id.
48240: lv_return := MSC_ST_UTIL.DERIVE_PROJ_TASK_ID
48241: (p_table_name => 'MSC_ST_SUPPLIES',
48242: p_proj_col_name => 'PROJECT_NUMBER',
48243: p_proj_task_col_id => 'PROJECT_ID',
48244: p_instance_code => v_instance_code,

Line 48256: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

48252: IF lv_return <> 0 THEN
48253: RAISE ex_logging_err;
48254: END IF;
48255:
48256: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
48257: (p_app_short_name => 'MSC',
48258: p_error_code => 'MSC_PP_FK_REF_NOT_EXIST',
48259: p_message_text => lv_message_text,
48260: p_error_text => lv_error_text,

Line 48273: lv_return := MSC_ST_UTIL.DERIVE_PROJ_TASK_ID

48269: RAISE ex_logging_err;
48270: END IF;
48271:
48272: --Derive Task Id.
48273: lv_return := MSC_ST_UTIL.DERIVE_PROJ_TASK_ID
48274: (p_table_name => 'MSC_ST_SUPPLIES',
48275: p_proj_col_name => 'PROJECT_NUMBER',
48276: p_proj_task_col_id => 'TASK_ID',
48277: p_instance_code => v_instance_code,

Line 48331: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG

48327: WHERE rowid = lb_rowid(j);
48328: END IF;
48329: CLOSE c4;
48330:
48331: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG
48332: (p_table_name => 'MSC_ST_SUPPLIES',
48333: p_instance_id => v_instance_id,
48334: p_instance_code => v_instance_code,
48335: p_process_flag => G_VALID,

Line 48343: lv_return := MSC_ST_UTIL.LOG_ERROR

48339: IF lv_return <> 0 THEN
48340: RAISE ex_logging_err;
48341: END IF;
48342:
48343: lv_return := MSC_ST_UTIL.LOG_ERROR
48344: (p_table_name => 'MSC_ST_SUPPLIES',
48345: p_instance_code => v_instance_code,
48346: p_row => lv_column_names,
48347: p_severity => G_SEV_ERROR,

Line 48432: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

48428: BEGIN
48429:
48430: --Duplicate records check for the records whose source is XML
48431:
48432: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
48433: (p_app_short_name => 'MSC',
48434: p_error_code => 'MSC_PP_DUP_REC_FOR_XML',
48435: p_message_text => lv_message_text,
48436: p_error_text => lv_error_text);

Line 48474: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

48470: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code;
48471:
48472: --Duplicate records check for the records whose source is batch load
48473:
48474: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
48475: (p_app_short_name => 'MSC',
48476: p_error_code => 'MSC_PP_DUP_REC_FOR_BATCH_LOAD',
48477: p_message_text => lv_message_text,
48478: p_error_text => lv_error_text);

Line 48588: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

48584: WHERE rowid = lb_rowid(j);
48585:
48586:
48587: -- Set the error message
48588: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
48589: (p_app_short_name => 'MSC',
48590: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
48591: p_message_text => lv_message_text,
48592: p_error_text => lv_error_text,

Line 48607: lv_return := MSC_ST_UTIL.LOG_ERROR

48603:
48604: lv_where_str :=
48605: ' AND NVL(deleted_flag,'||NULL_VALUE||') NOT IN(1,2)';
48606:
48607: lv_return := MSC_ST_UTIL.LOG_ERROR
48608: (p_table_name => 'MSC_ST_RESOURCE_REQUIREMENTS',
48609: p_instance_code => v_instance_code,
48610: p_row => lv_column_names,
48611: p_severity => G_SEV_WARNING,

Line 48626: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

48622: RAISE ex_logging_err;
48623: END IF;
48624:
48625: -- Set the message
48626: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
48627: (p_app_short_name => 'MSC',
48628: p_error_code => 'MSC_PP_INVALID_VALUE',
48629: p_message_text => lv_message_text,
48630: p_error_text => lv_error_text,

Line 48639: -- Populate organization id , call utilty package- msc_st_util's procedure

48635: RAISE ex_logging_err;
48636: END IF;
48637:
48638:
48639: -- Populate organization id , call utilty package- msc_st_util's procedure
48640:
48641: lv_return :=
48642: MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID(p_table_name => 'MSC_ST_RESOURCE_REQUIREMENTS',
48643: p_org_partner_name =>'ORGANIZATION_CODE',

Line 48642: MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID(p_table_name => 'MSC_ST_RESOURCE_REQUIREMENTS',

48638:
48639: -- Populate organization id , call utilty package- msc_st_util's procedure
48640:
48641: lv_return :=
48642: MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID(p_table_name => 'MSC_ST_RESOURCE_REQUIREMENTS',
48643: p_org_partner_name =>'ORGANIZATION_CODE',
48644: p_org_partner_id =>'ORGANIZATION_ID',
48645: p_instance_code => v_instance_code,
48646: p_partner_type => G_ORGANIZATION,

Line 48684: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

48680: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
48681:
48682: -- Set the error message
48683:
48684: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
48685: (p_app_short_name => 'MSC',
48686: p_error_code => 'MSC_PP_COL_REF_NOT_EXIST',
48687: p_message_text => lv_message_text,
48688: p_error_text => lv_error_text,

Line 48782: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

48778: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
48779:
48780: -- Set the error message
48781:
48782: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
48783: (p_app_short_name => 'MSC',
48784: p_error_code => 'MSC_PP_COL_REF_NOT_EXIST',
48785: p_message_text => lv_message_text,
48786: p_error_text => lv_error_text,

Line 48801: lv_return := MSC_ST_UTIL.DERIVE_RESOURCE_ID

48797: END IF;
48798:
48799: /* created the new function to derive resource_id for bug 3768813 */
48800: lv_where_str :=' AND schedule_flag <> 2';
48801: lv_return := MSC_ST_UTIL.DERIVE_RESOURCE_ID
48802: (p_table_name => 'MSC_ST_RESOURCE_REQUIREMENTS',
48803: p_resource_col_name => 'RESOURCE_CODE',
48804: p_department_col_name => 'DEPARTMENT_CODE',
48805: p_resource_col_id => 'RESOURCE_ID',

Line 48871: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

48867: */
48868:
48869: -- Set the error message
48870:
48871: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
48872: (p_app_short_name => 'MSC',
48873: p_error_code => 'MSC_PP_COL_REF_NOT_EXIST',
48874: p_message_text => lv_message_text,
48875: p_error_text => lv_error_text,

Line 48889: lv_return := MSC_ST_UTIL.DERIVE_DEPARTMENT_ID

48885: RAISE ex_logging_err;
48886: END IF;
48887:
48888: /* created the new function to derive department_id for bug 3768813 */
48889: lv_return := MSC_ST_UTIL.DERIVE_DEPARTMENT_ID
48890: (p_table_name => 'MSC_ST_RESOURCE_REQUIREMENTS',
48891: p_resource_col_name => 'RESOURCE_CODE',
48892: p_department_col_name => 'DEPARTMENT_CODE',
48893: p_department_col_id => 'DEPARTMENT_ID',

Line 48929: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

48925:
48926: */
48927:
48928: -- Set the message
48929: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
48930: (p_app_short_name => 'MSC',
48931: p_error_code => 'MSC_PP_COL_VAL_NULL',
48932: p_message_text => lv_message_text,
48933: p_error_text => lv_error_text,

Line 48977: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

48973: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
48974:
48975:
48976: -- Set the error message
48977: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
48978: (p_app_short_name => 'MSC',
48979: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
48980: p_message_text => lv_message_text,
48981: p_error_text => lv_error_text,

Line 48996: lv_return := MSC_ST_UTIL.LOG_ERROR

48992: lv_where_str :=
48993: ' AND NVL(operation_seq_code,'||''''||NULL_CHAR||''''||') '
48994: ||' = '||''''||NULL_CHAR||'''' ;
48995:
48996: lv_return := MSC_ST_UTIL.LOG_ERROR
48997: (p_table_name => 'MSC_ST_RESOURCE_REQUIREMENTS',
48998: p_instance_code => v_instance_code,
48999: p_row => lv_column_names,
49000: p_severity => G_SEV_WARNING,

Line 49014: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

49010: RAISE ex_logging_err;
49011: END IF;
49012:
49013: -- Set the error message
49014: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
49015: (p_app_short_name => 'MSC',
49016: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
49017: p_message_text => lv_message_text,
49018: p_error_text => lv_error_text,

Line 49033: lv_return := MSC_ST_UTIL.LOG_ERROR

49029:
49030: lv_where_str :=
49031: ' AND NVL(operation_effectivity_date,(sysdate-36500)) =(sysdate-36500)';
49032:
49033: lv_return := MSC_ST_UTIL.LOG_ERROR
49034: (p_table_name => 'MSC_ST_RESOURCE_REQUIREMENTS',
49035: p_instance_code => v_instance_code,
49036: p_row => lv_column_names,
49037: p_severity => G_SEV_WARNING,

Line 49052: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

49048: END IF;
49049:
49050: /* bug 3768813 */
49051: -- Set the message
49052: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
49053: (p_app_short_name => 'MSC',
49054: p_error_code => 'MSC_PP_INVALID_VALUE',
49055: p_message_text => lv_message_text,
49056: p_error_text => lv_error_text,

Line 49065: lv_return := MSC_ST_UTIL.DERIVE_ITEM_ID

49061: RAISE ex_logging_err;
49062: END IF;
49063:
49064: --Derive Inventory_item_id
49065: lv_return := MSC_ST_UTIL.DERIVE_ITEM_ID
49066: (p_table_name => 'MSC_ST_RESOURCE_REQUIREMENTS',
49067: p_item_col_name => 'ITEM_NAME',
49068: p_item_col_id => 'INVENTORY_ITEM_ID',
49069: p_instance_id => v_instance_id,

Line 49102: lv_return :=msc_st_util.derive_routing_sequence_id

49098:
49099: /* Bug 3768813 */
49100: -- Derive the ROUTING_SEQUENCE_ID from LOCAL ID table
49101:
49102: lv_return :=msc_st_util.derive_routing_sequence_id
49103: (p_table_name => 'MSC_ST_RESOURCE_REQUIREMENTS',
49104: p_rtg_col_name => 'ROUTING_NAME',
49105: p_rtg_col_id =>'ROUTING_SEQUENCE_ID',
49106: p_instance_code => v_instance_code,

Line 49174: lv_return := MSC_ST_UTIL.DERIVE_OPERATION_SEQUENCE_ID

49170:
49171: */
49172:
49173: /* created new function to derive operation sequence id for bug 3768813 */
49174: lv_return := MSC_ST_UTIL.DERIVE_OPERATION_SEQUENCE_ID
49175: (p_table_name => 'MSC_ST_RESOURCE_REQUIREMENTS',
49176: p_operation_seq_num => 'OPERATION_SEQ_NUM',
49177: p_routing_col_name => 'ROUTING_NAME',
49178: p_sequence_col_id => 'OPERATION_SEQUENCE_ID',

Line 49193: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

49189: IF lv_return <> 0 THEN
49190: RAISE ex_logging_err;
49191: END IF;
49192:
49193: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
49194: (p_app_short_name => 'MSC',
49195: p_error_code => 'MSC_PP_DELETE_FAIL',
49196: p_message_text => lv_message_text,
49197: p_error_text => lv_error_text);

Line 49252: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

49248:
49249:
49250: -- Default the operation yield to 1 where operation yield is less than 0 or greater than 1
49251:
49252: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
49253: (p_app_short_name => 'MSC',
49254: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
49255: p_message_text => lv_message_text,
49256: p_error_text => lv_error_text,

Line 49269: lv_return := MSC_ST_UTIL.LOG_ERROR

49265:
49266: lv_where_str :=
49267: ' AND (yield < 0 OR yield > 1 OR NVL(yield,'||NULL_VALUE||') ='|| NULL_VALUE||')';
49268:
49269: lv_return := MSC_ST_UTIL.LOG_ERROR
49270: (p_table_name => 'MSC_ST_RESOURCE_REQUIREMENTS',
49271: p_instance_code => v_instance_code,
49272: p_row => lv_column_names,
49273: p_severity => G_SEV_WARNING,

Line 49287: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

49283: RAISE ex_logging_err;
49284: END IF;
49285:
49286: -- Set the error message
49287: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
49288: (p_app_short_name => 'MSC',
49289: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
49290: p_message_text => lv_message_text,
49291: p_error_text => lv_error_text,

Line 49306: lv_return := MSC_ST_UTIL.LOG_ERROR

49302:
49303: lv_where_str := ' AND NVL(schedule_flag,'||NULL_VALUE||') '
49304: ||' NOT IN(1,2,3,4)';
49305:
49306: lv_return := MSC_ST_UTIL.LOG_ERROR
49307: (p_table_name => 'MSC_ST_RESOURCE_REQUIREMENTS',
49308: p_instance_code => v_instance_code,
49309: p_row => lv_column_names,
49310: p_severity => G_SEV_WARNING,

Line 49327: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

49323:
49324: -- Error out the records where quantity_in_queue is negative OR quantity_running is negative
49325: -- OR quantity_waiting_to_move is negative OR quantity_completed is negative
49326:
49327: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
49328: (p_app_short_name => 'MSC',
49329: p_error_code => 'MSC_PP_CONV_RT_NEG',
49330: p_message_text => lv_message_text,
49331: p_error_text => lv_error_text,

Line 49581: MSC_ST_UTIL.SET_PROCESS_FLAG(p_table_name => 'MSC_ST_RESOURCE_REQUIREMENTS',

49577: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
49578:
49579: -- Set the processf flag as Valid and populate sr_instance_id
49580: lv_return :=
49581: MSC_ST_UTIL.SET_PROCESS_FLAG(p_table_name => 'MSC_ST_RESOURCE_REQUIREMENTS',
49582: p_instance_id => v_instance_id,
49583: p_instance_code => v_instance_code,
49584: p_process_flag => G_VALID,
49585: p_error_text => lv_error_text,

Line 49597: MSC_ST_UTIL.LOG_ERROR(p_table_name => 'MSC_ST_RESOURCE_REQUIREMENTS',

49593:
49594: -- At the end calling the LOG_ERROR for logging all errored out records
49595:
49596: lv_return :=
49597: MSC_ST_UTIL.LOG_ERROR(p_table_name => 'MSC_ST_RESOURCE_REQUIREMENTS',
49598: p_instance_code => v_instance_code,
49599: p_row => lv_column_names,
49600: p_severity => G_SEV_ERROR,
49601: p_message_text => NULL,

Line 49694: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

49690:
49691: --For WIP component demand
49692:
49693: --Duplicate records check for the records whose source is XML
49694: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
49695: (p_app_short_name => 'MSC',
49696: p_error_code => 'MSC_PP_DUP_REC_FOR_XML',
49697: p_message_text => lv_message_text,
49698: p_error_text => lv_error_text);

Line 49739: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

49735: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code;
49736:
49737: --Duplicate records check for the records whose source is batch load
49738:
49739: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
49740: (p_app_short_name => 'MSC',
49741: p_error_code => 'MSC_PP_DUP_REC_FOR_BATCH_LOAD',
49742: p_message_text => lv_message_text,
49743: p_error_text => lv_error_text);

Line 49849: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

49845: created_by = v_current_user
49846: WHERE rowid = lb_rowid(j);
49847:
49848: -- Set the error message
49849: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
49850: (p_app_short_name => 'MSC',
49851: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
49852: p_message_text => lv_message_text,
49853: p_error_text => lv_error_text,

Line 49868: lv_return := MSC_ST_UTIL.LOG_ERROR

49864:
49865: lv_where_str :=
49866: ' AND NVL(deleted_flag,'||NULL_VALUE||') NOT IN(1,2)';
49867:
49868: lv_return := MSC_ST_UTIL.LOG_ERROR
49869: (p_table_name => 'MSC_ST_DEMANDS',
49870: p_instance_code => v_instance_code,
49871: p_row => lv_column_names,
49872: p_severity => G_SEV_WARNING,

Line 49886: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

49882: RAISE ex_logging_err;
49883: END IF;
49884:
49885: -- Set the message
49886: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
49887: (p_app_short_name => 'MSC',
49888: p_error_code => 'MSC_PP_INVALID_VALUE',
49889: p_message_text => lv_message_text,
49890: p_error_text => lv_error_text,

Line 49899: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID

49895: RAISE ex_logging_err;
49896: END IF;
49897:
49898: --Derive Organization_id
49899: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID
49900: (p_table_name => 'MSC_ST_DEMANDS',
49901: p_org_partner_name => 'ORGANIZATION_CODE',
49902: p_org_partner_id => 'ORGANIZATION_ID',
49903: p_instance_code => v_instance_code,

Line 49917: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

49913: RAISE ex_logging_err;
49914: END IF;
49915:
49916: -- Set the message
49917: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
49918: (p_app_short_name => 'MSC',
49919: p_error_code => 'MSC_PP_INVALID_VALUE',
49920: p_message_text => lv_message_text,
49921: p_error_text => lv_error_text,

Line 49930: lv_return := MSC_ST_UTIL.DERIVE_ITEM_ID

49926: RAISE ex_logging_err;
49927: END IF;
49928:
49929: --Derive Inventory_item_id
49930: lv_return := MSC_ST_UTIL.DERIVE_ITEM_ID
49931: (p_table_name => 'MSC_ST_DEMANDS',
49932: p_item_col_name => 'ITEM_NAME',
49933: p_item_col_id => 'INVENTORY_ITEM_ID',
49934: p_instance_id => v_instance_id,

Line 49948: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

49944: RAISE ex_logging_err;
49945: END IF;
49946:
49947: -- Set the message
49948: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
49949: (p_app_short_name => 'MSC',
49950: p_error_code => 'MSC_PP_INVALID_VALUE',
49951: p_message_text => lv_message_text,
49952: p_error_text => lv_error_text,

Line 49961: lv_return := MSC_ST_UTIL.DERIVE_ITEM_ID

49957: RAISE ex_logging_err;
49958: END IF;
49959:
49960: --Derive Using_assembly_item_id
49961: lv_return := MSC_ST_UTIL.DERIVE_ITEM_ID
49962: (p_table_name => 'MSC_ST_DEMANDS',
49963: p_item_col_name => 'USING_ASSEMBLY_ITEM_NAME',
49964: p_item_col_id => 'USING_ASSEMBLY_ITEM_ID',
49965: p_instance_id => v_instance_id,

Line 50002: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

49998:
49999: EXECUTE IMMEDIATE lv_sql_stmt USING lv_batch_id,v_instance_code;
50000:
50001: -- Set the error message
50002: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
50003: (p_app_short_name => 'MSC',
50004: p_error_code => 'MSC_PP_COL_REF_NOT_EXIST',
50005: p_message_text => lv_message_text,
50006: p_error_text => lv_error_text,

Line 50039: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

50035: EXECUTE IMMEDIATE lv_sql_stmt USING lv_batch_id,v_instance_code;
50036:
50037:
50038: -- Set the message
50039: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
50040: (p_app_short_name => 'MSC',
50041: p_error_code => 'MSC_PP_COL_VAL_NULL',
50042: p_message_text => lv_message_text,
50043: p_error_text => lv_error_text,

Line 50157: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

50153: EXECUTE IMMEDIATE lv_sql_stmt USING lv_batch_id,v_instance_code;
50154:
50155:
50156: -- Set the error message
50157: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
50158: (p_app_short_name => 'MSC',
50159: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
50160: p_message_text => lv_message_text,
50161: p_error_text => lv_error_text,

Line 50177: lv_return := MSC_ST_UTIL.LOG_ERROR

50173: ' AND NVL(operation_seq_code,'||''''||NULL_CHAR||''''||') '
50174: ||' = '||''''||NULL_CHAR||''''
50175: ||' AND origination_type IN (2,3)';
50176:
50177: lv_return := MSC_ST_UTIL.LOG_ERROR
50178: (p_table_name => 'MSC_ST_DEMANDS',
50179: p_instance_code => v_instance_code,
50180: p_row => lv_column_names,
50181: p_severity => G_SEV_WARNING,

Line 50195: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

50191: RAISE ex_logging_err;
50192: END IF;
50193:
50194: -- Set the error message
50195: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
50196: (p_app_short_name => 'MSC',
50197: p_error_code => 'MSC_PP_COL_VAL_NULL_DEFAULT',
50198: p_message_text => lv_message_text,
50199: p_error_text => lv_error_text,

Line 50215: lv_return := MSC_ST_UTIL.LOG_ERROR

50211: lv_where_str :=
50212: ' AND NVL(operation_effectivity_date,SYSDATE-36500 ) = SYSDATE-36500 '
50213: ||' AND origination_type IN (2,3)' ;
50214:
50215: lv_return := MSC_ST_UTIL.LOG_ERROR
50216: (p_table_name => 'MSC_ST_DEMANDS',
50217: p_instance_code => v_instance_code,
50218: p_row => lv_column_names,
50219: p_severity => G_SEV_WARNING,

Line 50256: lv_return :=msc_st_util.derive_routing_sequence_id

50252: IF v_instance_type <> G_INS_OTHER THEN
50253:
50254: -- Derive the ROUTING_SEQUENCE_ID from LOCAL ID table
50255:
50256: lv_return :=msc_st_util.derive_routing_sequence_id
50257: (p_table_name => 'MSC_ST_DEMANDS',
50258: p_rtg_col_name => 'ROUTING_NAME',
50259: p_rtg_col_id =>'ROUTING_SEQUENCE_ID',
50260: p_instance_code => v_instance_code,

Line 50323: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

50319: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
50320:
50321: -- Set the message
50322:
50323: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
50324: (p_app_short_name => 'MSC',
50325: p_error_code => 'MSC_PP_DELETE_FAIL',
50326: p_message_text => lv_message_text,
50327: p_error_text => lv_error_text);

Line 50354: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

50350:
50351: EXECUTE IMMEDIATE lv_sql_stmt USING lv_batch_id,v_instance_code;
50352:
50353: -- Set the error message
50354: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
50355: (p_app_short_name => 'MSC',
50356: p_error_code => 'MSC_PP_FK_REF_NOT_EXIST',
50357: p_message_text => lv_message_text,
50358: p_error_text => lv_error_text,

Line 50370: lv_return := MSC_ST_UTIL.DERIVE_PROJ_TASK_ID

50366: RAISE ex_logging_err;
50367: END IF;
50368:
50369: --Derive Project Id.
50370: lv_return := MSC_ST_UTIL.DERIVE_PROJ_TASK_ID
50371: (p_table_name => 'MSC_ST_DEMANDS',
50372: p_proj_col_name => 'PROJECT_NUMBER',
50373: p_proj_task_col_id => 'PROJECT_ID',
50374: p_instance_code => v_instance_code,

Line 50387: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

50383: RAISE ex_logging_err;
50384: END IF;
50385:
50386: -- Set the error message
50387: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
50388: (p_app_short_name => 'MSC',
50389: p_error_code => 'MSC_PP_FK_REF_NOT_EXIST',
50390: p_message_text => lv_message_text,
50391: p_error_text => lv_error_text,

Line 50404: lv_return := MSC_ST_UTIL.DERIVE_PROJ_TASK_ID

50400: RAISE ex_logging_err;
50401: END IF;
50402:
50403: --Derive Task Id.
50404: lv_return := MSC_ST_UTIL.DERIVE_PROJ_TASK_ID
50405: (p_table_name => 'MSC_ST_DEMANDS',
50406: p_proj_col_name => 'PROJECT_NUMBER',
50407: p_proj_task_col_id => 'TASK_ID',
50408: p_instance_code => v_instance_code,

Line 50423: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

50419: RAISE ex_logging_err;
50420: END IF;
50421:
50422: -- Set the error message
50423: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
50424: (p_app_short_name => 'MSC',
50425: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
50426: p_message_text => lv_message_text,
50427: p_error_text => lv_error_text,

Line 50442: lv_return := MSC_ST_UTIL.LOG_ERROR

50438:
50439: lv_where_str := ' AND NVL(demand_type,'||NULL_VALUE||') <> '||G_DEMAND_TYPE
50440: ||' AND origination_type IN (2,3) AND deleted_flag ='||SYS_NO ;
50441:
50442: lv_return := MSC_ST_UTIL.LOG_ERROR
50443: (p_table_name => 'MSC_ST_DEMANDS',
50444: p_instance_code => v_instance_code,
50445: p_row => lv_column_names,
50446: p_severity => G_SEV_WARNING,

Line 50465: lv_return := MSC_ST_UTIL.LOG_ERROR

50461:
50462: lv_where_str := ' AND NVL(demand_type,'||NULL_VALUE||') <> 2'
50463: ||' AND origination_type = 25 AND deleted_flag ='||SYS_NO ;
50464:
50465: lv_return := MSC_ST_UTIL.LOG_ERROR
50466: (p_table_name => 'MSC_ST_DEMANDS',
50467: p_instance_code => v_instance_code,
50468: p_row => lv_column_names,
50469: p_severity => G_SEV_WARNING,

Line 50484: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

50480: END IF;
50481:
50482:
50483: -- Set the error message
50484: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
50485: (p_app_short_name => 'MSC',
50486: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
50487: p_message_text => lv_message_text,
50488: p_error_text => lv_error_text,

Line 50503: lv_return := MSC_ST_UTIL.LOG_ERROR

50499:
50500: lv_where_str := ' AND NVL(wip_supply_type,'||NULL_VALUE||') NOT IN (1,2,3,4,5,6,7)'
50501: ||' AND origination_type IN (2,3) AND deleted_flag ='||SYS_NO ;
50502:
50503: lv_return := MSC_ST_UTIL.LOG_ERROR
50504: (p_table_name => 'MSC_ST_DEMANDS',
50505: p_instance_code => v_instance_code,
50506: p_row => lv_column_names,
50507: p_severity => G_SEV_WARNING,

Line 50522: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

50518: END IF;
50519:
50520:
50521: -- Set the error message
50522: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
50523: (p_app_short_name => 'MSC',
50524: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
50525: p_message_text => lv_message_text,
50526: p_error_text => lv_error_text,

Line 50541: lv_return := MSC_ST_UTIL.LOG_ERROR

50537:
50538: lv_where_str := ' AND NVL(wip_status_code,'||NULL_VALUE||') NOT IN (1,3,4,6,7,12)'
50539: ||' AND origination_type IN (2,3,25)AND deleted_flag ='||SYS_NO ;
50540:
50541: lv_return := MSC_ST_UTIL.LOG_ERROR
50542: (p_table_name => 'MSC_ST_DEMANDS',
50543: p_instance_code => v_instance_code,
50544: p_row => lv_column_names,
50545: p_severity => G_SEV_WARNING,

Line 50679: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG

50675:
50676: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
50677:
50678:
50679: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG
50680: (p_table_name => 'MSC_ST_DEMANDS',
50681: p_instance_id => v_instance_id,
50682: p_instance_code => v_instance_code,
50683: p_process_flag => G_VALID,

Line 50692: lv_return := MSC_ST_UTIL.LOG_ERROR

50688: IF lv_return <> 0 THEN
50689: RAISE ex_logging_err;
50690: END IF;
50691:
50692: lv_return := MSC_ST_UTIL.LOG_ERROR
50693: (p_table_name => 'MSC_ST_DEMANDS',
50694: p_instance_code => v_instance_code,
50695: p_row => lv_column_names,
50696: p_severity => G_SEV_ERROR,

Line 50797: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

50793:
50794: -- -- Pre processing for MSC_ST_JOB_OPERATION_NETWORKS
50795: --Duplicate records check for the records whose source is XML
50796:
50797: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
50798: (p_app_short_name => 'MSC',
50799: p_error_code => 'MSC_PP_DUP_REC_FOR_XML',
50800: p_message_text => lv_message_text,
50801: p_error_text => lv_error_text);

Line 50839: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

50835: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code;
50836:
50837: --Duplicate records check for the records whose source is batch load
50838:
50839: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
50840: (p_app_short_name => 'MSC',
50841: p_error_code => 'MSC_PP_DUP_REC_FOR_BATCH_LOAD',
50842: p_message_text => lv_message_text,
50843: p_error_text => lv_error_text);

Line 50948: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

50944:
50945:
50946: -- error out the records where wip_entity_name is null
50947:
50948: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
50949: (p_app_short_name => 'MSC',
50950: p_error_code => 'MSC_PP_COL_VAL_NULL',
50951: p_message_text => lv_message_text,
50952: p_error_text => lv_error_text,

Line 50980: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

50976: v_instance_code;
50977:
50978:
50979: -- Set the message
50980: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
50981: (p_app_short_name => 'MSC',
50982: p_error_code => 'MSC_PP_NO_DELETION',
50983: p_message_text => lv_message_text,
50984: p_error_text => lv_error_text,

Line 51009: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

51005:
51006: EXECUTE IMMEDIATE lv_sql_stmt USING lv_batch_id,v_instance_code;
51007:
51008: -- Set the error message
51009: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
51010: (p_app_short_name => 'MSC',
51011: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
51012: p_message_text => lv_message_text,
51013: p_error_text => lv_error_text,

Line 51028: lv_return := MSC_ST_UTIL.LOG_ERROR

51024:
51025: lv_where_str :=
51026: ' AND NVL(deleted_flag,'||NULL_VALUE||') NOT IN(1,2)';
51027:
51028: lv_return := MSC_ST_UTIL.LOG_ERROR
51029: (p_table_name => 'MSC_ST_JOB_OPERATION_NETWORKS',
51030: p_instance_code => v_instance_code,
51031: p_row => lv_column_names,
51032: p_severity => G_SEV_WARNING,

Line 51046: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

51042: RAISE ex_logging_err;
51043: END IF;
51044:
51045: -- Set the error message
51046: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
51047: (p_app_short_name => 'MSC',
51048: p_error_code => 'MSC_PP_COL_VAL_NULL',
51049: p_message_text => lv_message_text,
51050: p_error_text => lv_error_text,

Line 51076: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

51072:
51073: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
51074:
51075: -- Set the error message
51076: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
51077: (p_app_short_name => 'MSC',
51078: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
51079: p_message_text => lv_message_text,
51080: p_error_text => lv_error_text,

Line 51106: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

51102:
51103: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
51104:
51105: -- Set the error message
51106: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
51107: (p_app_short_name => 'MSC',
51108: p_error_code => 'MSC_PP_COL_VAL_NULL',
51109: p_message_text => lv_message_text,
51110: p_error_text => lv_error_text,

Line 51155: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

51151: MSC_UTIL.LOG_MSG(MSC_UTIL.G_LVL_DEBUG_1,lv_sql_stmt);
51152:
51153: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
51154:
51155: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
51156: (p_app_short_name => 'MSC',
51157: p_error_code => 'MSC_PP_INVALID_VALUE',
51158: p_message_text => lv_message_text,
51159: p_error_text => lv_error_text,

Line 51168: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID

51164: RAISE ex_logging_err;
51165: END IF;
51166:
51167: --Derive Organization_id
51168: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID
51169: (p_table_name => 'MSC_ST_JOB_OPERATION_NETWORKS',
51170: p_org_partner_name => 'ORGANIZATION_CODE',
51171: p_org_partner_id => 'ORGANIZATION_ID',
51172: p_instance_code => v_instance_code,

Line 51210: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

51206: v_instance_code;
51207:
51208: -- Set the error message
51209:
51210: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
51211: (p_app_short_name => 'MSC',
51212: p_error_code => 'MSC_PP_COL_REF_NOT_EXIST',
51213: p_message_text => lv_message_text,
51214: p_error_text => lv_error_text,

Line 51247: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

51243: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
51244:
51245: -- from_operation_seq_code or to_operation_seq_code cannot be null.
51246: -- Set the error message
51247: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
51248: (p_app_short_name => 'MSC',
51249: p_error_code => 'MSC_PP_COL_VAL_NULL',
51250: p_message_text => lv_message_text,
51251: p_error_text => lv_error_text,

Line 51279: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

51275:
51276: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
51277:
51278: -- from op_seq_code and to_op_seq_codes cannot be same
51279: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
51280: (p_app_short_name => 'MSC',
51281: p_error_code => 'MSC_PP_FROM_TO_SAME',
51282: p_message_text => lv_message_text,
51283: p_error_text => lv_error_text,

Line 51311: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

51307:
51308: -- Derive routing_sequence_id
51309:
51310: -- Set the error message
51311: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
51312: (p_app_short_name => 'MSC',
51313: p_error_code => 'MSC_PP_COL_REF_NOT_EXIST',
51314: p_message_text => lv_message_text,
51315: p_error_text => lv_error_text,

Line 51331: MSC_ST_UTIL.DERIVE_ROUTING_SEQUENCE_ID

51327:
51328: -- Derive the ROUTING_SEQUENCE_ID from LOCAL ID table
51329:
51330: lv_return :=
51331: MSC_ST_UTIL.DERIVE_ROUTING_SEQUENCE_ID
51332: (p_table_name => 'MSC_ST_JOB_OPERATION_NETWORKS',
51333: p_rtg_col_name => 'ROUTING_NAME',
51334: p_rtg_col_id => 'ROUTING_SEQUENCE_ID',
51335: p_instance_code => v_instance_code,

Line 51348: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

51344: end if;
51345:
51346:
51347: -- Set the error message
51348: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
51349: (p_app_short_name => 'MSC',
51350: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
51351: p_message_text => lv_message_text,
51352: p_error_text => lv_error_text,

Line 51368: lv_return := MSC_ST_UTIL.LOG_ERROR

51364: v_sql_stmt := 14;
51365: lv_where_str :=
51366: ' AND NVL(from_op_effectivity_date,SYSDATE-36500 ) = SYSDATE-36500 ' ;
51367:
51368: lv_return := MSC_ST_UTIL.LOG_ERROR
51369: (p_table_name => 'MSC_ST_JOB_OPERATION_NETWORKS',
51370: p_instance_code => v_instance_code,
51371: p_row => lv_column_names,
51372: p_severity => G_SEV_WARNING,

Line 51387: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

51383: END IF;
51384:
51385:
51386: -- Set the error message
51387: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
51388: (p_app_short_name => 'MSC',
51389: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
51390: p_message_text => lv_message_text,
51391: p_error_text => lv_error_text,

Line 51406: lv_return := MSC_ST_UTIL.LOG_ERROR

51402: v_sql_stmt := 15;
51403: lv_where_str :=
51404: ' AND NVL(to_op_effectivity_date,SYSDATE-36500 ) = SYSDATE-36500 ' ;
51405:
51406: lv_return := MSC_ST_UTIL.LOG_ERROR
51407: (p_table_name => 'MSC_ST_JOB_OPERATION_NETWORKS',
51408: p_instance_code => v_instance_code,
51409: p_row => lv_column_names,
51410: p_severity => G_SEV_WARNING,

Line 51453: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

51449:
51450: -- from_op_seq_num cannot be null. Error out the records with null value for them.
51451: -- Set the error message
51452:
51453: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
51454: (p_app_short_name => 'MSC',
51455: p_error_code => 'MSC_PP_COL_VAL_NULL',
51456: p_message_text => lv_message_text,
51457: p_error_text => lv_error_text,

Line 51515: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

51511:
51512: -- to_op_seq_num cannot be null. Error out the records with null value for them.
51513: -- Set the error message
51514:
51515: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
51516: (p_app_short_name => 'MSC',
51517: p_error_code => 'MSC_PP_COL_VAL_NULL',
51518: p_message_text => lv_message_text,
51519: p_error_text => lv_error_text,

Line 51547: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

51543:
51544: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
51545:
51546: -- Set the error message
51547: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
51548: (p_app_short_name => 'MSC',
51549: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
51550: p_message_text => lv_message_text,
51551: p_error_text => lv_error_text,

Line 51566: lv_return := MSC_ST_UTIL.LOG_ERROR

51562: v_sql_stmt := 20;
51563: lv_where_str :=
51564: ' AND NVL(transition_type,'||NULL_VALUE||') NOT IN (1,2)';
51565:
51566: lv_return := MSC_ST_UTIL.LOG_ERROR
51567: (p_table_name => 'MSC_ST_JOB_OPERATION_NETWORKS',
51568: p_instance_code => v_instance_code,
51569: p_row => lv_column_names,
51570: p_severity => G_SEV_WARNING,

Line 51605: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

51601: -- There should be at the max only one primary path from a from_operation_seq_code
51602: -- Else error out all the records for that from_operation_seq_code
51603:
51604: -- Set the error message
51605: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
51606: (p_app_short_name => 'MSC',
51607: p_error_code => 'MSC_PP_MULTI_PRI_PATH',
51608: p_message_text => lv_message_text,
51609: p_error_text => lv_error_text,

Line 51648: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

51644: -- The summation of the planning_pct's from a from_operation_sed_code should be exactly 100.
51645: -- Else error out all the records for that from_operation_seq_code
51646:
51647: -- Set the error message
51648: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
51649: (p_app_short_name => 'MSC',
51650: p_error_code => 'MSC_INVALID_PLANNING_PCT',
51651: p_message_text => lv_message_text,
51652: p_error_text => lv_error_text,

Line 51687: MSC_ST_UTIL.SET_PROCESS_FLAG(p_table_name => 'MSC_ST_JOB_OPERATION_NETWORKS',

51683: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code;
51684:
51685: -- Set the process flag as Valid and derive sr_instance_id
51686: lv_return :=
51687: MSC_ST_UTIL.SET_PROCESS_FLAG(p_table_name => 'MSC_ST_JOB_OPERATION_NETWORKS',
51688: p_instance_id => v_instance_id,
51689: p_instance_code => v_instance_code,
51690: p_process_flag => G_VALID,
51691: p_error_text => lv_error_text,

Line 51701: MSC_ST_UTIL.LOG_ERROR(p_table_name => 'MSC_ST_JOB_OPERATION_NETWORKS',

51697:
51698: -- At the end calling the LOG_ERROR for logging all errored out records
51699:
51700: lv_return :=
51701: MSC_ST_UTIL.LOG_ERROR(p_table_name => 'MSC_ST_JOB_OPERATION_NETWORKS',
51702: p_instance_code => v_instance_code,
51703: p_row => lv_column_names,
51704: p_severity => G_SEV_ERROR,
51705: p_message_text => NULL,

Line 51717: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

51713: -- Validation for MSC_ST_JOB_OPERATIONS
51714:
51715: --Duplicate records check for the records whose source is XML
51716:
51717: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
51718: (p_app_short_name => 'MSC',
51719: p_error_code => 'MSC_PP_DUP_REC_FOR_XML',
51720: p_message_text => lv_message_text,
51721: p_error_text => lv_error_text);

Line 51757: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

51753: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code;
51754:
51755: --Duplicate records check for the records whose source is batch load
51756:
51757: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
51758: (p_app_short_name => 'MSC',
51759: p_error_code => 'MSC_PP_DUP_REC_FOR_BATCH_LOAD',
51760: p_message_text => lv_message_text,
51761: p_error_text => lv_error_text);

Line 51867: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

51863: WHERE rowid = lb_rowid(j);
51864:
51865:
51866: -- Set the message
51867: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
51868: (p_app_short_name => 'MSC',
51869: p_error_code => 'MSC_PP_NO_DELETION',
51870: p_message_text => lv_message_text,
51871: p_error_text => lv_error_text,

Line 51896: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

51892:
51893: EXECUTE IMMEDIATE lv_sql_stmt USING lv_batch_id,v_instance_code;
51894:
51895: -- Set the error message
51896: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
51897: (p_app_short_name => 'MSC',
51898: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
51899: p_message_text => lv_message_text,
51900: p_error_text => lv_error_text,

Line 51916: lv_return := MSC_ST_UTIL.LOG_ERROR

51912:
51913: lv_where_str :=
51914: ' AND NVL(deleted_flag,'||NULL_VALUE||') <>'||SYS_NO;
51915:
51916: lv_return := MSC_ST_UTIL.LOG_ERROR
51917: (p_table_name => 'MSC_ST_JOB_OPERATIONS',
51918: p_instance_code => v_instance_code,
51919: p_row => lv_column_names,
51920: p_severity => G_SEV_WARNING,

Line 51935: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

51931: END IF;
51932:
51933: -- Set the message
51934:
51935: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
51936: (p_app_short_name => 'MSC',
51937: p_error_code => 'MSC_PP_INVALID_VALUE',
51938: p_message_text => lv_message_text,
51939: p_error_text => lv_error_text,

Line 51949: MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID(p_table_name => 'MSC_ST_JOB_OPERATIONS',

51945: END IF;
51946:
51947: -- derive organization id ,
51948: lv_return :=
51949: MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID(p_table_name => 'MSC_ST_JOB_OPERATIONS',
51950: p_org_partner_name =>'ORGANIZATION_CODE',
51951: p_org_partner_id =>'ORGANIZATION_ID',
51952: p_instance_code => v_instance_code,
51953: p_partner_type => G_ORGANIZATION,

Line 51966: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

51962: end if;
51963:
51964: -- error out the records where wip_entity_name is null
51965:
51966: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
51967: (p_app_short_name => 'MSC',
51968: p_error_code => 'MSC_PP_COL_VAL_NULL',
51969: p_message_text => lv_message_text,
51970: p_error_text => lv_error_text,

Line 52022: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

52018: v_instance_code;
52019:
52020: -- Set the error message
52021:
52022: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
52023: (p_app_short_name => 'MSC',
52024: p_error_code => 'MSC_PP_COL_REF_NOT_EXIST',
52025: p_message_text => lv_message_text,
52026: p_error_text => lv_error_text,

Line 52058: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

52054:
52055: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
52056:
52057: -- Set the error message
52058: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
52059: (p_app_short_name => 'MSC',
52060: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
52061: p_message_text => lv_message_text,
52062: p_error_text => lv_error_text,

Line 52107: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

52103:
52104: -- Derive routing_sequence_id
52105:
52106: -- Set the error message
52107: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
52108: (p_app_short_name => 'MSC',
52109: p_error_code => 'MSC_PP_COL_REF_NOT_EXIST',
52110: p_message_text => lv_message_text,
52111: p_error_text => lv_error_text,

Line 52127: MSC_ST_UTIL.DERIVE_ROUTING_SEQUENCE_ID

52123:
52124: -- Derive the ROUTING_SEQUENCE_ID from LOCAL ID table
52125:
52126: lv_return :=
52127: MSC_ST_UTIL.DERIVE_ROUTING_SEQUENCE_ID
52128: (p_table_name => 'MSC_ST_JOB_OPERATIONS',
52129: p_rtg_col_name => 'ROUTING_NAME',
52130: p_rtg_col_id => 'ROUTING_SEQUENCE_ID',
52131: p_instance_code => v_instance_code,

Line 52145: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

52141:
52142:
52143:
52144: -- Set the error message
52145: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
52146: (p_app_short_name => 'MSC',
52147: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
52148: p_message_text => lv_message_text,
52149: p_error_text => lv_error_text,

Line 52164: lv_return := MSC_ST_UTIL.LOG_ERROR

52160:
52161: lv_where_str :=
52162: ' AND NVL(effectivity_date,SYSDATE-36500 ) = SYSDATE-36500 ' ;
52163:
52164: lv_return := MSC_ST_UTIL.LOG_ERROR
52165: (p_table_name => 'MSC_ST_JOB_OPERATIONS',
52166: p_instance_code => v_instance_code,
52167: p_row => lv_column_names,
52168: p_severity => G_SEV_WARNING,

Line 52211: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

52207:
52208: -- operation_seq_num cannot be null. Error out the records with null value for them.
52209: -- Set the error message
52210:
52211: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
52212: (p_app_short_name => 'MSC',
52213: p_error_code => 'MSC_PP_COL_VAL_NULL',
52214: p_message_text => lv_message_text,
52215: p_error_text => lv_error_text,

Line 52265: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

52261:
52262: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
52263:
52264: -- Set the error message
52265: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
52266: (p_app_short_name => 'MSC',
52267: p_error_code => 'MSC_PP_COL_REF_NOT_EXIST',
52268: p_message_text => lv_message_text,
52269: p_error_text => lv_error_text,

Line 52316: MSC_ST_UTIL.SET_PROCESS_FLAG(p_table_name => 'MSC_ST_JOB_OPERATIONS',

52312: END IF;
52313:
52314: -- Set the process flag as Valid and derive sr_instance_id
52315: lv_return :=
52316: MSC_ST_UTIL.SET_PROCESS_FLAG(p_table_name => 'MSC_ST_JOB_OPERATIONS',
52317: p_instance_id => v_instance_id,
52318: p_instance_code => v_instance_code,
52319: p_process_flag => G_VALID,
52320: p_error_text => lv_error_text,

Line 52332: MSC_ST_UTIL.LOG_ERROR(p_table_name => 'MSC_ST_JOB_OPERATIONS',

52328:
52329: -- At the end calling the LOG_ERROR for logging all errored out records
52330:
52331: lv_return :=
52332: MSC_ST_UTIL.LOG_ERROR(p_table_name => 'MSC_ST_JOB_OPERATIONS',
52333: p_instance_code => v_instance_code,
52334: p_row => lv_column_names,
52335: p_severity => G_SEV_ERROR,
52336: p_message_text => NULL,

Line 52352: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

52348: -- Validation for MSC_ST_JOB_REQUIREMENT_OPS
52349:
52350: --Duplicate records check for the records whose source is XML
52351:
52352: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
52353: (p_app_short_name => 'MSC',
52354: p_error_code => 'MSC_PP_DUP_REC_FOR_XML',
52355: p_message_text => lv_message_text,
52356: p_error_text => lv_error_text);

Line 52406: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

52402: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code;
52403:
52404: --Duplicate records check for the records whose source is batch load
52405:
52406: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
52407: (p_app_short_name => 'MSC',
52408: p_error_code => 'MSC_PP_DUP_REC_FOR_BATCH_LOAD',
52409: p_message_text => lv_message_text,
52410: p_error_text => lv_error_text);

Line 52520: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

52516: created_by = v_current_user
52517: WHERE rowid = lb_rowid(j);
52518:
52519: -- Set the error message
52520: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
52521: (p_app_short_name => 'MSC',
52522: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
52523: p_message_text => lv_message_text,
52524: p_error_text => lv_error_text,

Line 52539: lv_return := MSC_ST_UTIL.LOG_ERROR

52535:
52536: lv_where_str :=
52537: ' AND NVL(deleted_flag,'||NULL_VALUE||') NOT IN(1,2)';
52538:
52539: lv_return := MSC_ST_UTIL.LOG_ERROR
52540: (p_table_name => 'MSC_ST_JOB_REQUIREMENT_OPS',
52541: p_instance_code => v_instance_code,
52542: p_row => lv_column_names,
52543: p_severity => G_SEV_WARNING,

Line 52557: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

52553: RAISE ex_logging_err;
52554: END IF;
52555:
52556: -- Set the message
52557: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
52558: (p_app_short_name => 'MSC',
52559: p_error_code => 'MSC_PP_INVALID_VALUE',
52560: p_message_text => lv_message_text,
52561: p_error_text => lv_error_text,

Line 52570: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID

52566: RAISE ex_logging_err;
52567: END IF;
52568:
52569: --Derive Organization_id
52570: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID
52571: (p_table_name => 'MSC_ST_JOB_REQUIREMENT_OPS',
52572: p_org_partner_name => 'ORGANIZATION_CODE',
52573: p_org_partner_id => 'ORGANIZATION_ID',
52574: p_instance_code => v_instance_code,

Line 52612: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

52608: v_instance_code;
52609:
52610: -- Set the error message
52611:
52612: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
52613: (p_app_short_name => 'MSC',
52614: p_error_code => 'MSC_PP_COL_REF_NOT_EXIST',
52615: p_message_text => lv_message_text,
52616: p_error_text => lv_error_text,

Line 52647: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

52643:
52644: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
52645:
52646: -- Set the error message
52647: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
52648: (p_app_short_name => 'MSC',
52649: p_error_code => 'MSC_PP_INVALID_VALUE',
52650: p_message_text => lv_message_text,
52651: p_error_text => lv_error_text,

Line 52677: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

52673:
52674: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
52675:
52676: -- Set the message
52677: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
52678: (p_app_short_name => 'MSC',
52679: p_error_code => 'MSC_PP_INVALID_VALUE',
52680: p_message_text => lv_message_text,
52681: p_error_text => lv_error_text,

Line 52690: lv_return := MSC_ST_UTIL.DERIVE_ITEM_ID

52686: RAISE ex_logging_err;
52687: END IF;
52688:
52689: --Derive component_item_id
52690: lv_return := MSC_ST_UTIL.DERIVE_ITEM_ID
52691: (p_table_name => 'MSC_ST_JOB_REQUIREMENT_OPS',
52692: p_item_col_name => 'COMPONENT_NAME',
52693: p_item_col_id => 'COMPONENT_ITEM_ID',
52694: p_instance_id => v_instance_id,

Line 52708: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

52704: RAISE ex_logging_err;
52705: END IF;
52706:
52707: -- Set the message
52708: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
52709: (p_app_short_name => 'MSC',
52710: p_error_code => 'MSC_PP_INVALID_VALUE',
52711: p_message_text => lv_message_text,
52712: p_error_text => lv_error_text,

Line 52721: lv_return := MSC_ST_UTIL.DERIVE_ITEM_ID

52717: RAISE ex_logging_err;
52718: END IF;
52719:
52720: --Derive primary_component_id
52721: lv_return := MSC_ST_UTIL.DERIVE_ITEM_ID
52722: (p_table_name => 'MSC_ST_JOB_REQUIREMENT_OPS',
52723: p_item_col_name => 'PRIMARY_COMPONENT_NAME',
52724: p_item_col_id => 'PRIMARY_COMPONENT_ID',
52725: p_instance_id => v_instance_id,

Line 52739: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

52735: RAISE ex_logging_err;
52736: END IF;
52737:
52738: -- Set the message
52739: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
52740: (p_app_short_name => 'MSC',
52741: p_error_code => 'MSC_PP_INVALID_VALUE',
52742: p_message_text => lv_message_text,
52743: p_error_text => lv_error_text,

Line 52752: lv_return := MSC_ST_UTIL.DERIVE_ITEM_ID

52748: RAISE ex_logging_err;
52749: END IF;
52750:
52751: --Derive primary_component_id
52752: lv_return := MSC_ST_UTIL.DERIVE_ITEM_ID
52753: (p_table_name => 'MSC_ST_JOB_REQUIREMENT_OPS',
52754: p_item_col_name => 'SOURCE_PHANTOM_NAME',
52755: p_item_col_id => 'SOURCE_PHANTOM_ID',
52756: p_instance_id => v_instance_id,

Line 52770: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

52766: RAISE ex_logging_err;
52767: END IF;
52768:
52769: -- Set the message
52770: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
52771: (p_app_short_name => 'MSC',
52772: p_error_code => 'MSC_PP_COL_VAL_NULL',
52773: p_message_text => lv_message_text,
52774: p_error_text => lv_error_text,

Line 52803: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

52799:
52800: EXECUTE IMMEDIATE lv_sql_stmt USING lv_batch_id,v_instance_code;
52801:
52802: -- Set the error message
52803: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
52804: (p_app_short_name => 'MSC',
52805: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
52806: p_message_text => lv_message_text,
52807: p_error_text => lv_error_text,

Line 52822: lv_return := MSC_ST_UTIL.LOG_ERROR

52818:
52819: lv_where_str :=
52820: ' AND NVL(effectivity_date,SYSDATE-36500 ) = SYSDATE-36500 ' ;
52821:
52822: lv_return := MSC_ST_UTIL.LOG_ERROR
52823: (p_table_name => 'MSC_ST_JOB_REQUIREMENT_OPS',
52824: p_instance_code => v_instance_code,
52825: p_row => lv_column_names,
52826: p_severity => G_SEV_WARNING,

Line 52840: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

52836: RAISE ex_logging_err;
52837: END IF;
52838:
52839: -- Set the error message
52840: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
52841: (p_app_short_name => 'MSC',
52842: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
52843: p_message_text => lv_message_text,
52844: p_error_text => lv_error_text,

Line 52859: lv_return := MSC_ST_UTIL.LOG_ERROR

52855:
52856: lv_where_str :=
52857: ' AND NVL(COMPONENT_YIELD_FACTOR,'||NULL_VALUE||') = '||NULL_VALUE ;
52858:
52859: lv_return := MSC_ST_UTIL.LOG_ERROR
52860: (p_table_name => 'MSC_ST_JOB_REQUIREMENT_OPS',
52861: p_instance_code => v_instance_code,
52862: p_row => lv_column_names,
52863: p_severity => G_SEV_WARNING,

Line 52877: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

52873: RAISE ex_logging_err;
52874: END IF;
52875:
52876: -- Set the error message
52877: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
52878: (p_app_short_name => 'MSC',
52879: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
52880: p_message_text => lv_message_text,
52881: p_error_text => lv_error_text,

Line 52896: lv_return := MSC_ST_UTIL.LOG_ERROR

52892:
52893: lv_where_str :=
52894: ' AND NVL(PLANNING_FACTOR,'||NULL_VALUE||') = '||NULL_VALUE ;
52895:
52896: lv_return := MSC_ST_UTIL.LOG_ERROR
52897: (p_table_name => 'MSC_ST_JOB_REQUIREMENT_OPS',
52898: p_instance_code => v_instance_code,
52899: p_row => lv_column_names,
52900: p_severity => G_SEV_WARNING,

Line 52914: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

52910: RAISE ex_logging_err;
52911: END IF;
52912:
52913: -- Set the error message
52914: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
52915: (p_app_short_name => 'MSC',
52916: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
52917: p_message_text => lv_message_text,
52918: p_error_text => lv_error_text,

Line 52933: lv_return := MSC_ST_UTIL.LOG_ERROR

52929:
52930: lv_where_str := ' AND NVL(wip_supply_type,'||NULL_VALUE||') NOT IN (1,2,3,4,5,6,7)'
52931: ||' AND deleted_flag ='||SYS_NO ;
52932:
52933: lv_return := MSC_ST_UTIL.LOG_ERROR
52934: (p_table_name => 'MSC_ST_JOB_REQUIREMENT_OPS',
52935: p_instance_code => v_instance_code,
52936: p_row => lv_column_names,
52937: p_severity => G_SEV_WARNING,

Line 52971: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

52967:
52968: -- Derive routing_sequence_id
52969:
52970: -- Set the error message
52971: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
52972: (p_app_short_name => 'MSC',
52973: p_error_code => 'MSC_PP_COL_REF_NOT_EXIST',
52974: p_message_text => lv_message_text,
52975: p_error_text => lv_error_text,

Line 52991: MSC_ST_UTIL.DERIVE_ROUTING_SEQUENCE_ID

52987:
52988: -- Derive the ROUTING_SEQUENCE_ID from LOCAL ID table
52989:
52990: lv_return :=
52991: MSC_ST_UTIL.DERIVE_ROUTING_SEQUENCE_ID
52992: (p_table_name => 'MSC_ST_JOB_REQUIREMENT_OPS',
52993: p_rtg_col_name => 'ROUTING_NAME',
52994: p_rtg_col_id => 'ROUTING_SEQUENCE_ID',
52995: p_instance_code => v_instance_code,

Line 53036: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

53032: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
53033:
53034: -- Set the error message
53035:
53036: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
53037: (p_app_short_name => 'MSC',
53038: p_error_code => 'MSC_PP_COL_VAL_NULL',
53039: p_message_text => lv_message_text,
53040: p_error_text => lv_error_text,

Line 53094: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

53090: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
53091:
53092: -- Set the error message
53093:
53094: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
53095: (p_app_short_name => 'MSC',
53096: p_error_code => 'MSC_PP_COL_VAL_NULL',
53097: p_message_text => lv_message_text,
53098: p_error_text => lv_error_text,

Line 53160: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG

53156: IF NVL(lv_return,0) <> 0 THEN
53157: RAISE ex_logging_err;
53158: END IF;
53159:
53160: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG
53161: (p_table_name => 'MSC_ST_JOB_REQUIREMENT_OPS',
53162: p_instance_id => v_instance_id,
53163: p_instance_code => v_instance_code,
53164: p_process_flag => G_VALID,

Line 53173: lv_return := MSC_ST_UTIL.LOG_ERROR

53169: IF lv_return <> 0 THEN
53170: RAISE ex_logging_err;
53171: END IF;
53172:
53173: lv_return := MSC_ST_UTIL.LOG_ERROR
53174: (p_table_name => 'MSC_ST_JOB_REQUIREMENT_OPS',
53175: p_instance_code => v_instance_code,
53176: p_row => lv_column_names,
53177: p_severity => G_SEV_ERROR,

Line 53195: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

53191: -- Validation for MSC_ST_JOB_OP_RESOURCES
53192:
53193: --Duplicate records check for the records whose source is XML
53194:
53195: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
53196: (p_app_short_name => 'MSC',
53197: p_error_code => 'MSC_PP_DUP_REC_FOR_XML',
53198: p_message_text => lv_message_text,
53199: p_error_text => lv_error_text);

Line 53241: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

53237: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code;
53238:
53239: --Duplicate records check for the records whose source is batch load
53240:
53241: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
53242: (p_app_short_name => 'MSC',
53243: p_error_code => 'MSC_PP_DUP_REC_FOR_BATCH_LOAD',
53244: p_message_text => lv_message_text,
53245: p_error_text => lv_error_text);

Line 53347: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

53343: created_by = v_current_user
53344: WHERE rowid = lb_rowid(j);
53345:
53346: -- Set the error message
53347: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
53348: (p_app_short_name => 'MSC',
53349: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
53350: p_message_text => lv_message_text,
53351: p_error_text => lv_error_text,

Line 53366: lv_return := MSC_ST_UTIL.LOG_ERROR

53362:
53363: lv_where_str :=
53364: ' AND NVL(deleted_flag,'||NULL_VALUE||') NOT IN(1,2)';
53365:
53366: lv_return := MSC_ST_UTIL.LOG_ERROR
53367: (p_table_name => 'MSC_ST_JOB_OP_RESOURCES',
53368: p_instance_code => v_instance_code,
53369: p_row => lv_column_names,
53370: p_severity => G_SEV_WARNING,

Line 53385: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

53381: RAISE ex_logging_err;
53382: END IF;
53383:
53384: -- Set the message
53385: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
53386: (p_app_short_name => 'MSC',
53387: p_error_code => 'MSC_PP_INVALID_VALUE',
53388: p_message_text => lv_message_text,
53389: p_error_text => lv_error_text,

Line 53399: MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID(p_table_name => 'MSC_ST_JOB_OP_RESOURCES',

53395: END IF;
53396:
53397: -- Populate organization id
53398: lv_return :=
53399: MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID(p_table_name => 'MSC_ST_JOB_OP_RESOURCES',
53400: p_org_partner_name =>'ORGANIZATION_CODE',
53401: p_org_partner_id =>'ORGANIZATION_ID',
53402: p_instance_code => v_instance_code,
53403: p_partner_type => G_ORGANIZATION,

Line 53440: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

53436: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
53437:
53438: -- Set the error message
53439:
53440: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
53441: (p_app_short_name => 'MSC',
53442: p_error_code => 'MSC_PP_COL_REF_NOT_EXIST',
53443: p_message_text => lv_message_text,
53444: p_error_text => lv_error_text,

Line 53501: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

53497: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
53498:
53499: -- Set the error message
53500:
53501: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
53502: (p_app_short_name => 'MSC',
53503: p_error_code => 'MSC_PP_COL_REF_NOT_EXIST',
53504: p_message_text => lv_message_text,
53505: p_error_text => lv_error_text,

Line 53564: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

53560:
53561:
53562:
53563: -- Set the message
53564: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
53565: (p_app_short_name => 'MSC',
53566: p_error_code => 'MSC_PP_COL_VAL_NULL',
53567: p_message_text => lv_message_text,
53568: p_error_text => lv_error_text,

Line 53595: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

53591:
53592: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
53593:
53594: -- Set the message
53595: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
53596: (p_app_short_name => 'MSC',
53597: p_error_code => 'MSC_PP_COL_VAL_NULL',
53598: p_message_text => lv_message_text,
53599: p_error_text => lv_error_text,

Line 53626: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

53622:
53623: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
53624:
53625: -- Set the message
53626: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
53627: (p_app_short_name => 'MSC',
53628: p_error_code => 'MSC_PP_COL_VAL_NULL',
53629: p_message_text => lv_message_text,
53630: p_error_text => lv_error_text,

Line 53657: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

53653:
53654: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
53655:
53656: -- Set the error message
53657: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
53658: (p_app_short_name => 'MSC',
53659: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
53660: p_message_text => lv_message_text,
53661: p_error_text => lv_error_text,

Line 53704: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

53700:
53701: EXECUTE IMMEDIATE lv_sql_stmt USING lv_batch_id,v_instance_code;
53702:
53703: -- Set the message
53704: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
53705: (p_app_short_name => 'MSC',
53706: p_error_code => 'MSC_PP_INVALID_VALUE',
53707: p_message_text => lv_message_text,
53708: p_error_text => lv_error_text,

Line 53718: MSC_ST_UTIL.DERIVE_ROUTING_SEQUENCE_ID

53714: END IF;
53715:
53716: -- Derive the ROUTING_SEQUENCE_ID from LOCAL ID table
53717: lv_return :=
53718: MSC_ST_UTIL.DERIVE_ROUTING_SEQUENCE_ID
53719: (p_table_name => 'MSC_ST_JOB_OP_RESOURCES',
53720: p_rtg_col_name => 'ROUTING_NAME',
53721: p_rtg_col_id =>'ROUTING_SEQUENCE_ID',
53722: p_instance_code => v_instance_code,

Line 53735: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

53731: end if;
53732:
53733:
53734: -- Set the error message
53735: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
53736: (p_app_short_name => 'MSC',
53737: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
53738: p_message_text => lv_message_text,
53739: p_error_text => lv_error_text,

Line 53754: lv_return := MSC_ST_UTIL.LOG_ERROR

53750:
53751: lv_where_str :=
53752: ' AND NVL(operation_effectivity_date,(sysdate-36500)) =(sysdate-36500)';
53753:
53754: lv_return := MSC_ST_UTIL.LOG_ERROR
53755: (p_table_name => 'MSC_ST_JOB_OP_RESOURCES',
53756: p_instance_code => v_instance_code,
53757: p_row => lv_column_names,
53758: p_severity => G_SEV_WARNING,

Line 53801: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

53797: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
53798:
53799: -- Set the error message
53800:
53801: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
53802: (p_app_short_name => 'MSC',
53803: p_error_code => 'MSC_PP_COL_VAL_NULL',
53804: p_message_text => lv_message_text,
53805: p_error_text => lv_error_text,

Line 53832: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

53828:
53829: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
53830:
53831: -- Set the error message
53832: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
53833: (p_app_short_name => 'MSC',
53834: p_error_code => 'MSC_PP_COL_VAL_NULL_DEFAULT',
53835: p_message_text => lv_message_text,
53836: p_error_text => lv_error_text,

Line 53850: lv_return := MSC_ST_UTIL.LOG_ERROR

53846: -- Default alternate number as 0 if NULL
53847:
53848: lv_where_str := ' AND NVL(ALTERNATE_NUM,'||NULL_VALUE||') ='||NULL_VALUE ;
53849:
53850: lv_return := MSC_ST_UTIL.LOG_ERROR
53851: (p_table_name => 'MSC_ST_JOB_OP_RESOURCES',
53852: p_instance_code => v_instance_code,
53853: p_row => lv_column_names,
53854: p_severity => G_SEV_WARNING,

Line 53895: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

53891:
53892: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code,lv_batch_id;
53893:
53894: -- Set the error message
53895: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
53896: (p_app_short_name => 'MSC',
53897: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
53898: p_message_text => lv_message_text,
53899: p_error_text => lv_error_text,

Line 53914: lv_return := MSC_ST_UTIL.LOG_ERROR

53910:
53911: lv_where_str := ' AND NVL(principal_flag,'||NULL_VALUE||')'||' NOT IN (1,2)'
53912: ||'AND deleted_flag = 2';
53913:
53914: lv_return := MSC_ST_UTIL.LOG_ERROR
53915: (p_table_name => 'MSC_ST_JOB_OP_RESOURCES',
53916: p_instance_code => v_instance_code,
53917: p_row => lv_column_names,
53918: p_severity => G_SEV_WARNING,

Line 53932: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

53928: RAISE ex_logging_err;
53929: END IF;
53930:
53931: -- Set the error message
53932: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
53933: (p_app_short_name => 'MSC',
53934: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
53935: p_message_text => lv_message_text,
53936: p_error_text => lv_error_text,

Line 53952: lv_return := MSC_ST_UTIL.LOG_ERROR

53948: lv_where_str :=
53949: ' AND NVL(basis_type,'||NULL_VALUE||')'
53950: ||' NOT IN (1,2,3,4,5) AND deleted_flag = 2' ;
53951:
53952: lv_return := MSC_ST_UTIL.LOG_ERROR
53953: (p_table_name => 'MSC_ST_JOB_OP_RESOURCES',
53954: p_instance_code => v_instance_code,
53955: p_row => lv_column_names,
53956: p_severity => G_SEV_WARNING,

Line 54000: MSC_ST_UTIL.SET_PROCESS_FLAG(p_table_name => 'MSC_ST_JOB_OP_RESOURCES',

53996: END IF;
53997:
53998: -- Set the process flag as Valid and populate sr_instance_id
53999: lv_return :=
54000: MSC_ST_UTIL.SET_PROCESS_FLAG(p_table_name => 'MSC_ST_JOB_OP_RESOURCES',
54001: p_instance_id => v_instance_id,
54002: p_instance_code => v_instance_code,
54003: p_process_flag => G_VALID,
54004: p_error_text => lv_error_text,

Line 54016: MSC_ST_UTIL.LOG_ERROR(p_table_name => 'MSC_ST_JOB_OP_RESOURCES',

54012:
54013: -- At the end calling the LOG_ERROR for logging all errored out records
54014:
54015: lv_return :=
54016: MSC_ST_UTIL.LOG_ERROR(p_table_name => 'MSC_ST_JOB_OP_RESOURCES',
54017: p_instance_code => v_instance_code,
54018: p_row => lv_column_names,
54019: p_severity => G_SEV_ERROR,
54020: p_message_text => NULL,

Line 54228: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

54224: -- Validation for table msc_st_system_items
54225: -- Duplicate records check for the records whose source is XML
54226:
54227: IF v_item_enabled = SYS_YES THEN
54228: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
54229: (p_app_short_name => 'MSC',
54230: p_error_code => 'MSC_PP_DUP_REC_FOR_XML',
54231: p_message_text => lv_message_text,
54232: p_error_text => lv_error_text);

Line 54263: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

54259: EXECUTE IMMEDIATE lv_sql_stmt
54260: USING v_instance_code;
54261:
54262: --Duplicate records check for the records whose source is batch load
54263: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
54264: (p_app_short_name => 'MSC',
54265: p_error_code => 'MSC_PP_DUP_REC_FOR_BATCH_LOAD',
54266: p_message_text => lv_message_text,
54267: p_error_text => lv_error_text);

Line 54303: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

54299:
54300: commit; -- for items
54301:
54302: IF v_mat_sup_enabled = SYS_YES THEN
54303: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
54304: (p_app_short_name => 'MSC',
54305: p_error_code => 'MSC_PP_DUP_REC_FOR_XML',
54306: p_message_text => lv_message_text,
54307: p_error_text => lv_error_text);

Line 54414: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

54410: EXECUTE IMMEDIATE lv_sql_stmt
54411: USING v_instance_code;
54412:
54413:
54414: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
54415: (p_app_short_name => 'MSC',
54416: p_error_code => 'MSC_PP_DUP_REC_FOR_BATCH_LOAD',
54417: p_message_text => lv_message_text,
54418: p_error_text => lv_error_text);

Line 54539: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

54535: --Since all the validation is done based on the order type,
54536: --order_type validation is done here which is common to all
54537: --the supplies including WO supplies.
54538:
54539: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
54540: (p_app_short_name => 'MSC',
54541: p_error_code => 'MSC_PP_INVALID_VALUE',
54542: p_message_text => lv_message_text,
54543: p_error_text => lv_error_text,

Line 54574: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

54570: IF v_mat_dmd_enabled = SYS_YES THEN
54571:
54572: --Duplicate records check for the records whose source is XML
54573:
54574: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
54575: (p_app_short_name => 'MSC',
54576: p_error_code => 'MSC_PP_DUP_REC_FOR_XML',
54577: p_message_text => lv_message_text,
54578: p_error_text => lv_error_text);

Line 54647: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

54643: EXECUTE IMMEDIATE lv_sql_stmt USING v_instance_code;
54644:
54645: --Duplicate records check for the records whose source is batch load
54646:
54647: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
54648: (p_app_short_name => 'MSC',
54649: p_error_code => 'MSC_PP_DUP_REC_FOR_BATCH_LOAD',
54650: p_message_text => lv_message_text,
54651: p_error_text => lv_error_text);

Line 54727: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

54723:
54724:
54725: --Duplicate SO records check for the records whose source is XML
54726:
54727: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
54728: (p_app_short_name => 'MSC',
54729: p_error_code => 'MSC_PP_DUP_REC_FOR_XML',
54730: p_message_text => lv_message_text,
54731: p_error_text => lv_error_text);

Line 54774: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

54770:
54771:
54772: --Duplicate records check for the records whose source is batch load
54773:
54774: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
54775: (p_app_short_name => 'MSC',
54776: p_error_code => 'MSC_PP_DUP_REC_FOR_BATCH_LOAD',
54777: p_message_text => lv_message_text,
54778: p_error_text => lv_error_text);

Line 54824: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

54820:
54821: -- For LEVEL_VALUE
54822: IF v_level_value_enabled = SYS_YES THEN
54823: v_sql_stmt := 15;
54824: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
54825: (p_app_short_name => 'MSC',
54826: p_error_code => 'MSC_PP_DUP_REC_FOR_BATCH_LOAD',
54827: p_message_text => lv_message_text,
54828: p_error_text => lv_error_text);

Line 54918: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

54914: -- Duplicate records check for the records whose source is XML.
54915:
54916: -- Error out records if same OEM item is mapped to multiple customer items
54917:
54918: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
54919: (p_app_short_name => 'MSC',
54920: p_error_code => 'MSC_PP_DUP_REC_FOR_XML',
54921: p_message_text => lv_message_text,
54922: p_error_text => lv_error_text);

Line 54986: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

54982: -- For Batch loads (excel etc.) we error out all duplicate UDK records.
54983: -- 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.
54984: -- If MESSAGE_ID is not null then we would assume it to have come in via XML else via batch load.
54985:
54986: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
54987: (p_app_short_name => 'MSC',
54988: p_error_code => 'MSC_PP_DUP_REC_FOR_BATCH_LOAD',
54989: p_message_text => lv_message_text,
54990: p_error_text => lv_error_text);

Line 55108: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

55104: -- Error out those records where the deleted_flag is set to 'Y' if the collection program doesn't support deletion for this BO.
55105: -- Insert the records into the error_table with the severity warning where deleted_flag has a null value.
55106: -- Update the MSC_ST_ITEM_SUPPLIERS table with the default value 2.
55107:
55108: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
55109: (p_app_short_name => 'MSC',
55110: p_error_code => 'MSC_PP_NO_DELETION',
55111: p_message_text => lv_message_text,
55112: p_error_text => lv_error_text,

Line 55141: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

55137: v_instance_code;
55138:
55139: -- warning message if the DELETED_FLAG is other than 1, 2. default to SYS_NO (2)
55140:
55141: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
55142: (p_app_short_name => 'MSC',
55143: p_error_code => 'MSC_PP_INVALID_COL_VALUE',
55144: p_message_text => lv_message_text,
55145: p_error_text => lv_error_text,

Line 55161: lv_return := MSC_ST_UTIL.LOG_ERROR

55157:
55158: --Log a warning for those records where the deleted_flag has a value other
55159: --SYS_NO
55160:
55161: lv_return := MSC_ST_UTIL.LOG_ERROR
55162: (p_table_name => 'MSC_ST_ITEM_CUSTOMERS',
55163: p_instance_code => v_instance_code,
55164: p_row => lv_column_names,
55165: p_severity => G_SEV_WARNING,

Line 55181: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

55177:
55178: -- derive the company_id if it is not null or -1. if not found then error out record
55179: IF v_sce_installed THEN
55180:
55181: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
55182: (p_app_short_name => 'MSC',
55183: p_error_code => 'MSC_PP_INVALID_VALUE',
55184: p_message_text => lv_message_text,
55185: p_error_text => lv_error_text,

Line 55193: lv_return := MSC_ST_UTIL.DERIVE_COMPANY_ID

55189: IF lv_return <> 0 THEN
55190: RAISE ex_logging_err;
55191: END IF;
55192:
55193: lv_return := MSC_ST_UTIL.DERIVE_COMPANY_ID
55194: (p_table_name => 'MSC_ST_ITEM_CUSTOMERS',
55195: p_company_name => 'COMPANY_NAME',
55196: p_company_id => 'COMPANY_ID',
55197: p_instance_code => v_instance_code,

Line 55253: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

55249: v_sql_stmt := 09;
55250:
55251: -- Set the error message
55252:
55253: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
55254: (p_app_short_name => 'MSC',
55255: p_error_code => 'MSC_PP_COL_VAL_NULL',
55256: p_message_text => lv_message_text,
55257: p_error_text => lv_error_text,

Line 55288: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

55284: -- Set the error message
55285:
55286: v_sql_stmt := 10;
55287:
55288: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
55289: (p_app_short_name => 'MSC',
55290: p_error_code => 'MSC_PP_COL_REF_NOT_EXIST',
55291: p_message_text => lv_message_text,
55292: p_error_text => lv_error_text,

Line 55333: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

55329: -- Derive inventory_item_id based on the item_name and error_out all the records where the derivation has failed.
55330:
55331: v_sql_stmt := 11;
55332:
55333: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
55334: (p_app_short_name => 'MSC',
55335: p_error_code => 'MSC_PP_INVALID_VALUE',
55336: p_message_text => lv_message_text,
55337: p_error_text => lv_error_text,

Line 55343: lv_return := MSC_ST_UTIL.DERIVE_ITEM_ID

55339: p_token_value1 => 'ITEM_NAME');
55340:
55341: --Derive Inventory_item_id
55342:
55343: lv_return := MSC_ST_UTIL.DERIVE_ITEM_ID
55344: (p_table_name => 'MSC_ST_ITEM_CUSTOMERS',
55345: p_item_col_name => 'ITEM_NAME',
55346: p_item_col_id => 'INVENTORY_ITEM_ID',
55347: p_instance_id => v_instance_id,

Line 55366: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

55362: -- Set the message
55363:
55364: v_sql_stmt := 12;
55365:
55366: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
55367: (p_app_short_name => 'MSC',
55368: p_error_code => 'MSC_PP_INVALID_VALUE',
55369: p_message_text => lv_message_text,
55370: p_error_text => lv_error_text,

Line 55380: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID

55376: END IF;
55377:
55378: -- Derive customer_id and error out records if customer is not valid
55379:
55380: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_ORG_ID
55381: (p_table_name => 'MSC_ST_ITEM_CUSTOMERS',
55382: p_org_partner_name => 'CUSTOMER_NAME',
55383: p_org_partner_id => 'CUSTOMER_ID',
55384: p_instance_code => v_instance_code,

Line 55406: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

55402: v_sql_stmt := 13;
55403:
55404: -- Set the message
55405:
55406: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
55407: (p_app_short_name => 'MSC',
55408: p_error_code => 'MSC_PP_INVALID_VALUE',
55409: p_message_text => lv_message_text,
55410: p_error_text => lv_error_text,

Line 55418: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_SITE_ID

55414: IF lv_return <> 0 THEN
55415: RAISE ex_logging_err;
55416: END IF;
55417:
55418: lv_return := MSC_ST_UTIL.DERIVE_PARTNER_SITE_ID
55419: (p_table_name => 'MSC_ST_ITEM_CUSTOMERS',
55420: p_partner_name => 'CUSTOMER_NAME',
55421: p_partner_site_code => 'CUSTOMER_SITE_NAME',
55422: p_partner_site_id => 'CUSTOMER_SITE_ID',

Line 55454: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG

55450: END IF;
55451:
55452:
55453: -- Update the process_flag to 5(valid) and sr_instance_id to v_instance_id.
55454: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG
55455: (p_table_name => 'MSC_ST_ITEM_CUSTOMERS',
55456: p_instance_id => v_instance_id,
55457: p_instance_code => v_instance_code,
55458: p_process_flag => G_VALID,

Line 55468: lv_return := MSC_ST_UTIL.LOG_ERROR

55464: RAISE ex_logging_err;
55465: END IF;
55466:
55467: -- Insert all the errored out records into the error table.
55468: lv_return := MSC_ST_UTIL.LOG_ERROR
55469: (p_table_name => 'MSC_ST_ITEM_CUSTOMERS',
55470: p_instance_code => v_instance_code,
55471: p_row => lv_column_names,
55472: p_severity => G_SEV_ERROR,

Line 55521: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

55517:
55518: BEGIN
55519: IF (v_instance_type <> G_INS_OTHER AND p_erp_enabled = 'N') THEN
55520: lv_column_names := 'SR_INSTANCE_CODE';
55521: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
55522: (p_app_short_name => 'MSC',
55523: p_error_code => 'MSC_ERP_INVALID_ENTITY',
55524: p_message_text => lv_message_text,
55525: p_error_text => lv_error_text,

Line 55547: lv_return := MSC_ST_UTIL.LOG_ERROR

55543: MSC_UTIL.LOG_MSG(MSC_UTIL.G_LVL_DEBUG_1,lv_sql_stmt);
55544:
55545: EXECUTE IMMEDIATE lv_sql_stmt;
55546:
55547: lv_return := MSC_ST_UTIL.LOG_ERROR
55548: (p_table_name => p_table_name,
55549: p_instance_code => v_instance_code,
55550: p_row => lv_column_names,
55551: p_severity => G_SEV_ERROR,

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

56856: v_instance_code;
56857:
56858: /* -- Set the process flag as Valid and populate instance_id
56859: lv_return :=
56860: MSC_ST_UTIL.SET_PROCESS_FLAG(p_table_name => 'MSC_ST_SYSTEM_ITEMS',
56861: p_instance_id => v_instance_id,
56862: p_instance_code => v_instance_code,
56863: p_process_flag => G_VALID,
56864: p_error_text => lv_error_text,

Line 56868: msc_st_util.log_message(lv_error_text);

56864: p_error_text => lv_error_text,
56865: p_debug => v_debug);
56866:
56867: IF lv_return <> 0 THEN
56868: msc_st_util.log_message(lv_error_text);
56869: END IF;
56870: */
56871:
56872: lv_sql_stmt :=

Line 57161: msc_st_util.log_message(substr('MSC_CL_PRE_PROCESS.LOAD_ITEM_LIST_PRICE'||SQLERRM,1,240));

57157: END IF ;
57158:
57159: EXCEPTION
57160: WHEN OTHERS THEN
57161: msc_st_util.log_message(substr('MSC_CL_PRE_PROCESS.LOAD_ITEM_LIST_PRICE'||SQLERRM,1,240));
57162:
57163: END ;
57164: */
57165:

Line 57429: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

57425:
57426:
57427: BEGIN
57428:
57429: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
57430: (p_app_short_name => 'MSC',
57431: p_error_code => 'MSC_PP_DUP_REC_FOR_XML',
57432: p_message_text => lv_message_text,
57433: p_error_text => lv_error_text);

Line 57454: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

57450: AND mai1.sr_instance_code = v_instance_code
57451: AND NVL(mai1.message_id,NULL_VALUE) <> NULL_VALUE;
57452:
57453:
57454: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
57455: (p_app_short_name => 'MSC',
57456: p_error_code => 'MSC_PP_DUP_REC_FOR_BATCH_LOAD',
57457: p_message_text => lv_message_text,
57458: p_error_text => lv_error_text);

Line 57528: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE

57524: EXECUTE IMMEDIATE lv_sql_stmt
57525: USING v_instance_code;
57526:
57527: -- set the message
57528: lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
57529: (p_app_short_name => 'MSC',
57530: p_error_code => 'MSC_PP_INVALID_VALUE',
57531: p_message_text => lv_message_text,
57532: p_error_text => lv_error_text,

Line 57579: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG

57575:
57576: EXECUTE IMMEDIATE lv_sql_stmt
57577: USING v_instance_code;
57578:
57579: lv_return := MSC_ST_UTIL.SET_PROCESS_FLAG
57580: (p_table_name => 'MSC_ST_APPS_INSTANCES',
57581: p_instance_id => v_instance_id,
57582: p_instance_code => v_instance_code,
57583: p_process_flag => G_VALID,