<?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 Using ALV as a search Help in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-alv-as-a-search-help/m-p/3371920#M809447</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Has anyone used ALV as a search help presentation/selection method.  I'm thinking, in a simplistic sense, it would be just creating an itab and presenting it on a grid in a container on a new screen called by an exit....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Probably too simple, huh?    Pointers to any snippets that implement this would be welcome.  &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;(additionally, might have a need to save user layouts of this info as well) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thoughts, comments, pitfalls.... ? &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;...Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Jan 2008 16:57:18 GMT</pubDate>
    <dc:creator>mike_mcinerney</dc:creator>
    <dc:date>2008-01-29T16:57:18Z</dc:date>
    <item>
      <title>Using ALV as a search Help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-alv-as-a-search-help/m-p/3371920#M809447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Has anyone used ALV as a search help presentation/selection method.  I'm thinking, in a simplistic sense, it would be just creating an itab and presenting it on a grid in a container on a new screen called by an exit....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Probably too simple, huh?    Pointers to any snippets that implement this would be welcome.  &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;(additionally, might have a need to save user layouts of this info as well) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thoughts, comments, pitfalls.... ? &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;...Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jan 2008 16:57:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-alv-as-a-search-help/m-p/3371920#M809447</guid>
      <dc:creator>mike_mcinerney</dc:creator>
      <dc:date>2008-01-29T16:57:18Z</dc:date>
    </item>
    <item>
      <title>Re: Using ALV as a search Help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-alv-as-a-search-help/m-p/3371921#M809448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Once Simple way is to use&lt;/P&gt;&lt;P&gt;'REUSE_ALV_POPUP_TO_SELECT'&lt;/P&gt;&lt;P&gt;And pass the table that you want to serve as search help.&lt;/P&gt;&lt;P&gt;Of course there will be better andf more state of the art methods using OOPS. &lt;/P&gt;&lt;P&gt;A sample that I used:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CALL FUNCTION 'REUSE_ALV_POPUP_TO_SELECT'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      i_title              = 'Send Orders to SQL'&lt;/P&gt;&lt;P&gt;      i_checkbox_fieldname = 'CHECKBOX'&lt;/P&gt;&lt;P&gt;      i_tabname            = 'TLINE'&lt;/P&gt;&lt;P&gt;      it_fieldcat          = fieldcat[]&lt;/P&gt;&lt;P&gt;      it_excluding         = extab[]&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      e_exit               = e_exit&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      t_outtab             = tline&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      program_error        = 1&lt;/P&gt;&lt;P&gt;      OTHERS               = 2. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds&lt;/P&gt;&lt;P&gt;Sameer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jan 2008 19:22:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-alv-as-a-search-help/m-p/3371921#M809448</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-29T19:22:28Z</dc:date>
    </item>
    <item>
      <title>Re: Using ALV as a search Help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-alv-as-a-search-help/m-p/3371922#M809449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Michael a working example I just made for some1&lt;/P&gt;&lt;P&gt;thought u might be interested&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Q. i_checkbox_fieldname = 'CHECKBOX'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A. If the table output in the popup has checkboxes at the beginning of the rows (e.g. for multiple selection), the internal table must contain a field containing the value of the checkbox.&lt;/P&gt;&lt;P&gt;Assign the name of this field to the parameter I_CHECKBOX_FIELDNAME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Q. i_tabname = 'TLINE'&lt;/P&gt;&lt;P&gt;A.  This is the name of ur input help internal table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Q. it_fieldcat = fieldcat[]&lt;/P&gt;&lt;P&gt;A  The table u gonna display has to have a fieldcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Q. it_excluding = extab[].&lt;/P&gt;&lt;P&gt;A. In case u wanna exclude some functions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is a working example, paste it in se38 and activate. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;!!! Warning SAVE IT AS A LOCAL OBJECT !!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;report ztests1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;type-pools: slis.&lt;/P&gt;&lt;P&gt;data: index type i.&lt;/P&gt;&lt;P&gt;data: l_kunnr like kna1-kunnr.&lt;/P&gt;&lt;P&gt;data: input(10) type c,&lt;/P&gt;&lt;P&gt;       text(4) type c,&lt;/P&gt;&lt;P&gt;       text1(5) type c.&lt;/P&gt;&lt;P&gt;data: begin of itab occurs 10,&lt;/P&gt;&lt;P&gt;       kunnr like kna1-kunnr,&lt;/P&gt;&lt;P&gt;       name1 like kna1-name1,&lt;/P&gt;&lt;P&gt;      end of itab.&lt;/P&gt;&lt;P&gt;data: e_exit.&lt;/P&gt;&lt;P&gt;data: fieldcat TYPE slis_t_fieldcat_alv WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameter: p_kunnr(10) type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen on value-request for p_kunnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  select kunnr name1 up to 10 rows&lt;/P&gt;&lt;P&gt;    from kna1&lt;/P&gt;&lt;P&gt;    into table itab.&lt;/P&gt;&lt;P&gt;  fieldcat-tabname = 'ITAB'.&lt;/P&gt;&lt;P&gt;  fieldcat-fieldname = 'KUNNR'.&lt;/P&gt;&lt;P&gt;  fieldcat-seltext_m = 'Cust'.&lt;/P&gt;&lt;P&gt;  fieldcat-ddictxt = 'M'.&lt;/P&gt;&lt;P&gt;  fieldcat-outputlen = 10.&lt;/P&gt;&lt;P&gt;  APPEND fieldcat.&lt;/P&gt;&lt;P&gt;  CLEAR fieldcat.&lt;/P&gt;&lt;P&gt;  fieldcat-tabname = 'ITAB'.&lt;/P&gt;&lt;P&gt;  fieldcat-fieldname = 'NAME1'.&lt;/P&gt;&lt;P&gt;  fieldcat-seltext_m = 'Cust Name'.&lt;/P&gt;&lt;P&gt;  fieldcat-ddictxt = 'M'.&lt;/P&gt;&lt;P&gt;  fieldcat-outputlen = 30.&lt;/P&gt;&lt;P&gt;  APPEND fieldcat.&lt;/P&gt;&lt;P&gt;  CLEAR fieldcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'REUSE_ALV_POPUP_TO_SELECT'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        I_TITLE                       = 'Customer Selection'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      I_SELECTION                   = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      I_ALLOW_NO_SELECTION          =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      I_ZEBRA                       = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      I_SCREEN_START_COLUMN         = 0&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      I_SCREEN_START_LINE           = 0&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      I_SCREEN_END_COLUMN           = 0&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      I_SCREEN_END_LINE             = 0&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      I_CHECKBOX_FIELDNAME          =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      I_LINEMARK_FIELDNAME          =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      I_SCROLL_TO_SEL_LINE          = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        i_tabname                     = 'ITAB'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      I_STRUCTURE_NAME              =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        IT_FIELDCAT                   = fieldcat[]&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      IT_EXCLUDING                  =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      I_CALLBACK_PROGRAM            =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      I_CALLBACK_USER_COMMAND       =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      IS_PRIVATE                    =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      IMPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      ES_SELFIELD                   =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        E_EXIT                        = e_exit&lt;/P&gt;&lt;P&gt;      tables&lt;/P&gt;&lt;P&gt;        t_outtab                      = itab&lt;/P&gt;&lt;UL&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;      PROGRAM_ERROR                 = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      OTHERS                        = 2&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;P&gt; MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;P&gt;         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jan 2008 20:28:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-alv-as-a-search-help/m-p/3371922#M809449</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-29T20:28:20Z</dc:date>
    </item>
    <item>
      <title>Re: Using ALV as a search Help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-alv-as-a-search-help/m-p/3371923#M809450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Michael&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The function module already mentioned is one possibility.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another approach may be a &lt;STRONG&gt;search help exit&lt;/STRONG&gt;. For example, if you run transaction &lt;STRONG&gt;PPST&lt;/STRONG&gt; and use the search help for the object id you get a plethora of different search helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;   Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jan 2008 22:10:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-alv-as-a-search-help/m-p/3371923#M809450</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2008-01-29T22:10:51Z</dc:date>
    </item>
    <item>
      <title>Re: Using ALV as a search Help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-alv-as-a-search-help/m-p/3371924#M809451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Dec 2008 20:55:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-alv-as-a-search-help/m-p/3371924#M809451</guid>
      <dc:creator>mike_mcinerney</dc:creator>
      <dc:date>2008-12-16T20:55:44Z</dc:date>
    </item>
  </channel>
</rss>

