<?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: error in SELECT Statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-select-statement/m-p/5674057#M1290036</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I guess you will have to write the query in a module. You can write abap code in the PBO. Try to create a module in PBO and write your query there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;KR Jaideep,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 May 2009 07:51:26 GMT</pubDate>
    <dc:creator>jaideepsharma</dc:creator>
    <dc:date>2009-05-28T07:51:26Z</dc:date>
    <item>
      <title>error in SELECT Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-select-statement/m-p/5674056#M1290035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to pass the date to MCHB table to my  internal table in module pool program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROCESS BEFORE OUTPUT.&lt;/P&gt;&lt;P&gt;select * from MCHB into table etab .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;( error is : u201Cwhereu201D missing )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I am using : &lt;/P&gt;&lt;P&gt;select * from MCHB into table etab where matnr = mchb-matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Error is : unprocessed component with POSIT) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz guide me the correct select statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanking you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Subash&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2009 07:34:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-select-statement/m-p/5674056#M1290035</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-28T07:34:45Z</dc:date>
    </item>
    <item>
      <title>Re: error in SELECT Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-select-statement/m-p/5674057#M1290036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I guess you will have to write the query in a module. You can write abap code in the PBO. Try to create a module in PBO and write your query there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;KR Jaideep,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2009 07:51:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-select-statement/m-p/5674057#M1290036</guid>
      <dc:creator>jaideepsharma</dc:creator>
      <dc:date>2009-05-28T07:51:26Z</dc:date>
    </item>
    <item>
      <title>Re: error in SELECT Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-select-statement/m-p/5674058#M1290037</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 think the select statement itself is wrong. How you are getting the material field. Is it from the selection screen. THen it should be &lt;/P&gt;&lt;P&gt;select * from mchb into table ..... where matnr  = s_matnr  (or)  p_matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ramesh Sundaram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2009 07:52:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-select-statement/m-p/5674058#M1290037</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-28T07:52:05Z</dc:date>
    </item>
    <item>
      <title>Re: error in SELECT Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-select-statement/m-p/5674059#M1290038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;want to pass the date to MCHB table to my internal table in module pool program ==&amp;gt; Which date ?&lt;/P&gt;&lt;P&gt;In where clause you have used , mchb-matnr , from where this is coming?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2009 07:52:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-select-statement/m-p/5674059#M1290038</guid>
      <dc:creator>Sandeep_Panghal</dc:creator>
      <dc:date>2009-05-28T07:52:28Z</dc:date>
    </item>
    <item>
      <title>Re: error in SELECT Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-select-statement/m-p/5674060#M1290039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;your 2nd query will not work &lt;/P&gt;&lt;P&gt;select * from MCHB into table etab where matnr = mchb-matnr.&lt;/P&gt;&lt;P&gt;because here matnr and mchb-matnr are the same fields&lt;/P&gt;&lt;P&gt;you should use a variable or some thing else in place of mchb-matnr&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and ya try to write this code in a module under PBO&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2009 07:56:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-select-statement/m-p/5674060#M1290039</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-28T07:56:20Z</dc:date>
    </item>
    <item>
      <title>Re: error in SELECT Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-select-statement/m-p/5674061#M1290040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;select * from MCHB into table etab where matnr = mchb-matnr.&lt;/P&gt;&lt;P&gt; this statement is wrong because you where matnr = with same table mchb matnr that is incorect compare matnr of different table then MCHB&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2009 08:08:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-select-statement/m-p/5674061#M1290040</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-28T08:08:15Z</dc:date>
    </item>
    <item>
      <title>Re: error in SELECT Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-select-statement/m-p/5674062#M1290041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;   Itu2019s very simple&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Create any module or just uncomment that module like in the PBO&lt;/P&gt;&lt;P&gt;    MODULE STATUS_0101.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Then Write ur code in that module&lt;/P&gt;&lt;P&gt;    SELECT * FROM MCHB INTO TABLE ETAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Salil....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: salil chavan on May 28, 2009 10:09 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2009 08:08:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-select-statement/m-p/5674062#M1290041</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-28T08:08:48Z</dc:date>
    </item>
    <item>
      <title>Re: error in SELECT Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-select-statement/m-p/5674063#M1290042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are using module pool program. it seems to me that you would be having the material number on the module pool screen and for that material you need to fetch the date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If user can keep on changing the material and you need corresponding date then move the logic under PAI. If your material cannot be changed by user then you can do it in PBO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Process before output.

  module get_date.


Module get_date.
  select * from mchb into table etab where matnr = mchb-matnr. "Assuming MCHB-MATNR is the                                                                                
"screen field OR

  select * from mchb into table etab.
endmodule.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;ETAB has same structure as that of MCHB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2009 08:08:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-select-statement/m-p/5674063#M1290042</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-28T08:08:51Z</dc:date>
    </item>
    <item>
      <title>Re: error in SELECT Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-select-statement/m-p/5674064#M1290043</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;&lt;/P&gt;&lt;P&gt;try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select matnr werks field3 field4 ..... &lt;/P&gt;&lt;P&gt;  into table itab&lt;/P&gt;&lt;P&gt;  from MCHB&lt;/P&gt;&lt;P&gt;  where matnr in l_matnr .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2009 08:57:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-select-statement/m-p/5674064#M1290043</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-28T08:57:39Z</dc:date>
    </item>
    <item>
      <title>Re: error in SELECT Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-select-statement/m-p/5674065#M1290044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you cannot write a Query directly in &lt;STRONG&gt;Process Before Output&lt;/STRONG&gt;(PBO).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to create a module and write the query in that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2009 09:19:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-select-statement/m-p/5674065#M1290044</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-28T09:19:14Z</dc:date>
    </item>
  </channel>
</rss>

