<?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: Select Statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/2084492#M432723</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ram Mohan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data v_text(6) type c&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate  sales_org '%' into v_text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select KUNDE&lt;/P&gt;&lt;P&gt;from VAKPA&lt;/P&gt;&lt;P&gt;into table i_VAKPA&lt;/P&gt;&lt;P&gt;where KUNDE like v_text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think this will solve the problem. Correct me if I am wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ramesh S&lt;/P&gt;&lt;P&gt;*award points if reply is helpful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Ramesh Babu Srikakollu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Apr 2007 04:00:38 GMT</pubDate>
    <dc:creator>learnsap</dc:creator>
    <dc:date>2007-04-16T04:00:38Z</dc:date>
    <item>
      <title>Select Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/2084487#M432718</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;I have one import parameter as Sales_org (VBAK-VKORG).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to write a select statement to get the records from VAKPA table and the condition should be as &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Frst four characters of VAKPA-KUNDE = Sales_org.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have written the select statement as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select KUNDE&lt;/P&gt;&lt;P&gt;      from VAKPA&lt;/P&gt;&lt;P&gt;      into table i_VAKPA&lt;/P&gt;&lt;P&gt;      where KUNDE+0(4) = Sales_org.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am getting error as we cannot use offset in the select statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone let me know how to write this query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2007 03:48:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/2084487#M432718</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-16T03:48:00Z</dc:date>
    </item>
    <item>
      <title>Re: Select Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/2084488#M432719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ram , &lt;/P&gt;&lt;P&gt;  You need to use the like statement in place of equal to .&lt;/P&gt;&lt;P&gt;Take the Sales_org into a variable and append % at the end of it.&lt;/P&gt;&lt;P&gt;Then use this varaible in the where clause.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Arun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2007 03:51:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/2084488#M432719</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-16T03:51:48Z</dc:date>
    </item>
    <item>
      <title>Re: Select Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/2084489#M432720</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;Instead of KUNDE ...If it is okay..You can directly use the VKORG field in the table VAKPA..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select KUNDE&lt;/P&gt;&lt;P&gt;from VAKPA&lt;/P&gt;&lt;P&gt;into table i_VAKPA&lt;/P&gt;&lt;P&gt;where VKORG = Sales_org.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2007 03:53:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/2084489#M432720</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-16T03:53:30Z</dc:date>
    </item>
    <item>
      <title>Re: Select Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/2084490#M432721</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not clear Arun. Could you pls elaborate this with some example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ram.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2007 03:53:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/2084490#M432721</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-16T03:53:58Z</dc:date>
    </item>
    <item>
      <title>Re: Select Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/2084491#M432722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ram, &lt;/P&gt;&lt;P&gt;  Decleare a variable which can accomodiate at 5 chars , let the variable be V_TEMP.&lt;/P&gt;&lt;P&gt;CONCATENATE Sales_org '%' into v_temp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select KUNDE&lt;/P&gt;&lt;P&gt;from VAKPA&lt;/P&gt;&lt;P&gt;into table i_VAKPA&lt;/P&gt;&lt;P&gt;where KUNDE like v_temp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please try this and see if it helps.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Arun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2007 03:57:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/2084491#M432722</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-16T03:57:06Z</dc:date>
    </item>
    <item>
      <title>Re: Select Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/2084492#M432723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ram Mohan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data v_text(6) type c&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate  sales_org '%' into v_text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select KUNDE&lt;/P&gt;&lt;P&gt;from VAKPA&lt;/P&gt;&lt;P&gt;into table i_VAKPA&lt;/P&gt;&lt;P&gt;where KUNDE like v_text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think this will solve the problem. Correct me if I am wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ramesh S&lt;/P&gt;&lt;P&gt;*award points if reply is helpful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Ramesh Babu Srikakollu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2007 04:00:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/2084492#M432723</guid>
      <dc:creator>learnsap</dc:creator>
      <dc:date>2007-04-16T04:00:38Z</dc:date>
    </item>
    <item>
      <title>Re: Select Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/2084493#M432724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Arun,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My requirement is need to compare only the first 4 cahracters of field KUNDE = Sales_org. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here the field KUNDE is of 10 character in length. like 'CH10234567'  &lt;/P&gt;&lt;P&gt;and if my sales_org = CH10 then need to write select statement for this to satisfy the above condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select KUNDE&lt;/P&gt;&lt;P&gt;     from VAKPA&lt;/P&gt;&lt;P&gt;     into i_VAKPA&lt;/P&gt;&lt;P&gt;    where KUNDE+0(4) = sales_org. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2007 04:01:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/2084493#M432724</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-16T04:01:11Z</dc:date>
    </item>
    <item>
      <title>Re: Select Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/2084494#M432725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ram , &lt;/P&gt;&lt;P&gt;  The statement will check only the first 4 char and will select all those records where the first 4 char of KUNDE is the input given by you.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Arun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2007 04:06:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/2084494#M432725</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-16T04:06:19Z</dc:date>
    </item>
    <item>
      <title>Re: Select Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/2084495#M432726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;   Try this&lt;/P&gt;&lt;P&gt;    First offset Sales org in a Temporary table then pass it to the SELECT statement &lt;/P&gt;&lt;P&gt;Since &lt;/P&gt;&lt;P&gt;u cant use Offset in Select statement &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Shankar S&lt;/P&gt;&lt;P&gt;Close it when its Answered&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2007 04:07:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/2084495#M432726</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-16T04:07:11Z</dc:date>
    </item>
    <item>
      <title>Re: Select Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/2084496#M432727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI RAM MOHAN,&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 : BEGIN OF ITAB OCCURS 0,&lt;/P&gt;&lt;P&gt;       KUNDE LIKE VAKPA-KUNDE,&lt;/P&gt;&lt;P&gt;       END OF ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA :  BEGIN OF ITAB1 OCCURS 0,&lt;/P&gt;&lt;P&gt;        KUNDE LIKE VAKPA-KUNDE,&lt;/P&gt;&lt;P&gt;        END OF ITAB1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       SELECT KUNDE FROM VAKPA INTO TABLE ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       LOOP AT ITAB.&lt;/P&gt;&lt;P&gt;       ITAB-KUNDE = ITAB-KUNDE+0(4).&lt;/P&gt;&lt;P&gt;       MODIFY ITAB.&lt;/P&gt;&lt;P&gt;       CLEAR ITAB.&lt;/P&gt;&lt;P&gt;       ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       SELECT KUNDE FROM VAKPA INTO TABLE ITAB1 WHERE KUNDE EQ ITAB-KUNDE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if it is helpful let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Senthil kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2007 04:13:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/2084496#M432727</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-16T04:13:36Z</dc:date>
    </item>
    <item>
      <title>Re: Select Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/2084497#M432728</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;   store the sales org. in a variable and try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data v_sorg like vakpa-vkorg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;v_sorg = &amp;lt;Sales org.&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select KUNDE&lt;/P&gt;&lt;P&gt;from VAKPA&lt;/P&gt;&lt;P&gt;into table i_VAKPA&lt;/P&gt;&lt;P&gt;where KUNDE LIKE '%V_SORG%'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if helpful, reward&lt;/P&gt;&lt;P&gt;Sathish. R&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2007 04:17:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/2084497#M432728</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-16T04:17:50Z</dc:date>
    </item>
  </channel>
</rss>

