<?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 showing less values in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-help-showing-less-values/m-p/12561682#M2007728</link>
    <description>&lt;P&gt;I guess you didn't understand what Raymond told you.&lt;/P&gt;&lt;P&gt;If you restrict to 500, your user exit deletes 492 lines as expected, so only 8 lines are shown.&lt;/P&gt;&lt;P&gt;If you don't restrict, of course it works as expected.&lt;/P&gt;</description>
    <pubDate>Sun, 25 Sep 2022 12:25:00 GMT</pubDate>
    <dc:creator>Sandra_Rossi</dc:creator>
    <dc:date>2022-09-25T12:25:00Z</dc:date>
    <item>
      <title>search help showing less values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-help-showing-less-values/m-p/12561673#M2007719</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;
  &lt;P&gt;I have created a search help exit and have assigned it to the field.&lt;/P&gt;
  &lt;P&gt;ISSUE :&lt;/P&gt;
  &lt;UL&gt;
   &lt;LI&gt;When the output entries are restricted to 500 (screenshot below) i am getting only 8 entries &lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2099530-image.png" /&gt; &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2099531-image.png" /&gt;&lt;/P&gt;&lt;/LI&gt;
   &lt;LI&gt;&lt;P&gt;But when i remove the restriction i am getting all entries (&lt;STRONG&gt; I WANT 500 ENTRIES STARTING WITH VA* IF I RESTRICT ENTRIES TO 500 &lt;/STRONG&gt;)&lt;/P&gt;&lt;/LI&gt;
  &lt;/UL&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2099532-image.png" /&gt;&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2099533-image.png" /&gt;&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;FUNCTION z_f4if_shlp_exit_example.&lt;BR /&gt;*"----------------------------------------------------------------------&lt;BR /&gt;*"*"Local Interface:&lt;BR /&gt;*"  TABLES&lt;BR /&gt;*"      SHLP_TAB TYPE  SHLP_DESCT&lt;BR /&gt;*"      RECORD_TAB STRUCTURE  SEAHLPRES&lt;BR /&gt;*"  CHANGING&lt;BR /&gt;*"     VALUE(SHLP) TYPE  SHLP_DESCR&lt;BR /&gt;*"     VALUE(CALLCONTROL) LIKE  DDSHF4CTRL STRUCTURE  DDSHF4CTRL&lt;BR /&gt;*"----------------------------------------------------------------------&lt;BR /&gt;&lt;BR /&gt;* Data Declaration&lt;BR /&gt;  DATA: lt_shlpselop TYPE ddshselops,&lt;BR /&gt;        ls_shlpselop LIKE LINE OF lt_shlpselop,&lt;BR /&gt;        gd_wgbez     TYPE t087s-gdlgrp_txt , "h_zmatsearch-wgbez,&lt;BR /&gt;        gd_usrwgbez  TYPE t087s-gdlgrp_txt, "h_zmatsearch-wgbez,&lt;BR /&gt;        gd_tabix     TYPE i,&lt;BR /&gt;        lt_shlp      TYPE shlp_descr-fielddescr,&lt;BR /&gt;        ls_shlp      LIKE LINE OF lt_shlp.&lt;BR /&gt;&lt;BR /&gt;* EXIT immediately, if you do not want to handle this step&lt;BR /&gt;  IF callcontrol-step &amp;lt;&amp;gt; 'SELONE' AND&lt;BR /&gt;     callcontrol-step &amp;lt;&amp;gt; 'SELECT' AND&lt;BR /&gt;     " AND SO ON&lt;BR /&gt;     callcontrol-step &amp;lt;&amp;gt; 'DISP'.&lt;BR /&gt;    EXIT.&lt;BR /&gt;  ENDIF.&lt;BR /&gt;  IF callcontrol-step = 'SELONE'.&lt;BR /&gt;*   PERFORM SELONE .........&lt;BR /&gt;    EXIT.&lt;BR /&gt;  ENDIF.&lt;BR /&gt;  IF callcontrol-step = 'PRESEL'.&lt;BR /&gt;*   PERFORM PRESEL ..........&lt;BR /&gt;    EXIT.&lt;BR /&gt;  ENDIF.&lt;BR /&gt;  IF callcontrol-step = 'SELECT'.&lt;BR /&gt;    LOOP AT shlp-selopt INTO ls_shlpselop.&lt;BR /&gt;      IF ls_shlpselop-shlpfield EQ 'GDLGRP_TXT'.&lt;BR /&gt;        gd_usrwgbez = ls_shlpselop-low.&lt;BR /&gt;        EXPORT  gd_usrwgbez TO MEMORY ID 'ID1234'.&lt;BR /&gt;        DELETE shlp-selopt INDEX sy-tabix.&lt;BR /&gt;      ENDIF.&lt;BR /&gt;    ENDLOOP.&lt;BR /&gt;    EXIT. "Don't process STEP DISP additionally in this call.&lt;BR /&gt;  ENDIF.&lt;BR /&gt;  IF callcontrol-step = 'DISP'.&lt;BR /&gt;    IMPORT gd_usrwgbez TO gd_usrwgbez FROM MEMORY ID 'ID1234'.&lt;BR /&gt;    IF NOT gd_usrwgbez IS INITIAL.&lt;BR /&gt;      TRANSLATE gd_usrwgbez TO UPPER CASE.&lt;BR /&gt;      LOOP AT record_tab.&lt;BR /&gt;        gd_tabix = sy-tabix.&lt;BR /&gt;        READ TABLE shlp-fielddescr INTO ls_shlp&lt;BR /&gt;                                         WITH KEY tabname   = 'T087S'&lt;BR /&gt;                                                  fieldname = 'GDLGRP_TXT'.&lt;BR /&gt;        ls_shlp-offset = ls_shlp-offset / 2.&lt;BR /&gt;*&lt;BR /&gt;        gd_wgbez = record_tab-string+ls_shlp-offset(20).&lt;BR /&gt;        TRANSLATE gd_wgbez TO UPPER CASE.&lt;BR /&gt;        IF NOT gd_wgbez CP gd_usrwgbez.&lt;BR /&gt;          DELETE record_tab INDEX gd_tabix.&lt;BR /&gt;        ENDIF.&lt;BR /&gt;      ENDLOOP.&lt;BR /&gt;    ENDIF.&lt;BR /&gt;    EXIT.&lt;BR /&gt;  ENDIF.&lt;BR /&gt;ENDFUNCTION.&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 23 Sep 2022 13:42:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/search-help-showing-less-values/m-p/12561673#M2007719</guid>
      <dc:creator>former_member806481</dc:creator>
      <dc:date>2022-09-23T13:42:38Z</dc:date>
    </item>
    <item>
      <title>Re: search help showing less values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-help-showing-less-values/m-p/12561674#M2007720</link>
      <description>&lt;P&gt;A few things. &lt;/P&gt;&lt;OL&gt;&lt;LI&gt;I hope that &lt;STRONG&gt;z_f4if_shlp_exit_example&lt;/STRONG&gt; is not the final name of your search help function module.&lt;/LI&gt;&lt;LI&gt;Don't use EXIT to quit a function module, use RETURN.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Now, have you tried debugging to see how many records the function module returns? Since nowhere do you use callcontrol-maxrecords, it seems likely the issue isn't in your FM. &lt;BR /&gt;&lt;BR /&gt;Try putting an SQL trace and run the search help with and without restricting the number of records. See where the select is happening and exactly what SQL is being issued and where.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Sep 2022 14:33:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/search-help-showing-less-values/m-p/12561674#M2007720</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2022-09-23T14:33:55Z</dc:date>
    </item>
    <item>
      <title>Re: search help showing less values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-help-showing-less-values/m-p/12561675#M2007721</link>
      <description>&lt;P&gt;Put a break-point at the start of the DISP step.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;The standard selection of data was restricted to 500 records into RECORD_TAB at the SELECT step &lt;/LI&gt;&lt;LI&gt;Then your exit deleted most of those selected records at start of the DISP step. &lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;(What was your exact requirement)&lt;/P&gt;</description>
      <pubDate>Fri, 23 Sep 2022 15:51:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/search-help-showing-less-values/m-p/12561675#M2007721</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2022-09-23T15:51:52Z</dc:date>
    </item>
    <item>
      <title>Re: search help showing less values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-help-showing-less-values/m-p/12561676#M2007722</link>
      <description>&lt;P&gt;i wanted to make the search help case insensetive so that whenever i give va* (small caps) i get all values of va irrespective of the case&lt;/P&gt;</description>
      <pubDate>Sun, 25 Sep 2022 10:14:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/search-help-showing-less-values/m-p/12561676#M2007722</guid>
      <dc:creator>former_member806481</dc:creator>
      <dc:date>2022-09-25T10:14:04Z</dc:date>
    </item>
    <item>
      <title>Re: search help showing less values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-help-showing-less-values/m-p/12561677#M2007723</link>
      <description>&lt;P&gt;before i  put va* there are 500 values fetched and what happens is after i put va* the loop goes for the 500 values that were there and in that 500 values only 9 values are there starting with va*&lt;/P&gt;</description>
      <pubDate>Sun, 25 Sep 2022 10:16:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/search-help-showing-less-values/m-p/12561677#M2007723</guid>
      <dc:creator>former_member806481</dc:creator>
      <dc:date>2022-09-25T10:16:56Z</dc:date>
    </item>
    <item>
      <title>Re: search help showing less values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-help-showing-less-values/m-p/12561678#M2007724</link>
      <description>&lt;P&gt;Please debug yourself, then when you understand what happens, refine your question.&lt;/P&gt;</description>
      <pubDate>Sun, 25 Sep 2022 11:14:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/search-help-showing-less-values/m-p/12561678#M2007724</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2022-09-25T11:14:25Z</dc:date>
    </item>
    <item>
      <title>Re: search help showing less values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-help-showing-less-values/m-p/12561679#M2007725</link>
      <description>&lt;P&gt;i have debugged it i am just not understanding that whenever i am restricting it to 500 then i get only 8 values&lt;/P&gt;</description>
      <pubDate>Sun, 25 Sep 2022 11:20:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/search-help-showing-less-values/m-p/12561679#M2007725</guid>
      <dc:creator>former_member806481</dc:creator>
      <dc:date>2022-09-25T11:20:21Z</dc:date>
    </item>
    <item>
      <title>Re: search help showing less values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-help-showing-less-values/m-p/12561680#M2007726</link>
      <description>&lt;P&gt;Please explain what you have seen in the debug then.&lt;/P&gt;</description>
      <pubDate>Sun, 25 Sep 2022 12:05:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/search-help-showing-less-values/m-p/12561680#M2007726</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2022-09-25T12:05:57Z</dc:date>
    </item>
    <item>
      <title>Re: search help showing less values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-help-showing-less-values/m-p/12561681#M2007727</link>
      <description>&lt;P&gt;I guess you understand that you delete all lines (except 8?) because of &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;        IF NOT gd_wgbez CP gd_usrwgbez.
          DELETE record_tab INDEX gd_tabix.
        ENDIF.&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;What contain gd_wgbez and gd_usrwgbez when lines are deleted?&lt;/P&gt;&lt;P&gt;What contain gd_wgbez and gd_usrwgbez when lines are not deleted?&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 25 Sep 2022 12:16:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/search-help-showing-less-values/m-p/12561681#M2007727</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2022-09-25T12:16:34Z</dc:date>
    </item>
    <item>
      <title>Re: search help showing less values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-help-showing-less-values/m-p/12561682#M2007728</link>
      <description>&lt;P&gt;I guess you didn't understand what Raymond told you.&lt;/P&gt;&lt;P&gt;If you restrict to 500, your user exit deletes 492 lines as expected, so only 8 lines are shown.&lt;/P&gt;&lt;P&gt;If you don't restrict, of course it works as expected.&lt;/P&gt;</description>
      <pubDate>Sun, 25 Sep 2022 12:25:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/search-help-showing-less-values/m-p/12561682#M2007728</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2022-09-25T12:25:00Z</dc:date>
    </item>
    <item>
      <title>Re: search help showing less values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-help-showing-less-values/m-p/12561683#M2007729</link>
      <description>&lt;P&gt;&lt;STRONG&gt; i see that i am looping the record_tab and comapring the values (va*) and then deleting the unmatched values.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;but is there a way that i restrict the search help to 500 values and when i give (va*) i get 500 values starting with va irrespective of their cases ( 'Va' 'vA' 'va' 'VA' )&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 25 Sep 2022 13:02:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/search-help-showing-less-values/m-p/12561683#M2007729</guid>
      <dc:creator>former_member806481</dc:creator>
      <dc:date>2022-09-25T13:02:58Z</dc:date>
    </item>
    <item>
      <title>Re: search help showing less values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-help-showing-less-values/m-p/12561684#M2007730</link>
      <description>&lt;P&gt;If you want your search help exit to filter the records specifically and return the requested number of records, you must:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Use CALLCONTROL-MAXRECORDS to know the limit chosen by the user&lt;/LI&gt;&lt;LI&gt;Do your own SELECT and filtering in the 'SELECT' step (if CALLCONTROL-STEP = 'SELECT') to have up to CALLCONTROL-MAXRECORDS records&lt;BR /&gt;-- Better remove the view or table name from the source of the search help to not SELECT useless.&lt;/LI&gt;&lt;LI&gt;Update the parameter RECORDS from the SELECT using the function module F4UT_RESULTS_MAP&lt;/LI&gt;&lt;LI&gt;"CALLCONTROL-STEP should be changed to 'DISP' since the F4 processor will otherwise again delete the values entered in RECORD_TAB at SELECT time." (from doc of F4UT_RESULTS_MAP)&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Sun, 25 Sep 2022 14:48:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/search-help-showing-less-values/m-p/12561684#M2007730</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2022-09-25T14:48:09Z</dc:date>
    </item>
    <item>
      <title>Re: search help showing less values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-help-showing-less-values/m-p/12561685#M2007731</link>
      <description>&lt;P&gt;i will try this approach&lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2022 05:19:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/search-help-showing-less-values/m-p/12561685#M2007731</guid>
      <dc:creator>former_member806481</dc:creator>
      <dc:date>2022-09-26T05:19:06Z</dc:date>
    </item>
    <item>
      <title>Re: search help showing less values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-help-showing-less-values/m-p/12561686#M2007732</link>
      <description>&lt;P&gt;  &lt;SPAN class="mention-scrubbed"&gt;sandra.rossi&lt;/SPAN&gt; thank you for your answer it worked for me .&lt;/P&gt;&lt;P&gt;Under the step 'DISP' i have written the following line of code&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;IF callcontrol-step = 'DISP'.&lt;BR /&gt;&lt;BR /&gt;    SELECT gdlgrp, gdlgrp_txt FROM t087s INTO TABLE @DATA(lt_t087s)&lt;BR /&gt;       WHERE spras EQ @sy-langu.&lt;BR /&gt;    IF sy-subrc = 0.&lt;BR /&gt;      CALL FUNCTION 'F4UT_RESULTS_MAP'&lt;BR /&gt;        EXPORTING&lt;BR /&gt;*         SOURCE_STRUCTURE   =&lt;BR /&gt;          apply_restrictions = 'X'&lt;BR /&gt;        TABLES&lt;BR /&gt;          shlp_tab           = shlp_tab&lt;BR /&gt;          record_tab         = record_tab&lt;BR /&gt;          source_tab         = lt_t087s&lt;BR /&gt;        CHANGING&lt;BR /&gt;          shlp               = shlp&lt;BR /&gt;          callcontrol        = callcontrol&lt;BR /&gt;        EXCEPTIONS&lt;BR /&gt;          illegal_structure  = 1&lt;BR /&gt;          OTHERS             = 2.&lt;BR /&gt;    ENDIF.&lt;BR /&gt;*   PERFORM AUTHORITY_CHECK TABLES RECORD_TAB SHLP_TAB&lt;BR /&gt;*                           CHANGING SHLP CALLCONTROL.&lt;BR /&gt;**    EXIT.&lt;BR /&gt;    RETURN.&lt;BR /&gt;  ENDIF.&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 26 Sep 2022 05:44:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/search-help-showing-less-values/m-p/12561686#M2007732</guid>
      <dc:creator>former_member806481</dc:creator>
      <dc:date>2022-09-26T05:44:05Z</dc:date>
    </item>
    <item>
      <title>Re: search help showing less values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-help-showing-less-values/m-p/12561687#M2007733</link>
      <description>&lt;P&gt;You would have to handle the SELECT step yourself for this requirement. (select the data and use a FM such as F4UT_RESULTS_MAP to pass the selected records back to search-help)&lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2022 09:54:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/search-help-showing-less-values/m-p/12561687#M2007733</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2022-09-26T09:54:52Z</dc:date>
    </item>
    <item>
      <title>Re: search help showing less values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-help-showing-less-values/m-p/12561688#M2007734</link>
      <description>&lt;P&gt;Did you select everything, filtered according to "va*" and you didn't need to use CALLCONTROL-MAXRECORDS ?&lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2022 13:39:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/search-help-showing-less-values/m-p/12561688#M2007734</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2022-09-26T13:39:24Z</dc:date>
    </item>
  </channel>
</rss>

