2010 Jun 01 9:49 AM
I have a selection screen with
Report name
Variant name
Variant fields
Variant fields is attached to a search help 'Z_Search_variant' and this search help fetches values based on "Report name" "Variant name" on the selection screen.
I am using
AT SELECTION-SCREEN ON VALUE-REQUEST FOR Variant_field
PERFORM f4_help_variant.
FORM f4_help_variant.
call function 'F4IF_FIELD_VALUE_REQUEST'
exporting
tabname = space
fieldname = space
SEARCHHELP = 'Z_SEARCH_VARIANT'
SHLPPARAM = 'REPORT'
DYNPPROG = ' '
DYNPNR = ' '
DYNPROFIELD = ' '
STEPL = 0
VALUE = Report
MULTIPLE_CHOICE = ' '
DISPLAY = ' '
SUPPRESS_RECORDLIST = 'X'
CALLBACK_PROGRAM = SY-REPID
CALLBACK_FORM = ' '
SELECTION_SCREEN = ' '
IMPORTING
USER_RESET =
TABLES
RETURN_TAB = return_tab
EXCEPTIONS
FIELD_NOT_FOUND = 1
NO_HELP_FOR_FIELD = 2
INCONSISTENT_HELP = 3
NO_VALUES_FOUND = 4
OTHERS = 5
.
How do I pass value to this search help? Currently I do not see this FM allowing this option? Any other options?
I have a selection screen with
Report name
Variant name
Variant fields
Variant fields is attached to a search help 'Z_Search_variant' and this search help fetches values based on "Report name" "Variant name" on the selection screen.
I am using
AT SELECTION-SCREEN ON VALUE-REQUEST FOR Variant_field
PERFORM f4_help_variant.
FORM f4_help_variant.
call function 'F4IF_FIELD_VALUE_REQUEST'
exporting
tabname = space
fieldname = space
SEARCHHELP = 'Z_SEARCH_VARIANT'
SHLPPARAM = 'REPORT'
DYNPPROG = ' '
DYNPNR = ' '
DYNPROFIELD = ' '
STEPL = 0
VALUE = Report
MULTIPLE_CHOICE = ' '
DISPLAY = ' '
SUPPRESS_RECORDLIST = 'X'
CALLBACK_PROGRAM = SY-REPID
CALLBACK_FORM = ' '
SELECTION_SCREEN = ' '
IMPORTING
USER_RESET =
TABLES
RETURN_TAB = return_tab
EXCEPTIONS
FIELD_NOT_FOUND = 1
NO_HELP_FOR_FIELD = 2
INCONSISTENT_HELP = 3
NO_VALUES_FOUND = 4
OTHERS = 5
.
How do I pass value to this search help? Currently I do not see this FM allowing this option? Any other options?
2010 Jun 01 9:59 AM
Hi Vinita,
wat i figured out from your problem is u need how to get values from FM so u can do it in this way..
READ TABLE it_return INTO wa_return INDEX 1.
IF sy-subrc = 0.
wa_output-vkorg = wa_return-fieldval.
ENDIF.
IF wa_output-vkorg IS NOT INITIAL.
MODIFY it_output FROM wa_output INDEX row_id * it_output is final ITAB
TRANSPORTING vkorg.
ENDIF.
CALL METHOD c_alv->refresh_table_display.
CLEAR: wa_return,it_return[],wa_output.
2010 Jun 01 9:59 AM
Hi,
pass these values--
TABNAME = 'ZMF_MAIN' --> table name of field
FIELDNAME = 'MFORMID' ---> field name
SEARCHHELP = 'ZMF_MFORM' --> search help name
DYNPPROG = SY-REPID ---> program name
DYNPNR = SY-DYNNR --> screen no
DYNPROFIELD = 'P_MFORM' ---> the screen field name wat u have declared in selection screen
2010 Jun 01 10:24 AM
You have created a custom search help 'Z_SEARCH_VARIANT'. It will fetch data based on the "selection method", why do you need to pass data to the search help ?
2010 Jun 01 10:40 AM
The search help was already created. I want to now call the search help from my selection report program.
And I pass values to the first two parameters of selection screen which should internally call this search help and return value on the third field of the selection screen.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |