<?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 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-help/m-p/2370664#M525208</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'm having this problem with the custom search help. I have 2 custom fields which i want to populate when i click on a row in the search help. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example, in the 1st field, when i click on the search help, and click on a row, it should populate 1st field with the export value and populate the 2nd field with the other export value in the search help. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So far, it is only populating the 1st field and not the 2nd one. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know what the problem is? could it be due to the naming that i've used or is this not possible at all?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;r3venant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Jun 2007 06:53:23 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-06-19T06:53:23Z</dc:date>
    <item>
      <title>Search Help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-help/m-p/2370664#M525208</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'm having this problem with the custom search help. I have 2 custom fields which i want to populate when i click on a row in the search help. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example, in the 1st field, when i click on the search help, and click on a row, it should populate 1st field with the export value and populate the 2nd field with the other export value in the search help. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So far, it is only populating the 1st field and not the 2nd one. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know what the problem is? could it be due to the naming that i've used or is this not possible at all?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;r3venant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2007 06:53:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/search-help/m-p/2370664#M525208</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-19T06:53:23Z</dc:date>
    </item>
    <item>
      <title>Re: Search Help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-help/m-p/2370665#M525209</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;Not sure that search help can return value more than 1 field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can u do like this, populate 1st field which is the PK.&lt;/P&gt;&lt;P&gt;Then u read the table again based on that key to get the 2nd field value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Victor.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2007 06:58:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/search-help/m-p/2370665#M525209</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-19T06:58:03Z</dc:date>
    </item>
    <item>
      <title>Re: Search Help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-help/m-p/2370666#M525210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;lt;b&amp;gt;How are you coding in your program, to direct the value to 2nd field ?&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;i&amp;gt;May be you can create another search help Or use the first Value to fetch the details from SAP table and populate the same in 2nd field.&amp;lt;/i&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vishal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2007 07:02:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/search-help/m-p/2370666#M525210</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-19T07:02:34Z</dc:date>
    </item>
    <item>
      <title>Re: Search Help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-help/m-p/2370667#M525211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;there is no actual coding to retrieve the value from any table becoz after clicking on the search help, it does not go into any PBO so i dun think its possible to select from table after the selection.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2007 07:50:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/search-help/m-p/2370667#M525211</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-19T07:50:23Z</dc:date>
    </item>
    <item>
      <title>Re: Search Help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-help/m-p/2370668#M525212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here's an answer I used for a similar question the other day:&lt;/P&gt;&lt;P&gt;&lt;/P&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;&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>Tue, 19 Jun 2007 08:15:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/search-help/m-p/2370668#M525212</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-19T08:15:01Z</dc:date>
    </item>
  </channel>
</rss>

