717: superiorFound := false;
718: origSystemId := possibleSubordApproverIn.orig_system_id;
719: begin
720: positionStructureId :=
721: ame_engine.getHeaderAttValue2(attributeNameIn => ame_util.nonDefPosStructureAttr);
722: Exception
723: when others then
724: return(false);
725: end;
1546: raise noSurrogateException;
1547: end if;
1548: elsif(approverIn.orig_system = ame_util.posOrigSystem) then
1549: superiorOut.orig_system := ame_util.posOrigSystem;
1550: positionStructureId := ame_engine.getHeaderAttValue2(attributeNameIn =>ame_util.nonDefPosStructureAttr);
1551: if (positionStructureId is null) then
1552: select
1553: str.parent_position_id,
1554: wf_roles.name,
1740: raise noSurrogateException;
1741: end if;
1742: elsif(origSystemIn = ame_util.posOrigSystem) then
1743: begin
1744: positionStructureId := ame_engine.getHeaderAttValue2(attributeNameIn =>ame_util.nonDefPosStructureAttr);
1745: exception
1746: when others then
1747: positionStructureId := null;
1748: end;