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 OBJECT

Former Member
0 Likes
1,775

Hi All,

What is the Purpose of the declaring MATCHCODE OBJECT for SELECT-OPTIONS in the program? And what is PRCT in the below.

SELECT-OPTIONS: RPRCTR FOR GLPCT-RPRCTR MATCHCODE OBJECT PRCT

Akshitha.

5 REPLIES 5
Read only

Former Member
0 Likes
938

Hi,

PRCT is the search help name, it is used as F4 help (Possible entries for Profit Center Group/Profit center name).

MATCHCODE OBJECT for SELECT-OPTIONS in the program

This is the syntax used for attaching search help for select-option in the selection screen.

Thanks,

Sriram POnna.

Read only

Former Member
0 Likes
938

Hi Akshitha

MATCH CODE OBJECT is used to attach Serch Help to Parameters and Select-options.

Search Help : When you press F4, it will give list of values...you can select one among them to proceed further.

here PRCT is standrad serch help , using this syntax you r attaching that search help to RPRCTR.

Regards

Sandeep

Read only

0 Likes
938

but, my doubt is how should we know, what is the search help for what field.

Akshitha.

Read only

Former Member
0 Likes
938

Hi,

A matchcode is an aggregate database object which works like a special tool to help search for data records in

the system. Matchcodes are particularly useful for searching when the key of a record is not known.

Matchcodes require a two?step definition:

Define the matchcode object, including the relevant tables and fields which make up the matchcode,

to be later used by the match?code IDs.

¨

Define one or more matchcode IDs for a matchcode object. With the matchcode IDs, you define

different search criteria combinations and the screen layout order, based on the information contained

in the matchcode object.

Process to use matchcode:

To display a list of values, position the cursor on the field, click on the possible entries arrow, or press F4. If

the field is associated with a match?code or search help, a dialog box for selecting the search hot key will

appear. Select a key to pass to the dialog box for restricting the values for the search, and click on the

Continue icon. The list can be long and might not show all

entries, in which case it usually includes a function button Restrict Values, which can be used for entering

additional criteria or reducing the maximum number of hits to further restrict the values that are displayed. It

also includes some function buttons for sorting the display or finding a specific entry.

To select an entry, double click on it, or click once and press Enter. Value is transferred to the field. To

change the data in an input field, normally just type over it. If the field is for display only, no change is

possible, unless you have a button which can switch between display and change modes. Display?only fields

have the same color background as the screen's background.

Please reward points, if you find it useful.

Read only

Former Member
0 Likes
938

hI

This addition links the input fields for the selection criterion to a search help search_help from the ABAP Dictionary. You must specify the name of the search help directly. The addition has the same effect on the input fields as when it is used with a PARAMETERS statement for an input field for a parameter.