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

f4 help for search help

Former Member
0 Likes
1,074

Hi.

How do you create F4 help for "F4 search help (se11)" ???

Thanks

Ilhan

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,031

Hi..check my code


INITIALIZATION.
  SELECT * INTO CORRESPONDING FIELDS OF TABLE so_setheader
           FROM    setheader
           WHERE   setclass = '0000'.
  
AT SELECTION-SCREEN ON VALUE-REQUEST FOR so_kost-low.
* F4 uitvoeren
  CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
      retfield    = 'setname'
      dynprofield = 'so_kost'
      dynpprog    = sy-cprog
      dynpnr      = sy-dynnr
      value_org   = 'S'
    TABLES
      value_tab   = so_setheader.
 
AT SELECTION-SCREEN ON so_kost.
  READ TABLE so_setheader INTO wa_so_setheader WITH KEY setname = so_kost-low.
 
  IF sy-subrc NE 0.
    so_kost = space.
    MESSAGE e333(s1) WITH 'Does not exist!'.
    STOP.
 
  ENDIF.

Adibo.

8 REPLIES 8
Read only

GauthamV
Active Contributor
Read only

alpesh_saparia3
Active Contributor
0 Likes
1,031

Hi,

A search help is an object of the ABAP Dictionary with which input helps

(F4 helps) can be defined.

There are the following types of search helps:

o Elementary search helps implement a search path for determining the

possible entries.

o Collective search helps contain several elementary search helps. A

collective search help therefore provides several alternative search

paths for possible entries.

o Append search helps can be used to enhance collective search helps

delivered by SAP with customer-specific search paths without

requiring a modification.

The three components of the input help process described by a search

help are the outer interface, the online behavior and the method of data

collection.

The outer interface is defined by specifying the interface parameters.

They define the context information to be used in the input help process

and the attributes to be sent to the screen by the input help.

The search help attachment defines the field contents for parametrizing

an import parameter and the fields of the input template in which the

contents of the export parameters should be returned.

The dialog behavior and data collection are defined differently for

elementary search helps and collective search helps.

The behavior of a search help can be made more flexible than usual with

search help exits.

Read only

Former Member
0 Likes
1,031

Hi,

You can use AT SELECTION SCREEN on value request.

Read only

Former Member
0 Likes
1,031

hiii

use following code to get f4 help

AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_matnr.

*"Subroutine Call to get file selection.................................

PERFORM f10_matnr .

use call function F4IF_INT_TABLE_VALUE_REQUEST...for getting F4 help

regards

twinkal

Read only

Former Member
0 Likes
1,031

Hello Ilhan,

Actually there are two types of search help..

1.Elementary search help

2.Collective search help

So,it would not be possible to send it in as text so i am sending you the link to them ...

Check this out to get a clear idea of search help & how to create it..

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

[http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee5f446011d189700000e8322d00/content.htm]

[http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee86446011d189700000e8322d00/content.htm]

Read only

Former Member
0 Likes
1,032

Hi..check my code


INITIALIZATION.
  SELECT * INTO CORRESPONDING FIELDS OF TABLE so_setheader
           FROM    setheader
           WHERE   setclass = '0000'.
  
AT SELECTION-SCREEN ON VALUE-REQUEST FOR so_kost-low.
* F4 uitvoeren
  CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
      retfield    = 'setname'
      dynprofield = 'so_kost'
      dynpprog    = sy-cprog
      dynpnr      = sy-dynnr
      value_org   = 'S'
    TABLES
      value_tab   = so_setheader.
 
AT SELECTION-SCREEN ON so_kost.
  READ TABLE so_setheader INTO wa_so_setheader WITH KEY setname = so_kost-low.
 
  IF sy-subrc NE 0.
    so_kost = space.
    MESSAGE e333(s1) WITH 'Does not exist!'.
    STOP.
 
  ENDIF.

Adibo.

Read only

Former Member
0 Likes
1,031

I don't have a SELECTION-SCREEN

Read only

Former Member
0 Likes
1,031

hi check this...