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 all,

How to create a search help... do u we need to write seperate code for pulling the data.

I have a dialog screen.

I have a create a search help and attach it to a custom field.

How to do it..

Kindly guide me..

Thanks,

Jaffer Ali.S

5 REPLIES 5

Former Member
0 Kudos

Hi,

if youneed to restrict the data and have to show in F4 help then you have to write Search help exit(Normal Function module).

Reward if it helps,

Satish

Former Member
0 Kudos

Hi

Create the search help as below and attach it to the Filed in the Screen field attributes

1) Elementary search helps describe a search path. The elementary search help must define where the data of the hit list should be read from (selection method), how the exchange of values between the screen template and selection method is implemented (interface of the search help) and how the online input help should be defined (online behavior of the search help).

2) Collective search helps combine several elementary search helps. A collective search help thus can offer several alternative search paths.

3)An elementary search help defines the standard flow of an input help.

4) A collective search help combines several elementary search helps. The user can thus choose one of several alternative search paths with a collective search help.

5)A collective search help comprises several elementary search helps. It combines all the search paths that are meaningful for a field.

6)Both elementary search helps and other search helps can be included in a collective search help. If other collective search helps are contained in a collective search help, they are expanded to the level of the elementary search helps when the input help is called.

CREATION:

Go to SE11 Tcode

select search help

give the 'z' search help name and create

select the selection method ur table name eg : 'mara'

dialog module 'display value immediately'.

add the field whatever u want and lpos = 1 and spos = 1 and check import and export parameter.

where left position when displaying and spos = search position

and then save and activate ..

See the links:

http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee38446011d189700000e8322d00/content.htm

http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee45446011d189700000e8322d00/content.htm

https://forums.sdn.sap.com/click.jspa?searchID=3173469&messageID=2176485

https://forums.sdn.sap.com/click.jspa?searchID=3173469&messageID=3601619

pls go through this for search help creation

http://help.sap.com/saphelp_nw2004s/helpdata/en/41/f6b237fec48c67e10000009b38f8cf/content.htm

http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee2b446011d189700000e8322d00/content.htm

Search Help Exits:

http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee52446011d189700000e8322d00/content.htm

http://www.sapdevelopment.co.uk/dictionary/shelp/shelp_exit.htm

https://forums.sdn.sap.com/click.jspa?searchID=4390517&messageID=1712818

Regards

Anji

former_member195698
Active Contributor
0 Kudos

Hi Shamsudeen,

It will depend on your requirement. There are different ways in which the F4 List can appear.

1) If you refer to a field of a table which is attached to a CHECK TABLE

2) If your field has a domain with a value range assigned to it

3) If you have create a search help object and attached the object to your field

4) A Custom F4 help created in POV

The link gives detail on the Search Help Object ( Point 3 )

http://help.sap.com/saphelp_erp2005/helpdata/en/8b/415d363640933fe10000009b38f839/frameset.htm

Regards,

Abhishek

Former Member
0 Kudos

Using FM <b>'F4IF_INT_TABLE_VALUE_REQUEST'</b> we can create search help.

Below is the sample code for the search help.

Here <b>V_MATNR</b> is the screen field for which search help is being created.


 DATA:   GV_PGM       LIKE SY-CPROG,
         GV_DYNNR     LIKE SY-DYNNR,
         GV_DYNPROFLD LIKE HELP_INFO-DYNPROFLD.

  REFRESH: IT_MARA, RETURN_TAB.
  CLEAR: GV_DYNPROFLD.
  GV_DYNPROFLD = V_MATNR.

  SELECT MATNR  FROM MARA INTO TABLE IT_MARA
         WHERE MTART = 'FERT'_.

  SORT IT_MARA BY MATNR
  DELETE ADJACENT DUPLICATES FROM IT_MARA COMPARING MATNR.

  CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
       EXPORTING
            RETFIELD        = ''
            DYNPPROG        = SY-CPROG
            DYNPNR          = '200'
            DYNPROFIELD     = 'V_MATNR'
            WINDOW_TITLE    = 'MATERIAL NUMBER'
            VALUE_ORG       = 'S'
       TABLES
            VALUE_TAB       = IT_MARA
            RETURN_TAB      = RETURN_TAB
       EXCEPTIONS
            PARAMETER_ERROR = 1
            NO_VALUES_FOUND = 2
            OTHERS          = 3.
  IF SY-SUBRC = 0.
    READ TABLE RETURN_TAB INDEX 1.
    V_MATNR = RETURN_TAB-FIELDVAL.
  ENDIF.

Message was edited by:

Alexander

Former Member
0 Kudos

Posted twice

Message was edited by:

Alexander