1090: IF p_cc_limit_used <> 'ITEM' THEN
1091: -- bug 4002820
1092: IF INSTR(p_cc_limit_used, ',') > 0 THEN
1093: l_cc_profile_used := OE_CREDIT_CHECK_UTIL.Get_CC_Lookup_Meaning('OE_CC_PROFILE', p_cc_profile_used);
1094: FND_MESSAGE.Set_Name('ONT','OE_CC_LINE_HOLD_MSG');
1095: FND_MESSAGE.Set_Token('ORDER_NUMBER' ,p_order_number);
1096: FND_MESSAGE.Set_Token('LINE_NUMBER' ,p_line_number);
1097: FND_MESSAGE.Set_Token('LIMIT_USED',p_cc_limit_used);
1098: FND_MESSAGE.Set_Token('CC_PROFILE',l_cc_profile_used);
1091: -- bug 4002820
1092: IF INSTR(p_cc_limit_used, ',') > 0 THEN
1093: l_cc_profile_used := OE_CREDIT_CHECK_UTIL.Get_CC_Lookup_Meaning('OE_CC_PROFILE', p_cc_profile_used);
1094: FND_MESSAGE.Set_Name('ONT','OE_CC_LINE_HOLD_MSG');
1095: FND_MESSAGE.Set_Token('ORDER_NUMBER' ,p_order_number);
1096: FND_MESSAGE.Set_Token('LINE_NUMBER' ,p_line_number);
1097: FND_MESSAGE.Set_Token('LIMIT_USED',p_cc_limit_used);
1098: FND_MESSAGE.Set_Token('CC_PROFILE',l_cc_profile_used);
1099: l_comment := SUBSTR(FND_MESSAGE.GET,1,2000);
1092: IF INSTR(p_cc_limit_used, ',') > 0 THEN
1093: l_cc_profile_used := OE_CREDIT_CHECK_UTIL.Get_CC_Lookup_Meaning('OE_CC_PROFILE', p_cc_profile_used);
1094: FND_MESSAGE.Set_Name('ONT','OE_CC_LINE_HOLD_MSG');
1095: FND_MESSAGE.Set_Token('ORDER_NUMBER' ,p_order_number);
1096: FND_MESSAGE.Set_Token('LINE_NUMBER' ,p_line_number);
1097: FND_MESSAGE.Set_Token('LIMIT_USED',p_cc_limit_used);
1098: FND_MESSAGE.Set_Token('CC_PROFILE',l_cc_profile_used);
1099: l_comment := SUBSTR(FND_MESSAGE.GET,1,2000);
1100: FND_MESSAGE.Set_Name('ONT','OE_CC_LINE_HOLD_MSG');
1093: l_cc_profile_used := OE_CREDIT_CHECK_UTIL.Get_CC_Lookup_Meaning('OE_CC_PROFILE', p_cc_profile_used);
1094: FND_MESSAGE.Set_Name('ONT','OE_CC_LINE_HOLD_MSG');
1095: FND_MESSAGE.Set_Token('ORDER_NUMBER' ,p_order_number);
1096: FND_MESSAGE.Set_Token('LINE_NUMBER' ,p_line_number);
1097: FND_MESSAGE.Set_Token('LIMIT_USED',p_cc_limit_used);
1098: FND_MESSAGE.Set_Token('CC_PROFILE',l_cc_profile_used);
1099: l_comment := SUBSTR(FND_MESSAGE.GET,1,2000);
1100: FND_MESSAGE.Set_Name('ONT','OE_CC_LINE_HOLD_MSG');
1101: FND_MESSAGE.Set_Token('ORDER_NUMBER' ,p_order_number);
1094: FND_MESSAGE.Set_Name('ONT','OE_CC_LINE_HOLD_MSG');
1095: FND_MESSAGE.Set_Token('ORDER_NUMBER' ,p_order_number);
1096: FND_MESSAGE.Set_Token('LINE_NUMBER' ,p_line_number);
1097: FND_MESSAGE.Set_Token('LIMIT_USED',p_cc_limit_used);
1098: FND_MESSAGE.Set_Token('CC_PROFILE',l_cc_profile_used);
1099: l_comment := SUBSTR(FND_MESSAGE.GET,1,2000);
1100: FND_MESSAGE.Set_Name('ONT','OE_CC_LINE_HOLD_MSG');
1101: FND_MESSAGE.Set_Token('ORDER_NUMBER' ,p_order_number);
1102: FND_MESSAGE.Set_Token('LINE_NUMBER' ,p_line_number);
1095: FND_MESSAGE.Set_Token('ORDER_NUMBER' ,p_order_number);
1096: FND_MESSAGE.Set_Token('LINE_NUMBER' ,p_line_number);
1097: FND_MESSAGE.Set_Token('LIMIT_USED',p_cc_limit_used);
1098: FND_MESSAGE.Set_Token('CC_PROFILE',l_cc_profile_used);
1099: l_comment := SUBSTR(FND_MESSAGE.GET,1,2000);
1100: FND_MESSAGE.Set_Name('ONT','OE_CC_LINE_HOLD_MSG');
1101: FND_MESSAGE.Set_Token('ORDER_NUMBER' ,p_order_number);
1102: FND_MESSAGE.Set_Token('LINE_NUMBER' ,p_line_number);
1103: FND_MESSAGE.Set_Token('LIMIT_USED',p_cc_limit_used);
1096: FND_MESSAGE.Set_Token('LINE_NUMBER' ,p_line_number);
1097: FND_MESSAGE.Set_Token('LIMIT_USED',p_cc_limit_used);
1098: FND_MESSAGE.Set_Token('CC_PROFILE',l_cc_profile_used);
1099: l_comment := SUBSTR(FND_MESSAGE.GET,1,2000);
1100: FND_MESSAGE.Set_Name('ONT','OE_CC_LINE_HOLD_MSG');
1101: FND_MESSAGE.Set_Token('ORDER_NUMBER' ,p_order_number);
1102: FND_MESSAGE.Set_Token('LINE_NUMBER' ,p_line_number);
1103: FND_MESSAGE.Set_Token('LIMIT_USED',p_cc_limit_used);
1104: FND_MESSAGE.Set_Token('CC_PROFILE',l_cc_profile_used);
1097: FND_MESSAGE.Set_Token('LIMIT_USED',p_cc_limit_used);
1098: FND_MESSAGE.Set_Token('CC_PROFILE',l_cc_profile_used);
1099: l_comment := SUBSTR(FND_MESSAGE.GET,1,2000);
1100: FND_MESSAGE.Set_Name('ONT','OE_CC_LINE_HOLD_MSG');
1101: FND_MESSAGE.Set_Token('ORDER_NUMBER' ,p_order_number);
1102: FND_MESSAGE.Set_Token('LINE_NUMBER' ,p_line_number);
1103: FND_MESSAGE.Set_Token('LIMIT_USED',p_cc_limit_used);
1104: FND_MESSAGE.Set_Token('CC_PROFILE',l_cc_profile_used);
1105: OE_MSG_PUB.Add;
1098: FND_MESSAGE.Set_Token('CC_PROFILE',l_cc_profile_used);
1099: l_comment := SUBSTR(FND_MESSAGE.GET,1,2000);
1100: FND_MESSAGE.Set_Name('ONT','OE_CC_LINE_HOLD_MSG');
1101: FND_MESSAGE.Set_Token('ORDER_NUMBER' ,p_order_number);
1102: FND_MESSAGE.Set_Token('LINE_NUMBER' ,p_line_number);
1103: FND_MESSAGE.Set_Token('LIMIT_USED',p_cc_limit_used);
1104: FND_MESSAGE.Set_Token('CC_PROFILE',l_cc_profile_used);
1105: OE_MSG_PUB.Add;
1106:
1099: l_comment := SUBSTR(FND_MESSAGE.GET,1,2000);
1100: FND_MESSAGE.Set_Name('ONT','OE_CC_LINE_HOLD_MSG');
1101: FND_MESSAGE.Set_Token('ORDER_NUMBER' ,p_order_number);
1102: FND_MESSAGE.Set_Token('LINE_NUMBER' ,p_line_number);
1103: FND_MESSAGE.Set_Token('LIMIT_USED',p_cc_limit_used);
1104: FND_MESSAGE.Set_Token('CC_PROFILE',l_cc_profile_used);
1105: OE_MSG_PUB.Add;
1106:
1107: ELSE
1100: FND_MESSAGE.Set_Name('ONT','OE_CC_LINE_HOLD_MSG');
1101: FND_MESSAGE.Set_Token('ORDER_NUMBER' ,p_order_number);
1102: FND_MESSAGE.Set_Token('LINE_NUMBER' ,p_line_number);
1103: FND_MESSAGE.Set_Token('LIMIT_USED',p_cc_limit_used);
1104: FND_MESSAGE.Set_Token('CC_PROFILE',l_cc_profile_used);
1105: OE_MSG_PUB.Add;
1106:
1107: ELSE
1108: IF p_cc_profile_used = 'SITE' THEN
1105: OE_MSG_PUB.Add;
1106:
1107: ELSE
1108: IF p_cc_profile_used = 'SITE' THEN
1109: FND_MESSAGE.Set_Name('ONT','OE_CC_HLD_'||p_cc_limit_used||'_'||
1110: p_cc_profile_used);
1111: FND_MESSAGE.Set_Token('ORDER_NUMBER' ,p_order_number);
1112: FND_MESSAGE.Set_Token('LINE_NUMBER' ,p_line_number);
1113: FND_MESSAGE.Set_Token('CUSTOMER_NAME',p_customer_name);
1107: ELSE
1108: IF p_cc_profile_used = 'SITE' THEN
1109: FND_MESSAGE.Set_Name('ONT','OE_CC_HLD_'||p_cc_limit_used||'_'||
1110: p_cc_profile_used);
1111: FND_MESSAGE.Set_Token('ORDER_NUMBER' ,p_order_number);
1112: FND_MESSAGE.Set_Token('LINE_NUMBER' ,p_line_number);
1113: FND_MESSAGE.Set_Token('CUSTOMER_NAME',p_customer_name);
1114: FND_MESSAGE.Set_Token('SITE_NAME' ,p_site_name);
1115: l_comment := SUBSTR(FND_MESSAGE.GET,1,2000);
1108: IF p_cc_profile_used = 'SITE' THEN
1109: FND_MESSAGE.Set_Name('ONT','OE_CC_HLD_'||p_cc_limit_used||'_'||
1110: p_cc_profile_used);
1111: FND_MESSAGE.Set_Token('ORDER_NUMBER' ,p_order_number);
1112: FND_MESSAGE.Set_Token('LINE_NUMBER' ,p_line_number);
1113: FND_MESSAGE.Set_Token('CUSTOMER_NAME',p_customer_name);
1114: FND_MESSAGE.Set_Token('SITE_NAME' ,p_site_name);
1115: l_comment := SUBSTR(FND_MESSAGE.GET,1,2000);
1116:
1109: FND_MESSAGE.Set_Name('ONT','OE_CC_HLD_'||p_cc_limit_used||'_'||
1110: p_cc_profile_used);
1111: FND_MESSAGE.Set_Token('ORDER_NUMBER' ,p_order_number);
1112: FND_MESSAGE.Set_Token('LINE_NUMBER' ,p_line_number);
1113: FND_MESSAGE.Set_Token('CUSTOMER_NAME',p_customer_name);
1114: FND_MESSAGE.Set_Token('SITE_NAME' ,p_site_name);
1115: l_comment := SUBSTR(FND_MESSAGE.GET,1,2000);
1116:
1117: FND_MESSAGE.Set_Name('ONT','OE_CC_HLD_'||p_cc_limit_used||'_'||
1110: p_cc_profile_used);
1111: FND_MESSAGE.Set_Token('ORDER_NUMBER' ,p_order_number);
1112: FND_MESSAGE.Set_Token('LINE_NUMBER' ,p_line_number);
1113: FND_MESSAGE.Set_Token('CUSTOMER_NAME',p_customer_name);
1114: FND_MESSAGE.Set_Token('SITE_NAME' ,p_site_name);
1115: l_comment := SUBSTR(FND_MESSAGE.GET,1,2000);
1116:
1117: FND_MESSAGE.Set_Name('ONT','OE_CC_HLD_'||p_cc_limit_used||'_'||
1118: p_cc_profile_used);
1111: FND_MESSAGE.Set_Token('ORDER_NUMBER' ,p_order_number);
1112: FND_MESSAGE.Set_Token('LINE_NUMBER' ,p_line_number);
1113: FND_MESSAGE.Set_Token('CUSTOMER_NAME',p_customer_name);
1114: FND_MESSAGE.Set_Token('SITE_NAME' ,p_site_name);
1115: l_comment := SUBSTR(FND_MESSAGE.GET,1,2000);
1116:
1117: FND_MESSAGE.Set_Name('ONT','OE_CC_HLD_'||p_cc_limit_used||'_'||
1118: p_cc_profile_used);
1119: FND_MESSAGE.Set_Token('ORDER_NUMBER',p_order_number);
1113: FND_MESSAGE.Set_Token('CUSTOMER_NAME',p_customer_name);
1114: FND_MESSAGE.Set_Token('SITE_NAME' ,p_site_name);
1115: l_comment := SUBSTR(FND_MESSAGE.GET,1,2000);
1116:
1117: FND_MESSAGE.Set_Name('ONT','OE_CC_HLD_'||p_cc_limit_used||'_'||
1118: p_cc_profile_used);
1119: FND_MESSAGE.Set_Token('ORDER_NUMBER',p_order_number);
1120: FND_MESSAGE.Set_Token('LINE_NUMBER',p_line_number);
1121: FND_MESSAGE.Set_Token('CUSTOMER_NAME',p_customer_name);
1115: l_comment := SUBSTR(FND_MESSAGE.GET,1,2000);
1116:
1117: FND_MESSAGE.Set_Name('ONT','OE_CC_HLD_'||p_cc_limit_used||'_'||
1118: p_cc_profile_used);
1119: FND_MESSAGE.Set_Token('ORDER_NUMBER',p_order_number);
1120: FND_MESSAGE.Set_Token('LINE_NUMBER',p_line_number);
1121: FND_MESSAGE.Set_Token('CUSTOMER_NAME',p_customer_name);
1122: FND_MESSAGE.Set_Token('SITE_NAME' ,p_site_name);
1123: OE_MSG_PUB.Add;
1116:
1117: FND_MESSAGE.Set_Name('ONT','OE_CC_HLD_'||p_cc_limit_used||'_'||
1118: p_cc_profile_used);
1119: FND_MESSAGE.Set_Token('ORDER_NUMBER',p_order_number);
1120: FND_MESSAGE.Set_Token('LINE_NUMBER',p_line_number);
1121: FND_MESSAGE.Set_Token('CUSTOMER_NAME',p_customer_name);
1122: FND_MESSAGE.Set_Token('SITE_NAME' ,p_site_name);
1123: OE_MSG_PUB.Add;
1124: ELSIF p_cc_profile_used = 'CUSTOMER'
1117: FND_MESSAGE.Set_Name('ONT','OE_CC_HLD_'||p_cc_limit_used||'_'||
1118: p_cc_profile_used);
1119: FND_MESSAGE.Set_Token('ORDER_NUMBER',p_order_number);
1120: FND_MESSAGE.Set_Token('LINE_NUMBER',p_line_number);
1121: FND_MESSAGE.Set_Token('CUSTOMER_NAME',p_customer_name);
1122: FND_MESSAGE.Set_Token('SITE_NAME' ,p_site_name);
1123: OE_MSG_PUB.Add;
1124: ELSIF p_cc_profile_used = 'CUSTOMER'
1125: THEN
1118: p_cc_profile_used);
1119: FND_MESSAGE.Set_Token('ORDER_NUMBER',p_order_number);
1120: FND_MESSAGE.Set_Token('LINE_NUMBER',p_line_number);
1121: FND_MESSAGE.Set_Token('CUSTOMER_NAME',p_customer_name);
1122: FND_MESSAGE.Set_Token('SITE_NAME' ,p_site_name);
1123: OE_MSG_PUB.Add;
1124: ELSIF p_cc_profile_used = 'CUSTOMER'
1125: THEN
1126: FND_MESSAGE.Set_Name('ONT','OE_CC_HLD_'||p_cc_limit_used||'_'||
1122: FND_MESSAGE.Set_Token('SITE_NAME' ,p_site_name);
1123: OE_MSG_PUB.Add;
1124: ELSIF p_cc_profile_used = 'CUSTOMER'
1125: THEN
1126: FND_MESSAGE.Set_Name('ONT','OE_CC_HLD_'||p_cc_limit_used||'_'||
1127: p_cc_profile_used);
1128: FND_MESSAGE.Set_Token('ORDER_NUMBER' ,p_order_number);
1129: FND_MESSAGE.Set_Token('LINE_NUMBER' ,p_line_number);
1130: FND_MESSAGE.Set_Token('CUSTOMER_NAME',p_customer_name);
1124: ELSIF p_cc_profile_used = 'CUSTOMER'
1125: THEN
1126: FND_MESSAGE.Set_Name('ONT','OE_CC_HLD_'||p_cc_limit_used||'_'||
1127: p_cc_profile_used);
1128: FND_MESSAGE.Set_Token('ORDER_NUMBER' ,p_order_number);
1129: FND_MESSAGE.Set_Token('LINE_NUMBER' ,p_line_number);
1130: FND_MESSAGE.Set_Token('CUSTOMER_NAME',p_customer_name);
1131: l_comment := SUBSTR(FND_MESSAGE.GET,1,2000);
1132:
1125: THEN
1126: FND_MESSAGE.Set_Name('ONT','OE_CC_HLD_'||p_cc_limit_used||'_'||
1127: p_cc_profile_used);
1128: FND_MESSAGE.Set_Token('ORDER_NUMBER' ,p_order_number);
1129: FND_MESSAGE.Set_Token('LINE_NUMBER' ,p_line_number);
1130: FND_MESSAGE.Set_Token('CUSTOMER_NAME',p_customer_name);
1131: l_comment := SUBSTR(FND_MESSAGE.GET,1,2000);
1132:
1133: FND_MESSAGE.Set_Name('ONT','OE_CC_HLD_'||p_cc_limit_used||'_'||
1126: FND_MESSAGE.Set_Name('ONT','OE_CC_HLD_'||p_cc_limit_used||'_'||
1127: p_cc_profile_used);
1128: FND_MESSAGE.Set_Token('ORDER_NUMBER' ,p_order_number);
1129: FND_MESSAGE.Set_Token('LINE_NUMBER' ,p_line_number);
1130: FND_MESSAGE.Set_Token('CUSTOMER_NAME',p_customer_name);
1131: l_comment := SUBSTR(FND_MESSAGE.GET,1,2000);
1132:
1133: FND_MESSAGE.Set_Name('ONT','OE_CC_HLD_'||p_cc_limit_used||'_'||
1134: p_cc_profile_used);
1127: p_cc_profile_used);
1128: FND_MESSAGE.Set_Token('ORDER_NUMBER' ,p_order_number);
1129: FND_MESSAGE.Set_Token('LINE_NUMBER' ,p_line_number);
1130: FND_MESSAGE.Set_Token('CUSTOMER_NAME',p_customer_name);
1131: l_comment := SUBSTR(FND_MESSAGE.GET,1,2000);
1132:
1133: FND_MESSAGE.Set_Name('ONT','OE_CC_HLD_'||p_cc_limit_used||'_'||
1134: p_cc_profile_used);
1135: FND_MESSAGE.Set_Token('ORDER_NUMBER',p_order_number);
1129: FND_MESSAGE.Set_Token('LINE_NUMBER' ,p_line_number);
1130: FND_MESSAGE.Set_Token('CUSTOMER_NAME',p_customer_name);
1131: l_comment := SUBSTR(FND_MESSAGE.GET,1,2000);
1132:
1133: FND_MESSAGE.Set_Name('ONT','OE_CC_HLD_'||p_cc_limit_used||'_'||
1134: p_cc_profile_used);
1135: FND_MESSAGE.Set_Token('ORDER_NUMBER',p_order_number);
1136: FND_MESSAGE.Set_Token('LINE_NUMBER',p_line_number);
1137: FND_MESSAGE.Set_Token('CUSTOMER_NAME',p_customer_name);
1131: l_comment := SUBSTR(FND_MESSAGE.GET,1,2000);
1132:
1133: FND_MESSAGE.Set_Name('ONT','OE_CC_HLD_'||p_cc_limit_used||'_'||
1134: p_cc_profile_used);
1135: FND_MESSAGE.Set_Token('ORDER_NUMBER',p_order_number);
1136: FND_MESSAGE.Set_Token('LINE_NUMBER',p_line_number);
1137: FND_MESSAGE.Set_Token('CUSTOMER_NAME',p_customer_name);
1138: OE_MSG_PUB.Add;
1139:
1132:
1133: FND_MESSAGE.Set_Name('ONT','OE_CC_HLD_'||p_cc_limit_used||'_'||
1134: p_cc_profile_used);
1135: FND_MESSAGE.Set_Token('ORDER_NUMBER',p_order_number);
1136: FND_MESSAGE.Set_Token('LINE_NUMBER',p_line_number);
1137: FND_MESSAGE.Set_Token('CUSTOMER_NAME',p_customer_name);
1138: OE_MSG_PUB.Add;
1139:
1140: ELSIF p_cc_profile_used = 'PARTY'
1133: FND_MESSAGE.Set_Name('ONT','OE_CC_HLD_'||p_cc_limit_used||'_'||
1134: p_cc_profile_used);
1135: FND_MESSAGE.Set_Token('ORDER_NUMBER',p_order_number);
1136: FND_MESSAGE.Set_Token('LINE_NUMBER',p_line_number);
1137: FND_MESSAGE.Set_Token('CUSTOMER_NAME',p_customer_name);
1138: OE_MSG_PUB.Add;
1139:
1140: ELSIF p_cc_profile_used = 'PARTY'
1141: THEN
1138: OE_MSG_PUB.Add;
1139:
1140: ELSIF p_cc_profile_used = 'PARTY'
1141: THEN
1142: FND_MESSAGE.Set_Name('ONT','OE_CC_HLD_'||p_cc_limit_used||'_'||
1143: p_cc_profile_used);
1144: FND_MESSAGE.Set_Token('ORDER_NUMBER' ,p_order_number);
1145: FND_MESSAGE.Set_Token('LINE_NUMBER' ,p_line_number);
1146: FND_MESSAGE.Set_Token('PARTY_NAME',p_party_name );
1140: ELSIF p_cc_profile_used = 'PARTY'
1141: THEN
1142: FND_MESSAGE.Set_Name('ONT','OE_CC_HLD_'||p_cc_limit_used||'_'||
1143: p_cc_profile_used);
1144: FND_MESSAGE.Set_Token('ORDER_NUMBER' ,p_order_number);
1145: FND_MESSAGE.Set_Token('LINE_NUMBER' ,p_line_number);
1146: FND_MESSAGE.Set_Token('PARTY_NAME',p_party_name );
1147: l_comment := SUBSTR(FND_MESSAGE.GET,1,2000);
1148:
1141: THEN
1142: FND_MESSAGE.Set_Name('ONT','OE_CC_HLD_'||p_cc_limit_used||'_'||
1143: p_cc_profile_used);
1144: FND_MESSAGE.Set_Token('ORDER_NUMBER' ,p_order_number);
1145: FND_MESSAGE.Set_Token('LINE_NUMBER' ,p_line_number);
1146: FND_MESSAGE.Set_Token('PARTY_NAME',p_party_name );
1147: l_comment := SUBSTR(FND_MESSAGE.GET,1,2000);
1148:
1149: FND_MESSAGE.Set_Name('ONT','OE_CC_HLD_'||p_cc_limit_used||'_'||
1142: FND_MESSAGE.Set_Name('ONT','OE_CC_HLD_'||p_cc_limit_used||'_'||
1143: p_cc_profile_used);
1144: FND_MESSAGE.Set_Token('ORDER_NUMBER' ,p_order_number);
1145: FND_MESSAGE.Set_Token('LINE_NUMBER' ,p_line_number);
1146: FND_MESSAGE.Set_Token('PARTY_NAME',p_party_name );
1147: l_comment := SUBSTR(FND_MESSAGE.GET,1,2000);
1148:
1149: FND_MESSAGE.Set_Name('ONT','OE_CC_HLD_'||p_cc_limit_used||'_'||
1150: p_cc_profile_used);
1143: p_cc_profile_used);
1144: FND_MESSAGE.Set_Token('ORDER_NUMBER' ,p_order_number);
1145: FND_MESSAGE.Set_Token('LINE_NUMBER' ,p_line_number);
1146: FND_MESSAGE.Set_Token('PARTY_NAME',p_party_name );
1147: l_comment := SUBSTR(FND_MESSAGE.GET,1,2000);
1148:
1149: FND_MESSAGE.Set_Name('ONT','OE_CC_HLD_'||p_cc_limit_used||'_'||
1150: p_cc_profile_used);
1151: FND_MESSAGE.Set_Token('ORDER_NUMBER',p_order_number);
1145: FND_MESSAGE.Set_Token('LINE_NUMBER' ,p_line_number);
1146: FND_MESSAGE.Set_Token('PARTY_NAME',p_party_name );
1147: l_comment := SUBSTR(FND_MESSAGE.GET,1,2000);
1148:
1149: FND_MESSAGE.Set_Name('ONT','OE_CC_HLD_'||p_cc_limit_used||'_'||
1150: p_cc_profile_used);
1151: FND_MESSAGE.Set_Token('ORDER_NUMBER',p_order_number);
1152: FND_MESSAGE.Set_Token('LINE_NUMBER',p_line_number);
1153: FND_MESSAGE.Set_Token('PARTY_NAME',p_party_name) ;
1147: l_comment := SUBSTR(FND_MESSAGE.GET,1,2000);
1148:
1149: FND_MESSAGE.Set_Name('ONT','OE_CC_HLD_'||p_cc_limit_used||'_'||
1150: p_cc_profile_used);
1151: FND_MESSAGE.Set_Token('ORDER_NUMBER',p_order_number);
1152: FND_MESSAGE.Set_Token('LINE_NUMBER',p_line_number);
1153: FND_MESSAGE.Set_Token('PARTY_NAME',p_party_name) ;
1154: OE_MSG_PUB.Add;
1155:
1148:
1149: FND_MESSAGE.Set_Name('ONT','OE_CC_HLD_'||p_cc_limit_used||'_'||
1150: p_cc_profile_used);
1151: FND_MESSAGE.Set_Token('ORDER_NUMBER',p_order_number);
1152: FND_MESSAGE.Set_Token('LINE_NUMBER',p_line_number);
1153: FND_MESSAGE.Set_Token('PARTY_NAME',p_party_name) ;
1154: OE_MSG_PUB.Add;
1155:
1156: ELSIF p_cc_profile_used = 'DEFAULT' THEN
1149: FND_MESSAGE.Set_Name('ONT','OE_CC_HLD_'||p_cc_limit_used||'_'||
1150: p_cc_profile_used);
1151: FND_MESSAGE.Set_Token('ORDER_NUMBER',p_order_number);
1152: FND_MESSAGE.Set_Token('LINE_NUMBER',p_line_number);
1153: FND_MESSAGE.Set_Token('PARTY_NAME',p_party_name) ;
1154: OE_MSG_PUB.Add;
1155:
1156: ELSIF p_cc_profile_used = 'DEFAULT' THEN
1157: FND_MESSAGE.Set_Name('ONT','OE_CC_HLD_'||p_cc_limit_used||'_'||
1153: FND_MESSAGE.Set_Token('PARTY_NAME',p_party_name) ;
1154: OE_MSG_PUB.Add;
1155:
1156: ELSIF p_cc_profile_used = 'DEFAULT' THEN
1157: FND_MESSAGE.Set_Name('ONT','OE_CC_HLD_'||p_cc_limit_used||'_'||
1158: p_cc_profile_used);
1159: FND_MESSAGE.Set_Token('ORDER_NUMBER',p_order_number);
1160: FND_MESSAGE.Set_Token('LINE_NUMBER',p_line_number);
1161: l_comment := SUBSTR(FND_MESSAGE.GET,1,2000);
1155:
1156: ELSIF p_cc_profile_used = 'DEFAULT' THEN
1157: FND_MESSAGE.Set_Name('ONT','OE_CC_HLD_'||p_cc_limit_used||'_'||
1158: p_cc_profile_used);
1159: FND_MESSAGE.Set_Token('ORDER_NUMBER',p_order_number);
1160: FND_MESSAGE.Set_Token('LINE_NUMBER',p_line_number);
1161: l_comment := SUBSTR(FND_MESSAGE.GET,1,2000);
1162:
1163: FND_MESSAGE.Set_Name('ONT','OE_CC_HLD_'||p_cc_limit_used||'_'||
1156: ELSIF p_cc_profile_used = 'DEFAULT' THEN
1157: FND_MESSAGE.Set_Name('ONT','OE_CC_HLD_'||p_cc_limit_used||'_'||
1158: p_cc_profile_used);
1159: FND_MESSAGE.Set_Token('ORDER_NUMBER',p_order_number);
1160: FND_MESSAGE.Set_Token('LINE_NUMBER',p_line_number);
1161: l_comment := SUBSTR(FND_MESSAGE.GET,1,2000);
1162:
1163: FND_MESSAGE.Set_Name('ONT','OE_CC_HLD_'||p_cc_limit_used||'_'||
1164: p_cc_profile_used);
1157: FND_MESSAGE.Set_Name('ONT','OE_CC_HLD_'||p_cc_limit_used||'_'||
1158: p_cc_profile_used);
1159: FND_MESSAGE.Set_Token('ORDER_NUMBER',p_order_number);
1160: FND_MESSAGE.Set_Token('LINE_NUMBER',p_line_number);
1161: l_comment := SUBSTR(FND_MESSAGE.GET,1,2000);
1162:
1163: FND_MESSAGE.Set_Name('ONT','OE_CC_HLD_'||p_cc_limit_used||'_'||
1164: p_cc_profile_used);
1165: FND_MESSAGE.Set_Token('ORDER_NUMBER',p_order_number);
1159: FND_MESSAGE.Set_Token('ORDER_NUMBER',p_order_number);
1160: FND_MESSAGE.Set_Token('LINE_NUMBER',p_line_number);
1161: l_comment := SUBSTR(FND_MESSAGE.GET,1,2000);
1162:
1163: FND_MESSAGE.Set_Name('ONT','OE_CC_HLD_'||p_cc_limit_used||'_'||
1164: p_cc_profile_used);
1165: FND_MESSAGE.Set_Token('ORDER_NUMBER',p_order_number);
1166: FND_MESSAGE.Set_Token('LINE_NUMBER',p_line_number);
1167: OE_MSG_PUB.Add;
1161: l_comment := SUBSTR(FND_MESSAGE.GET,1,2000);
1162:
1163: FND_MESSAGE.Set_Name('ONT','OE_CC_HLD_'||p_cc_limit_used||'_'||
1164: p_cc_profile_used);
1165: FND_MESSAGE.Set_Token('ORDER_NUMBER',p_order_number);
1166: FND_MESSAGE.Set_Token('LINE_NUMBER',p_line_number);
1167: OE_MSG_PUB.Add;
1168: END IF;
1169: END IF;
1162:
1163: FND_MESSAGE.Set_Name('ONT','OE_CC_HLD_'||p_cc_limit_used||'_'||
1164: p_cc_profile_used);
1165: FND_MESSAGE.Set_Token('ORDER_NUMBER',p_order_number);
1166: FND_MESSAGE.Set_Token('LINE_NUMBER',p_line_number);
1167: OE_MSG_PUB.Add;
1168: END IF;
1169: END IF;
1170: ELSE
1167: OE_MSG_PUB.Add;
1168: END IF;
1169: END IF;
1170: ELSE
1171: FND_MESSAGE.Set_Name('ONT','OE_CC_HLD_'||p_cc_limit_used||'_'||
1172: 'CATEGORY');
1173: FND_MESSAGE.Set_Token('ORDER_NUMBER',p_order_number);
1174: FND_MESSAGE.Set_Token('LINE_NUMBER',p_line_number);
1175: FND_MESSAGE.Set_Token('CATEGORY',p_item_category);
1169: END IF;
1170: ELSE
1171: FND_MESSAGE.Set_Name('ONT','OE_CC_HLD_'||p_cc_limit_used||'_'||
1172: 'CATEGORY');
1173: FND_MESSAGE.Set_Token('ORDER_NUMBER',p_order_number);
1174: FND_MESSAGE.Set_Token('LINE_NUMBER',p_line_number);
1175: FND_MESSAGE.Set_Token('CATEGORY',p_item_category);
1176: l_comment := SUBSTR(FND_MESSAGE.GET,1,2000);
1177:
1170: ELSE
1171: FND_MESSAGE.Set_Name('ONT','OE_CC_HLD_'||p_cc_limit_used||'_'||
1172: 'CATEGORY');
1173: FND_MESSAGE.Set_Token('ORDER_NUMBER',p_order_number);
1174: FND_MESSAGE.Set_Token('LINE_NUMBER',p_line_number);
1175: FND_MESSAGE.Set_Token('CATEGORY',p_item_category);
1176: l_comment := SUBSTR(FND_MESSAGE.GET,1,2000);
1177:
1178: FND_MESSAGE.Set_Name('ONT','OE_CC_HLD_'||p_cc_limit_used||'_'||
1171: FND_MESSAGE.Set_Name('ONT','OE_CC_HLD_'||p_cc_limit_used||'_'||
1172: 'CATEGORY');
1173: FND_MESSAGE.Set_Token('ORDER_NUMBER',p_order_number);
1174: FND_MESSAGE.Set_Token('LINE_NUMBER',p_line_number);
1175: FND_MESSAGE.Set_Token('CATEGORY',p_item_category);
1176: l_comment := SUBSTR(FND_MESSAGE.GET,1,2000);
1177:
1178: FND_MESSAGE.Set_Name('ONT','OE_CC_HLD_'||p_cc_limit_used||'_'||
1179: 'CATEGORY');
1172: 'CATEGORY');
1173: FND_MESSAGE.Set_Token('ORDER_NUMBER',p_order_number);
1174: FND_MESSAGE.Set_Token('LINE_NUMBER',p_line_number);
1175: FND_MESSAGE.Set_Token('CATEGORY',p_item_category);
1176: l_comment := SUBSTR(FND_MESSAGE.GET,1,2000);
1177:
1178: FND_MESSAGE.Set_Name('ONT','OE_CC_HLD_'||p_cc_limit_used||'_'||
1179: 'CATEGORY');
1180: FND_MESSAGE.Set_Token('ORDER_NUMBER',p_order_number);
1174: FND_MESSAGE.Set_Token('LINE_NUMBER',p_line_number);
1175: FND_MESSAGE.Set_Token('CATEGORY',p_item_category);
1176: l_comment := SUBSTR(FND_MESSAGE.GET,1,2000);
1177:
1178: FND_MESSAGE.Set_Name('ONT','OE_CC_HLD_'||p_cc_limit_used||'_'||
1179: 'CATEGORY');
1180: FND_MESSAGE.Set_Token('ORDER_NUMBER',p_order_number);
1181: FND_MESSAGE.Set_Token('LINE_NUMBER',p_line_number);
1182: FND_MESSAGE.Set_Token('CATEGORY',p_item_category);
1176: l_comment := SUBSTR(FND_MESSAGE.GET,1,2000);
1177:
1178: FND_MESSAGE.Set_Name('ONT','OE_CC_HLD_'||p_cc_limit_used||'_'||
1179: 'CATEGORY');
1180: FND_MESSAGE.Set_Token('ORDER_NUMBER',p_order_number);
1181: FND_MESSAGE.Set_Token('LINE_NUMBER',p_line_number);
1182: FND_MESSAGE.Set_Token('CATEGORY',p_item_category);
1183: OE_MSG_PUB.Add;
1184: END IF;
1177:
1178: FND_MESSAGE.Set_Name('ONT','OE_CC_HLD_'||p_cc_limit_used||'_'||
1179: 'CATEGORY');
1180: FND_MESSAGE.Set_Token('ORDER_NUMBER',p_order_number);
1181: FND_MESSAGE.Set_Token('LINE_NUMBER',p_line_number);
1182: FND_MESSAGE.Set_Token('CATEGORY',p_item_category);
1183: OE_MSG_PUB.Add;
1184: END IF;
1185: --END IF; -- bug 5467793
1178: FND_MESSAGE.Set_Name('ONT','OE_CC_HLD_'||p_cc_limit_used||'_'||
1179: 'CATEGORY');
1180: FND_MESSAGE.Set_Token('ORDER_NUMBER',p_order_number);
1181: FND_MESSAGE.Set_Token('LINE_NUMBER',p_line_number);
1182: FND_MESSAGE.Set_Token('CATEGORY',p_item_category);
1183: OE_MSG_PUB.Add;
1184: END IF;
1185: --END IF; -- bug 5467793
1186: --
1205: ELSE
1206: l_calling_activity := InitCap(OE_Verify_Payment_PUB.G_init_calling_action);
1207: END IF;
1208:
1209: FND_MESSAGE.Set_Name('ONT','OE_CC_HOLD_ACT_COM');
1210: FND_MESSAGE.Set_Token('CALLING_ACTIVITY',l_calling_activity);
1211: FND_MESSAGE.Set_Token('CREDIT_CHECK_RULE',OE_Verify_Payment_PUB.G_credit_check_rule);
1212:
1213: l_comment := l_comment||SUBSTR(FND_MESSAGE.GET,1,2000);
1206: l_calling_activity := InitCap(OE_Verify_Payment_PUB.G_init_calling_action);
1207: END IF;
1208:
1209: FND_MESSAGE.Set_Name('ONT','OE_CC_HOLD_ACT_COM');
1210: FND_MESSAGE.Set_Token('CALLING_ACTIVITY',l_calling_activity);
1211: FND_MESSAGE.Set_Token('CREDIT_CHECK_RULE',OE_Verify_Payment_PUB.G_credit_check_rule);
1212:
1213: l_comment := l_comment||SUBSTR(FND_MESSAGE.GET,1,2000);
1214: --ER#7479609 end
1207: END IF;
1208:
1209: FND_MESSAGE.Set_Name('ONT','OE_CC_HOLD_ACT_COM');
1210: FND_MESSAGE.Set_Token('CALLING_ACTIVITY',l_calling_activity);
1211: FND_MESSAGE.Set_Token('CREDIT_CHECK_RULE',OE_Verify_Payment_PUB.G_credit_check_rule);
1212:
1213: l_comment := l_comment||SUBSTR(FND_MESSAGE.GET,1,2000);
1214: --ER#7479609 end
1215:
1209: FND_MESSAGE.Set_Name('ONT','OE_CC_HOLD_ACT_COM');
1210: FND_MESSAGE.Set_Token('CALLING_ACTIVITY',l_calling_activity);
1211: FND_MESSAGE.Set_Token('CREDIT_CHECK_RULE',OE_Verify_Payment_PUB.G_credit_check_rule);
1212:
1213: l_comment := l_comment||SUBSTR(FND_MESSAGE.GET,1,2000);
1214: --ER#7479609 end
1215:
1216: x_comment := NVL(OE_Credit_Engine_GRP.G_currency_error_msg,l_comment);
1217:
1252: ||' Line Number: '||TO_CHAR(p_line_number)
1253: ||' released from credit check hold.');
1254: END IF;
1255:
1256: FND_MESSAGE.Set_Name('ONT','OE_CC_HLD_REMOVED');
1257: FND_MESSAGE.Set_Token('ORDER_NUMBER',p_order_number);
1258: FND_MESSAGE.Set_Token('LINE_NUMBER',p_line_number);
1259: OE_MSG_PUB.Add;
1260: --- rajesh
1253: ||' released from credit check hold.');
1254: END IF;
1255:
1256: FND_MESSAGE.Set_Name('ONT','OE_CC_HLD_REMOVED');
1257: FND_MESSAGE.Set_Token('ORDER_NUMBER',p_order_number);
1258: FND_MESSAGE.Set_Token('LINE_NUMBER',p_line_number);
1259: OE_MSG_PUB.Add;
1260: --- rajesh
1261: --OE_MSG_PUB.Save_Messages(1);
1254: END IF;
1255:
1256: FND_MESSAGE.Set_Name('ONT','OE_CC_HLD_REMOVED');
1257: FND_MESSAGE.Set_Token('ORDER_NUMBER',p_order_number);
1258: FND_MESSAGE.Set_Token('LINE_NUMBER',p_line_number);
1259: OE_MSG_PUB.Add;
1260: --- rajesh
1261: --OE_MSG_PUB.Save_Messages(1);
1262: --
1306:
1307: --bug 4153299
1308: l_cc_profile_used := OE_CREDIT_CHECK_UTIL.Get_CC_Lookup_Meaning('OE_CC_PROFILE', p_cc_profile_used);
1309:
1310: FND_MESSAGE.Set_Name('ONT','OE_CC_HOLD_MSG');
1311: FND_MESSAGE.Set_Token('LIMIT_USED',p_cc_limit_used);
1312: FND_MESSAGE.Set_Token('CC_PROFILE',l_cc_profile_used);
1313: l_comment := SUBSTR(FND_MESSAGE.GET,1,2000);
1314: FND_MESSAGE.Set_Name('ONT','OE_CC_HOLD_MSG');
1307: --bug 4153299
1308: l_cc_profile_used := OE_CREDIT_CHECK_UTIL.Get_CC_Lookup_Meaning('OE_CC_PROFILE', p_cc_profile_used);
1309:
1310: FND_MESSAGE.Set_Name('ONT','OE_CC_HOLD_MSG');
1311: FND_MESSAGE.Set_Token('LIMIT_USED',p_cc_limit_used);
1312: FND_MESSAGE.Set_Token('CC_PROFILE',l_cc_profile_used);
1313: l_comment := SUBSTR(FND_MESSAGE.GET,1,2000);
1314: FND_MESSAGE.Set_Name('ONT','OE_CC_HOLD_MSG');
1315: FND_MESSAGE.Set_Token('LIMIT_USED',p_cc_limit_used);
1308: l_cc_profile_used := OE_CREDIT_CHECK_UTIL.Get_CC_Lookup_Meaning('OE_CC_PROFILE', p_cc_profile_used);
1309:
1310: FND_MESSAGE.Set_Name('ONT','OE_CC_HOLD_MSG');
1311: FND_MESSAGE.Set_Token('LIMIT_USED',p_cc_limit_used);
1312: FND_MESSAGE.Set_Token('CC_PROFILE',l_cc_profile_used);
1313: l_comment := SUBSTR(FND_MESSAGE.GET,1,2000);
1314: FND_MESSAGE.Set_Name('ONT','OE_CC_HOLD_MSG');
1315: FND_MESSAGE.Set_Token('LIMIT_USED',p_cc_limit_used);
1316: FND_MESSAGE.Set_Token('CC_PROFILE',l_cc_profile_used);
1309:
1310: FND_MESSAGE.Set_Name('ONT','OE_CC_HOLD_MSG');
1311: FND_MESSAGE.Set_Token('LIMIT_USED',p_cc_limit_used);
1312: FND_MESSAGE.Set_Token('CC_PROFILE',l_cc_profile_used);
1313: l_comment := SUBSTR(FND_MESSAGE.GET,1,2000);
1314: FND_MESSAGE.Set_Name('ONT','OE_CC_HOLD_MSG');
1315: FND_MESSAGE.Set_Token('LIMIT_USED',p_cc_limit_used);
1316: FND_MESSAGE.Set_Token('CC_PROFILE',l_cc_profile_used);
1317: OE_MSG_PUB.Add;
1310: FND_MESSAGE.Set_Name('ONT','OE_CC_HOLD_MSG');
1311: FND_MESSAGE.Set_Token('LIMIT_USED',p_cc_limit_used);
1312: FND_MESSAGE.Set_Token('CC_PROFILE',l_cc_profile_used);
1313: l_comment := SUBSTR(FND_MESSAGE.GET,1,2000);
1314: FND_MESSAGE.Set_Name('ONT','OE_CC_HOLD_MSG');
1315: FND_MESSAGE.Set_Token('LIMIT_USED',p_cc_limit_used);
1316: FND_MESSAGE.Set_Token('CC_PROFILE',l_cc_profile_used);
1317: OE_MSG_PUB.Add;
1318: ELSE
1311: FND_MESSAGE.Set_Token('LIMIT_USED',p_cc_limit_used);
1312: FND_MESSAGE.Set_Token('CC_PROFILE',l_cc_profile_used);
1313: l_comment := SUBSTR(FND_MESSAGE.GET,1,2000);
1314: FND_MESSAGE.Set_Name('ONT','OE_CC_HOLD_MSG');
1315: FND_MESSAGE.Set_Token('LIMIT_USED',p_cc_limit_used);
1316: FND_MESSAGE.Set_Token('CC_PROFILE',l_cc_profile_used);
1317: OE_MSG_PUB.Add;
1318: ELSE
1319: FND_MESSAGE.Set_Name('ONT','OE_CC_HOLD_'||p_cc_limit_used||'_'||
1312: FND_MESSAGE.Set_Token('CC_PROFILE',l_cc_profile_used);
1313: l_comment := SUBSTR(FND_MESSAGE.GET,1,2000);
1314: FND_MESSAGE.Set_Name('ONT','OE_CC_HOLD_MSG');
1315: FND_MESSAGE.Set_Token('LIMIT_USED',p_cc_limit_used);
1316: FND_MESSAGE.Set_Token('CC_PROFILE',l_cc_profile_used);
1317: OE_MSG_PUB.Add;
1318: ELSE
1319: FND_MESSAGE.Set_Name('ONT','OE_CC_HOLD_'||p_cc_limit_used||'_'||
1320: p_cc_profile_used);
1315: FND_MESSAGE.Set_Token('LIMIT_USED',p_cc_limit_used);
1316: FND_MESSAGE.Set_Token('CC_PROFILE',l_cc_profile_used);
1317: OE_MSG_PUB.Add;
1318: ELSE
1319: FND_MESSAGE.Set_Name('ONT','OE_CC_HOLD_'||p_cc_limit_used||'_'||
1320: p_cc_profile_used);
1321: l_comment := SUBSTR(FND_MESSAGE.GET,1,2000);
1322: FND_MESSAGE.Set_Name('ONT','OE_CC_HOLD_'||p_cc_limit_used||'_'||
1323: p_cc_profile_used);
1317: OE_MSG_PUB.Add;
1318: ELSE
1319: FND_MESSAGE.Set_Name('ONT','OE_CC_HOLD_'||p_cc_limit_used||'_'||
1320: p_cc_profile_used);
1321: l_comment := SUBSTR(FND_MESSAGE.GET,1,2000);
1322: FND_MESSAGE.Set_Name('ONT','OE_CC_HOLD_'||p_cc_limit_used||'_'||
1323: p_cc_profile_used);
1324: OE_MSG_PUB.Add;
1325: END IF;
1318: ELSE
1319: FND_MESSAGE.Set_Name('ONT','OE_CC_HOLD_'||p_cc_limit_used||'_'||
1320: p_cc_profile_used);
1321: l_comment := SUBSTR(FND_MESSAGE.GET,1,2000);
1322: FND_MESSAGE.Set_Name('ONT','OE_CC_HOLD_'||p_cc_limit_used||'_'||
1323: p_cc_profile_used);
1324: OE_MSG_PUB.Add;
1325: END IF;
1326: ELSE
1323: p_cc_profile_used);
1324: OE_MSG_PUB.Add;
1325: END IF;
1326: ELSE
1327: FND_MESSAGE.Set_Name('ONT','OE_CC_HOLD_'||p_cc_limit_used||'_CATEGORY');
1328: FND_MESSAGE.Set_Token('CATEGORY',p_item_category);
1329: l_comment := SUBSTR(FND_MESSAGE.GET,1,2000);
1330: FND_MESSAGE.Set_Name('ONT','OE_CC_HOLD_'||p_cc_limit_used||'_'||
1331: 'CATEGORY');
1324: OE_MSG_PUB.Add;
1325: END IF;
1326: ELSE
1327: FND_MESSAGE.Set_Name('ONT','OE_CC_HOLD_'||p_cc_limit_used||'_CATEGORY');
1328: FND_MESSAGE.Set_Token('CATEGORY',p_item_category);
1329: l_comment := SUBSTR(FND_MESSAGE.GET,1,2000);
1330: FND_MESSAGE.Set_Name('ONT','OE_CC_HOLD_'||p_cc_limit_used||'_'||
1331: 'CATEGORY');
1332: FND_MESSAGE.Set_Token('CATEGORY',p_item_category);
1325: END IF;
1326: ELSE
1327: FND_MESSAGE.Set_Name('ONT','OE_CC_HOLD_'||p_cc_limit_used||'_CATEGORY');
1328: FND_MESSAGE.Set_Token('CATEGORY',p_item_category);
1329: l_comment := SUBSTR(FND_MESSAGE.GET,1,2000);
1330: FND_MESSAGE.Set_Name('ONT','OE_CC_HOLD_'||p_cc_limit_used||'_'||
1331: 'CATEGORY');
1332: FND_MESSAGE.Set_Token('CATEGORY',p_item_category);
1333: OE_MSG_PUB.Add;
1326: ELSE
1327: FND_MESSAGE.Set_Name('ONT','OE_CC_HOLD_'||p_cc_limit_used||'_CATEGORY');
1328: FND_MESSAGE.Set_Token('CATEGORY',p_item_category);
1329: l_comment := SUBSTR(FND_MESSAGE.GET,1,2000);
1330: FND_MESSAGE.Set_Name('ONT','OE_CC_HOLD_'||p_cc_limit_used||'_'||
1331: 'CATEGORY');
1332: FND_MESSAGE.Set_Token('CATEGORY',p_item_category);
1333: OE_MSG_PUB.Add;
1334: END IF;
1328: FND_MESSAGE.Set_Token('CATEGORY',p_item_category);
1329: l_comment := SUBSTR(FND_MESSAGE.GET,1,2000);
1330: FND_MESSAGE.Set_Name('ONT','OE_CC_HOLD_'||p_cc_limit_used||'_'||
1331: 'CATEGORY');
1332: FND_MESSAGE.Set_Token('CATEGORY',p_item_category);
1333: OE_MSG_PUB.Add;
1334: END IF;
1335: --
1336: -- Write to logfile if original call was from a concurrent program
1347: ELSE
1348: l_calling_activity := InitCap(OE_Verify_Payment_PUB.G_init_calling_action);
1349: END IF;
1350:
1351: FND_MESSAGE.Set_Name('ONT','OE_CC_HOLD_ACT_COM');
1352: FND_MESSAGE.Set_Token('CALLING_ACTIVITY',l_calling_activity);
1353: FND_MESSAGE.Set_Token('CREDIT_CHECK_RULE',OE_Verify_Payment_PUB.G_credit_check_rule);
1354:
1355: l_comment := l_comment||SUBSTR(FND_MESSAGE.GET,1,2000);
1348: l_calling_activity := InitCap(OE_Verify_Payment_PUB.G_init_calling_action);
1349: END IF;
1350:
1351: FND_MESSAGE.Set_Name('ONT','OE_CC_HOLD_ACT_COM');
1352: FND_MESSAGE.Set_Token('CALLING_ACTIVITY',l_calling_activity);
1353: FND_MESSAGE.Set_Token('CREDIT_CHECK_RULE',OE_Verify_Payment_PUB.G_credit_check_rule);
1354:
1355: l_comment := l_comment||SUBSTR(FND_MESSAGE.GET,1,2000);
1356: --ER#7479609 end
1349: END IF;
1350:
1351: FND_MESSAGE.Set_Name('ONT','OE_CC_HOLD_ACT_COM');
1352: FND_MESSAGE.Set_Token('CALLING_ACTIVITY',l_calling_activity);
1353: FND_MESSAGE.Set_Token('CREDIT_CHECK_RULE',OE_Verify_Payment_PUB.G_credit_check_rule);
1354:
1355: l_comment := l_comment||SUBSTR(FND_MESSAGE.GET,1,2000);
1356: --ER#7479609 end
1357:
1351: FND_MESSAGE.Set_Name('ONT','OE_CC_HOLD_ACT_COM');
1352: FND_MESSAGE.Set_Token('CALLING_ACTIVITY',l_calling_activity);
1353: FND_MESSAGE.Set_Token('CREDIT_CHECK_RULE',OE_Verify_Payment_PUB.G_credit_check_rule);
1354:
1355: l_comment := l_comment||SUBSTR(FND_MESSAGE.GET,1,2000);
1356: --ER#7479609 end
1357:
1358: x_comment := l_comment;
1359:
1389: IF p_calling_action = 'AUTO RELEASE' THEN
1390: FND_FILE.PUT_LINE(FND_FILE.LOG, 'Order '||TO_CHAR(p_order_number)
1391: ||': Credit check hold released.');
1392: ELSE
1393: FND_MESSAGE.Set_Name('ONT','OE_CC_HOLD_REMOVED');
1394: OE_MSG_PUB.Add;
1395: END IF;
1396: --
1397: IF G_debug_flag = 'Y'
1968: ELSE
1969: l_calling_activity := InitCap(OE_Verify_Payment_PUB.G_init_calling_action);
1970: END IF;
1971:
1972: FND_MESSAGE.Set_Name('ONT','OE_CC_HOLD_ACT_COM');
1973: FND_MESSAGE.Set_Token('CALLING_ACTIVITY',l_calling_activity);
1974: FND_MESSAGE.Set_Token('CREDIT_CHECK_RULE',OE_Verify_Payment_PUB.G_credit_check_rule);
1975:
1976: l_hold_release_rec.release_comment := l_hold_release_rec.release_comment||SUBSTR(FND_MESSAGE.GET,1,2000);
1969: l_calling_activity := InitCap(OE_Verify_Payment_PUB.G_init_calling_action);
1970: END IF;
1971:
1972: FND_MESSAGE.Set_Name('ONT','OE_CC_HOLD_ACT_COM');
1973: FND_MESSAGE.Set_Token('CALLING_ACTIVITY',l_calling_activity);
1974: FND_MESSAGE.Set_Token('CREDIT_CHECK_RULE',OE_Verify_Payment_PUB.G_credit_check_rule);
1975:
1976: l_hold_release_rec.release_comment := l_hold_release_rec.release_comment||SUBSTR(FND_MESSAGE.GET,1,2000);
1977:
1970: END IF;
1971:
1972: FND_MESSAGE.Set_Name('ONT','OE_CC_HOLD_ACT_COM');
1973: FND_MESSAGE.Set_Token('CALLING_ACTIVITY',l_calling_activity);
1974: FND_MESSAGE.Set_Token('CREDIT_CHECK_RULE',OE_Verify_Payment_PUB.G_credit_check_rule);
1975:
1976: l_hold_release_rec.release_comment := l_hold_release_rec.release_comment||SUBSTR(FND_MESSAGE.GET,1,2000);
1977:
1978: --ER#7479609 end
1972: FND_MESSAGE.Set_Name('ONT','OE_CC_HOLD_ACT_COM');
1973: FND_MESSAGE.Set_Token('CALLING_ACTIVITY',l_calling_activity);
1974: FND_MESSAGE.Set_Token('CREDIT_CHECK_RULE',OE_Verify_Payment_PUB.G_credit_check_rule);
1975:
1976: l_hold_release_rec.release_comment := l_hold_release_rec.release_comment||SUBSTR(FND_MESSAGE.GET,1,2000);
1977:
1978: --ER#7479609 end
1979:
1980:
2195: ELSE
2196: l_calling_activity := InitCap(OE_Verify_Payment_PUB.G_init_calling_action);
2197: END IF;
2198:
2199: FND_MESSAGE.Set_Name('ONT','OE_CC_HOLD_ACT_COM');
2200: FND_MESSAGE.Set_Token('CALLING_ACTIVITY',l_calling_activity);
2201: FND_MESSAGE.Set_Token('CREDIT_CHECK_RULE',OE_Verify_Payment_PUB.G_credit_check_rule);
2202:
2203: l_hold_release_rec.release_comment := l_hold_release_rec.release_comment||SUBSTR(FND_MESSAGE.GET,1,2000);
2196: l_calling_activity := InitCap(OE_Verify_Payment_PUB.G_init_calling_action);
2197: END IF;
2198:
2199: FND_MESSAGE.Set_Name('ONT','OE_CC_HOLD_ACT_COM');
2200: FND_MESSAGE.Set_Token('CALLING_ACTIVITY',l_calling_activity);
2201: FND_MESSAGE.Set_Token('CREDIT_CHECK_RULE',OE_Verify_Payment_PUB.G_credit_check_rule);
2202:
2203: l_hold_release_rec.release_comment := l_hold_release_rec.release_comment||SUBSTR(FND_MESSAGE.GET,1,2000);
2204: --ER#7479609 end
2197: END IF;
2198:
2199: FND_MESSAGE.Set_Name('ONT','OE_CC_HOLD_ACT_COM');
2200: FND_MESSAGE.Set_Token('CALLING_ACTIVITY',l_calling_activity);
2201: FND_MESSAGE.Set_Token('CREDIT_CHECK_RULE',OE_Verify_Payment_PUB.G_credit_check_rule);
2202:
2203: l_hold_release_rec.release_comment := l_hold_release_rec.release_comment||SUBSTR(FND_MESSAGE.GET,1,2000);
2204: --ER#7479609 end
2205:
2199: FND_MESSAGE.Set_Name('ONT','OE_CC_HOLD_ACT_COM');
2200: FND_MESSAGE.Set_Token('CALLING_ACTIVITY',l_calling_activity);
2201: FND_MESSAGE.Set_Token('CREDIT_CHECK_RULE',OE_Verify_Payment_PUB.G_credit_check_rule);
2202:
2203: l_hold_release_rec.release_comment := l_hold_release_rec.release_comment||SUBSTR(FND_MESSAGE.GET,1,2000);
2204: --ER#7479609 end
2205:
2206: OE_Holds_PUB.Release_Holds
2207: ( p_api_version => 1.0
2385: IF x_conversion_status.COUNT > 0
2386: THEN
2387: x_cc_result_out := 'FAIL';
2388:
2389: fnd_message.set_name('ONT', 'OE_CC_CONVERSION_ERORR');
2390: FND_MESSAGE.Set_Token('FROM',p_header_rec.transactional_curr_code);
2391: FND_MESSAGE.Set_Token('TO',p_limit_curr_code );
2392: FND_MESSAGE.Set_Token('CONV',
2393: NVL(p_credit_check_rule_rec.user_conversion_type,'Corporate'));
2386: THEN
2387: x_cc_result_out := 'FAIL';
2388:
2389: fnd_message.set_name('ONT', 'OE_CC_CONVERSION_ERORR');
2390: FND_MESSAGE.Set_Token('FROM',p_header_rec.transactional_curr_code);
2391: FND_MESSAGE.Set_Token('TO',p_limit_curr_code );
2392: FND_MESSAGE.Set_Token('CONV',
2393: NVL(p_credit_check_rule_rec.user_conversion_type,'Corporate'));
2394: OE_Credit_Engine_GRP.G_currency_error_msg :=
2387: x_cc_result_out := 'FAIL';
2388:
2389: fnd_message.set_name('ONT', 'OE_CC_CONVERSION_ERORR');
2390: FND_MESSAGE.Set_Token('FROM',p_header_rec.transactional_curr_code);
2391: FND_MESSAGE.Set_Token('TO',p_limit_curr_code );
2392: FND_MESSAGE.Set_Token('CONV',
2393: NVL(p_credit_check_rule_rec.user_conversion_type,'Corporate'));
2394: OE_Credit_Engine_GRP.G_currency_error_msg :=
2395: SUBSTR(FND_MESSAGE.GET,1,1000) ;
2388:
2389: fnd_message.set_name('ONT', 'OE_CC_CONVERSION_ERORR');
2390: FND_MESSAGE.Set_Token('FROM',p_header_rec.transactional_curr_code);
2391: FND_MESSAGE.Set_Token('TO',p_limit_curr_code );
2392: FND_MESSAGE.Set_Token('CONV',
2393: NVL(p_credit_check_rule_rec.user_conversion_type,'Corporate'));
2394: OE_Credit_Engine_GRP.G_currency_error_msg :=
2395: SUBSTR(FND_MESSAGE.GET,1,1000) ;
2396:
2391: FND_MESSAGE.Set_Token('TO',p_limit_curr_code );
2392: FND_MESSAGE.Set_Token('CONV',
2393: NVL(p_credit_check_rule_rec.user_conversion_type,'Corporate'));
2394: OE_Credit_Engine_GRP.G_currency_error_msg :=
2395: SUBSTR(FND_MESSAGE.GET,1,1000) ;
2396:
2397: G_result_out := 'FAIL' ;
2398: x_cc_result_out := 'FAIL' ;
2399:
2398: x_cc_result_out := 'FAIL' ;
2399:
2400: IF p_credit_check_rule_rec.credit_hold_level_code = 'ORDER'
2401: THEN
2402: fnd_message.set_name('ONT', 'OE_CC_CONVERSION_ERORR');
2403: FND_MESSAGE.Set_Token('FROM',p_header_rec.transactional_curr_code);
2404: FND_MESSAGE.Set_Token('TO',p_limit_curr_code );
2405: FND_MESSAGE.Set_Token('CONV',
2406: NVL(p_credit_check_rule_rec.user_conversion_type,'Corporate'));
2399:
2400: IF p_credit_check_rule_rec.credit_hold_level_code = 'ORDER'
2401: THEN
2402: fnd_message.set_name('ONT', 'OE_CC_CONVERSION_ERORR');
2403: FND_MESSAGE.Set_Token('FROM',p_header_rec.transactional_curr_code);
2404: FND_MESSAGE.Set_Token('TO',p_limit_curr_code );
2405: FND_MESSAGE.Set_Token('CONV',
2406: NVL(p_credit_check_rule_rec.user_conversion_type,'Corporate'));
2407:
2400: IF p_credit_check_rule_rec.credit_hold_level_code = 'ORDER'
2401: THEN
2402: fnd_message.set_name('ONT', 'OE_CC_CONVERSION_ERORR');
2403: FND_MESSAGE.Set_Token('FROM',p_header_rec.transactional_curr_code);
2404: FND_MESSAGE.Set_Token('TO',p_limit_curr_code );
2405: FND_MESSAGE.Set_Token('CONV',
2406: NVL(p_credit_check_rule_rec.user_conversion_type,'Corporate'));
2407:
2408: OE_MSG_PUB.ADD;
2401: THEN
2402: fnd_message.set_name('ONT', 'OE_CC_CONVERSION_ERORR');
2403: FND_MESSAGE.Set_Token('FROM',p_header_rec.transactional_curr_code);
2404: FND_MESSAGE.Set_Token('TO',p_limit_curr_code );
2405: FND_MESSAGE.Set_Token('CONV',
2406: NVL(p_credit_check_rule_rec.user_conversion_type,'Corporate'));
2407:
2408: OE_MSG_PUB.ADD;
2409: x_return_status := FND_API.G_RET_STS_ERROR;
2804: x_cc_result_out := 'FAIL' ;
2805:
2806: OE_DEBUG_PUB.Add(' Currency conversion failed ');
2807:
2808: fnd_message.set_name('ONT', 'OE_CC_CONVERSION_ERORR');
2809: FND_MESSAGE.Set_Token('FROM',x_error_curr_tbl(1).usage_curr_code);
2810: FND_MESSAGE.Set_Token('TO',p_limit_curr_code );
2811: FND_MESSAGE.Set_Token('CONV',
2812: NVL(p_credit_check_rule_rec.user_conversion_type,'Corporate'));
2805:
2806: OE_DEBUG_PUB.Add(' Currency conversion failed ');
2807:
2808: fnd_message.set_name('ONT', 'OE_CC_CONVERSION_ERORR');
2809: FND_MESSAGE.Set_Token('FROM',x_error_curr_tbl(1).usage_curr_code);
2810: FND_MESSAGE.Set_Token('TO',p_limit_curr_code );
2811: FND_MESSAGE.Set_Token('CONV',
2812: NVL(p_credit_check_rule_rec.user_conversion_type,'Corporate'));
2813: OE_Credit_Engine_GRP.G_currency_error_msg :=
2806: OE_DEBUG_PUB.Add(' Currency conversion failed ');
2807:
2808: fnd_message.set_name('ONT', 'OE_CC_CONVERSION_ERORR');
2809: FND_MESSAGE.Set_Token('FROM',x_error_curr_tbl(1).usage_curr_code);
2810: FND_MESSAGE.Set_Token('TO',p_limit_curr_code );
2811: FND_MESSAGE.Set_Token('CONV',
2812: NVL(p_credit_check_rule_rec.user_conversion_type,'Corporate'));
2813: OE_Credit_Engine_GRP.G_currency_error_msg :=
2814: SUBSTR(FND_MESSAGE.GET,1,1000) ;
2807:
2808: fnd_message.set_name('ONT', 'OE_CC_CONVERSION_ERORR');
2809: FND_MESSAGE.Set_Token('FROM',x_error_curr_tbl(1).usage_curr_code);
2810: FND_MESSAGE.Set_Token('TO',p_limit_curr_code );
2811: FND_MESSAGE.Set_Token('CONV',
2812: NVL(p_credit_check_rule_rec.user_conversion_type,'Corporate'));
2813: OE_Credit_Engine_GRP.G_currency_error_msg :=
2814: SUBSTR(FND_MESSAGE.GET,1,1000) ;
2815:
2810: FND_MESSAGE.Set_Token('TO',p_limit_curr_code );
2811: FND_MESSAGE.Set_Token('CONV',
2812: NVL(p_credit_check_rule_rec.user_conversion_type,'Corporate'));
2813: OE_Credit_Engine_GRP.G_currency_error_msg :=
2814: SUBSTR(FND_MESSAGE.GET,1,1000) ;
2815:
2816: G_result_out := 'FAIL' ;
2817: x_cc_result_out := 'FAIL' ;
2818:
2818:
2819:
2820: IF p_credit_check_rule_rec.credit_hold_level_code = 'ORDER'
2821: THEN
2822: fnd_message.set_name('ONT', 'OE_CC_CONVERSION_ERORR');
2823: FND_MESSAGE.Set_Token('FROM',x_error_curr_tbl(1).usage_curr_code);
2824: FND_MESSAGE.Set_Token('TO',p_limit_curr_code );
2825: FND_MESSAGE.Set_Token('CONV',
2826: NVL(p_credit_check_rule_rec.user_conversion_type,'Corporate'));
2819:
2820: IF p_credit_check_rule_rec.credit_hold_level_code = 'ORDER'
2821: THEN
2822: fnd_message.set_name('ONT', 'OE_CC_CONVERSION_ERORR');
2823: FND_MESSAGE.Set_Token('FROM',x_error_curr_tbl(1).usage_curr_code);
2824: FND_MESSAGE.Set_Token('TO',p_limit_curr_code );
2825: FND_MESSAGE.Set_Token('CONV',
2826: NVL(p_credit_check_rule_rec.user_conversion_type,'Corporate'));
2827:
2820: IF p_credit_check_rule_rec.credit_hold_level_code = 'ORDER'
2821: THEN
2822: fnd_message.set_name('ONT', 'OE_CC_CONVERSION_ERORR');
2823: FND_MESSAGE.Set_Token('FROM',x_error_curr_tbl(1).usage_curr_code);
2824: FND_MESSAGE.Set_Token('TO',p_limit_curr_code );
2825: FND_MESSAGE.Set_Token('CONV',
2826: NVL(p_credit_check_rule_rec.user_conversion_type,'Corporate'));
2827:
2828:
2821: THEN
2822: fnd_message.set_name('ONT', 'OE_CC_CONVERSION_ERORR');
2823: FND_MESSAGE.Set_Token('FROM',x_error_curr_tbl(1).usage_curr_code);
2824: FND_MESSAGE.Set_Token('TO',p_limit_curr_code );
2825: FND_MESSAGE.Set_Token('CONV',
2826: NVL(p_credit_check_rule_rec.user_conversion_type,'Corporate'));
2827:
2828:
2829: OE_MSG_PUB.ADD;
3048: OE_DEBUG_PUB.Add('Apply_Order_CC_Hold for Item category');
3049: OE_DEBUG_PUB.Add('currency = '|| p_header_rec.transactional_curr_code );
3050: OE_DEBUG_PUB.Add('checking category = '|| l_check_category_id );
3051:
3052: fnd_message.set_name('ONT', 'OE_CC_CONVERSION_ERORR');
3053: FND_MESSAGE.Set_Token('FROM',p_header_rec.transactional_curr_code );
3054: FND_MESSAGE.Set_Token('TO',l_limit_currency );
3055: FND_MESSAGE.Set_Token('CONV',
3056: NVL(p_credit_check_rule_rec.user_conversion_type,'Corporate'));
3049: OE_DEBUG_PUB.Add('currency = '|| p_header_rec.transactional_curr_code );
3050: OE_DEBUG_PUB.Add('checking category = '|| l_check_category_id );
3051:
3052: fnd_message.set_name('ONT', 'OE_CC_CONVERSION_ERORR');
3053: FND_MESSAGE.Set_Token('FROM',p_header_rec.transactional_curr_code );
3054: FND_MESSAGE.Set_Token('TO',l_limit_currency );
3055: FND_MESSAGE.Set_Token('CONV',
3056: NVL(p_credit_check_rule_rec.user_conversion_type,'Corporate'));
3057: OE_Credit_Engine_GRP.G_currency_error_msg :=
3050: OE_DEBUG_PUB.Add('checking category = '|| l_check_category_id );
3051:
3052: fnd_message.set_name('ONT', 'OE_CC_CONVERSION_ERORR');
3053: FND_MESSAGE.Set_Token('FROM',p_header_rec.transactional_curr_code );
3054: FND_MESSAGE.Set_Token('TO',l_limit_currency );
3055: FND_MESSAGE.Set_Token('CONV',
3056: NVL(p_credit_check_rule_rec.user_conversion_type,'Corporate'));
3057: OE_Credit_Engine_GRP.G_currency_error_msg :=
3058: SUBSTR(FND_MESSAGE.GET,1,1000) ;
3051:
3052: fnd_message.set_name('ONT', 'OE_CC_CONVERSION_ERORR');
3053: FND_MESSAGE.Set_Token('FROM',p_header_rec.transactional_curr_code );
3054: FND_MESSAGE.Set_Token('TO',l_limit_currency );
3055: FND_MESSAGE.Set_Token('CONV',
3056: NVL(p_credit_check_rule_rec.user_conversion_type,'Corporate'));
3057: OE_Credit_Engine_GRP.G_currency_error_msg :=
3058: SUBSTR(FND_MESSAGE.GET,1,1000) ;
3059: G_result_out := 'FAIL' ;
3054: FND_MESSAGE.Set_Token('TO',l_limit_currency );
3055: FND_MESSAGE.Set_Token('CONV',
3056: NVL(p_credit_check_rule_rec.user_conversion_type,'Corporate'));
3057: OE_Credit_Engine_GRP.G_currency_error_msg :=
3058: SUBSTR(FND_MESSAGE.GET,1,1000) ;
3059: G_result_out := 'FAIL' ;
3060: x_cc_result_out := 'FAIL' ;
3061:
3062:
3061:
3062:
3063: IF p_credit_check_rule_rec.credit_hold_level_code = 'ORDER'
3064: THEN
3065: fnd_message.set_name('ONT', 'OE_CC_CONVERSION_ERORR');
3066: FND_MESSAGE.Set_Token('FROM',p_header_rec.transactional_curr_code );
3067: FND_MESSAGE.Set_Token('TO',l_limit_currency );
3068: FND_MESSAGE.Set_Token('CONV',
3069: NVL(p_credit_check_rule_rec.user_conversion_type,'Corporate'));
3062:
3063: IF p_credit_check_rule_rec.credit_hold_level_code = 'ORDER'
3064: THEN
3065: fnd_message.set_name('ONT', 'OE_CC_CONVERSION_ERORR');
3066: FND_MESSAGE.Set_Token('FROM',p_header_rec.transactional_curr_code );
3067: FND_MESSAGE.Set_Token('TO',l_limit_currency );
3068: FND_MESSAGE.Set_Token('CONV',
3069: NVL(p_credit_check_rule_rec.user_conversion_type,'Corporate'));
3070:
3063: IF p_credit_check_rule_rec.credit_hold_level_code = 'ORDER'
3064: THEN
3065: fnd_message.set_name('ONT', 'OE_CC_CONVERSION_ERORR');
3066: FND_MESSAGE.Set_Token('FROM',p_header_rec.transactional_curr_code );
3067: FND_MESSAGE.Set_Token('TO',l_limit_currency );
3068: FND_MESSAGE.Set_Token('CONV',
3069: NVL(p_credit_check_rule_rec.user_conversion_type,'Corporate'));
3070:
3071: OE_MSG_PUB.ADD ;
3064: THEN
3065: fnd_message.set_name('ONT', 'OE_CC_CONVERSION_ERORR');
3066: FND_MESSAGE.Set_Token('FROM',p_header_rec.transactional_curr_code );
3067: FND_MESSAGE.Set_Token('TO',l_limit_currency );
3068: FND_MESSAGE.Set_Token('CONV',
3069: NVL(p_credit_check_rule_rec.user_conversion_type,'Corporate'));
3070:
3071: OE_MSG_PUB.ADD ;
3072: x_return_status := FND_API.G_RET_STS_ERROR;
3906: );
3907:
3908: IF x_return_status='S'
3909: THEN
3910: FND_MESSAGE.Set_Name('ONT','OE_CC_CMGT_REVIEW');
3911: FND_MESSAGE.Set_Token('REQUEST_ID',l_request_id);
3912: OE_MSG_PUB.Add;
3913: END IF;
3914:
3907:
3908: IF x_return_status='S'
3909: THEN
3910: FND_MESSAGE.Set_Name('ONT','OE_CC_CMGT_REVIEW');
3911: FND_MESSAGE.Set_Token('REQUEST_ID',l_request_id);
3912: OE_MSG_PUB.Add;
3913: END IF;
3914:
3915: IF G_debug_flag = 'Y'
4868: p_entity_code => 'HEADER'
4869: ,p_entity_id => p_header_rec.header_id
4870: ,p_header_id => p_header_rec.header_id );
4871:
4872: FND_MESSAGE.Set_Name('ONT','OE_CC_CMGT_REVIEW');
4873: FND_MESSAGE.Set_Token('REQUEST_ID',l_request_id);
4874: OE_MSG_PUB.Add;
4875: OE_MSG_PUB.Reset_Msg_Context('HEADER'); --bug 4503551
4876: END IF;
4869: ,p_entity_id => p_header_rec.header_id
4870: ,p_header_id => p_header_rec.header_id );
4871:
4872: FND_MESSAGE.Set_Name('ONT','OE_CC_CMGT_REVIEW');
4873: FND_MESSAGE.Set_Token('REQUEST_ID',l_request_id);
4874: OE_MSG_PUB.Add;
4875: OE_MSG_PUB.Reset_Msg_Context('HEADER'); --bug 4503551
4876: END IF;
4877:
4989: --FND_API.G_TRUE AND x_cc_result_out IN ('FAIL_HOLD', 'FAIL_NONE'))
4990: THEN
4991: -- Display the general message for the user on the screen
4992:
4993: FND_MESSAGE.Set_Name('ONT','OE_CC_HLD_GENERAL_MSG');
4994:
4995: OE_MSG_PUB.Add;
4996: END IF;
4997:
4997:
4998: IF G_release_status = 'RELEASED'
4999: THEN
5000:
5001: FND_MESSAGE.Set_Name('ONT','OE_CC_HOLD_REMOVED');
5002: OE_MSG_PUB.Add;
5003:
5004: END IF;
5005: