Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

drop down required for select-options

Former Member
0 Likes
1,297

drop down required for select-options as displayed in VT01N 'shipment type'.

11 REPLIES 11
Read only

santhosh_patil
Contributor
0 Likes
1,196

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

Read only

0 Likes
1,196

can we do it for select-options

Read only

0 Likes
1,196

Hi,

i have no idea...

check out with others

---Patil

Read only

0 Likes
1,196

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.

Read only

0 Likes
1,196

when i am using vrm_values its not accepting saying ' type vrm values is unknown'

Read only

0 Likes
1,196

Hi,

use <b>TYPE-POOLS: VRM.</b>

---Patil

Read only

0 Likes
1,196

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.

Read only

0 Likes
1,196

Hi,

If u want that displaylike that then u have pass

wa_value-text = '0001 transport'. "has shown in the ex.

---Patil

Read only

alex_m
Active Contributor
0 Likes
1,196

Use FM VRM_SET_VALUES.

Read only

Former Member
0 Likes
1,196

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.

Read only

Former Member
0 Likes
1,196

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