‎2007 May 17 9:37 AM
drop down required for select-options as displayed in VT01N 'shipment type'.
‎2007 May 17 9:40 AM
Hi
Check out..this example
data: i_value TYPE vrm_values,
wa_value LIKE LINE OF i_value.
PARAMETERS : p_field TYPE dd03l-fieldname AS LISTBOX
VISIBLE LENGTH 80 OBLIGATORY.
INITIALIZATION.
*-- Populate List Box
*-- TEMKSV - Legacy Value
wa_value-key = 'TEMKSV'.
wa_value-text = 'Legacy Key'.
APPEND wa_value TO i_value.
CLEAR: wa_value.
*-- Installation
wa_value-key = 'INSTLN'.
wa_value-text = 'Installation'.
APPEND wa_value TO i_value.
CLEAR: wa_value.
Setting the selection
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
id = 'P_FIELD'
values = i_value.
-
Patil
‎2007 May 17 9:42 AM
‎2007 May 17 9:45 AM
‎2007 May 17 9:47 AM
Hi,
List box is not possible for select-options.
There is one alternative, if you want them in such a way, then add two parameters and make them as list boxes.
s_vbeln-low = p_one.
s_vbeln-high = p_two.
s_vbeln-sign = 'I'.
s_vbeln-option = 'BT'.
append s_vbeln.
clear s_vbeln.
But, in this case, there can not be any extensions., we can have only intervals.
Regards
Sailaja.
‎2007 May 17 9:57 AM
when i am using vrm_values its not accepting saying ' type vrm values is unknown'
‎2007 May 17 10:01 AM
‎2007 May 17 10:22 AM
is printing only description but i need values and descrition like
0001 transport
0002 shipment
know its printing only transport but not full as stated above.
‎2007 May 17 10:28 AM
Hi,
If u want that displaylike that then u have pass
wa_value-text = '0001 transport'. "has shown in the ex.
---Patil
‎2007 May 17 9:41 AM
‎2007 May 17 9:42 AM
Hi chayaarungupta,
It is a list box. You can make Text box as list box from attributes.
using VRM functions you can add list content/
Reward if useful.
‎2007 May 17 9:42 AM
Hi,
Is it a selction-screen OR a screen you create with SE51 ( screen painter ) because the solution is different in both case.
[1]. Drop-down for Selection-Screen.
PARAMETERS: p_augru LIKE vbak-augru VISIBLE LENGTH 10 AS LISTBOX.
This will show order reason values as Drop-down on selection screen. You can use addition VISIBLE LENGTH n AS LISTBOX with any "parameter" you want.
[2]. Drop-down for screen variable created using SE51.
- Display the screen layout using screen painter.
- Switch to change mode
- Double-click the variable you are insterested in having list-box.
- The "field attribute" screen will open.
- On this screen there is a field called "Dropdown". In this field select 'listbox' option.
- Also, if required set the visible length ( Vis. length) field with appropriate length so when the listbox is display, it has enough length to show description.
Thanks,
Ravinder