cancel
Showing results for 
Search instead for 
Did you mean: 

Display DDIC Description instead of Code

Former Member
0 Kudos

Hello,

Perhaps somebody can help me with the following problem:

I have defined some status codes in the DDIC and like to display this status codes in an ALV table. Every code, e.g. '01' for 'In Process', has a description stored in DDIC.

How can I display this description instead of the number value?

I know I can use the Dropdownbykey element for displaying DDIC texts, but thats only a workaround and not a solution.

One other question: How can I create a InputElement with F4 help for this status values with the possibility to enter the code manually (--> after Enter conversion of the code to the ddic text).

Kinds regards,

Dominik

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Dominik,

i dont understand the comment "but thats only a workaround and not a solution."

What type of cell editor do want to use ?

How should the value get into cell ?

You can always do value substitution in an internal table for displaying.

Calling the ddic functions to get domain values. (eg DOMAIN_VALUE_GET )

Otherwise the Dropdown UI elements are ideal for automatic text for id displays.

-


Q2: "How can I create a InputElement with F4 help for this status values with the possibility to enter the code manually "

Answer:

Create a domain for the status values.

Create conversion exit function modules (input and OUTPUT)

CONVERSION_EXIT_ZZxxx_INPUT

and

CONVERSION_EXIT_ZZxxx_OUTPUT

Place the value ZZxxx on the domain.

Code the functions so that for INPUT,

either Text value to actual status code is accepted and results in function

returning the Internal code value.

Code the output function so that full text or internal code can be used as source

value and the return value is always the text version.

dropdown support should come from domain when used in Context.

Search help automatic.

Cheers

Phil.

Cheers

Phil

dominik_ofenloch
Participant
0 Kudos

The problem with the dropdown solution is, that the dropdown box is also shown with down-arrow in ReadOnly Mode. In ALV tables the dropdown element works fine without the dropdown box. But how can I just display the DDIC description?

One Example:

Value of DDIC element: 01 / Description: In Progress

Output (Output is display only):

Status: 01 should look like --> Status: In Progress

Without any down-arrow for opening of one list.

Is it possible to hide the arrow?

Cheers,

Dominik