<?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 + module pool in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-help-module-pool/m-p/2384819#M529864</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hai all&lt;/P&gt;&lt;P&gt;there is a problem am facing while doing module pool search help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1)I have a screen 200, witrh fields wiwid, firstname, last name.&lt;/P&gt;&lt;P&gt;2)i have created elementary search help for the filed wiw id and added that search help to the screen field wiw id.&lt;/P&gt;&lt;P&gt;3)when am excuted the screen and press f4 on filed wiwid, am able find the all values there, but when am select any of the record, only wiwid value coming to screen fields&lt;/P&gt;&lt;P&gt;4) how to get screen values to other fields also.&lt;/P&gt;&lt;P&gt;5) pls suggest, if works reward points.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Jun 2007 07:29:22 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-06-12T07:29:22Z</dc:date>
    <item>
      <title>search help + module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-help-module-pool/m-p/2384819#M529864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hai all&lt;/P&gt;&lt;P&gt;there is a problem am facing while doing module pool search help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1)I have a screen 200, witrh fields wiwid, firstname, last name.&lt;/P&gt;&lt;P&gt;2)i have created elementary search help for the filed wiw id and added that search help to the screen field wiw id.&lt;/P&gt;&lt;P&gt;3)when am excuted the screen and press f4 on filed wiwid, am able find the all values there, but when am select any of the record, only wiwid value coming to screen fields&lt;/P&gt;&lt;P&gt;4) how to get screen values to other fields also.&lt;/P&gt;&lt;P&gt;5) pls suggest, if works reward points.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jun 2007 07:29:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/search-help-module-pool/m-p/2384819#M529864</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-12T07:29:22Z</dc:date>
    </item>
    <item>
      <title>Re: search help + module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-help-module-pool/m-p/2384820#M529865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check the search help output parameters.System will fill in only those output parameters from search help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;award if it helps&lt;/P&gt;&lt;P&gt;krishna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jun 2007 08:11:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/search-help-module-pool/m-p/2384820#M529865</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-12T08:11:13Z</dc:date>
    </item>
    <item>
      <title>Re: search help + module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-help-module-pool/m-p/2384821#M529866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you should look at function module DYNP_VALUES_UPDATE (or CALL METHOD c_dynpro_handler=&amp;gt;set_dynp_values which calls this function).  There are lots of examples in SAP's code but basically this allows you to push values back onto the screen from within an F4 request.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've used it, for example, for filling in the name and address details on the screen after the user has selected a customer number from the searchhelp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will need to trigger the searchhelp yourself inside your screen e.g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;process on value-request. 
   field gs_9900-my_field
   module d9900_f4_my_field.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;module d9900_f4_my_field input.
  perform d9900_f4_my_field.
endmodule.                   &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then something along the lines of&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;form d9900_f4_my_field.

  data:
    l_dynpprog          like sy-repid,
    l_dynpnr            like sy-dynnr,
    lt_dynpfield        like dynpread,
    lt_dynpfield        like dynpread   occurs 10.

  l_dynpprog    = sy-repid.
  l_dynpnr      = sy-dynnr.

  call function 'F4IF_FIELD_VALUE_REQUEST'  "trigger your search help
     exporting
        ...
     importing
        ...
*
* use the results from 'return_tab-fieldval' to get the other data you want on the screen
* build up lt_dynpfield with the field names and values for the screen e.g.
* 
  clear: ls_dynpfield.
  concatenate 'GS_' l_dynpnr '-CUSTOMER_NAME'
    into ls_dynpfield-fieldname.
  ls_dynpfield-stepl      = 0.
  ls_dynpfield-fieldvalue = kna1-name1.
  ls_dynpfield-fieldinp   = space.
  append ls_dynpfield to lt_dynpfield.
* etc etc 
* then call the function that updates the screen
  call function 'DYNP_VALUES_UPDATE'  "update the screen fields
    exporting
      dyname     = l_dynpprog
      dynumb     = l_dynpnr
    tables
      dynpfields = lt_dynpfield
    exceptions
      others     = 0.

endform.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know how it goes - and if you need any more specific sample code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that there's also function DYNP_VALUES_READ which is handy for reading other screen field values from within a value request... so you can make your searchhelp limit the displayed values based on something else the user just keyed on the screen e.g. a company code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;jc&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2007 07:46:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/search-help-module-pool/m-p/2384821#M529866</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-14T07:46:46Z</dc:date>
    </item>
    <item>
      <title>Re: search help + module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-help-module-pool/m-p/2384822#M529867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Srikanth,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think  the problem is in creation of search help. While creating you have to specify &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Out put fields in the search help and &lt;/P&gt;&lt;P&gt;2. You have to see the relation-ship between the fields if they are from different table, I.e you need to have foreign key relationship betn. them&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do write if problem is not solved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Darshan.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&amp;lt;i&amp;gt;&lt;STRONG&gt;Reward Points if this solves your problem&lt;/STRONG&gt;&amp;lt;/i&amp;gt;&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2007 08:21:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/search-help-module-pool/m-p/2384822#M529867</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-14T08:21:35Z</dc:date>
    </item>
    <item>
      <title>Re: search help + module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-help-module-pool/m-p/2384823#M529868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey just try this piece of code and incase u have any problem get back to me .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;declare 3 internal tables as given below .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:  itab1 TYPE TABLE OF dfies WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;       itab2 TYPE TABLE OF ddshretval WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;       itab3 TYPE TABLE OF dselc WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;        itab type table of &amp;lt;dbtable&amp;gt; .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write the select query for which u want to retrievr data into another table type the database table .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call the function module &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLEAR i_dfies.&lt;/P&gt;&lt;P&gt;  REFRESH i_dfies.&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;i_dfies-tabname = '&amp;lt;dbtable name&amp;gt;'.&lt;/P&gt;&lt;P&gt;  i_dfies-fieldname = '&amp;lt;field name1&amp;gt;'.&lt;/P&gt;&lt;P&gt;  APPEND i_dfies.&lt;/P&gt;&lt;P&gt;this is repeated to show the no of fields in the f4 help .&lt;/P&gt;&lt;P&gt;this is written as many times as the no of fields to be displayed . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; i_dfies-tabname = '&amp;lt;dbtable name&amp;gt;'.&lt;/P&gt;&lt;P&gt;  i_dfies-fieldname = '&amp;lt;field name2&amp;gt;'.&lt;/P&gt;&lt;P&gt;  APPEND i_dfies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is for mapping the data if u have 2 fields  ie the data in the second field should be retrieved according to the data in the first field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  i_map-fldname = '&amp;lt;field name 1&amp;gt;'.&lt;/P&gt;&lt;P&gt;  i_map-dyfldname = '&amp;lt;dbtablename-fieldname1&amp;gt;'.&lt;/P&gt;&lt;P&gt;  APPEND i_map.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  i_map-fldname = '&amp;lt;field name 2&amp;gt;'.&lt;/P&gt;&lt;P&gt;  i_map-dyfldname = '&amp;lt;dbtablename-fieldname2&amp;gt;'.&lt;/P&gt;&lt;P&gt;  APPEND i_map.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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        = '&amp;lt;fieldname1&amp;gt;'&lt;/P&gt;&lt;P&gt;      dynpprog        = sy-repid&lt;/P&gt;&lt;P&gt;      dynpnr          = sy-dynnr&lt;/P&gt;&lt;P&gt;      dynprofield     = '&amp;lt;dbtable-name-fieldname1&amp;gt;'&lt;/P&gt;&lt;P&gt;      value_org       = 'S'&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      value_tab       = itab&lt;/P&gt;&lt;P&gt;      field_tab       = itab1&lt;/P&gt;&lt;P&gt;      return_tab      = itab2&lt;/P&gt;&lt;P&gt;      dynpfld_mapping = itab3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this solves your problem ,&lt;/P&gt;&lt;P&gt;if anything more specific please get back to me .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;warm regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2007 16:13:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/search-help-module-pool/m-p/2384823#M529868</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-14T16:13:41Z</dc:date>
    </item>
  </channel>
</rss>

