Function Modules for Matchcode IDs

You can search for matchcodes of update type K with the F4 help using a function module that has to be specified in the matchcode ID definition and that is called in the matchcode selection. This function module must have the following interface:

CALL FUNCTION fname

 

EXPORTING MCONAME = mcname

"Name of the matchcode object"

SELSTR = 'M.....'

"Matchcode entry"

The VALUES table has the Dictionary structure RSMVA with the fields:

FLDID(3) TYPE C =

field ID of the field to be transported to the screen

FLDLG(6) TYPE N =

length of the field to be transported

VALUE(79) TYPE C =

value to be defined

In the current version, only one line of the VALUES table is analyzed after returning from the function module. Only the search field (at which the matchcode selection was triggered) specified in the definition of the matchcode object is transported to the screen. The value that is returned must already have been converted to the external format.