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: 

how to create a matchcode to a field in a report..

Former Member
0 Kudos

hi,

I am trying to creating a matchcode to a field in a report program,

by using syntax as follows..

parameter: p_cusno like zcust-custnum matchcode object custno 'z'.

is it correct till now..???

can u tell me what and how to do from here..

can any one suggest me where and how to do this creation of matchcode object and matchcode id should done..

Thanks in advance.

4 REPLIES 4

Former Member
0 Kudos

alejandro_bindi
Active Contributor
0 Kudos

Couple of comments:

- Matchcode name goes without quotes:


PARAMETERS:     p_bukrs   TYPE ztable-bukrs OBLIGATORY
                          DEFAULT dk_bukrs,
                p_zfield  TYPE ztable-zfield
                          MATCHCODE OBJECT zfield_sh_1.

- You must create a Search Help (that's how matchcodes are called nowadays) in transaction SE11. in my example code <b>zfield_sh_1</b> would be the Search Help. Refer to <a href="http://help.sap.com/saphelp_webas620/helpdata/en/cf/21ee2b446011d189700000e8322d00/content.htm">this link</a> for more help, in <a href="http://help.sap.com/saphelp_webas620/helpdata/en/cf/21ee5f446011d189700000e8322d00/content.htm">here</a> there's the creation process explanation.

Please award points if this helps.

Former Member
0 Kudos

hi

good

go throght this link which ll give you detail about the match code .

http://web.mit.edu/sapr3/docs/webdocs/dontindex/pdf/mcqc.pdf

thanks

mrutyun^

Former Member
0 Kudos

Hi

Match codes are search engines which will help to find the values for a fields

Now they are replaced with search helps in newer versions of SAP,

see the doc of search helps which is same as Match codes.

1) Elementary search helps describe a search path. The elementary search help must define where the data of the hit list should be read from (selection method), how the exchange of values between the screen template and selection method is implemented (interface of the search help) and how the online input help should be defined (online behavior of the search help).

2) Collective search helps combine several elementary search helps. A collective search help thus can offer several alternative search paths.

3)An elementary search help defines the standard flow of an input help.

4) A collective search help combines several elementary search helps. The user can thus choose one of several alternative search paths with a collective search help.

5)A collective search help comprises several elementary search helps. It combines all the search paths that are meaningful for a field.

6)Both elementary search helps and other search helps can be included in a collective search help. If other collective search helps are contained in a collective search help, they are expanded to the level of the elementary search helps when the input help is called.

http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee38446011d189700000e8322d00/content.htm

http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee45446011d189700000e8322d00/content.htm

pls go through this for search help creation

http://help.sap.com/saphelp_nw2004s/helpdata/en/41/f6b237fec48c67e10000009b38f8cf/content.htm

Search Help Exits:

Reward points if useful

Regards

Anji