17: Begin
18:
19: if(p_time_building_block_id is null) then
20:
21: hxc_timecard_message_helper.addErrorToCollection
22: (p_messages
23: ,'HXC_NULL_TRANS_BLOCK'
24: ,hxc_timecard.c_error
25: ,null
73: -- the reason is that we have no corresponding web beans
74: -- on the page at this point to set the item level errors
75: -- on.
76:
77: hxc_timecard_message_helper.addErrorToCollection
78: (p_messages
79: ,hr_message.last_message_name
80: ,hxc_timecard.c_error
81: ,null
93:
94: if(SQLERRM is not null) then
95: -- fix for 3266231, v115.6
96: -- adding 'BLK_AND_CHILDREN' for "MESSAGE_EXTENT"
97: hxc_timecard_message_helper.addErrorToCollection
98: (p_messages
99: ,'HXC_HXT_DEP_VAL_ORAERR'
100: ,hxc_timecard.c_error
101: ,null
113: else
114: -- Unable to determine error from stack or SQLERRM,
115: -- set to internal block deposit error.
116:
117: hxc_timecard_message_helper.addErrorToCollection
118: (p_messages
119: ,'HXC_XXXXXX_UNKN_BLOCK_DEP'
120: ,hxc_timecard.c_error
121: ,null
319: -- This means the id matched, but the ovn did not.
320: -- This should never happen when depositing a timecard
321: -- Some likely corruption going on, raise error.
322: --
323: hxc_timecard_message_helper.addErrorToCollection
324: (p_messages
325: ,'HXC_366502_INVALID_PARENT_DEP'
326: ,hxc_timecard.c_error
327: ,null
789:
790: IF(l_duplicate_block) THEN
791:
792: hr_utility.trace(' Adding error to table for block : ' || l_block.time_building_block_id);
793: hxc_timecard_message_helper.addErrorToCollection
794: (p_messages
795: ,'HXC_DUP_TIME_BUILDING_BLOCKS'
796: ,hxc_timecard.c_error
797: ,null
1276: hr_utility.trace('InvalidSecurityContext > ORG_ID of the person : '||l_organization_id);
1277:
1278: IF l_business_group_id <> fnd_profile.value('PER_BUSINESS_GROUP_ID') THEN
1279:
1280: hxc_timecard_message_helper.addErrorToCollection
1281: (p_messages
1282: ,'HXC_366551_INVALID_SEC_CONTEXT' -- You cannot submit this timecard because of invalid security context. Please logout and try again or contact your system administrator.
1283: ,hxc_timecard.c_error
1284: ,null
1323:
1324: --Pickup the last message(HXC_USAGE_DATA_MISSING) that has been set.
1325: hr_message.provide_error;
1326: if (hr_message.last_message_name is not null) then
1327: hxc_timecard_message_helper.addErrorToCollection
1328: (p_messages,
1329: hr_message.last_message_name,
1330: hxc_timecard.c_error,
1331: null,