Skip to Content
author's profile photo Former Member
Former Member

Match Code Objects

Hi ,

What is Match code Objects ? Use of that ? How to create for Z***** table particular field ? How to use that in ABAP Report ?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Feb 02, 2007 at 10:46 AM

    So we have to use Search Help instead of Match code Right ?

    Can you tell me the steps to create a search help for an Field in Z**** Table and use that in ABAP report and make F4 option work for it ?

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Kumar,

      • A search help can be created in ABAP Dictionary ( tcode se11 )

      • Create a new search help (say myHelp) , choose Elementary search help (simple one), select Definitions tab, enter the table name(say myTable) in "Text Table" text box.

      • Then enter the column to be used (say myField) for this help in search help parameter, choose Import/Export, give Lpos as 1, and activate. ( You can add more columns from the same table here).

      • In report, code as

      parameter p1 like myTable-myField matchcode object myHelp.

      • when you execute this report, p1 will have a f4 help enabled. The help list will have all values from myTable for field myField.

  • author's profile photo Former Member
    Former Member
    Posted on Feb 02, 2007 at 10:41 AM

    For many entry fields, but not all, SAP provides a search function called a Matchcode. Matchcodes allow you to select a value from a list or search for a value by categories of data if there are many possibilities.

    Types of Matchcodes

    Matchcodes fall into three basic categories:

    1) Short list or hit list

    The values are listed on one screen. For longer lists, you may need to scroll down to see all the values.

    2) Restrict Value Range

    Many entries are available for the field. A number of tabbed screens with different categories display so that you can enter your search criteria.

    3) Calendar search

    A calendar-type dialog box is displayed so that you can select day, month, and year. This is used in date fields such as invoice posting date.

    Matchcodes were replaced with Search Helps starting with Release 4.0. Please use search helps to assign an input help to a field.

    Existing matchcodes were automatically converted to search helps. A matchcode object is hereby converted to a collective search help with the same name. Each matchcode ID of the matchcode object is converted into an elementary search help with the same name and assigned to the collective search help created from the matchcode object.

    A matchcode is a means of finding data records stored in the system. The matchcode is defined in the ABAP Dictionary in two steps:

    You first define the relevant tables and fields for the search in a matchcode object. A matchcode object describes the set of all possible search paths for a search string.

    You then create one or more matchcode IDs for a matchcode object. A matchcode ID describes a special search path for a search string. The matchcode ID defines the fields or field combinations to be used in the search.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 02, 2007 at 10:54 AM

    Thanks . Solved

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.