254: -- a) During update, the structure column value or any
255: -- of the attribute values have actually changed.
256: -- b) During insert.
257: --
258: if nvl(fnd_profile.value('FLEXFIELDS:VALIDATE_ON_SERVER'),'N') = 'Y' then
259: hr_dflex_utility.ins_or_upd_descflex_attribs
260: (p_appl_short_name => 'PER'
261: ,p_descflex_name => 'PER_ORGANIZATION_UNITS'
262: ,p_attribute_category => p_rec.attribute_category
558: -- current row set both flags true
559: l_duplicate_bg := TRUE;
560: p_duplicate_org_warning := TRUE;
561: elsif -- if it is not the current row, but XBG option is yes then set warning
562: fnd_profile.value('HR_CROSS_BUSINESS_GROUP') = 'Y' then
563: p_duplicate_org_warning :=TRUE;
564: end if;
565:
566: if (crec.business_group_id = p_business_group_id) then -- if not current row but in same business group