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: 

Match code with a dependent field

former_member308319
Participant
0 Kudos

Hello, I have a serie of entry parameters where there a match code, I need that this field (match code) will be dependent of a text parameter. For example, something like that :

SELECTION-SCREEN BEGIN OF BLOCK block02 WITH FRAME TITLE text-002.
  PARAMETERS:
    p_mona   TYPE ZTIPOSOL GROUP rad1 MATCHCODE OBJECT ZFIMC002, 
    p_fcomp  TYPE SY-DATUM MODIF ID A OBLIGATORY.
SELECTION-SCREEN END OF BLOCK block02
1 REPLY 1

Sandra_Rossi
Active Contributor
0 Kudos

You should read how search helps work, in the SAP Library.

Using MATCHCODE OBJECT is not mandatory, whileas you type the screen fields to components of the same DDIC structure or table, see for instance :

PARAMETERS x TYPE scounter-carrid.
PARAMETERS y TYPE scounter-countnum.

People who don't have time to learn the concept of search helps often prefer to use the function module F4IF_INT_TABLE_VALUE_REQUEST and statement AT SELECTION-SCREEN ON VALUE-REQUEST (no need of using a search help).

PS: "match code" don't exist anymore since 4.0 (but it's a metonym for "search help")