4270: end if;
4271:
4272: exception
4273: WHEN g_invalid_responsibility THEN
4274: fnd_message.set_name('PER','HR_SSA_INVALID_RESPONSIBILITY');
4275: hr_utility.raise_error;
4276: when g_wf_error_state then
4277: -- HR_WF_TRANSACTION_ERROR_SS
4278: fnd_message.set_name('PER','HR_WF_TRANSACTION_ERROR_SS');
4274: fnd_message.set_name('PER','HR_SSA_INVALID_RESPONSIBILITY');
4275: hr_utility.raise_error;
4276: when g_wf_error_state then
4277: -- HR_WF_TRANSACTION_ERROR_SS
4278: fnd_message.set_name('PER','HR_WF_TRANSACTION_ERROR_SS');
4279: fnd_message.set_token('ERRORMSG',p_error_message,true);
4280: fnd_message.set_token('ERRORSTACK',p_errstack,true);
4281: hr_utility.raise_error;
4282: when g_no_transaction_id then
4275: hr_utility.raise_error;
4276: when g_wf_error_state then
4277: -- HR_WF_TRANSACTION_ERROR_SS
4278: fnd_message.set_name('PER','HR_WF_TRANSACTION_ERROR_SS');
4279: fnd_message.set_token('ERRORMSG',p_error_message,true);
4280: fnd_message.set_token('ERRORSTACK',p_errstack,true);
4281: hr_utility.raise_error;
4282: when g_no_transaction_id then
4283: null;
4276: when g_wf_error_state then
4277: -- HR_WF_TRANSACTION_ERROR_SS
4278: fnd_message.set_name('PER','HR_WF_TRANSACTION_ERROR_SS');
4279: fnd_message.set_token('ERRORMSG',p_error_message,true);
4280: fnd_message.set_token('ERRORSTACK',p_errstack,true);
4281: hr_utility.raise_error;
4282: when g_no_transaction_id then
4283: null;
4284: -- handle the proper error message propagation
4644: from hr_api_transactions
4645: where transaction_id=p_transaction_id;
4646: exception
4647: when no_data_found then
4648: -- get the fnd message and populate to the fnd message pub
4649: if(hr_multi_message.is_message_list_enabled) then
4650: fnd_message.set_name('PER', 'HR_SS_NO_TXN_DATA');
4651: hr_multi_message.add(p_message_type => hr_multi_message.G_ERROR_MSG );
4652: end if;
4646: exception
4647: when no_data_found then
4648: -- get the fnd message and populate to the fnd message pub
4649: if(hr_multi_message.is_message_list_enabled) then
4650: fnd_message.set_name('PER', 'HR_SS_NO_TXN_DATA');
4651: hr_multi_message.add(p_message_type => hr_multi_message.G_ERROR_MSG );
4652: end if;
4653: hr_utility.raise_error;
4654: when others then
4673: end if;
4674:
4675: exception
4676: when g_wf_not_initialzed then
4677: -- get the fnd message and populate to the fnd message pub
4678: if(hr_multi_message.is_message_list_enabled) then
4679: fnd_message.set_name('PER', 'HR_SS_WF_NOT_INITIALZED');
4680: hr_multi_message.add(p_message_type => hr_multi_message.G_ERROR_MSG );
4681: end if;
4675: exception
4676: when g_wf_not_initialzed then
4677: -- get the fnd message and populate to the fnd message pub
4678: if(hr_multi_message.is_message_list_enabled) then
4679: fnd_message.set_name('PER', 'HR_SS_WF_NOT_INITIALZED');
4680: hr_multi_message.add(p_message_type => hr_multi_message.G_ERROR_MSG );
4681: end if;
4682: hr_utility.raise_error;
4683: when others then
4690: -- finally close the sfl open notifications if any
4691: hr_sflutil_ss.closeopensflnotification(p_transaction_id);
4692:
4693: else
4694: -- get the fnd message and populate to the fnd message pub
4695: if(hr_multi_message.is_message_list_enabled) then
4696: fnd_message.set_name('PER', 'HR_SS_NULL_TXN_ID');
4697: hr_multi_message.add(p_message_type => hr_multi_message.G_ERROR_MSG );
4698: end if;
4692:
4693: else
4694: -- get the fnd message and populate to the fnd message pub
4695: if(hr_multi_message.is_message_list_enabled) then
4696: fnd_message.set_name('PER', 'HR_SS_NULL_TXN_ID');
4697: hr_multi_message.add(p_message_type => hr_multi_message.G_ERROR_MSG );
4698: end if;
4699: hr_utility.raise_error;
4700: end if;
4907:
4908: if(lv_ntf_sub_msg is null) then
4909: lv_process_display_name := hr_workflow_ss.getProcessDisplayName(p_item_type,p_item_key);
4910: else
4911: fnd_message.set_name('PER',lv_ntf_sub_msg);
4912: lv_process_display_name:= fnd_message.get;
4913: end if;
4914:
4915: exception
4908: if(lv_ntf_sub_msg is null) then
4909: lv_process_display_name := hr_workflow_ss.getProcessDisplayName(p_item_type,p_item_key);
4910: else
4911: fnd_message.set_name('PER',lv_ntf_sub_msg);
4912: lv_process_display_name:= fnd_message.get;
4913: end if;
4914:
4915: exception
4916: when others then