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_member156446
Active Contributor
0 Kudos
142

Hi Guyz

Can any one tell me how to add new fields in search help, and the values to showed in the added new fields. I added few fields but the values are not being shown in the columns..

Thanks

1 ACCEPTED SOLUTION

Former Member
0 Kudos
96

Hi,

If the column exists in the view of the search help..then should populate...otherwise..you can use SEARCH HELP exit to populate the additional fields..

Thanks

Naren

8 REPLIES 8

Former Member
0 Kudos
97

Hi,

If the column exists in the view of the search help..then should populate...otherwise..you can use SEARCH HELP exit to populate the additional fields..

Thanks

Naren

0 Kudos
96

I am using search help exits.. but still the data is not seen in the column...

Former Member
0 Kudos
96

Hi,

are you populating RECORD_TAB tables parameter in the search help exit??

Thanks

naren

0 Kudos
96

I am having trouble in populating that table... its a types spool and coudnt find a place to send the data into.. I would appreciate any available code..

Former Member
0 Kudos
96

Hi,

check the function module F4IF_SHLP_EXIT_EXAMPLE

Also check this link

http://sap.ittoolbox.com/groups/technical-functional/sap-dev/search-help-user-exit-400369

Thanks

Naren

Former Member
0 Kudos
96

Hi,

check the sample code from a website..

FUNCTION Z_F4_ZMAT_EXIT.

*"----


""Local interface:

*" TABLES

*" SHLP_TAB TYPE SHLP_DESCR_TAB_T

*" RECORD_TAB STRUCTURE SEAHLPRES

*" CHANGING

*" VALUE(SHLP) TYPE SHLP_DESCR_T

*" VALUE(CALLCONTROL) LIKE DDSHF4CTRL STRUCTURE DDSHF4CTRL

*"----


data: matnr like mara-matnr,

maktx like makt-maktx,

desc like makt-maktx,

recs_to_return like lfa1-bbsnr,

recs_returned like lfa1-bbsnr,

is_selopt like DDSHSELOPT,

is_shlp_tab like line of shlp_tab,

is_interface like line of shlp_tab-interface.

data: begin of it_return occurs 0.

include structure ZPM_RETURN.

data: end of it_return.

data: begin of is_disp,

filler type char005,

matnr like mara-matnr,

maktx like makt-maktx,

end of is_disp.

data: is_return like line of it_return.

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

Case callcontrol-step.

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

when 'SELONE' or 'PRESEL1' or 'PRESEL' or 'DISP'.

exit.

when 'SELECT'.

clear: is_disp.

refresh: record_tab.

    • Find the search item & number of lines to return

read table shlp_tab index 1 into is_shlp_tab.

read table is_shlp_tab-interface index 1 into is_interface.

if not is_interface-value is initial.

maktx = is_interface-value.

else.

read table shlp-selopt index 1 into is_selopt.

maktx = is_selopt-low.

endif.

recs_to_return = callcontrol-maxrecords.

    • call dummy FM that is remotely enabled. The Java listener

    • is looking for destination SAP_JAVA

CALL FUNCTION 'Z_RFC_TO_PM'

DESTINATION 'SAP_JAVA'

EXPORTING

MAKTG = maktx

max_lines = recs_to_return

IMPORTING

COUNT = recs_returned

TABLES

RESULT_TAB = it_return.

if recs_returned > 0.

    • put the return table into search help display table

loop at it_return into is_return.

is_disp-matnr = is_return-matnr.

is_disp-maktx = is_return-maktx.

append is_disp to record_tab.

endloop.

else.

is_disp-matnr = '*************'.

is_disp-maktx = 'Nothing returned'.

append is_disp to record_tab.

endif.

callcontrol-step = 'DISP'.

exit.

when others.

exit.

endcase.

ENDFUNCTION.

Thanks

naren

0 Kudos
96

close