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 in Modulepool

Former Member
0 Kudos

Hi All,

I have a screen in Module pool which has 3 input fields, each input field is attached to the same search help.

These fields are from ztable . I have created a search help USING these 3 fields. All the 3 fields are marked for IMPORT and EXPORT.

So whenever i click F4 on any of the above 3 fields, It will display search help popup and returns some rows...But the values are transfered back only for 1 fields ..i.e for the first field only .

I want that ...as soon as i select any of the row from Search hit list..all the 3 columns should get populated with corresponding fields from that row.

I require it this way as user wants to select based on * selection.Ex: * as * then all fields related to that should be popped up.

<removed_by_moderator>

Thanks.

Edited by: Julius Bussche on Sep 18, 2008 12:30 PM

1 ACCEPTED SOLUTION

Former Member
0 Kudos

I think you'll have to progarm this is POV....

For this you can get your search help descriptor with FM F4IF_GET_SHLP_DESCR and use this in the FM F4IF_START_VALUE_REQUEST.

This FM will show the value help corresponding to your created search help.

After you select any value in the search help, you'll get the selected value in exporting parameter of the FM...You can then copy this value to all the three fields.

~Piyush

5 REPLIES 5

Former Member
0 Kudos

I think you'll have to progarm this is POV....

For this you can get your search help descriptor with FM F4IF_GET_SHLP_DESCR and use this in the FM F4IF_START_VALUE_REQUEST.

This FM will show the value help corresponding to your created search help.

After you select any value in the search help, you'll get the selected value in exporting parameter of the FM...You can then copy this value to all the three fields.

~Piyush

0 Kudos

Hi Piyush,

Thanks for those function modules those were very useful for me.

This is how i got.

data:l_shlp type SHLP_DESCR,

l_rc type sy-subrc,

w_DDSHRETVAL type DDSHRETVAL ,

ls_shintf LIKE LINE OF l_shlp-interface,

t_DDSHRETVAL type TABLE OF DDSHRETVAL.

DATA: dyname LIKE d020s-prog,

dynumb LIKE d020s-dnum.

DATA: BEGIN OF dynpfields OCCURS 3.

INCLUDE STRUCTURE dynpread.

DATA: END OF dynpfields.

CALL FUNCTION 'F4IF_GET_SHLP_DESCR'

EXPORTING

SHLPNAME = 'YTESTDMSSB'

SHLPTYPE = 'SH'

IMPORTING

SHLP = l_shlp .

ls_shintf-valfield = 'X'.

MODIFY l_shlp-interface FROM ls_shintf TRANSPORTING valfield

WHERE shlpfield = 'SNNTX'.

MODIFY l_shlp-interface FROM ls_shintf TRANSPORTING valfield

WHERE shlpfield = 'SBRTX'.

MODIFY l_shlp-interface FROM ls_shintf TRANSPORTING valfield

WHERE shlpfield = 'SBSTX'.

MODIFY l_shlp-interface FROM ls_shintf TRANSPORTING valfield

WHERE shlpfield = 'ENPTX'.

MODIFY l_shlp-interface FROM ls_shintf TRANSPORTING valfield

WHERE shlpfield = 'PLANT_CODE'.

CALL FUNCTION 'F4IF_START_VALUE_REQUEST'

EXPORTING

SHLP = l_shlp

  • DISPONLY = ' '

  • MAXRECORDS = 500

  • MULTISEL = 'X'

CUCOL = SY-CUCOL

CUROW = SY-CUROW

IMPORTING

RC = l_rc

TABLES

RETURN_VALUES = t_DDSHRETVAL

.

IF l_rc = 0.

LOOP AT t_DDSHRETVAL INTO w_DDSHRETVAL.

CASE w_DDSHRETVAL-fieldname.

WHEN 'SNNTX'. "W_SNNTX = w_DDSHRETVAL-fieldval.

dyname = sy-repid.

dynumb = sy-dynnr.

dynpfields-fieldname = 'W_SNNTX'.

dynpfields-fieldvalue = w_DDSHRETVAL-fieldval.

APPEND dynpfields.

WHEN 'SBRTX'. "W_SBRTX = w_DDSHRETVAL-fieldval.

dyname = sy-repid.

dynumb = sy-dynnr.

dynpfields-fieldname = 'W_SBRTX'.

dynpfields-fieldvalue = w_DDSHRETVAL-fieldval.

APPEND dynpfields.

WHEN 'SBSTX'. "W_SBSTX = w_DDSHRETVAL-fieldval.

dyname = sy-repid.

dynumb = sy-dynnr.

dynpfields-fieldname = 'W_SBSTX'.

dynpfields-fieldvalue = w_DDSHRETVAL-fieldval.

APPEND dynpfields.

WHEN 'ENPTX'. "W_ENPTX = w_DDSHRETVAL-fieldval.

dyname = sy-repid.

dynumb = sy-dynnr.

dynpfields-fieldname = 'W_ENPTX'.

dynpfields-fieldvalue = w_DDSHRETVAL-fieldval.

APPEND dynpfields.

WHEN 'PLANT_CODE'. "W_ENPTX = w_DDSHRETVAL-fieldval.

dyname = sy-repid.

dynumb = sy-dynnr.

dynpfields-fieldname = 'W_WERKS'.

dynpfields-fieldvalue = w_DDSHRETVAL-fieldval.

APPEND dynpfields.

ENDCASE.

ENDLOOP.

CALL FUNCTION 'DYNP_VALUES_UPDATE'

EXPORTING

dyname = dyname

dynumb = dynumb

TABLES

dynpfields = dynpfields.

ENDIF.

Former Member
0 Kudos

hi,

you can use function module F4IF_INT_TABLE_VALUE_REQUEST

or can follow these simple steps for search help:

go to se11==> put some name after ticking search help radiobutton==> create==>

then tick " elementery search help " and press enter ===>then put description and table name in selection method ===>then put the field on which u want search help

in search help parameter==> tick IMP EXP ==> write 1 in lpos and spos===>save and activate===> double click on table name ===> select that field and press search help tab above===> then copy

i hope it will help u a lot

thaks and regards

rahul sharma

Former Member
0 Kudos

not

Former Member
0 Kudos

yes done