06-29-2007 7:11 AM
hi...
What are match codes?
Can u explain where they are used in the program?
06-29-2007 7:57 AM
hello pavan
Match code is similar to table index that gives list of possible values for either primary keys or non-primary keys.
06-29-2007 7:15 AM
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.
06-29-2007 7:16 AM
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
06-29-2007 7:23 AM
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
06-29-2007 7:57 AM
hello pavan
Match code is similar to table index that gives list of possible values for either primary keys or non-primary keys.