<?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 search help method in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-help-method/m-p/1867610#M365578</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friends i have a write a method where in the impoting parameter could be &lt;/P&gt;&lt;P&gt;firstname, lastname and empid and exporting parameter should be a table which would contain the employee name and his manger name.&lt;/P&gt;&lt;P&gt; I have to write a search method. I would search an employee using wildcard characters (in paramter)  for eg if i input 'Chris*' and press f4 or enter it has to show all the name starting with 'Chris......' . &lt;/P&gt;&lt;P&gt;  How to do that pls help me &lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Feb 2007 09:23:39 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-02-05T09:23:39Z</dc:date>
    <item>
      <title>search help method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-help-method/m-p/1867610#M365578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friends i have a write a method where in the impoting parameter could be &lt;/P&gt;&lt;P&gt;firstname, lastname and empid and exporting parameter should be a table which would contain the employee name and his manger name.&lt;/P&gt;&lt;P&gt; I have to write a search method. I would search an employee using wildcard characters (in paramter)  for eg if i input 'Chris*' and press f4 or enter it has to show all the name starting with 'Chris......' . &lt;/P&gt;&lt;P&gt;  How to do that pls help me &lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Feb 2007 09:23:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/search-help-method/m-p/1867610#M365578</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-05T09:23:39Z</dc:date>
    </item>
    <item>
      <title>Re: search help method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-help-method/m-p/1867611#M365579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;   Assuming u define the internal table for returning as this .&lt;/P&gt;&lt;P&gt;Types: begin of ty_wa_result,&lt;/P&gt;&lt;P&gt;             empname type z_john_table-empname,&lt;/P&gt;&lt;P&gt;             manager   type z_john_table-manager,&lt;/P&gt;&lt;P&gt;           End of ty_wa_result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types: ty_it_result type standard table of ty_wa_result with default key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;method definition.&lt;/P&gt;&lt;P&gt;  methods f4_for_employee importing f_name type z_john_table-fname &lt;/P&gt;&lt;P&gt;                                                     l_name type z_john_table-lname&lt;/P&gt;&lt;P&gt;                                                     emp_id type z_john_table-empid&lt;/P&gt;&lt;P&gt;                                      returning value(result) type ty_it_result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;method Implementation:&lt;/P&gt;&lt;P&gt;    method f4_for_employee.&lt;/P&gt;&lt;P&gt;       data : l_f_name type  z_john_table-fname.&lt;/P&gt;&lt;P&gt;       data : l_where_cond type c length 60.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       l_f_name =  z_john_table-fname. &lt;/P&gt;&lt;P&gt;      replace all occurences of '*' in  l_f_name with '%'.&lt;/P&gt;&lt;P&gt;      if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;         concatenate l_f_name '%' into l_where_cond.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;      select empname manager from z_john_table&lt;/P&gt;&lt;P&gt;                                            into corresponding fields of table it_result&lt;/P&gt;&lt;P&gt;                                           where fname like l_where_cond.&lt;/P&gt;&lt;P&gt;   endmethod.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Feb 2007 09:58:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/search-help-method/m-p/1867611#M365579</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-05T09:58:20Z</dc:date>
    </item>
    <item>
      <title>Re: search help method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-help-method/m-p/1867612#M365580</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Execute the following Code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: cucol like sy-cucol,&lt;/P&gt;&lt;P&gt;        curow like sy-curow,&lt;/P&gt;&lt;P&gt;        select_string like help_info-fldvalue,&lt;/P&gt;&lt;P&gt;        matchcode_id like dd23l-mcid,&lt;/P&gt;&lt;P&gt;        matchcode_object like dd23l-mconame,&lt;/P&gt;&lt;P&gt;        select_value(79) type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters : p_matnr like mara-matnr.&lt;/P&gt;&lt;P&gt;at selection-screen on value-request for p_matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;move 'MAT1' to matchcode_object.&lt;/P&gt;&lt;P&gt;select_string = '1*'.  "help_info-fldvalue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  call function 'HELP_VALUES_GET_WITH_MACO'&lt;/P&gt;&lt;P&gt;       exporting&lt;/P&gt;&lt;P&gt;             cucol              = cucol&lt;/P&gt;&lt;P&gt;             curow              = curow&lt;/P&gt;&lt;P&gt;             mc_id              = matchcode_id&lt;/P&gt;&lt;P&gt;             mc_object          = matchcode_object&lt;/P&gt;&lt;P&gt;             selstr             = select_string&lt;/P&gt;&lt;P&gt;       importing&lt;/P&gt;&lt;P&gt;             selectvalue        = select_value&lt;/P&gt;&lt;P&gt;       exceptions&lt;/P&gt;&lt;P&gt;            no_selection       = 01&lt;/P&gt;&lt;P&gt;             no_values          = 02&lt;/P&gt;&lt;P&gt;            no_values_selected = 03.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;place the cursor at material No on the selection screen and press F4 button&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then you will find the 3rd text box is your Search item. "1*"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sreeni&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Feb 2007 17:46:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/search-help-method/m-p/1867612#M365580</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-06T17:46:39Z</dc:date>
    </item>
  </channel>
</rss>

