This function accepts a GLN and returns the name of the location of the corresponding system partner and, if the location does not exist, the name of the system partner.
GetOwnLocationName('GLN')
GetOwnLocationName('4043077000005')