cancel
Showing results for 
Search instead for 
Did you mean: 

Table - view values instead of keys

Former Member
0 Kudos

Hello,

Is it possible to automatically display value in a table containg field with key?

Eg. table contains field of type NATSL (Nationality) - I wish for nationality description ('English') to be visible, not only code 'EN'.

I know I can simply create additional field and fill it by myself when creating internal table, but I want to know if there is a more automatic approach.

Best regards

Marcin Sawicki

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Marcin,

you could use GET_STATIC_ATTRIBUTES_TYPE( ) of the interface if_wd_context_node_info which will give you the reference

of CL_ABAP_STRUCTDESCR and use the appropriate method.

Regards

Anurag Chopra

Answers (2)

Answers (2)

Former Member
0 Kudos

Thenks!

Not exactly what I wanted, bot I think this answers my question.

Best regards

Marcin Sawicki

Former Member
0 Kudos

Where can I put such function call? I know how to get appropriate text, just not how to display it (except by defining new table column).

Former Member
0 Kudos

Hi,

I do not think there is any automatic method to serve the purpose.

You will have to create a new table column and proceed.

Thanks,

Aditya.

Former Member
0 Kudos

Hi

You have to display this in another field(i mean input field), as my understand is correct, table is field with some values

so based on that values fill other fields with different values. use on enter event of field or in wddoinit method based on some values fill another values.

Cheers,

Kris.