Skip to Content
0

Match code with a dependent field

Sep 21, 2017 at 03:56 PM

26

avatar image
Former Member

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
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Sandra Rossi Sep 21, 2017 at 04:47 PM
-1

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")

Share
10 |10000 characters needed characters left characters exceeded