Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Matchcode Objects

Former Member
0 Likes
487

Hi All,

How can we restrict the values for the matchcode objects on the selection screen????

Regards,

3 REPLIES 3
Read only

GauthamV
Active Contributor
0 Likes
458

hi,

append values to internal table and use this function module.

F4IF_INT_TABLE_VALUE_REQUEST.

Read only

Former Member
0 Likes
458

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.

Read only

Former Member
0 Likes
458

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