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: 

Matchcode

Former Member
0 Kudos

Hi All,

I have created a Z search help in which i have given two fields Run Date (Laufd) and Identification (Laufi). I have checked Import and Export for both the fields.

I am using that search help in my program using MATCHCODE. My requirement is, when i click on one field in the search help the other parameter should get populated automatically on the selection screen. How can i do this? How should i use MATCHCODE in my program to fulfill the requirement.

Regards,

Nikhil.

4 REPLIES 4

Former Member
0 Kudos

hi nikhil,

u have to use collective search help for that.

collective search is the combination of two or more elementary search helps.

pls reward if helpful.

varma_narayana
Active Contributor
0 Kudos

Hi Nikhil..

Note: the EXP (Export flag enables this feature . So set the EXP for both the fields )

if you want to acheive this functionality you have to attach the Seach help to the field in the Ztable directly.

Steps:

Open the table in SE11 In change mode.

Place the Cursor on the field where u want to attach.

Select the button call Search Help .

Enter the Seach help name. It will propose the Parameters (fields) . Just Copy.

Activate the table.

Now in your program there is no need to use the MATCH Code option.

reward if Helpful.

0 Kudos

Hi,

I am creating a search help for the fields in the standard table viz.Fields : LAUFD, LAUFI Table: REGUV. So i dont have change authorization as it is a standard table and it does not have a search help already provided.

Is there any other method for serving the purpose?

Regards,

Nikhil.

Simha_
Employee
Employee
0 Kudos

Hi,

Match Code Object is nothing but F4 Help.

F4 Help is used to give the Possible values for the Particular Field.

To create a F4 help,

Step1 : Go to Se11 and Select Search Help and Enter One Name and Click Create.

Step2 : Enter your Table name in 'Selection Method' Field.

Step3 : Enter the field Name and tick the Flags Imp and Exp and Type 1 and 2 in Lpos,

Spos fields.

Step4 : Save it and In se38 Write the Code Like This,

data Empname like Zemp-empname matchcode object [enter name that u Created].

Search help is a ABAP Dictionary object used to define possible values (F4) help. You can link a search help to a parameter as follows:

PARAMETERS .. MATCHCODE OBJECT <SEARCH_HELP>.

The search help <search_help> must be defined in the ABAP Dictionary. The system now automatically displays the input help button for the field on the screen and activates the F4 key for it. When the user requests input help, the hit list of the search help appears, and when he or she selects an entry, the corresponding export parameter is placed in the input field. The predecessors of search helps in the ABAP Dictionary were called matchcode objects, hence the name of the addition in the PARAMETERS statement. Existing matchcode objects are still supported.

Previously in older versions there were no search help and we use matchcodes.

But in newer releases we are aquainted with search help and matchcodes have become obsolete..

Cheers,

Simha.