<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Search-help in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-help/m-p/898324#M54708</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the topic of search help exits, I need to restrict the values returned in the 'DISP' time of a collective search help for MAT1. The restriction needs to be authorisations - based on plant. The auth check is to check on WERKS values for materials returned in the search help, so that users may not see materials from a plant that they are not authorised to see. I have been attempting to execute the authorisation check in the DISP time, extracting the material number from t he string returned for the record_tab records. Unfortunately, being a collective serach help - the member search helps return the strings in different orders, so identifying the material number from the string is not easy.&lt;/P&gt;&lt;P&gt;Can anyone suggest a different way of executing this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TIA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Jul 2005 02:58:48 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-07-27T02:58:48Z</dc:date>
    <item>
      <title>Search-help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-help/m-p/898317#M54701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to create a search-help that returns not a single field value form the database, but a combination (concatenation) of three fields from the selected line of the database table/view.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The importing values of the search-help would be the three fields, the exporting value would be the concatenation of those three fields. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is that possible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you, &lt;/P&gt;&lt;P&gt;Bogdan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jun 2005 11:50:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/search-help/m-p/898317#M54701</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-06-21T11:50:27Z</dc:date>
    </item>
    <item>
      <title>Re: Search-help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-help/m-p/898318#M54702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure whether you are talking about F4 help.I hope you will select values from database based on condition.place it under at selection-screen while appending.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the sample code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables kna1.&lt;/P&gt;&lt;P&gt;data:&lt;/P&gt;&lt;P&gt;begin of t_values occurs 2,&lt;/P&gt;&lt;P&gt;value like kna1-begru,&lt;/P&gt;&lt;P&gt;end of t_values,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t_return like ddshretval occurs 0 with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select-options s_begru for kna1-begru.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen on value-request for s_begru-low.&lt;/P&gt;&lt;P&gt;*Instead of the below code place your select statement&lt;/P&gt;&lt;P&gt;t_values = 'PAR*'.&lt;/P&gt;&lt;P&gt;append t_values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t_values = 'UGG'.&lt;/P&gt;&lt;P&gt;append t_values.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;call function 'F4IF_INT_TABLE_VALUE_REQUEST'&lt;/P&gt;&lt;P&gt;exporting&lt;/P&gt;&lt;P&gt;retfield = 'BEGRU'&lt;/P&gt;&lt;P&gt;value_org = 'S'&lt;/P&gt;&lt;P&gt;tables&lt;/P&gt;&lt;P&gt;value_tab = t_values&lt;/P&gt;&lt;P&gt;return_tab = t_return&lt;/P&gt;&lt;P&gt;exceptions&lt;/P&gt;&lt;P&gt;parameter_error = 1&lt;/P&gt;&lt;P&gt;no_values_found = 2&lt;/P&gt;&lt;P&gt;others = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;read table t_return index 1.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jun 2005 12:29:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/search-help/m-p/898318#M54702</guid>
      <dc:creator>jayanthi_jayaraman</dc:creator>
      <dc:date>2005-06-21T12:29:36Z</dc:date>
    </item>
    <item>
      <title>Re: Search-help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-help/m-p/898319#M54703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No Jayanthi.&lt;/P&gt;&lt;P&gt;I need to attach a search-help to a data element in a database structure that, instead of returning the value of a single field in the selected line of the hit-list, would return a combination of three fields from that line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I think I've got the solution, I will create a search-help exit for the search-help that I will attach to the structure field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bogdan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jun 2005 12:41:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/search-help/m-p/898319#M54703</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-06-21T12:41:12Z</dc:date>
    </item>
    <item>
      <title>Re: Search-help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-help/m-p/898320#M54704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bogdan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have not tried the solution completely but I think that it should not be a problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create a search help exit on the lines of the example provided in Fn. module 'F4IF_SHLP_EXIT_EXAMPLE' and specify it in the search help. This exit should return a variable(in your case the concatenated field) which would  be used as the parameter exported from the search help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the Fn. module(search help exit) be sure to specify changing fields: 'SHLP' and 'CALLCONTROL' and tables: 'SHLP_TAB' and 'RECORD_TAB' in the fn. mod. interface.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sanjay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jun 2005 12:42:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/search-help/m-p/898320#M54704</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-06-21T12:42:25Z</dc:date>
    </item>
    <item>
      <title>Re: Search-help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-help/m-p/898321#M54705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, Sanjay.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's precisely what I was trying to do.&lt;/P&gt;&lt;P&gt;I will let you know of the result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Bogdan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jun 2005 13:08:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/search-help/m-p/898321#M54705</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-06-21T13:08:10Z</dc:date>
    </item>
    <item>
      <title>Re: Search-help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-help/m-p/898322#M54706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bogdan,&lt;/P&gt;&lt;P&gt;have a look at search help SFLIGHT and its exit SAPBC_GLOBAL_F4_SFLIGHT. In this example a very similar problem is solved. In this example it is the problem, how to get a search help parameter that is the difference of two database fields. In your case you need a search help parameter that is the concatenation of three database fields. It should be easy to adapt the example to your case.&lt;/P&gt;&lt;P&gt;Greetings Stephan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jun 2005 14:07:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/search-help/m-p/898322#M54706</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-06-21T14:07:22Z</dc:date>
    </item>
    <item>
      <title>Re: Search-help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-help/m-p/898323#M54707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wanted to come back just to say she problem is solved using the search-help exit approach.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another question: the importing parameters from search-help's definition do not receive the value from the application context. What could cause this problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you, &lt;/P&gt;&lt;P&gt;Bogdan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jul 2005 10:06:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/search-help/m-p/898323#M54707</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-07-01T10:06:19Z</dc:date>
    </item>
    <item>
      <title>Re: Search-help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-help/m-p/898324#M54708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the topic of search help exits, I need to restrict the values returned in the 'DISP' time of a collective search help for MAT1. The restriction needs to be authorisations - based on plant. The auth check is to check on WERKS values for materials returned in the search help, so that users may not see materials from a plant that they are not authorised to see. I have been attempting to execute the authorisation check in the DISP time, extracting the material number from t he string returned for the record_tab records. Unfortunately, being a collective serach help - the member search helps return the strings in different orders, so identifying the material number from the string is not easy.&lt;/P&gt;&lt;P&gt;Can anyone suggest a different way of executing this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TIA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2005 02:58:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/search-help/m-p/898324#M54708</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-07-27T02:58:48Z</dc:date>
    </item>
  </channel>
</rss>

