2007 Jul 05 9:55 AM
how to create a match code
on selection screen i have a field iwerk from table plko.
when i click on the selection screen it should display the values.
can any body help me regarding this?
2007 Jul 05 9:59 AM
Hi,
You can create it from transaction SE11. Matchcode is nothing but a search help.
Just create a search help and use it along with MATCH CODE OBJECT.
Regards,
Sesh
2007 Jul 05 9:57 AM
2007 Jul 05 9:59 AM
Hi,
You can create it from transaction SE11. Matchcode is nothing but a search help.
Just create a search help and use it along with MATCH CODE OBJECT.
Regards,
Sesh
2007 Jul 05 10:01 AM
2007 Jul 05 10:07 AM
Hello,
1. go to se11.
2.Select search help.
3.Enter a name starting with Z.
4.Create
5.Select elementary search help.
6.Give short description
7.Selection method as your table name.
8Dialog type display value immediatly
9.Enter the parameters you want to display and their data elemnts below.
10.Make the parameter which you want to populate on your screen field as EXP - TICK
<b>11.Dont forget to reward[</b>
Message was edited by:
RAKESH S R
2007 Jul 05 10:09 AM
hi Mohammed,
Here is the process to create search helps !
Creation of Elementary Search Help:
The creation of an elementary search help is described below with example.
1. Open TCode SE11 for DDIC objects -> select the radio button for Search helps -> give the name of the search help you want to create, ex ZSH004.Click on Create .
2. In the next screen select the option Elementary search help .
3. Now you need to provide the short text for your search help.
4. In the selection method provide the table or view name you want to use for data retrieval. Ex. ZMARA_01.
5. Select the dialog type according to your scope, ex. display values immediately.
6. Then provide the search help parameters i.e. the interface parameters for the search help .
7. The ZMARA_01 table fields MATNR, ERSDA,MHDHB,MHDHT,MHDRZ are provided by selecting the table fields , by doing this the data elements for these fields are automatically copied to the interface from the selection method.
8. Now define the type of parameter ( import or export ) here for the selection and return of values in runtime.
9. Provide the positions to these parameters to specify how they will be arranged in the hit list display.
10. Now save the object in the respective development class and check the same for errors and then activate .Finally the creation of a ESH ( ex: ZSH004 ) is complete and can be used for providing the input help.
You can test the operation of your search help by clicking F8.
The appearance of your search help will be like the fig. provided below.
Creation of Collective Search Helps:
The creation of an elementary search help is described below with example.
1. Open TCode SE11 for DDIC objects -> select the radio button for Search helps -> give the name of the search help you want to create, ex ZSH005.Click on Create .
2. In the next screen select the option Collective search help .
3. Now you need to provide the short text for your search help.
4. Select the dialog type according to your scope, ex. display values immediately.
5. Then provide the search help parameters i.e. the interface parameters for the search help .
6. The ZMARA_01 table fields MATNR, ERSDA,MHDHB are provided by selecting the table fields . Define the types for the parameters of a collective search help by assigning a data element. Enter the name of the data element that describes the contents of the search help parameter in the Data element field.
7. In the Definition tab page enter the parameters of the collective search help.
Select the Imp flag if it is an import parameter. Select the Exp flag if it is an export parameter. Optional-You can assign the parameter a default value in the Default value field.
8.
Next, Select the tab Included Search help and provide the elementary search helps you want to include here . In the current example 2 elementary search helps ZSH004 and ZSH003 are being included.
9. Create a parameter assignment between all the included search helps and the collective search help here ( Note that at-least one of the parameter assignment must be done for linking the includes ) .This can be done by clicking on the tab
10. Parameter assignment .ex. we have done the parameter assignment here by using the MATNR field for both the includes i.e. the selection paths should be based on the provided material number.
11. After performing the steps save the search help and activate for use in the later stage.
Additions to the Search helps :
There are few additional functionalities which can be achieved by providing the following :
Hot Key: The hot key is used to select the elementary search help from the collective search help and to enter the restrictions in the dialog box for restricting values directly from the entry field. If the user often searches for values using the same search help, this procedure can save time. The hot key is available only if for the relevant screen field there is an entry in the Screen Painter in the Search help attribute, that is, if this attribute is not initial.
Search Help Exits: In exceptions, you might have to change the standard flow defined by the search help with a search help exit. In this case enter the name of the search help exit in the corresponding field. In the later part of the document one example has been provided for describing and understanding Search Help Exits.
Reward if helpful !
Regards,
Ranjita
2007 Jul 05 9:59 AM
hi ,
A match code is nothing but a search help , so create a search help first and then use that search help name in ur report under the addition match code ..
Reward if helpful !
Regards,
Ranjita
2007 Jul 05 10:00 AM
Hello,
Check out this and reward if found helpfull.
For creating matchcode you have to go to se11 and create search help.
Searchelp name is the matchcode object.
In the code below zplr_sbcon is my search help.
Regards Rakesh.
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
PARAMETERS: pa_lifnr TYPE zplr_summary-lifnr MATCHCODE OBJECT zplr_sbcon OBLIGATORY.
PARAMETERS: pa_mnr TYPE zplr_summary-mnr AS LISTBOX VISIBLE LENGTH 13.
PARAMETERS: pa_mjahr TYPE zplr_summary-mjahr OBLIGATORY.
SELECTION-SCREEN END OF BLOCK b1.
2007 Jul 05 10:03 AM
2007 Jul 05 10:05 AM
Hi
download the document for this site :
web.mit.edu/sapr3/docs/webdocs/dontindex/pdf/mcqc.pdf
www.saptechies.com/what-is-a-matchcode/
help.sap.com/saphelp_40b/helpdata/en/4f/991f82446d11d189700000e8322d00/applet.htm -
regards
Shiva
2007 Jul 05 10:22 AM
Hi,
Match Code:
Match code is a tool to help us to search for data records in the system. Match Codes are an efficient and user-friendly search aid where key of a record is unknown.
Levels defined in Match Code:
· Match Code Object.
· Match Code Id.
A match code Id is a one character ID that can be a letter or a number, the number 0 to 9 are reserved for us to create our own Match Code Ids for a SAP defined Matchcode object.
If the data in one of the base tables of a matchcode ID changes, the matchcode data has to be updated. The update type stipulates when the matchcode is to be updated and how it is to be done. The update type also specifies which method is to be used for Building matchcodes. You must specify the update type when you define a matchcode ID.
The following update types are possible:
· Update type A: The matchcode data is updated asynchronously to database changes.
· Update type S: The matchcode data is updated synchronously to database changes.
· Update type P: The matchcode data is updated by the application program.
· Update type I: Access to the matchcode data is managed using a database view.
· Update type L: Access to the matchcode is achieved by calling a function module.
Match Code Creation:
A match code can be built in two different ways:
· Logical structure: The matchcode data is set up temporarily at the moment when the match code is accessed. (Update type I, k).
· Physical Structure: The match code data is physically stored in a separate table in the database. (Update type A, S, P).
Match code can contain fields from several tables whereas an index can contain fields from only one table. Match code objects can be built on transparent tables and pooled and cluster tables.
Regards,
Bhaskar