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

about key fields

Former Member
0 Likes
611

hi experts,

Is that necessary that the first keyfield in the table should be of character type???

how to give matchcode for a field.is that the serch field????what all are the uses of giving match codes????

5 REPLIES 5
Read only

Former Member
0 Likes
585

HI,

No need of the chrecter type, you can give all types of fields in the Key fields,

Match ocde is replaced by the Search helps, why we use this search help is for the possible values for a field

Regards

Sudheer

Read only

Former Member
0 Likes
585

Hi Mani,

No, u can specify for numeric fields also , suppose if u take emp numbers it should be a primary key and numeric fields in some cases

matchcode is nothing but search help for providing F4 help and also collective searchhelp it means giving the values depends upon other relevant values

Reward points for helpful answers,

kiran.M

Read only

Former Member
0 Likes
585

Hi,

- It is not necessary that the first key field in the table should be of character type.

- Math code is nothing but search help is ‘F4’ functionality

- Math code can create by using the SE-11 in that select search help radio button, create it and give possible list of values for particular data element. This search help will create normally for customizing data elements for customizing fields.

Regards,

Vijay

Read only

Former Member
0 Likes
585

Hi Manikandan,

Key fields can be of any type.

To give matchcode (F4 help) you can either create search help in SE11 and then use that in ABAP program like :

PARAMETERS: p_pid TYPE zmproid OBLIGATORY MATCHCODE OBJECT

<b>zsearch_pid</b>. "WHERE zsearch_pid is the search help created in SE11.

OR you can create dynamic F4 help in ABAP program using FM 'F4IF_INT_TABLE_VALUE_REQUEST'

Hope this helps.

Regards,

Arun Mohan

<b>* Reward points if helpful.</b>

Read only

Former Member
0 Likes
585

Hi

not nessasary to put key fields as char

matchcodes are like search helps

reward if usefull

... MATCHCODE OBJECT search_help

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.

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.