2006 Jan 11 7:47 AM
Hi all,
i need to put the content of my specific table (10 lines) into a listbox, i would like to display the code + description into my list, like that :
EC myChoice1
ET myChoice2
MO myChoice3
...
Thanks
Regards,
2006 Jan 11 8:00 AM
Hi Tafkap,
Have a look at demo program DEMO_DYNPRO_DROPDOWN_LISTBOX.
Thanks
Lakshman
Hi Tafkap,
Have a look at demo program DEMO_DYNPRO_DROPDOWN_LISTBOX.
Thanks
Lakshman
2006 Jan 11 7:51 AM
Hi,
Use the POV event for this particular field and use the function mudule 'F4IF_INT_TABLE_VALUE_REQUEST' and pass the internal table with both fields in it. It must display as I remember we did it sometime before.
Regards,
Srikanth
2006 Jan 11 7:54 AM
Use this function module !
VRM_SET_VALUES
<b>if it did help you don't forget the reward!</b>
report z.
type-pools: vrm.
data: it_val type vrm_values,
w_line like line of it_val.
parameters p_bukrs like t001-bukrs as listbox
visible length 25 obligatory.
initialization.
select bukrs butxt from t001 into (w_line-key, w_line-text).
append w_line to it_val.
check p_bukrs is initial.
p_bukrs = w_line-key.
endselect.
at selection-screen output.
call function 'VRM_SET_VALUES'
exporting
id = 'P_BUKRS'
values = it_val.
end-of-selection.
write: / 'Company Code:', p_bukrs.
2006 Jan 11 8:00 AM
Hi Tafkap,
Have a look at demo program DEMO_DYNPRO_DROPDOWN_LISTBOX.
Thanks
Lakshman
2006 Jan 11 8:15 AM
Hi tafkap,
1. try this program (just copy paste)
important things are :
TYPE-POOLS: vrm.
CALL FUNCTION 'VRM_SET_VALUES'
DATA: it_val TYPE vrm_values,
AT SELECTION-SCREEN OUTPUT.
2.
REPORT abc .
TYPE-POOLS: vrm.
DATA: it_val TYPE vrm_values,
w_line LIKE LINE OF it_val.
PARAMETERS p_diff LIKE t001-bukrs AS LISTBOX
VISIBLE LENGTH 16 OBLIGATORY .
*----
INITIALIZATION.
SELECT bukrs butxt
INTO TABLE it_val
FROM t001.
AT SELECTION-SCREEN OUTPUT.
----
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
id = 'P_DIFF'
values = it_val.
regards,
amit m.
2006 Jan 11 8:21 AM
2006 Jan 11 10:25 AM
hi
you can use this function module.
in the RETFIELD mention your dbtable from which you are fetching data into internal table.
and in VALUE_TAB mention your internal table in which your values are stored
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
DDIC_STRUCTURE = ' '
RETFIELD = ' '
PVALKEY = ' '
DYNPPROG = ' '
DYNPNR = ' '
DYNPROFIELD = ' '
STEPL = 0
WINDOW_TITLE =
VALUE = ' '
VALUE_ORG = 'S'
MULTIPLE_CHOICE = ' '
DISPLAY = ' '
CALLBACK_PROGRAM = ' '
CALLBACK_FORM = ' '
MARK_TAB =
IMPORTING
USER_RESET =
TABLES
VALUE_TAB =
FIELD_TAB =
RETURN_TAB =
DYNPFLD_MAPPING =
EXCEPTIONS
PARAMETER_ERROR = 1
NO_VALUES_FOUND = 2
OTHERS = 3
2006 Jan 11 10:25 AM
hi
you can use this function module.
in the RETFIELD mention your dbtable from which you are fetching data into internal table.
and in VALUE_TAB mention your internal table in which your values are stored
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
DDIC_STRUCTURE = ' '
RETFIELD = ' '
PVALKEY = ' '
DYNPPROG = ' '
DYNPNR = ' '
DYNPROFIELD = ' '
STEPL = 0
WINDOW_TITLE =
VALUE = ' '
VALUE_ORG = 'S'
MULTIPLE_CHOICE = ' '
DISPLAY = ' '
CALLBACK_PROGRAM = ' '
CALLBACK_FORM = ' '
MARK_TAB =
IMPORTING
USER_RESET =
TABLES
VALUE_TAB =
FIELD_TAB =
RETURN_TAB =
DYNPFLD_MAPPING =
EXCEPTIONS
PARAMETER_ERROR = 1
NO_VALUES_FOUND = 2
OTHERS = 3
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |