Application Development 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: 

match codes

Former Member
0 Kudos

hi...

What are match codes?

Can u explain where they are used in the program?

1 ACCEPTED SOLUTION

Former Member
0 Kudos

hello pavan

Match code is similar to table index that gives list of possible values for either primary keys or non-primary keys.

4 REPLIES 4

former_member480923
Active Contributor
0 Kudos

This addition links the input field of the parameter to a search help search_help from the ABAP Dictionary. The name of the search help must be entered directly. For the input field of the parameter on the selection screen, the input help key is displayed. When the input help (F4) is requested, the user is displayed the hit list from the search help. When an entry is selected, the respective value is placed into the input field. If no search help for the specified name exists in the ABAP Dictionary, a message is displayed in the status line when the input help is requested.

The addition MATCHCODE OBJECT cannot be used together with the additions AS CHECKBOX or RADIOBUTTON.

Hope that Helps

Anirban M.

0 Kudos

Hi,

Matchcodes are nothing but the Search helps.

THere are used to provide Value Help for the screen fields.

You can create a search help from SE11.

Regards,

Sesh

Former Member
0 Kudos

HI.

Match code nothing but Search help.

refer this code for search help depending on the values of an internal ta

PARAMETERS : p_ccgrp LIKE rkpln-ksgru. "Cost Center Group

*Input help for Cost Center Group

AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_ccgrp.

TYPES: BEGIN OF ty_ccenter_group,

setname TYPE setnamenew,

descript TYPE settext,

END OF ty_ccenter_group.

DATA : it_ccenter_group TYPE TABLE OF ty_ccenter_group.

CLEAR it_ccenter_group.

SELECT a~setname

b~descript

INTO TABLE it_ccenter_group

FROM setheader AS a INNER JOIN

setheadert AS b ON

asubclass EQ bsubclass AND

asetname EQ bsetname

WHERE a~setclass EQ '0101' AND

b~langu EQ sy-langu.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

retfield = 'SETNAME'

dynpprog = v_repid

dynpnr = '1000'

dynprofield = 'P_CCGRP'

value_org = 'S'

TABLES

value_tab = it_ccenter_group.

Reward all helpfull answers.

Regards.

Jay

Former Member
0 Kudos

hello pavan

Match code is similar to table index that gives list of possible values for either primary keys or non-primary keys.