Get Domain Fixed Value Description – Better Way

To get domain fixed value description, in past, I have used function modules DD_DOMVALUES_GET, DD_DOMA_GET and select from table DD07L. All these methods require you to specify domain name or some would say require you to hardcode domain name. Recently I have found this elegant method, which doesn’t require you to specify domain name. As long as you have variable defined with reference to domain or data element or table field which would eventually be linked to domain it works seamlessly.