i have a parameter called zzzzz
i want that the user can chosse only '99' and '88'
how i do it?
thanks.
Request clarification before answering.
u can put F4 help for the field giving those two values
and if the user enters any other value
AT SELECTION-SCREEN.
IF PAR NOT IN ('99,'88')
MESSAGE 'NOT VALID VALUE' TYPE 'E'.
ENDIF.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ,
Use the following code .
Regards,
Ankur Bhandari
Kindly appropriate reward points by clicking the star on the left of reply,if the solution is helpful.
_________________________________________________________
selection-screen.
PARAMETERS: p_idnt TYPE c DEFAULT '88' OBLIGATORY
AS LISTBOX VISIBLE LENGTH 12 USER-COMMAND list.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_idnt.
*putting the names in the list box for selection
PERFORM list_box.
----
FORM list_box .
CLEAR gw_value.
gw_value-key = gc_1.
gw_value-text = '88'.
APPEND gw_value TO gt_id.
gw_value-key = gc_2.
gw_value-text = '99'.
APPEND gw_value TO gt_id.
*this function module is used to fill list box
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
id = gv_id
values = gt_id.
CLEAR gw_value.
REFRESH gt_id.
ENDFORM.
| User | Count |
|---|---|
| 5 | |
| 5 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.