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

Regarding list

Former Member
0 Likes
519

Hi ALL

this is regarding function module VRM_SET_VALUES,

CALL FUNCTION 'VRM_SET_VALUES'

EXPORTING

id = name " here ia m passing parameter P_INT

values = list. " here the internal table with data

In below select query I am using this.

select bukrs

from ekko

into table i_ekko

where lifnr eq p_int.

but I am not getting any value to p_int parameter, so i could not able get correct data.

so please help me on this.

Regards,

vinesh.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
506

hi

good

check this code

REPORT ZLIST.

TYPE-POOLS: VRM.

DATA: NAME TYPE VRM_ID,

LIST TYPE VRM_VALUES,

VALUE LIKE LINE OF LIST.

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

AT SELECTION-SCREEN OUTPUT.

NAME = 'PS_PARM'.

VALUE-KEY = '1'.

VALUE-TEXT = 'LINE 1'.

APPEND VALUE TO LIST. VALUE-KEY = '2'.

VALUE-TEXT = 'LINE 2'.

APPEND VALUE TO LIST.

CALL FUNCTION 'VRM_SET_VALUES' EXPORTING ID = NAME VALUES = LIST.

START-OF-SELECTION.

WRITE: / 'PARAMETER:', PS_PARM.

reward point if helpful.

thanks

mrutyun^

3 REPLIES 3
Read only

Former Member
0 Likes
506

Hi

I guess p_int (parameter) is not entered in selection screen.

The 'list' which you are passing to the parameter values must be of the type vrm_values as follows:

data: list type vrm_values.

Thanks

Vijay

PLZ reward points if helpful

Read only

Former Member
0 Likes
506

INITIALIZATION.

PERFORM storinglistbox1.

in initialization you need to perform above things like

FORM storinglistbox1 .

name1 = 'P_CINSP'.

value1-key = '1'.

value1-text = 'Yes'.

APPEND value1 TO list1.

value1-key = '2'.

value1-text = 'No'.

APPEND value1 TO list1.

value1-key = ' '.

value1-text = ' '.

APPEND value1 TO list1.

ENDFORM. " STORINGLISTBOX1

Regards,

Madan Mohan.k

Read only

Former Member
0 Likes
507

hi

good

check this code

REPORT ZLIST.

TYPE-POOLS: VRM.

DATA: NAME TYPE VRM_ID,

LIST TYPE VRM_VALUES,

VALUE LIKE LINE OF LIST.

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

AT SELECTION-SCREEN OUTPUT.

NAME = 'PS_PARM'.

VALUE-KEY = '1'.

VALUE-TEXT = 'LINE 1'.

APPEND VALUE TO LIST. VALUE-KEY = '2'.

VALUE-TEXT = 'LINE 2'.

APPEND VALUE TO LIST.

CALL FUNCTION 'VRM_SET_VALUES' EXPORTING ID = NAME VALUES = LIST.

START-OF-SELECTION.

WRITE: / 'PARAMETER:', PS_PARM.

reward point if helpful.

thanks

mrutyun^