SAP ABAP Message Class 37 Message Number 042 (Specify both a field ID and a field name for the subkey)
Hierarchy
SAP_BASIS (Software Component) SAP Basis Component
   BC-DWB-TOO-SCR (Application Component) Screen Painter
     SCRP (Package) Screen Painter
Attribute
Message class 37  
Short Description Screen Painter    
Message Number 042  
Documentation status       Space: object requires documentation
Authorization check Error Message      
Changed On 20090618   
Message Text
Specify both a field ID and a field name for the subkey
Help Document

Diagnosis

When maintaining matchcode sub-keys for a screen field, you failed to specify either the field ID or the field name of the matchcode sub-key.

System Response

To assign a matchcode sub-key to a screen field, you must specify both the field ID and also a field name. Therefore the system rejects your input.

Procedure

With matchcode selections, matchcode sub-keys allow you not only to assign a selected value to the screen field where you make the matchcode entry, but also to fill other screen fields as a result of the selection.

When you define a matchcode object in the ABAP/4 Dictionary, you can assign a field ID to a matchcode field. If a matchcode record is selected, the value of the field is attached to the field ID (as with GET/SET parameters).
If there is a matchcode sub-key for this field ID, the system places the value attached to the field ID in the screen field whose field name is specified as the relevant sub-key field name.

The functionality requires you to specify both a field ID and a sub-key field name for a matchcode sub-key.

History
Last changed on/by 20140121  SAP 
SAP Release Created in