<?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 to return multiple values in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-help-to-return-multiple-values/m-p/6047616#M1351873</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've created a search help and I'd like it to return several values to different fields, I don't want these fields to be seen on the selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. User clicks on search help for FIELD1 and selects a value from the pop-up box&lt;/P&gt;&lt;P&gt;2. Program populates FIELD1 depending on the user selection&lt;/P&gt;&lt;P&gt;3. Program also populates FIELD2 and FIELD3 which can be used in the program at a later date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can do 1 and 2 but I'm having an issue with 3.  I've tried selecting all fields in the search help as Export, but although that populates the fields in the search help test facility, it doesn't know which fields I want it to populate in my program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've also tried using FM F4IF_FIELD_VALUE_REQUEST but can only get this to return one line in table RETURN_TAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The screen fields are declared as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
PARAMETERS: FIELD1 LIKE TAB1-FIELD1 MATCHCODE ZSEARCH_HELP,
                         FIELD2 LIKE TAB1-FIELD2 NO-DISPLAY,
                         FIELD3 LIKE TAB1-FIELD3 NO-DISPLAY.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help is appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gill&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Aug 2009 10:34:14 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-08-17T10:34:14Z</dc:date>
    <item>
      <title>Search help to return multiple values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-help-to-return-multiple-values/m-p/6047616#M1351873</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've created a search help and I'd like it to return several values to different fields, I don't want these fields to be seen on the selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. User clicks on search help for FIELD1 and selects a value from the pop-up box&lt;/P&gt;&lt;P&gt;2. Program populates FIELD1 depending on the user selection&lt;/P&gt;&lt;P&gt;3. Program also populates FIELD2 and FIELD3 which can be used in the program at a later date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can do 1 and 2 but I'm having an issue with 3.  I've tried selecting all fields in the search help as Export, but although that populates the fields in the search help test facility, it doesn't know which fields I want it to populate in my program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've also tried using FM F4IF_FIELD_VALUE_REQUEST but can only get this to return one line in table RETURN_TAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The screen fields are declared as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
PARAMETERS: FIELD1 LIKE TAB1-FIELD1 MATCHCODE ZSEARCH_HELP,
                         FIELD2 LIKE TAB1-FIELD2 NO-DISPLAY,
                         FIELD3 LIKE TAB1-FIELD3 NO-DISPLAY.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help is appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gill&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Aug 2009 10:34:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/search-help-to-return-multiple-values/m-p/6047616#M1351873</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-17T10:34:14Z</dc:date>
    </item>
    <item>
      <title>Re: Search help to return multiple values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-help-to-return-multiple-values/m-p/6047617#M1351874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  Try like below:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
PARAMETERS: FIELD1 LIKE TAB1-FIELD1 MATCHCODE ZSEARCH_HELP user-command ucom,
                         FIELD2 LIKE TAB1-FIELD2 NO-DISPLAY,
                         FIELD3 LIKE TAB1-FIELD3 NO-DISPLAY.


at selection-screen output.

 populate field2 and field3 based on field1.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Himanshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Aug 2009 10:44:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/search-help-to-return-multiple-values/m-p/6047617#M1351874</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-17T10:44:12Z</dc:date>
    </item>
    <item>
      <title>Re: Search help to return multiple values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-help-to-return-multiple-values/m-p/6047618#M1351875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your suggestion but what I failed to put in my original post was that FIELD1 is a description field and FIELD2 and FIELD3 are the actual key fields for the table which I need. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, I can't do your suggestion of populating them based on FIELD1, I need to know which line the user selects to populate these key fields as FIELD1 may not be unique within the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does that make sense?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's why I wanted the search help to return all 3 values then I can populate FIELD2 and FIELD3 from that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Aug 2009 11:00:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/search-help-to-return-multiple-values/m-p/6047618#M1351875</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-17T11:00:12Z</dc:date>
    </item>
    <item>
      <title>Re: Search help to return multiple values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-help-to-return-multiple-values/m-p/6047619#M1351876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;This thread is marked as answered, but I don't understand how your requirement has been met...&lt;/P&gt;&lt;P&gt;May I ask you to post the solution?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Robert.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Sep 2009 09:25:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/search-help-to-return-multiple-values/m-p/6047619#M1351876</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-28T09:25:12Z</dc:date>
    </item>
  </channel>
</rss>

