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
603

Hi

Can any one tell me how to create the search help for a field on selection screen in report.

SELECT-OPTIONS : p_mblnr FOR mkpf-mblnr.

This is the Mat. doc no.in MKFP,but there is not search help in table,..so please tell me how to do.

Will i had to create a search help in table also or just in report wil work fine.

Regds

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
572

Hi,

Please refer to the link below:

http://www.saptechnical.com/Tutorials/ABAP/SearchHelp/page2.htm

Thanks,

Sriram Ponna.

4 REPLIES 4
Read only

Former Member
0 Likes
573

Hi,

Please refer to the link below:

http://www.saptechnical.com/Tutorials/ABAP/SearchHelp/page2.htm

Thanks,

Sriram Ponna.

Read only

Former Member
0 Likes
572

Hope this code might help you


DATA: BEGIN OF tbmblnr OCCURS 10,
  mblnr LIKE mkpf-mblnr,
END OF tbmblnr .

initialization.
tbmblnr-mblnr = '0001'.
append tbmblnr.
clear  tbmblnr.

at selection-screen on value request for p_mblnr-low.
perform a1 using p_mblnr-low
at selection-screen on value request for p_mblnr-high.
perform a1 using p_mblnr-high

form a1 usind p_mblnr1

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
 retfield = tbmblnr-mblnr    
 value_org = 'S'
TABLES
 value_tab = tbmblnr[]
EXCEPTIONS
 parameter_error = 1
 no_values_found = 2
 OTHERS = 3.
IF sy-subrc 0.
ENDIF.

endform.

Read only

Former Member
0 Likes
572

Hi Vipin,

Create search help for data element against MKPF-MBLNR and attach to it to SELECT-OPTIONS using caluse MATCHCODE OBJECT obj where obj is the search help created for the data element.

Check these links to create search help.

http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee5f446011d189700000e8322d00/content.htm (For elementary search help)

http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee86446011d189700000e8322d00/content.htm(For collective search help)

Thanks,

Vinay

Read only

Former Member
0 Likes
572

Hi,

After Initialization event use this event

create an internal table and send all records of mblnr from mkpf table to that internal table.

create as follows

data : f_name like DFIES-FIELDNAME value 'MBLNR'.

At selection-screen on value-request for p_mblnr.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

provide the f_name and internal table name to the function modules exporting and tables parameters