This function accepts a GLN and returns the name of the Location/ associated Trading Partner and, if the location does not exist, the name of the Tading Partner.
GetTradingPartnerLocationName('GLN')
GetTradingPartnerLocationName('4043077000005')