2014 Jul 15 7:37 AM
Hi All ;
I used the 'F4IF_FIELD_VALUE_REQUEST' function for add search help to the selection screen.
The problem is that I want to add an if-else condition for the function.Now the function is working for all
selection fields.How can I add a criteria for if-else.
The funtion like below ;
CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
EXPORTING
tabname = 'T023T'
fieldname = 'MATKL'
SEARCHHELP = 'Z_MATKL'
** SHLPPARAM = ' '
* DYNPPROG = sy-repid
* DYNPNR = sy-dynnr
* DYNPROFIELD =
** STEPL = ''
** VALUE = ' '
** MULTIPLE_CHOICE = ' '
** DISPLAY = ' '
** SUPPRESS_RECORDLIST = ' '
** CALLBACK_PROGRAM = ' '
** CALLBACK_FORM = ' ' .
*TABLES
* RETURN_TAB = return_f4.
* EXCEPTIONS
** FIELD_NOT_FOUND = 1.
** NO_HELP_FOR_FIELD = 2.
** INCONSISTENT_HELP = 3.
** NO_VALUES_FOUND = 4.
** OTHERS = 5 .
*
*if return_f4[] is not initial.
Regards
Fırtına
Hi All ;
I used the 'F4IF_FIELD_VALUE_REQUEST' function for add search help to the selection screen.
The problem is that I want to add an if-else condition for the function.Now the function is working for all
selection fields.How can I add a criteria for if-else.
The funtion like below ;
CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
EXPORTING
tabname = 'T023T'
fieldname = 'MATKL'
SEARCHHELP = 'Z_MATKL'
** SHLPPARAM = ' '
* DYNPPROG = sy-repid
* DYNPNR = sy-dynnr
* DYNPROFIELD =
** STEPL = ''
** VALUE = ' '
** MULTIPLE_CHOICE = ' '
** DISPLAY = ' '
** SUPPRESS_RECORDLIST = ' '
** CALLBACK_PROGRAM = ' '
** CALLBACK_FORM = ' ' .
*TABLES
* RETURN_TAB = return_f4.
* EXCEPTIONS
** FIELD_NOT_FOUND = 1.
** NO_HELP_FOR_FIELD = 2.
** INCONSISTENT_HELP = 3.
** NO_VALUES_FOUND = 4.
** OTHERS = 5 .
*
*if return_f4[] is not initial.
Regards
Fırtına
2014 Jul 15 7:45 AM
Hi
Please elaborate the issue with the code that you have written.
2014 Jul 15 7:50 AM
Hi,
You call this Function module in a event AT SELECTION ON VALUE REQUEST FOR <input_field>.
Regards,
Vijay
2014 Jul 15 7:56 AM
hi,
as vijay said the only way is use evenet AT SELECTION-SCREEN ON VALUE REQUSET FOR p_field. (where p_field is ur required field for which u want to set search help)..
regards...
vinay reddy..
2014 Jul 15 8:35 AM
Hi Vinay ;
I added the code like below but it didnt work. Thanks for your reply,im waiting your another solutions.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR SO_MATK9-LOW.
Regards.
Fırtına.
2014 Jul 15 8:53 AM
Hi YIGIT,
Please make changes in code as shown in below.
CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
EXPORTING
tabname = 'T023T'
fieldname = 'MATKL'
searchhelp = 'Z_MATKL'
TABLES
return_tab = return_f4
EXCEPTIONS
field_not_found = 1
no_help_for_field = 2
inconsistent_help = 3
no_values_found = 4
others = 5 .
LOOP AT return_f4 INTO wa_return_f4.
MOVE wa_return_tab-fieldval TO so_matk9-low.
ENDLOOP.
Regards,
Pravin
2014 Jul 16 7:00 PM
HI,
End the AT SELECTION-SCREEN event after if-else condition by calling other event ex. start-of-selection or any other event of a report. Otherwise the entire logic following AT SELECTION-SCREEN comes under it.