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: 

F4 help in selection screen

Former Member
0 Kudos

HI,

I am using field EEPFN of table PA0587 in our selection screen like

S_EEPFN FOR PA0587-EEPFN.

I am unable to see input help means f4 help.Can any body tell me the

solution.

thanks,

rakesh

1 ACCEPTED SOLUTION

praveen_hannu
Contributor
0 Kudos

Hi

I hope, since it is not having any search help or match code assign to it, it is not able to prompt a popup for F4 help.

If this is the case, you can code your own F4 help with custom code

 at selection-screen on value-request for S_EEPFN -LOW.
  perform F_GET_RELEASED_TRS changing S_EEPFN -LOW.

at selection-screen on value-request for S_EEPFN -HIGH.
  perform F_GET_RELEASED_TRS changing S_EEPFN -HIGH.

 form F_GET_RELEASED_TRS  changing P_EEPFN.
 data: it_tab type value_tab. "declare the internal table as u like  
 data: it_ret type DDSHRETVAL occurs 0 with header line.
  select field1 field2 from XXXX into table it_tab.

  call function 'F4IF_INT_TABLE_VALUE_REQUEST'
    exporting
      RETFIELD    = 'FIELD2' "field name in your value tab i.e it_tab
         VALUE_ORG   = 'S'
    tables
      VALUE_TAB   = it_tab[]
     return_tab       = it_ret[].
if sy-subrc eq 0.
read table it_ret index 1.
p_eepfn = it_ret-fieldval.
endif.
endform.                    " F_GET_RELEASED_TRS

Thanks

Praveen

5 REPLIES 5

Former Member
0 Kudos

Hi Rakesh Gupta ,

The field that you are using as a select option is not a key field and it will not display serach help.

You need to explicitly write code to display the serach help on selection screen for that field : - PA0587-EEPFN.

http://www.abap-tutorials.com/2009/09/21/add-search-help-to-screen-field-in-sap/

http://www.erpgenie.com/sap-technical/abap/call-f4-help-from-selection-screen

You can serach in SCN to create a serach help for this field.

Regards,

Kittu

praveen_hannu
Contributor
0 Kudos

Hi

I hope, since it is not having any search help or match code assign to it, it is not able to prompt a popup for F4 help.

If this is the case, you can code your own F4 help with custom code

 at selection-screen on value-request for S_EEPFN -LOW.
  perform F_GET_RELEASED_TRS changing S_EEPFN -LOW.

at selection-screen on value-request for S_EEPFN -HIGH.
  perform F_GET_RELEASED_TRS changing S_EEPFN -HIGH.

 form F_GET_RELEASED_TRS  changing P_EEPFN.
 data: it_tab type value_tab. "declare the internal table as u like  
 data: it_ret type DDSHRETVAL occurs 0 with header line.
  select field1 field2 from XXXX into table it_tab.

  call function 'F4IF_INT_TABLE_VALUE_REQUEST'
    exporting
      RETFIELD    = 'FIELD2' "field name in your value tab i.e it_tab
         VALUE_ORG   = 'S'
    tables
      VALUE_TAB   = it_tab[]
     return_tab       = it_ret[].
if sy-subrc eq 0.
read table it_ret index 1.
p_eepfn = it_ret-fieldval.
endif.
endform.                    " F_GET_RELEASED_TRS

Thanks

Praveen

Former Member
0 Kudos

Hi,

this field does not have foreign key, search help or table defined in domain.

Create own search help and assign it to the select-option using MODIF ID statement.

Regards,

--

Przemysław

venkat_o
Active Contributor
0 Kudos

Hi, <li> PA0587-EEPFN does not have any Check table and no search help is assigned to this field. That is why F4 help is not displayed. Thanks Venkat.O

Former Member
0 Kudos

Hi,

Use the At Selection-screen on <filed>

and under that pass the internal table from where you need to display the F4 help to the function modue

F4IF_INT_TABLE_VALUE_REQUEST.

Regards,

Midhun