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
hymavathi_oruganti
Active Contributor
0 Likes

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.

Former Member
0 Likes

no in the screen it will show only 88 and 99 like search-help

Former Member
0 Likes

Hi Rani,

Why dont you try this with list box.

in that only give 88 and 99.He has no other option to select othe ones.

Thanks&Regards,

Siri.

Former Member
0 Likes

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.

Former Member
0 Likes

you did not understand me/ i want a box to popup with the values99 88

Former Member
0 Likes

Use FM POPUP_WITH_TABLE at event at selection-screen on value request . Populate itab with values required & pass this itab for this FM .

hymavathi_oruganti
Active Contributor
0 Likes

for that u can use

f4if_table_value_request or vrm_set_values as suggested above

Former Member
0 Likes

Use function module with the following values.

POPUP_TO_DECIDE_LIST

TITEL : Decide between

TEXTLINE1: Choose between

T_SPOPLI :

1 88

2 99

Regards,

Ankur Bhandari

p.s

Kindly appropriate reward points by clicking the star on the left of reply,if the solution is helpful.