Application Development and Automation 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: 
Read only

search help

Former Member
0 Likes
893

Hi All,

How to apply customized search help into the report selection screen ? I have already created a search help.

Thank you all..

satyam

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
859

Hi

Use the custom search help as follows: ZV_BSTNK is custom search help in this case.

s_bstnk for vbak-bstnk no-extension

matchcode object zv_bstnk

hope it will help u

If problem solved, mark the points.

with regards

chetan vishnoi

Hi All,

How to apply customized search help into the report selection screen ? I have already created a search help.

Thank you all..

satyam

8 REPLIES 8
Read only

Former Member
0 Likes
859

<b>AMAGIN SAME THREAD....</b>

Read only

Former Member
0 Likes
859

Hi satyam,

Assign the Search help you have created to the DataBase Table field and use the DB Table Field for the Parameter in the Selection Screen. It will work.

Regards,

Prashanth

Read only

Former Member
0 Likes
859

Use the custom search help as follows: ZV_BSTNK is custom search help in this case.

s_bstnk for vbak-bstnk no-extension

matchcode object zv_bstnk

If problem solved, mark the points.

Thanks,

Mukesh Kumar

Read only

Former Member
0 Likes
859

Hi Satyam,

Please check this sample code from other thread.

report zrich_0001 .

data: begin of ihelp occurs 0,

field type char10,

ftext type char50,

end of ihelp.

data: a_field(20) type c.

select-options s_field for a_field.

initialization.

ihelp-field = 'A'.

ihelp-ftext = 'Description A'.

append ihelp.

ihelp-field = 'B'.

ihelp-ftext = 'Description B'.

append ihelp.

ihelp-field = 'C'.

ihelp-ftext = 'Description C'.

append ihelp.

at selection-screen on value-request for s_field-low.

call function 'F4IF_INT_TABLE_VALUE_REQUEST'

exporting

retfield = 'FIELD'

dynprofield = 'S_FIELD'

dynpprog = sy-cprog

dynpnr = sy-dynnr

value_org = 'S'

tables

value_tab = ihelp.

start-of-selection.

.....

Hope this will help.

Regards,

Ferry Lianto

Please reward points if helpful.

Read only

Former Member
0 Likes
859

Hi,

Have a look at these good links-

Mark useful answers.

Regards,

Tanuja.

Read only

Former Member
0 Likes
860

Hi

Use the custom search help as follows: ZV_BSTNK is custom search help in this case.

s_bstnk for vbak-bstnk no-extension

matchcode object zv_bstnk

hope it will help u

If problem solved, mark the points.

with regards

chetan vishnoi

Read only

0 Likes
859

Hi,

Please look at the code below:

----


  • Selection screen *

----


SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.

PARAMETERS: p_bukrs(4) TYPE c OBLIGATORY,

p_budat TYPE bsik-budat OBLIGATORY.

SELECTION-SCREEN END OF BLOCK b1.

*at selection-screen on p_bukrs

AT SELECTION-SCREEN ON p_bukrs.

IF p_bukrs <> 'GLOB' AND

p_bukrs <> 'INOV' AND

p_bukrs <> 'GXCH'.

MESSAGE e008 WITH 'Invalid Company Code!'.

ENDIF.

*AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_bukrs

AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_bukrs.

TYPES: BEGIN OF t_search_help,

bukrs LIKE t001-bukrs,

butxt LIKE t001-butxt,

END OF t_search_help.

DATA: it_search_help TYPE STANDARD TABLE OF t_search_help

WITH HEADER LINE.

  • get only the valid company code from T001

SELECT bukrs butxt FROM t001

INTO TABLE it_search_help

WHERE bukrs IN ('GLOB', 'GXCH', 'INOV').

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

  • DDIC_STRUCTURE = ' '

retfield = 'BUKRS'

  • PVALKEY = ' '

dynpprog = g_repid

dynpnr = sy-dynnr

dynprofield = 'P_BUKRS'

  • STEPL = 0

  • WINDOW_TITLE =

  • VALUE = ' '

value_org = 'S'

  • MULTIPLE_CHOICE = ' '

  • DISPLAY = ' '

  • CALLBACK_PROGRAM = ' '

  • CALLBACK_FORM = ' '

TABLES

value_tab = it_search_help

  • FIELD_TAB =

  • RETURN_TAB =

  • 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.

Hope this helps...

P.S. Please award points for useful answers.

Read only

0 Likes
859

hi,

thanks chetan and mukesh,

satyam