cancel
Showing results for 
Search instead for 
Did you mean: 
Subscribe

i have a parameter called zzzzz

i want that the user can chosse only '99' and '88'

how i do it?

thanks.

0 Likes
View Entire Topic
Former Member
0 Likes

HI

if you want to show error when the user selects other than 99 & 88 tehn validate in the at selection-screen.

at selecton-screen.

if p_zzzz not in ( '99' , '88' ).

message e001(zer).

endif.

otherwise you can use listbox to load 99 & 88 so that user can select only 99 & 88.

here is sample program for listbox

TYPE-POOLS: VRM.

DATA: NAME TYPE VRM_ID,

LIST TYPE VRM_VALUES,

VALUE LIKE LINE OF LIST.

PARAMETERS PS_PARM(5) type c AS LISTBOX VISIBLE LENGTH 5

INITIALIZATION.

NAME = 'PS_PARM'.

VALUE-KEY = '99'

VALUE-TEXT = '99.

APPEND VALUE TO LIST.

VALUE-KEY = '88'.

VALUE-TEXT = '88'.

APPEND VALUE TO LIST.

CALL FUNCTION 'VRM_SET_VALUES'

EXPORTING

ID = NAME

VALUES = LIST.

regards

Message was edited by: Harikishore Sreenivasulu

Message was edited by: Harikishore Sreenivasulu