The UN political affairs chief has underlined the critical need to ensure funding for the African Union Transition Mission in Somalia (ATMIS), warning that a shortfall could threaten plans to transfer security to the national forces by the end of next year.