<?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 Helps returning multiple values in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-helps-returning-multiple-values/m-p/1813924#M348737</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check this sample code  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES:   BEGIN OF t_code,&lt;/P&gt;&lt;P&gt;           katalogart  TYPE  qpct-katalogart,&lt;/P&gt;&lt;P&gt;           codegruppe  TYPE  qpct-codegruppe,&lt;/P&gt;&lt;P&gt;           code        TYPE  qpct-code,&lt;/P&gt;&lt;P&gt;           version     TYPE  qpct-version,&lt;/P&gt;&lt;P&gt;           kurztext    TYPE  qpct-kurztext,&lt;/P&gt;&lt;P&gt;         END OF t_code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA :   i_code     TYPE TABLE OF t_code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT katalogart codegruppe
         code       version
         kurztext FROM qpct
                  INTO TABLE i_code
                  WHERE katalogart EQ '3'
                    AND codegruppe IN r_cdgrp
                    AND sprache EQ sy-langu.

  IF sy-subrc EQ 0.

    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
       EXPORTING
*     DDIC_STRUCTURE         = ' '
         retfield               = 'CODE'
         dynpprog               = sy-repid
         dynpnr                 = sy-dynnr
         dynprofield            = 'S_VCODE'
         value_org              = 'S'
       TABLES
         value_tab              = i_code[]
*      return_tab             =
       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.

  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Jan 2007 11:26:18 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-01-04T11:26:18Z</dc:date>
    <item>
      <title>Search Helps returning multiple values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-helps-returning-multiple-values/m-p/1813923#M348736</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;can any one tell how to fill the fields from search help to the screen fields&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;say suppose I have made a fields "CODE"  and attached search help having values  : "CODE", "Name", "Department" and when I click F4 for search help popup with all the values and I select one of them (say : 1002, BOB, IT) then CODE field on the screen is populated with "1002" . But the problem is how to display other two fields " Name" , "Department" on the screen from the above selected search help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please suggest how to incorporate the above senario&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jan 2007 11:23:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/search-helps-returning-multiple-values/m-p/1813923#M348736</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-04T11:23:53Z</dc:date>
    </item>
    <item>
      <title>Re: Search Helps returning multiple values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-helps-returning-multiple-values/m-p/1813924#M348737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check this sample code  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES:   BEGIN OF t_code,&lt;/P&gt;&lt;P&gt;           katalogart  TYPE  qpct-katalogart,&lt;/P&gt;&lt;P&gt;           codegruppe  TYPE  qpct-codegruppe,&lt;/P&gt;&lt;P&gt;           code        TYPE  qpct-code,&lt;/P&gt;&lt;P&gt;           version     TYPE  qpct-version,&lt;/P&gt;&lt;P&gt;           kurztext    TYPE  qpct-kurztext,&lt;/P&gt;&lt;P&gt;         END OF t_code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA :   i_code     TYPE TABLE OF t_code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT katalogart codegruppe
         code       version
         kurztext FROM qpct
                  INTO TABLE i_code
                  WHERE katalogart EQ '3'
                    AND codegruppe IN r_cdgrp
                    AND sprache EQ sy-langu.

  IF sy-subrc EQ 0.

    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
       EXPORTING
*     DDIC_STRUCTURE         = ' '
         retfield               = 'CODE'
         dynpprog               = sy-repid
         dynpnr                 = sy-dynnr
         dynprofield            = 'S_VCODE'
         value_org              = 'S'
       TABLES
         value_tab              = i_code[]
*      return_tab             =
       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.

  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jan 2007 11:26:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/search-helps-returning-multiple-values/m-p/1813924#M348737</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-04T11:26:18Z</dc:date>
    </item>
    <item>
      <title>Re: Search Helps returning multiple values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-helps-returning-multiple-values/m-p/1813925#M348738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bobby,&lt;/P&gt;&lt;P&gt;chk the FM dynp_values_update.&lt;/P&gt;&lt;P&gt;Also have a look at the code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;report  zabc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters: p_bukrs type t001-bukrs,&lt;/P&gt;&lt;P&gt;            p_butxt type t001-butxt,&lt;/P&gt;&lt;P&gt;            p_ort01 type t001-ort01,&lt;/P&gt;&lt;P&gt;            p_land1 type t001-land1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: dynfields type table of dynpread with header line.&lt;/P&gt;&lt;P&gt;data: return type table of ddshretval with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen on value-request for p_bukrs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  call function 'F4IF_FIELD_VALUE_REQUEST'&lt;/P&gt;&lt;P&gt;       exporting&lt;/P&gt;&lt;P&gt;            tabname           = 'T001'&lt;/P&gt;&lt;P&gt;            fieldname         = 'BUKRS'&lt;/P&gt;&lt;P&gt;            dynpprog          = sy-cprog&lt;/P&gt;&lt;P&gt;            dynpnr            = sy-dynnr&lt;/P&gt;&lt;P&gt;            dynprofield       = 'P_BUKRS'&lt;/P&gt;&lt;P&gt;       tables&lt;/P&gt;&lt;P&gt;            return_tab        = return&lt;/P&gt;&lt;P&gt;       exceptions&lt;/P&gt;&lt;P&gt;            field_not_found   = 1&lt;/P&gt;&lt;P&gt;            no_help_for_field = 2&lt;/P&gt;&lt;P&gt;            inconsistent_help = 3&lt;/P&gt;&lt;P&gt;            no_values_found   = 4&lt;/P&gt;&lt;P&gt;            others            = 5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; break-point.&lt;/P&gt;&lt;P&gt;  refresh dynfields.&lt;/P&gt;&lt;P&gt;  read table return with key fieldname = 'P_BUKRS'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Add it back to the dynpro.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  dynfields-fieldname = return-retfield.&lt;/P&gt;&lt;P&gt;  dynfields-fieldvalue =  return-fieldval.&lt;/P&gt;&lt;P&gt;  append dynfields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Get the company code from db and add to dynpro&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  data: xt001 type t001.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  clear xt001.&lt;/P&gt;&lt;P&gt;  select single * into xt001&lt;/P&gt;&lt;P&gt;         from t001&lt;/P&gt;&lt;P&gt;        where bukrs = return-fieldval.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  dynfields-fieldname = 'P_BUTXT'.&lt;/P&gt;&lt;P&gt;  dynfields-fieldvalue = xt001-butxt.&lt;/P&gt;&lt;P&gt;  append dynfields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  dynfields-fieldname = 'P_ORT01'.&lt;/P&gt;&lt;P&gt;  dynfields-fieldvalue = xt001-ort01.&lt;/P&gt;&lt;P&gt;  append dynfields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  dynfields-fieldname = 'P_LAND1'.&lt;/P&gt;&lt;P&gt;  dynfields-fieldvalue = xt001-land1.&lt;/P&gt;&lt;P&gt;  append dynfields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Update the dynpro values.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  call function 'DYNP_VALUES_UPDATE'&lt;/P&gt;&lt;P&gt;       exporting&lt;/P&gt;&lt;P&gt;            dyname     = sy-cprog&lt;/P&gt;&lt;P&gt;            dynumb     = sy-dynnr&lt;/P&gt;&lt;P&gt;       tables&lt;/P&gt;&lt;P&gt;            dynpfields = dynfields&lt;/P&gt;&lt;P&gt;       exceptions&lt;/P&gt;&lt;P&gt;            others     = 8.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REgards,&lt;/P&gt;&lt;P&gt;keerthi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jan 2007 11:44:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/search-helps-returning-multiple-values/m-p/1813925#M348738</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-04T11:44:23Z</dc:date>
    </item>
    <item>
      <title>Re: Search Helps returning multiple values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-helps-returning-multiple-values/m-p/1813926#M348739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to get multiple values return also, could you tell me what did you do to resolve this? &lt;/P&gt;&lt;P&gt;here is my code to return only ONE value.&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    = 'ZTBLPIF-PROJECTNUMBER'&lt;/P&gt;&lt;P&gt;      DYNPROFIELD = 'ZTBLPIF-PROJECTID'&lt;/P&gt;&lt;P&gt;      DYNPPROG    = SY-CPROG&lt;/P&gt;&lt;P&gt;      DYNPNR      = SY-DYNNR&lt;/P&gt;&lt;P&gt;      VALUE_ORG   = 'S'&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      VALUE_TAB   = HELP_ITEM.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2007 17:06:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/search-helps-returning-multiple-values/m-p/1813926#M348739</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-12T17:06:47Z</dc:date>
    </item>
    <item>
      <title>Re: Search Helps returning multiple values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-helps-returning-multiple-values/m-p/1813927#M348740</link>
      <description>&lt;P&gt;simply using FM 'F4IF_FIELD_VALUE_REQUEST', put vallue into  'dynpfld_mapping' with value_tab's fieldname and Dyn fieldnames. IF value_tab has more than one key columns, using return-fieldval is not enough condition for Select from dbtab.&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2173706-2023-06-08-9-16-36.png" /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2023 02:18:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/search-helps-returning-multiple-values/m-p/1813927#M348740</guid>
      <dc:creator>former_member124908</dc:creator>
      <dc:date>2023-06-08T02:18:26Z</dc:date>
    </item>
  </channel>
</rss>

