<?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 on screen elements in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-help-on-screen-elements/m-p/8080960#M1614488</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think VRM_SET_VALUES does not require to add in this case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In parameter of &lt;STRONG&gt;value_tab&lt;/STRONG&gt; of 'F4IF_INT_TABLE_VALUE_REQUEST' column name and type should be same as screen field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 07 Aug 2011 17:25:29 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-08-07T17:25:29Z</dc:date>
    <item>
      <title>search help on screen elements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-help-on-screen-elements/m-p/8080959#M1614487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi I have a screen where I need to include a seach help on the screen element.  The element itself is just a generic char 8 field with no dictionary reference.  I have tried using the VRM_SET_ VALUES in the PBO but as soon as I press enter it looses the value selected. So I have now tried the using the process on value_request but despite finding and populating 138 values in the search help pop up, the actual pop up screen shows a blank list, with the text at the bottom saying 138 values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas what I am doing wrong? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Set list values&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    call function 'VRM_SET_VALUES'&lt;/P&gt;&lt;P&gt;      exporting&lt;/P&gt;&lt;P&gt;        id              = lv_vrm_id&lt;/P&gt;&lt;P&gt;        values          = it_values&lt;/P&gt;&lt;P&gt;      exceptions&lt;/P&gt;&lt;P&gt;        id_illegal_name = 1&lt;/P&gt;&lt;P&gt;        others          = 2.&lt;/P&gt;&lt;P&gt;    if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   MESSAGE I000 WITH 'Failed to populate username list values'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;process on value-request.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  field my_field module fill_my_field.&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        = 'MY_FIELD&lt;/P&gt;&lt;P&gt;      dynprofield     = 'MY_FIELD'&lt;/P&gt;&lt;P&gt;      value_org       = ' '&lt;/P&gt;&lt;P&gt;      dynpprog        = progname&lt;/P&gt;&lt;P&gt;      dynpnr          = dynnum&lt;/P&gt;&lt;P&gt;    tables&lt;/P&gt;&lt;P&gt;      value_tab       = it_values "it contains 2 fields that will be shown in the list box&lt;/P&gt;&lt;P&gt;    exceptions&lt;/P&gt;&lt;P&gt;      parameter_error = 1&lt;/P&gt;&lt;P&gt;      no_values_found = 2&lt;/P&gt;&lt;P&gt;      others          = 3.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Aug 2011 15:34:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/search-help-on-screen-elements/m-p/8080959#M1614487</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-07T15:34:46Z</dc:date>
    </item>
    <item>
      <title>Re: search help on screen elements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-help-on-screen-elements/m-p/8080960#M1614488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think VRM_SET_VALUES does not require to add in this case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In parameter of &lt;STRONG&gt;value_tab&lt;/STRONG&gt; of 'F4IF_INT_TABLE_VALUE_REQUEST' column name and type should be same as screen field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Aug 2011 17:25:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/search-help-on-screen-elements/m-p/8080960#M1614488</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-07T17:25:29Z</dc:date>
    </item>
    <item>
      <title>Re: search help on screen elements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-help-on-screen-elements/m-p/8080961#M1614489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When using 'F4IF_INT_TABLE_VALUE_REQUEST' try with value_org = 'S'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Aug 2011 20:06:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/search-help-on-screen-elements/m-p/8080961#M1614489</guid>
      <dc:creator>former_member209703</dc:creator>
      <dc:date>2011-08-07T20:06:31Z</dc:date>
    </item>
    <item>
      <title>Re: search help on screen elements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-help-on-screen-elements/m-p/8080962#M1614490</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;If you want to put search help for any screen field you no need to use VRM_SET_VALUES&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can write the code on "Process on value Request" event&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;by using  'F4IF_INT_TABLE_VALUE_REQUEST'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT PERNR&lt;/P&gt;&lt;P&gt;             VORNA&lt;/P&gt;&lt;P&gt;             NACHN FROM PB0002 INTO TABLE IT_VALUES.&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DDIC_STRUCTURE         = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    RETFIELD               = 'PERNR'    " this field we are using from the above select query&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  PVALKEY                = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   DYNPPROG               = SY-REPID&lt;/P&gt;&lt;P&gt;   DYNPNR                 = SY-DYNNR&lt;/P&gt;&lt;P&gt;   DYNPROFIELD            = 'P_PERNR' " this is the screen element &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  STEPL                  = 0&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  WINDOW_TITLE           =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  VALUE                  = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   VALUE_ORG              = 'S'              " we must provide&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  MULTIPLE_CHOICE        = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DISPLAY                = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  CALLBACK_PROGRAM       = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  CALLBACK_FORM          = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  MARK_TAB               =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  USER_RESET             =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    VALUE_TAB              = IT_VALUES               " this is the internal table which contains list of possible values for the screen  &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FIELD_TAB              =                                       field&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  RETURN_TAB             =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DYNPFLD_MAPPING        =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  PARAMETER_ERROR        = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  NO_VALUES_FOUND        = 2&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OTHERS                 = 3&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;*IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i think it will be useful .....&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;&lt;/P&gt;&lt;P&gt;anil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Aug 2011 05:14:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/search-help-on-screen-elements/m-p/8080962#M1614490</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-08T05:14:50Z</dc:date>
    </item>
    <item>
      <title>Re: search help on screen elements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-help-on-screen-elements/m-p/8080963#M1614491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm still having problems with this.  Here is my VRM set values - the problem I have with this is as soon as i choose a value from the list and press enter, the value dissappears from the screen element:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: lv_vrm_id(80)    type c.
    data: lv_key(3)        type n value 1,
          lv_index         type sy-tabix.

    data: it_values  type standard table of vrm_value,
          s_values   type vrm_value.

    lv_vrm_id = i_type.
    lv_key    = 1.
    clear it_values.
    loop at it_cabn into s_cabn
                    where ATNAM = i_type.

      read table it_cawn into s_cawn with key atinn = s_cabn-atinn
                                     binary search.
      while s_cawn-atinn = s_cabn-atinn.
        lv_index = sy-tabix.
        s_values-key  = 1.
        s_values-text =   s_cawn-ATWRT.
        condense s_values-text.
        append s_values to it_values.
        add 1 to lv_key.

        lv_index = lv_index + 1.
        read table it_cawn into s_cawn index lv_index.
        if sy-subrc &amp;lt;&amp;gt; 0.
          exit.
        endif.
      endwhile.
    endloop.


