‎2008 Jun 20 10:41 AM
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
‎2008 Jun 20 10:59 AM
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
‎2008 Jun 20 11:45 AM
‎2008 Jun 20 12:50 PM
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.
‎2008 Jun 20 1:40 PM