2009 Jan 16 8:58 AM
hi all,
i have a module pool,where i have field of table displayed as list box.i wants the the values of the list box to be fethched from another maintenance table,how can i do it.please let me know.thanks alot.
Regards
2009 Jan 16 9:04 AM
Hi Kiran,
You can make use of the function modules:
VRM_SET_VALUESto fill the list box with values that you retreive from different table.
Best Regards,
Ram.
hi all,
i have a module pool,where i have field of table displayed as list box.i wants the the values of the list box to be fethched from another maintenance table,how can i do it.please let me know.thanks alot.
Regards
2009 Jan 16 9:04 AM
Hi Kiran,
You can make use of the function modules:
VRM_SET_VALUESto fill the list box with values that you retreive from different table.
Best Regards,
Ram.
2009 Jan 16 9:09 AM
Hi,
Refer to the demo programs DEMO_DROPDOWN_LIST_BOX and DEMO_DYNPRO_DROPDOWN_LISTBOX for your requirement.
regards,
Advait
2009 Jan 16 9:11 AM
Hi,
Please use following code
TYPE-POOLS vrm.
DATA values TYPE vrm_values WITH HEADER LINE.
TABLES: ZTOB <ur other maintenance table>.
SELECT * FROM ztob.
values-text = ztob-zbond.
values-key = ztob-ztype.
APPEND values.
ENDSELECT.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
id = <Module pool field name>
values = values[]
EXCEPTIONS
id_illegal_name = 1
OTHERS = 2.
2009 Jan 16 9:11 AM
2009 Jan 16 9:12 AM
Hi.. hope this code is useful to u.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
id = 'P_OBTYP'
values = vrm_values
EXCEPTIONS
ID_ILLEGAL_NAME = 1
OTHERS = 2.
Regards,
KP
2009 Jan 16 9:15 AM
Hi Kiran.
Try this.
PROCESS BEFORE OUTPUT.
*
" passing related data from internal table to Table control on screen
MODULE pass_related_table.
PROCESS AFTER INPUT.
PROCESS ON VALUE-REQUEST.
FIELD sc_list_box_value MODULE get_related_table.
Hope it helps.
Sayan.
2009 Jan 19 2:22 AM
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |