<?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/3642676#M877233</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;PRE&gt;&lt;CODE&gt;if it_lifnr[] is initial.

    select * from lfa1 where "lifnr = itabh-lifnr AND
                             ktokk in ('LIEF','PLNT','BEMP','EMPL','HR','CUST').
      if sy-subrc eq 0.
        move lfa1-lifnr to it_lifnr-lifnr.
        move lfa1-name1 to it_lifnr-name1.
      else.
        clear : it_lifnr-lifnr,it_lifnr-name1.
      endif.
      append it_lifnr.
    endselect.
    sort it_lifnr by lifnr.

  endif.

  call function 'F4IF_INT_TABLE_VALUE_REQUEST'
    exporting
      retfield        = 'LIFNR'
      dynpprog        = sy-repid
      dynpnr          = sy-dynnr
      dynprofield     = 'ITABH-LIFNR'
      window_title    = 'Vendor Account Number'
      value_org       = 'S'
    tables
      value_tab       = it_lifnr
    exceptions
      parameter_error = 1
      no_values_found = 2
      others          = 3.
  if sy-subrc &amp;lt;&amp;gt; 0.
    message id sy-msgid type sy-msgty number sy-msgno
            with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;V.Balaji&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if Usefull...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Apr 2008 05:56:58 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-03T05:56:58Z</dc:date>
    <item>
      <title>search help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-help/m-p/3642675#M877232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i have few date details in my internal table.Now want to display this data as a search help using a FM.&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF it_h OCCURS 0.&lt;/P&gt;&lt;P&gt;INCLUDE STRUCTURE p0028.&lt;/P&gt;&lt;P&gt;DAta : END OF it_h.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF field_tab OCCURS 10.&lt;/P&gt;&lt;P&gt;INCLUDE STRUCTURE help_value.&lt;/P&gt;&lt;P&gt;DATA: END OF field_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: helpfield(30). &lt;/P&gt;&lt;P&gt;DATA : so_DATE LIKE PA0028-EXDAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*PA0000-pernr = PA0000-pernr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF FLAG = 'HG'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT exdat into it_h-exdat&lt;/P&gt;&lt;P&gt;FROM pa0028&lt;/P&gt;&lt;P&gt;WHERE pernr eq PA0000-pernr&lt;/P&gt;&lt;P&gt;and sprps = ''.&lt;/P&gt;&lt;P&gt;append it_h.&lt;/P&gt;&lt;P&gt;endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'HELP_VALUES_GET_WITH_TABLE'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;fieldname = 'EXDAT'&lt;/P&gt;&lt;P&gt;tabname = 'PA0028'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;title_in_values_list = 'Select a value' &lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select_value = so_DATE &lt;/P&gt;&lt;P&gt;select_value = PA0028-EXDAT&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;fields = field_tab&lt;/P&gt;&lt;P&gt;valuetab = it_h&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;field_not_in_ddic = 01&lt;/P&gt;&lt;P&gt;more_then_one_selectfield = 02&lt;/P&gt;&lt;P&gt;no_selectfield = 03.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now in my module pool screen where i'll define this it_h.&lt;/P&gt;&lt;P&gt;I have values in it_h.Now at screen level where this shuld be dinfine.&lt;/P&gt;&lt;P&gt;My screen field name is PA0028-EXDAT.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2008 05:56:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/search-help/m-p/3642675#M877232</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-03T05:56:11Z</dc:date>
    </item>
    <item>
      <title>Re: search help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-help/m-p/3642676#M877233</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;PRE&gt;&lt;CODE&gt;if it_lifnr[] is initial.

    select * from lfa1 where "lifnr = itabh-lifnr AND
                             ktokk in ('LIEF','PLNT','BEMP','EMPL','HR','CUST').
      if sy-subrc eq 0.
        move lfa1-lifnr to it_lifnr-lifnr.
        move lfa1-name1 to it_lifnr-name1.
      else.
        clear : it_lifnr-lifnr,it_lifnr-name1.
      endif.
      append it_lifnr.
    endselect.
    sort it_lifnr by lifnr.

  endif.

  call function 'F4IF_INT_TABLE_VALUE_REQUEST'
    exporting
      retfield        = 'LIFNR'
      dynpprog        = sy-repid
      dynpnr          = sy-dynnr
      dynprofield     = 'ITABH-LIFNR'
      window_title    = 'Vendor Account Number'
      value_org       = 'S'
    tables
      value_tab       = it_lifnr
    exceptions
      parameter_error = 1
      no_values_found = 2
      others          = 3.
  if sy-subrc &amp;lt;&amp;gt; 0.
    message id sy-msgid type sy-msgty number sy-msgno
            with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;V.Balaji&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if Usefull...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2008 05:56:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/search-help/m-p/3642676#M877233</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-03T05:56:58Z</dc:date>
    </item>
  </channel>
</rss>

