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: 

call search help as seperately

Former Member
0 Kudos

Hello,

May I know if there is possible to call the popup window for search help directly, but not through the input field which uses the search help.Thank you very much!

Best regards,

Shumin

9 REPLIES 9

Former Member
0 Kudos

HI,

NO it is not possible.

Because search help works on the possible values of a fields to which the search help is attached.

For detail concept on SEARCH HELP read

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

Regards,

Anirban

Former Member
0 Kudos

No it is not possible.

the hirearchy of search help call is first it will check for screen field,whether any search help is associated to it thru POH, then it checks for table fields,check table,dataelement, then domain...

Former Member
0 Kudos

Hi Shumin,

&----


*& Report ZTEST_SEARCHHELP_ITAB

*&

&----


*& This report is to populate F4 help for custom fields

*&

&----


REPORT ztest_searchhelp_itab.

*******************************************************************

  • TYPES DECLARATION *

*******************************************************************

TYPES: BEGIN OF ty_mara,

matnr TYPE mara-matnr,

mtart TYPE mara-mtart,

END OF ty_mara.

*******************************************************************

  • INTERNAL TABLE AND WORKAREA DECLARATION *

*******************************************************************

DATA : it_mara TYPE TABLE OF ty_mara,

wa_mara TYPE ty_mara.

*******************************************************************

  • PARAMETERS DECLARATION *

*******************************************************************

PARAMETERS p_matnr TYPE ty_mara-matnr.

*******************************************************************

  • SELECTION SCREEN FOR VALUE REQUEST *

*******************************************************************

AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_matnr.

*******************************************************************

  • SELECT QUIRES FOR CUSTOM FIELDS *

*******************************************************************

SELECT matnr mtart FROM mara INTO TABLE it_mara UP TO 10 ROWS.

*******************************************************************

  • FUNCTION MODULE TO POPULATE F4 HELP *

*******************************************************************

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

retfield = 'MATNR'

dynpprog = sy-repid

dynpnr = sy-dynnr

dynprofield = 'P_MATNR'

value_org = 'S'

TABLES

value_tab = it_mara.

Here you will first fill the table ***it_mara** as per your requirements by the \

Select Query and then you will take the values for Search Help from the same table( it_mara).

Let me know if you have any doubts.

Edited by: AMIT BISHT on Sep 12, 2008 11:11 AM

shadow
Participant
0 Kudos

Hi ,

actually search help works on the values of a fields, so it is not possible to call the popup window for search help directly.

Regard's

Shaik.

Former Member
0 Kudos

Hi shumin,

It is not possible to call the popup window for search help directly, because when we create srch help

we need to give the name of selection method and srch help parameter, without that u cann't create search help.

check this link u will get more info. :

http://help.sap.com/saphelp_nw04/helpdata/en/0b/32e9b798da11d295b800a0c929b3c3/frameset.htm

Hope this will help u.

Regards

Saurabh

Former Member
0 Kudos

Hi,

you can create a screen where you can insert the data related to the search help using some table control and you can call that screen by restricting the size of the screen

0 Kudos

Hello All,

Thank you very much for your help, I think we can use FM 'F4IF_START_VALUE_REQUEST' to get the popup...

Best regards,

Shumin

bludog87
Explorer
0 Kudos

DDIC list of values or documentation can be initiated by using the HELP_START function.

DATA: l_info TYPE help_info, l_dynpselect TYPE TABLE OF dselc INITIAL SIZE 0, l_dynpvaluetab TYPE TABLE OF dval INITIAL SIZE 0, l_value TYPE help_info-fldvalue. l_info-call = 'T'. l_info-docuid = 'FE'. l_info-tabname = 'EKKO'. l_info-fieldname = 'BUKRS'. CALL FUNCTION 'HELP_START' EXPORTING help_infos = l_info IMPORTING select_value = l_value TABLES dynpselect = l_dynpselect dynpvaluetab = l_dynpvaluetab. WRITE: /1 l_value.

Former Member
0 Kudos

hi,

Yes, it is possible to call the popup window for search help directly.

there are number of function modules to add search help functionality.

you can use the following code :

data : it_ret_f4 type table of ddshretval,

wa_ret_f4 like line of it_ret_f4.

TYPES : BEGIN OF ty_an_no,

an_no TYPE zprod_val-an_no,

vbeln TYPE zprod_val-vbeln,

END OF ty_an_no.

DATA : it_an_no TYPE TABLE OF ty_an_no,

wa_an_no LIKE LINE OF it_an_no.

AT SELECTION-SCREEN on VALUE-REQUEST FOR an_no-low.

clear it_ret_f4.

perform f4_number.

read table it_ret_f4 into wa_ret_f4 index 1.

if sy-subrc = 0.

an_no-low = wa_ret_f4-fieldval.

endif.

form f4_number .

select an_no

vbeln FROM zprod_val INTO TABLE it_an_no.

sort it_an_no ASCENDING.

delete ADJACENT DUPLICATES FROM it_an_no COMPARING an_no.

*

*

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

  • DDIC_STRUCTURE = ' '

retfield = 'AN_NO'

  • PVALKEY = ' '

  • DYNPPROG = ' '

  • DYNPNR = ' '

  • DYNPROFIELD = ' '

  • STEPL = 0

  • WINDOW_TITLE =

  • VALUE = ' '

VALUE_ORG = 'S'

MULTIPLE_CHOICE = ' '

  • DISPLAY = ' '

  • CALLBACK_PROGRAM = ' '

  • CALLBACK_FORM = ' '

  • MARK_TAB =

  • IMPORTING

  • USER_RESET =

tables

value_tab = it_an_no

  • FIELD_TAB =

RETURN_TAB = it_ret_f4

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

endform. " f4_number