<?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/1611499#M274111</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT SINGLE * INTO I_JEST FROM JEST
WHERE OBJNR = I_TMP_CAUFV-OBJNR and STAT = 'I0002'.
if sy-subrc = 0.
  SELECT SINGLE * INTO I_JEST FROM JEST
WHERE OBJNR = I_TMP_CAUFV-OBJNR and STAT = 'I0042'.
endif.

so now ur object id will contain both the status&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Oct 2006 17:12:05 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-10-13T17:12:05Z</dc:date>
    <item>
      <title>Select Statement.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/1611494#M274106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i need to compare two status and then diplay how should i do that.&lt;/P&gt;&lt;P&gt;if the stat - 'I0002' , stat - 'I0042'.&lt;/P&gt;&lt;P&gt;if the object id is having both the stat then only i need to display it.&lt;/P&gt;&lt;P&gt;how should i write the select statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT SINGLE * INTO I_JEST FROM JEST&lt;/P&gt;&lt;P&gt;    WHERE OBJNR = I_TMP_CAUFV-OBJNR and STAT IN ('I0002','I0042')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Oct 2006 16:59:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/1611494#M274106</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-13T16:59: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/1611495#M274107</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: i_jest type standard table of jest,&lt;/P&gt;&lt;P&gt;      wa_jest type jest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * INTO table I_JEST FROM JEST&lt;/P&gt;&lt;P&gt;WHERE OBJNR = I_TMP_CAUFV-OBJNR and &lt;/P&gt;&lt;P&gt;      ( STAT = 'I0002' or STAT = 'I0042' ).&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Praaksh.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Oct 2006 17:02:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/1611495#M274107</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-13T17:02: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/1611496#M274108</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 you cannot do this in a single select statement..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Instead Try this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * INTO TABLE IT_JEST FROM JEST&lt;/P&gt;&lt;P&gt;WHERE OBJNR = I_TMP_CAUFV-OBJNR and STAT IN ('I0002','I0042') &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE IT_JEST WITH KEY OBJNR = I_TMP_CAUFV-OBJNR&lt;/P&gt;&lt;P&gt;                            STAT = 'I0002'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  READ TABLE IT_JEST WITH KEY OBJNR = I_TMP_CAUFV-OBJNR&lt;/P&gt;&lt;P&gt;                            STAT = 'I0004'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Both the status are found..&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&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>Fri, 13 Oct 2006 17:02:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/1611496#M274108</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-13T17:02:33Z</dc:date>
    </item>
    <item>
      <title>Re: Select Statement.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/1611497#M274109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SELECT SINGLE * INTO I_JEST FROM JEST&lt;/P&gt;&lt;P&gt;WHERE OBJNR = I_TMP_CAUFV-OBJNR and STAT = 'I0002' or stat = 'I0042'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Oct 2006 17:03:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/1611497#M274109</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-13T17:03:02Z</dc:date>
    </item>
    <item>
      <title>Re: Select Statement.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/1611498#M274110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kamlesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write this select ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT SINGLE * INTO I_JEST FROM JEST&lt;/P&gt;&lt;P&gt;WHERE OBJNR = I_TMP_CAUFV-OBJNR and &lt;/P&gt;&lt;P&gt;             ( STAT = 'I0002' or STAT = I0042)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Oct 2006 17:05:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/1611498#M274110</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-13T17:05: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/1611499#M274111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT SINGLE * INTO I_JEST FROM JEST
WHERE OBJNR = I_TMP_CAUFV-OBJNR and STAT = 'I0002'.
if sy-subrc = 0.
  SELECT SINGLE * INTO I_JEST FROM JEST
WHERE OBJNR = I_TMP_CAUFV-OBJNR and STAT = 'I0042'.
endif.

so now ur object id will contain both the status&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Oct 2006 17:12:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/1611499#M274111</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-13T17:12:05Z</dc:date>
    </item>
  </channel>
</rss>

