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.
GIVE AN OPTION TO SELECT FROM THE 2 VALUES USING THE FUNCTION MODULE "'F4IF_INT_TABLE_VALUE_REQUEST" AND DO THE VALIDATION TO CHECK IF IT ONE OF THOSE VALUES OR NOT ,THIS WAY THE USER WILL HAVE TO SELECT FROM THE 2 VALUES ONLY .BELOW IS THE CODE.
initialization.
PARAMETERS : zzzz(20).
data : tab type standard table of zstr1 with header line,
rettab type standard table of DDSHRETVAL with header line.
tab-name = '98'.
append tab.
tab-name ='99'.
append tab.
*DATA : TAB(20) type c occurs 0 with header line.
*at selection-screen output.
at selection-screen on value-request for zzzz.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
RETFIELD = 'NAME'
VALUE_ORG = 'S'
CALLBACK_PROGRAM = sy-cprog
TABLES
VALUE_TAB = tab
RETURN_TAB = rettab.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
zzzz = rettab-fieldval .
at selection-screen on ZZZZ.
if rettab-fieldval <> 98 AND rettab-fieldval <> 99.
message e001(zmessage1).
else.
zzzz = rettab-fieldval .
endif.<i></i><i></i><i></i>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| 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.