‎2008 Feb 02 7:14 AM
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.
‎2008 Feb 02 8:53 AM
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.
‎2008 Feb 02 7:20 AM
‎2008 Feb 02 8:38 AM
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
‎2008 Feb 02 8:40 AM
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.
‎2008 Feb 02 8:53 AM
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.