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

matchcode objects

Former Member
0 Likes
758

Hi

can anyone tell me matchcode objects. diff b/w matchcode and searchhelp and process on value rerequest please.

need sample code also on that. i need to create a matchcode pls post the process

thanks in advance

4 REPLIES 4
Read only

Former Member
0 Likes
543

Hi,

A search help is a ABAP Dictionary object used to define possible values (F4) help ( see Input Help in the ABAP Dictionary). You can link a search help to a parameter as follows:

PARAMETERS <p> ... MATCHCODE OBJECT <search_help>.

The search help <search_help> must be defined in the ABAP Dictionary. The system now automatically displays the input help button for the field on the screen and activates the F4 key for it. When the user requests input help, the hit list of the search help appears, and when he or she selects an entry, the corresponding export parameter is placed in the input field.

The predecessors of search helps in the ABAP Dictionary were called matchcode objects, hence the name of the addition in the PARAMETERS statement. Existing matchcode objects are still supported.

PARAMETERS p_carrid TYPE s_carr_id 
           MATCHCODE OBJECT demo_f4_de.

The search help DEMO_F4_DE is defined in the ABAP Dictionary. The search help reads the columns CARRID and CARRNAME from the database table SCARR. Only CARRNAME is listed, but CARRID is flagged as an export parameter. When you choose a line, the airline code CARRID is placed in the input field.

for more info go through this links:

http://help.sap.com/saphelp_40b/helpdata/en/cf/21ef1f446011d189700000e8322d00/content.htm

http://help.sap.com/saphelp_nw04/helpdata/EN/41/f6b237fec48c67e10000009b38f8cf/content.htm

Regards

Adil

Read only

Former Member
0 Likes
543

This message was moderated.

Read only

Former Member
0 Likes
543

hi match code objects are used to get the standard functionality in the report f4 help ..

check this simple example..

report .

tables: pa0002 .

select-options:s_pernr for pa0002-pernr .

by using this we can get standard function of the help like in the pa30 tcode

report .

tables: pa0002 .

select-options:s_pernr for pa0002-pernr matchcode object PREM.

Read only

Former Member
0 Likes
543

This message was moderated.