I am in a ABAP report and want to display a Message (information message). By using the addition of 'WITH' and &1, &2 I can include variables and so on. But how is it with field names or field labels. Some users have set their SAP Gui to displaying the names, some labels. How can I display field name/field label depending on the users setting?
Code:
Message-No.: 123
This is the message called &1 and here comes my field name or label &2 .
MESSAGE i123 WITH 'MessageTest' **'fieldname' or 'fieldlabel'**
I am not sure about the part in between ** **. Depending on the users setting (Utilities --> Settings --> Data Browser --> Keyword) either fieldname is shown or fieldlabel.