‎2008 Dec 10 5:42 AM
Hi All,
How can we restrict the values for the matchcode objects on the selection screen????
Regards,
‎2008 Dec 10 5:50 AM
hi,
append values to internal table and use this function module.
F4IF_INT_TABLE_VALUE_REQUEST.
‎2008 Dec 10 5:56 AM
Hi Gautham,
It's not working. I've already tried this. its giving an error that we cannot use on value request with match code objects.
‎2008 Dec 10 6:20 AM
hi,
use ,
DATA : BEGIN OF igrund OCCURS 0,
grund LIKE t157e-grund,
grtxt LIKE t157e-grtxt,
END OF igrund.
SELECT grund grtxt
FROM t157e
INTO TABLE igrund
WHERE spras = 'EN'
AND bwart = '161'.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'GRUND'
dynpprog = sy-repid
dynpnr = sy-dynnr
dynprofield = 'GRUND'
value_org = 'S'
TABLES
value_tab = igrund
EXCEPTIONS
parameter_error = 1
no_values_found = 2
OTHERS = 3
.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
regards.
Edited by: Nareddy Sivaram Reddy on Dec 10, 2008 7:21 AM