Application Development 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: 

search help

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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

4 REPLIES 4

Former Member
0 Kudos

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.

Former Member
0 Kudos

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.

Former Member
0 Kudos

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