on 02-05-2007 6:34 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
94 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.