<?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: Selection according in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-according/m-p/4133218#M988368</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;U can use LIKE in the select to search the name from TVARV table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this sample code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT zdemo LINE-SIZE 180 LINE-COUNT 60(10) NO STANDARD PAGE&lt;/P&gt;&lt;P&gt;HEADING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: i_tvarv type standard table of tvarv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: l_search_text(10) type c.&lt;/P&gt;&lt;P&gt;data: v_repid like sy-repid.&lt;/P&gt;&lt;P&gt;v_repid = sy-repid.&lt;/P&gt;&lt;P&gt;concatenate v_repid+0(8) '%' into l_search_text in character mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT name&lt;/P&gt;&lt;P&gt;type&lt;/P&gt;&lt;P&gt;numb&lt;/P&gt;&lt;P&gt;sign&lt;/P&gt;&lt;P&gt;opti&lt;/P&gt;&lt;P&gt;low&lt;/P&gt;&lt;P&gt;high&lt;/P&gt;&lt;P&gt;FROM tvarv&lt;/P&gt;&lt;P&gt;INTO TABLE i_tvarv&lt;/P&gt;&lt;P&gt;WHERE name like l_search_text.&lt;/P&gt;&lt;P&gt;AND type EQ i_type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Joy.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Jul 2008 11:04:55 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-07T11:04:55Z</dc:date>
    <item>
      <title>Selection according</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-according/m-p/4133213#M988363</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to modify the selection below. &lt;/P&gt;&lt;P&gt;v_repid is the program name, tvarv-name is tvarv variable name. I need the record from tvarv only if the t_varv-name contains the string of v_repid. How can I check for example the first eight characters of the name, during the selection. I hope I was clear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT name&lt;/P&gt;&lt;P&gt;         type&lt;/P&gt;&lt;P&gt;         numb&lt;/P&gt;&lt;P&gt;         sign&lt;/P&gt;&lt;P&gt;         opti&lt;/P&gt;&lt;P&gt;         low&lt;/P&gt;&lt;P&gt;         high&lt;/P&gt;&lt;P&gt;  FROM tvarv&lt;/P&gt;&lt;P&gt;  INTO TABLE i_tvarv&lt;/P&gt;&lt;P&gt;  WHERE name EQ v_repid&lt;/P&gt;&lt;P&gt;    AND type EQ i_type.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jul 2008 10:52:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-according/m-p/4133213#M988363</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-07T10:52:59Z</dc:date>
    </item>
    <item>
      <title>Re: Selection according</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-according/m-p/4133214#M988364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;here what you can do is use string operations.&lt;/P&gt;&lt;P&gt;1&amp;gt;select the records as per your need.&lt;/P&gt;&lt;P&gt;2&amp;gt;check if t_varv-name CA v_repid &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope it helps and i guess ths is what 1 of the option that can be done &lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;bhanu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jul 2008 10:56:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-according/m-p/4133214#M988364</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-07T10:56:19Z</dc:date>
    </item>
    <item>
      <title>Re: Selection according</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-according/m-p/4133215#M988365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;you can use the selction like below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate v_repid(8) '%' into v_repid1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT SINGLE parva INTO v_kokrs FROM usr05&lt;/P&gt;&lt;P&gt;            WHERE parid = 'CAC'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;             AND bname like v_repid1.                *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i hope this slves ur probelm.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jul 2008 10:59:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-according/m-p/4133215#M988365</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-07T10:59:27Z</dc:date>
    </item>
    <item>
      <title>Re: Selection according</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-according/m-p/4133216#M988366</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;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data: lv_repid(9) type c,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lv_repid = 'abcdefg%' (your repid with %).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT name&lt;/P&gt;&lt;P&gt;type&lt;/P&gt;&lt;P&gt;numb&lt;/P&gt;&lt;P&gt;sign&lt;/P&gt;&lt;P&gt;opti&lt;/P&gt;&lt;P&gt;low&lt;/P&gt;&lt;P&gt;high&lt;/P&gt;&lt;P&gt;FROM tvarv&lt;/P&gt;&lt;P&gt;INTO TABLE i_tvarv&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;WHERE name like lv_repid&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;*&lt;EM&gt;WHERE name EQ v_repid&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;AND type EQ i_type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jul 2008 10:59:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-according/m-p/4133216#M988366</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-07T10:59:59Z</dc:date>
    </item>
    <item>
      <title>Re: Selection according</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-according/m-p/4133217#M988367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi friend ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;put a loop  and use offset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at i_tvarv into wa_tvarv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; if tvarv-name&lt;EM&gt;0(7) = v_repid&lt;/EM&gt;0(7).&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;do your operation &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;exit&lt;/P&gt;&lt;P&gt; endif.         &lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;sandeep&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jul 2008 11:02:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-according/m-p/4133217#M988367</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-07T11:02:07Z</dc:date>
    </item>
    <item>
      <title>Re: Selection according</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-according/m-p/4133218#M988368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;U can use LIKE in the select to search the name from TVARV table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this sample code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT zdemo LINE-SIZE 180 LINE-COUNT 60(10) NO STANDARD PAGE&lt;/P&gt;&lt;P&gt;HEADING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: i_tvarv type standard table of tvarv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: l_search_text(10) type c.&lt;/P&gt;&lt;P&gt;data: v_repid like sy-repid.&lt;/P&gt;&lt;P&gt;v_repid = sy-repid.&lt;/P&gt;&lt;P&gt;concatenate v_repid+0(8) '%' into l_search_text in character mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT name&lt;/P&gt;&lt;P&gt;type&lt;/P&gt;&lt;P&gt;numb&lt;/P&gt;&lt;P&gt;sign&lt;/P&gt;&lt;P&gt;opti&lt;/P&gt;&lt;P&gt;low&lt;/P&gt;&lt;P&gt;high&lt;/P&gt;&lt;P&gt;FROM tvarv&lt;/P&gt;&lt;P&gt;INTO TABLE i_tvarv&lt;/P&gt;&lt;P&gt;WHERE name like l_search_text.&lt;/P&gt;&lt;P&gt;AND type EQ i_type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Joy.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jul 2008 11:04:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-according/m-p/4133218#M988368</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-07T11:04:55Z</dc:date>
    </item>
    <item>
      <title>Re: Selection according</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-according/m-p/4133219#M988369</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the answers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jul 2008 12:20:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-according/m-p/4133219#M988369</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-07T12:20:18Z</dc:date>
    </item>
  </channel>
</rss>

