‎2007 Aug 10 12:22 PM
‎2007 Aug 10 12:25 PM
hi
MATCHCODE OBJECT search_help
Effect
This addition links the input field of the parameter with a search help search_help from the ABAP Dictionary. The name of the search help must be entered directly. For the input field of the parameter on the selection screen , the input help key is displayed. When the input help (F4) is requested, the user is displayed the hit list from the search help. When an entry is selected, the respective value is placed into the input field. If no search help for the specified name exists in the ABAP Dictionary, a message is displayed in the status line when the input help is requested.
The addition MATCHCODE OBJECT cannot be used together with the additions AS CHECKBOX or RADIOBUTTON.
Note
The predecessors of search helps in the ABAP Dictionary were socalled matchcode objects. This is why you have the name MATCHCODE OBJECT for this addition. Matchcode objects that have not yet been replaced by search helps continue to be supported by this addition.
‎2007 Aug 10 12:23 PM
‎2007 Aug 10 12:24 PM
‎2007 Aug 10 12:25 PM
Match Code 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.
create a match code in se11 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.
Regards,
Pavan
‎2007 Aug 10 12:25 PM
hi
MATCHCODE OBJECT search_help
Effect
This addition links the input field of the parameter with a search help search_help from the ABAP Dictionary. The name of the search help must be entered directly. For the input field of the parameter on the selection screen , the input help key is displayed. When the input help (F4) is requested, the user is displayed the hit list from the search help. When an entry is selected, the respective value is placed into the input field. If no search help for the specified name exists in the ABAP Dictionary, a message is displayed in the status line when the input help is requested.
The addition MATCHCODE OBJECT cannot be used together with the additions AS CHECKBOX or RADIOBUTTON.
Note
The predecessors of search helps in the ABAP Dictionary were socalled matchcode objects. This is why you have the name MATCHCODE OBJECT for this addition. Matchcode objects that have not yet been replaced by search helps continue to be supported by this addition.
‎2007 Aug 10 12:25 PM
‎2007 Aug 10 12:26 PM
this is the solution -
http://help.sap.com/saphelp_nw04/helpdata/en/41/f6b237fec48c67e10000009b38f8cf/content.htm
don't forget to reward if usefull
S@meer
‎2007 Aug 10 12:27 PM
‎2007 Aug 10 12:28 PM
Hi,
<b>Purpose</b>
Use this procedure to find records in the SAP system when the key field values are not known. When selected, a matchcode shows ways of searching for lists of data. When a matchcode is used, the user does not need to enter information in all the search terms. The user can enter search terms that are known. For example, a user wants to update a customer record, but does not remember the customer's account number. A matchode allows the user to locate the particular data by entering information contained in the record. The system then displays a list of records matching the specifications.
<b>
Trigger</b>
Perform this procedure when field values are not known and help is needed to search for data records stored in the SAP system. Matchcodes are an efficient, user friendly aid to locating records for which the user does not know the key field values.
http://web.mit.edu/sapr3/docs/webdocs/getstarted/gsMATCHCODE.html
Regards
Sudheer