402: --
403: -- Insert the comment text if comments exist
404: --
405: If (p_rec.comments is not null and p_rec.comment_id is null) then
406: hr_comm_api.ins(p_comment_id => p_rec.comment_id
407: ,p_source_table_name => 'PAY_ELEMENT_TYPES_F'
408: ,p_comment_text => p_rec.comments
409: );
410: -- Update the comments if they have changed
409: );
410: -- Update the comments if they have changed
411: ElsIf (p_rec.comment_id is not null and p_rec.comments <>
412: pay_etp_shd_nd.g_old_rec.comments) then
413: hr_comm_api.upd(p_comment_id => p_rec.comment_id
414: ,p_source_table_name => 'PAY_ELEMENT_TYPES_F'
415: ,p_comment_text => p_rec.comments
416: );
417: End If;