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

Search help exit question

Former Member
0 Likes
1,239

Hi Experts,

I have a requirement to Create search help exit for a custom dictionary search help for Table A and I have to show another field of Table B in the search results, along with some fields of Table A. I have copied the code from function module "f4if_shlp_exit_example", but I am not getting the desired results. Do I also have to write some code ??

Pls any advice to solve it ?

Kind Regards

Tariq

4 REPLIES 4
Read only

Sandra_Rossi
Active Contributor
0 Likes
1,021

If you define a foreign key between A and B, then you may create a help view on both tables A and B, and create a search help on this view (no need of a search help exit).

Read only

Former Member
0 Likes
1,021

Thanks Sandra for your reply.

A foreign key exist for a field between Table A and Table B, datatype for that field is NUMC, but the length is different, in one table it's NUMC5 and in other table is NUMC7. That is a reason I have to create search help exit to solve this problem.

Please can you help me to solve this problem.

Read only

Sandra_Rossi
Active Contributor
0 Likes
1,021

An exit is a place where you have to write some code. F4IF_SHLP_EXIT_EXAMPLE is just an example, with some documentation about how exit work (comments inside + repository documentation). Use it to create your own Z exit.

Define your search help with the selection method empty, choose the fields from A and B, and enter code in your Z exit. Try, use the debugger, and revert back with your questions (or search the forum).

Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,021

Yes you have to code, to add the selection of new data and their mapping to search help result.

  • F4UT_PARAMETER_VALUE_GET to read some value from the search help (get the key fields)
  • some code here to select and map data (select, move)
  • F4UT_PARAMETER_RESULTS_PUT to map your result to the search help (put the output fields)

Hints: Perform some where-used search or look at some SAP search-help exits. (browse DD30L where