Skip to Content
0
Dec 10, 2022 at 01:11 PM

name_mappings dinamic

85 Views

Hello,
I would like to use name mapping dynamically...is it possible?

Example:
be done this way:
DATA(lt_mappings) = NEW /ui2/cl_json=>name_mappings( ( abap = 'data element' json = 'short description' )

and not necessarily like this:
( abap = 'BUKRS' json = 'Company' )

The idea is:
the 'BUKRS' field is dynamic for any field in the table and the 'Company' is the respective description.