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

match code

Former Member
0 Likes
921

plzzzzz can anyone explain me the use of match code and how do u created that

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
820

Hi,

Match code is nothing but the Search help in Higher versions

It is same way from SE11 you have to create.

so from SE11 create it and use it.

reward if useful

regards,

Anji

7 REPLIES 7
Read only

Former Member
0 Likes
821

Hi,

Match code is nothing but the Search help in Higher versions

It is same way from SE11 you have to create.

so from SE11 create it and use it.

reward if useful

regards,

Anji

Read only

alex_m
Active Contributor
0 Likes
820

Matchcode is nothing but search help, from 4.6c onwards matchcode replaced by search help.

Read only

Former Member
0 Likes
820

Hi Ronie,

<b>Match Code</b> is nothing but a search help.

you can create one in se11 if its a report the declare like this in selection screen

p_id like zxxx-id obligatory matchcode object zmatch.

<b>create a match code in se11</b> for vendor master say!!

if its dialog program

then in the attributes of the field under search help give zmatch

IF YOU WANT SEARCH HELP BASED ON MULTIPLE THING THEN YOU HAVE TO GO FOR COLLECTIVE SEARCH HELP WHERE YOU LIST ALL YOUR ELEMENTARY SEARCH HELPS

LIKE IN HERE

VENDOR BY COMANY,VENDOR BYCUSTOMER ETC ARE ELEMENTARY SEARCH HELPS

Vendor if you see the Search Help, it gives you the option for Vendor by Customer, Vendors by COmpany Code etc etc.

THEN YOU CREATE A COLLECTIVE SEARCH HELP WHERE YOU GIVE ALL YOUR ELEMTARY SEARCH HELP.

SI IF YOU WANT TO ADD TO THIS LIKE

Vendor by Customer, Vendors by COmpany Code ,VENDOR BY TAX NUMBER1

GO TO SELL CREATA ASEARCH HELP ZTEST

GIVE SOME SHORT DESC

THEN IN SELECTION METHOD GIVE THE TABLE I.E LFA1

THEN UNDER SEARCH HELP PARAMETER

GIVE

LIFNR SELECT IMPORT EXPORT LPOS 1 SPOS 1 AND PRESS ENTER

BELOW THAT

STCD1 LPOS2 SPOS 2 AND THEN PRESS ENTER

SAVE IT.

THEN FIND THE COLLECTIVE SEARCH FOR VENDOR FIELD AND JUST THIS TO IT.

<<<<reward points if useful>>>>>>

All the best

Read only

Former Member
0 Likes
820

Hi Ronei,

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].

Thanks.

Note : Reward If helpful.

Read only

Former Member
0 Likes
820

hi,

Check this thread to get detailed info

Regards

Sailaja.

Read only

Former Member
0 Likes
820

HI,

When you dont have any search help for you filed in selection screen and there is a need to put a search you can go for match code objects.

Go to se11 --> search help , create a Zhelp and give the table names from where you need to put the data.

and in selection screen parameter,

parameter: P_help type char8 matchcode object <Zhelp>

reward if useful

regards,

nazeer

It is same way from SE11 you have to create.

so from SE11 create it and use it.

Read only

Former Member
0 Likes
820

Hi,

Matchcode objects are being replaced by search helps. This is good as search helps are easy to create. However, it has caused some confusion on how best to add search helps to a selection field.

The trick that I found is to keep your newly created search helps to a 4-character name. The Matchcode object name has this old 4-character limit. This trick is not documented anywhere in the system but it has been a great time saver for me. You can expand this concept by finding existing SAP search helps that are more than 4-characters, copy them to a 4-character name and presto, you have a new matchcode object available for use

Regards

Sudheer