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

passing values to drop down box

Former Member
0 Likes
363

hi,

I have enhanced an infotype with z - field as drop down.

how to pass the values to it

hi,

I have enhanced an infotype with z - field as drop down.

how to pass the values to it

2 REPLIES 2
Read only

Former Member
0 Likes
349

use FM 'F4IF_INT_TABLE_VALUE_REQUEST'

or use type-pools vrm.

In PBO, hard code the values

Hope it helps,

saipriya

Read only

Former Member
0 Likes
349

Hi,


REPORT zXXXX.

TYPE-POOLS: vrm.

DATA: name TYPE vrm_id,
list TYPE vrm_values,
value LIKE LINE OF list.

PARAMETERS: p_list(10) AS LISTBOX VISIBLE LENGTH 10.

AT SELECTION-SCREEN OUTPUT.

name = 'P_LIST'.

value-key = cl_abap_char_utilities=>horizontal_tab.
value-text = 'Tab'.
APPEND value TO list.

value-key = ','.
value-text = 'Comma'.
APPEND value TO list.

value-key = ':'.
value-text = 'Colon'.
APPEND value TO list.

value-key = ';'.
value-text = 'Semi Colon'.
APPEND value TO list.

value-key = '.'.
value-text = 'Period'.
APPEND value TO list.


CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
id = name
values = list.

START-OF-SELECTION.

WRITE: / 'PARAMETER:', p_list.

Regards,

Omkar.