* Set list values
    call function 'VRM_SET_VALUES'
      exporting
        id              = lv_vrm_id
        values          = it_values
      exceptions
        id_illegal_name = 1
        others          = 2.
    if sy-subrc &amp;lt;&amp;gt; 0.
*    MESSAGE I000 WITH 'Failed to populate username list values'.
    endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And here is my code for the F4 lookup - the problem here is that the search help pop dispklays nothing depsite saying it has 138 values.  I am wondering if its my it_values that is the wrong format, or is it the fact that my field type doesn't point to a dictionary element?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TYPES: BEGIN OF ty_values,
           type(8),
           descr(20),
         END OF ty_values.

  DATA: it_values TYPE STANDARD TABLE OF ty_values,
        s_values  type ty_values.

  data: lv_key(3)        type n value 1,
        lv_index         type sy-tabix.


* Build lookup values for wood type test
  clear it_values.
  loop at it_cabn into s_cabn
                  where atnam = i_type.

    read table it_cawn into s_cawn with key atinn = s_cabn-atinn
                                   binary search.
    while s_cawn-atinn = s_cabn-atinn.
      lv_index = sy-tabix.
*      s_values-key  = 1.
*      s_values-value1 =   s_cawn-atwrt.
      s_values-type =   s_cawn-atwrt.
      append s_values to it_values.

      lv_index = lv_index + 1.
      read table it_cawn into s_cawn index lv_index.
      if sy-subrc &amp;lt;&amp;gt; 0.
        exit.
      endif.
      add 1 to lv_key.
    endwhile.
  endloop.

DATA: progname TYPE sy-repid,
      dynnum   TYPE sy-dynnr,
      dynpro_values TYPE TABLE OF dynpread,
      field_value LIKE LINE OF dynpro_values.

  progname = sy-repid.
  dynnum   = sy-dynnr.

  call function 'F4IF_INT_TABLE_VALUE_REQUEST'
    exporting
      retfield        = 'ATWRT'
      dynprofield     = 'TYPE'
      value_org       = ' '
      dynpprog        = progname
      dynpnr          = dynnum
    tables
      value_tab       = it_values "it contains 2 fields that will be shown in the list box
    exceptions
      parameter_error = 1
      no_values_found = 2
      others          = 3.

  if sy-subrc &amp;lt;&amp;gt; 0.
    ...
  endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Aug 2011 07:10:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/search-help-on-screen-elements/m-p/8080963#M1614491</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-08T07:10:35Z</dc:date>
    </item>
    <item>
      <title>Re: search help on screen elements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-help-on-screen-elements/m-p/8080964#M1614492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In this case, when using 'F4IF_INT_TABLE_VALUE_REQUEST' try using value_org = 'S' and very important USE dictionary elements instead of :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
TYPES: BEGIN OF ty_values,
           type(8),
           descr(20),
         END OF ty_values.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Aug 2011 07:39:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/search-help-on-screen-elements/m-p/8080964#M1614492</guid>
      <dc:creator>former_member209703</dc:creator>
      <dc:date>2011-08-08T07:39:40Z</dc:date>
    </item>
    <item>
      <title>Re: search help on screen elements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-help-on-screen-elements/m-p/8080965#M1614493</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;The snippets given below may helpful to you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:lt_return type STANDARD TABLE OF DDSHRETVAL,&lt;/P&gt;&lt;P&gt;     ls_return type DDSHRETVAL.&lt;/P&gt;&lt;P&gt;if it_values is not INITIAL.&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        = 'ATWRT'&lt;/P&gt;&lt;P&gt;      dynprofield     = 'TYPE'&lt;/P&gt;&lt;P&gt;      value_org       = 'S'&lt;/P&gt;&lt;P&gt;      dynpprog        = progname&lt;/P&gt;&lt;P&gt;      dynpnr          = dynnum&lt;/P&gt;&lt;P&gt;    tables&lt;/P&gt;&lt;P&gt;      value_tab       = it_values "it contains 2 fields that will be shown in the list box&lt;/P&gt;&lt;P&gt;      RETURN_TAB       = lt_return&lt;/P&gt;&lt;P&gt;    exceptions&lt;/P&gt;&lt;P&gt;      parameter_error = 1&lt;/P&gt;&lt;P&gt;      no_values_found = 2&lt;/P&gt;&lt;P&gt;      others          = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;    read table  lt_return into ls_return index sy-tabix.&lt;/P&gt;&lt;P&gt;    TYPE = ls_return-fieldval.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prakash K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Aug 2011 08:44:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/search-help-on-screen-elements/m-p/8080965#M1614493</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-08T08:44:46Z</dc:date>
    </item>
  </channel>
</rss>

