‎2008 Feb 19 6:18 AM
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.
‎2008 Feb 19 6:41 AM
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^
‎2008 Feb 19 6:23 AM
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
‎2008 Feb 19 6:29 AM
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
‎2008 Feb 19 6:41 AM
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^