‎2007 Sep 24 6:16 AM
Hi experts
In my report, i have declared as follows.
PARAMETERS RNO TYPE ZRECPT-ZRNO.
in run time, its not displaying search help, sud i have to creat the search help for this field, if so can you tell me the steps.
Thanks in advance.
Regards
Rajaram
‎2007 Sep 24 7:22 AM
Hi
i am attching you a small code where that search help is created
see this you can undestand very easyly
AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_field-low.
PERFORM search_help_fieldname .
FORM search_help_field .
DATA: BEGIN OF itab_field OCCURS 0,
required fields.
END OF itab_field.
Selection query for HitList.(Which values you want to show in the Search Help)
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'fieldname'
dynpprog = sy-repid
dynpnr = sy-dynnr
dynprofield = 'S_field'
value_org = 'S'
TABLES
value_tab = itab_field
return_tab = t_return
EXCEPTIONS
parameter_error = 1
no_values_found = 2
OTHERS = 3.
IF sy-subrc EQ 0.
READ TABLE itab_charg INDEX 1. "transporting field
IF sy-subrc EQ 0.
MOVE itab_field-fieldTO s_field-low.
ENDIF.
ENDIF.
ENDFORM.
In this way we can handle the Search Help.
plz reward pts if helpful.
regards
naresh
‎2007 Sep 24 6:30 AM
Hi,
Search help should be created first and then it should be assigned in the parameter statement. Without creating u won't get the help. GOTO Se11 tcode Click Search help button and give ZRNO, and choose elementary search help. Then give ur table name and field name in the next screen. Save and activate it.
Then declare in coding, it will work.
Reward if useful.
‎2007 Sep 24 6:33 AM
Hi
http://help.sap.com/saphelp_nw2004s/helpdata/en/41/f6b237fec48c67e10000009b38f8cf/content.htm
Check the above link
Sail
‎2007 Sep 24 6:34 AM
Hi raja Ram,
For Standard tables like MARA there is no need for create a Search Help. Because for all standard Table fields search helps are already Created.
For Custom Table you need to create a Search help Your self and then only you can use this in Parameter option,
Thanks.
Reward If Helpful.
‎2007 Sep 24 7:22 AM
Hi
i am attching you a small code where that search help is created
see this you can undestand very easyly
AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_field-low.
PERFORM search_help_fieldname .
FORM search_help_field .
DATA: BEGIN OF itab_field OCCURS 0,
required fields.
END OF itab_field.
Selection query for HitList.(Which values you want to show in the Search Help)
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'fieldname'
dynpprog = sy-repid
dynpnr = sy-dynnr
dynprofield = 'S_field'
value_org = 'S'
TABLES
value_tab = itab_field
return_tab = t_return
EXCEPTIONS
parameter_error = 1
no_values_found = 2
OTHERS = 3.
IF sy-subrc EQ 0.
READ TABLE itab_charg INDEX 1. "transporting field
IF sy-subrc EQ 0.
MOVE itab_field-fieldTO s_field-low.
ENDIF.
ENDIF.
ENDFORM.
In this way we can handle the Search Help.
plz reward pts if helpful.
regards
naresh