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

searchhelp customizing tables

Former Member
0 Likes
620

Hi,

I am trying to define a searchhelp for COBRB-KONTY. SAP uses a special function that reads customizing tables. How can I implement this functionality for my own InputField?

Thanks,

Sai.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
580

Hi,

You can write your own searchhelp function.

Two examples are to be found in the documentation on InputField, section "Programmed matchcode help".

I suggest you proceed as follows:

- Find out which function is used in the SAP system to display the seachhelp (use ABAP debugging)

-Test the appropriate parameterization of this function with SE37, test environment

- Write an ABAP exit program like the one shown in Example 2 of the keyword documentation

Reward Points if found helpfull..

Cheers,

Chandra Sekhar.

4 REPLIES 4
Read only

Former Member
0 Likes
580

F4IF_INT_TABLE_VALUE_REQUEST

Read only

Former Member
0 Likes
580

Use the Function Module F4IF_INT_TABLE_VALUE_REQUEST

Check the sample code:

PARAMETERS : p_kunnr TYPE kna1-kunnr .

AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_kunnr.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

retfield = field_tab-fieldname

TABLES

value_tab = value_tab

field_tab = field_tab

return_tab = return_tab

EXCEPTIONS

parameter_error = 1

no_values_found = 2

OTHERS = 3.

IF sy-subrc = 0.

p_kunnr = return_tab-fieldval.

ENDIF.

reward if useful

Read only

Former Member
0 Likes
580

Look at this code..

data : t_return like ddshretval occurs 0 with header line.

at selection-screen on value-request for s_slno-low.

select DISTINCT ecod slno from zsettlement into CORRESPONDING FIELDS OF

TABLE itab.

SORT ITAB BY SLNO.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

  • DDIC_STRUCTURE = ' '

retfield = 'zsettlement-slno'

  • PVALKEY = ' '

DYNPPROG = sy-repid

DYNPNR = sy-dynnr

DYNPROFIELD = 'zsettlement-slno'

  • STEPL = 0

WINDOW_TITLE = 'Search Help'

  • VALUE = ' '

VALUE_ORG = 'S'

  • MULTIPLE_CHOICE = ' '

  • DISPLAY = ' '

  • CALLBACK_PROGRAM = ' '

  • CALLBACK_FORM = ' '

  • MARK_TAB =

  • IMPORTING

  • USER_RESET =

tables

value_tab = itab

  • FIELD_TAB =

RETURN_TAB = t_return

  • DYNPFLD_MAPPING =

  • EXCEPTIONS

  • PARAMETER_ERROR = 1

  • NO_VALUES_FOUND = 2

  • OTHERS = 3

.

IF sy-subrc <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

Regards

Prajwal K.

Read only

Former Member
0 Likes
581

Hi,

You can write your own searchhelp function.

Two examples are to be found in the documentation on InputField, section "Programmed matchcode help".

I suggest you proceed as follows:

- Find out which function is used in the SAP system to display the seachhelp (use ABAP debugging)

-Test the appropriate parameterization of this function with SE37, test environment

- Write an ABAP exit program like the one shown in Example 2 of the keyword documentation

Reward Points if found helpfull..

Cheers,

Chandra Sekhar.