How to display the text values of HR Infotype fields
I have a requirement to display the text values of fields in HR Infotypes. The trick here is that my routine is called by many other ABAP programs and passes my table-name and field-name and return the text value, if any.
I have found many function modules that return text values, and that's the problem. I cannot find one that does the job for all of them. If I find one that does 'PA0001-BUKRS' it will not do 'PA0001-ORGEH' or 'PA0002-GESCH'. Any advice?
I'd write one myself. If you have table and field then you know data element via table DD03L. Once you know the data element you can find the domain via table DD04L. The domain leads to table DD07T, which contains your values.
This was first published in April 2005