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

Execute MatchCode via Function Module

Former Member
0 Likes
1,948

Does anyone know the name of the standard Module that execute an specific match-code by passing the import and export parameters?

2 REPLIES 2
Read only

suresh_datti
Active Contributor
0 Likes
791

F4_SELECT_FROM_SEARCH_HELP.

~Suresh

Read only

Former Member
0 Likes
791

Hi,

Check this..

In PROCESS ON VALUE-REQUEST event...call the search help for the field using the function module F4IF_START_VALUE_REQUEST

Then from the return internal table move the values to the table control internal table..

Check this example of how to use this function module..

TYPE-POOLS: shlp.

DATA: sh TYPE shlp_descr_t.

DATA: lt_f4 LIKE ddshretval OCCURS 0 WITH HEADER LINE.

PARAMETERS: p_plnty TYPE plnty.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_plnty.

DATA: interface LIKE ddshiface OCCURS 0 WITH HEADER LINE.

DATA: v_plnnr TYPE plnnr.

DATA: v_plnal TYPE plnal.

sh-shlpname = 'PLKS'.

sh-shlptype = 'SH'.

CALL FUNCTION 'DD_SHLP_GET_DIALOG_INFO'

CHANGING

shlp = sh.

interface-shlpfield = 'PLNNR'.

interface-valfield = 'V_PLNNR'.

APPEND interface.

interface-shlpfield = 'PLNAL'.

interface-valfield = 'V_PLNAL'.

APPEND interface.

sh-interface[] = interface[].

DATA: t_return LIKE ddshretval OCCURS 0 WITH HEADER LINE.

DATA: v_subrc TYPE sysubrc.

CALL FUNCTION 'F4IF_START_VALUE_REQUEST'

EXPORTING

shlp = sh

disponly = ' '

IMPORTING

rc = v_subrc

TABLES

return_values = t_return.

Thanks,

Naren