<?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: Problem with select statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-statement/m-p/12343209#M1992280</link>
    <description>&lt;P&gt;SELECT SINGLE extwg FROM mara INTO lv_extwg&lt;/P&gt;&lt;P&gt;WHERE matnr = lv_matnr.&lt;/P&gt;</description>
    <pubDate>Thu, 24 Dec 2020 07:13:17 GMT</pubDate>
    <dc:creator>BhargavaTanguturi</dc:creator>
    <dc:date>2020-12-24T07:13:17Z</dc:date>
    <item>
      <title>Problem with select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-statement/m-p/12343204#M1992275</link>
      <description>&lt;P&gt;DATA : lv_matnr TYPE matnr,&lt;BR /&gt; lv_extwg TYPE extwg.&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; DATA: BEGIN OF TKOMP OCCURS 10.&lt;BR /&gt; INCLUDE STRUCTURE KOMP.&lt;BR /&gt; DATA: END OF TKOMP.&lt;BR /&gt; "DATA: tkomp TYPE komp.&lt;BR /&gt; &lt;BR /&gt; SELECT SINGLE matnr extwg FROM mara INTO (lv_matnr,lv_extwg)&lt;BR /&gt; WHERE matnr = lv_matnr.&lt;BR /&gt; IF sy-subrc EQ 0.&lt;BR /&gt; tkomp-extwg = lv_extwg.&lt;BR /&gt; ENDIF.&lt;BR /&gt; WRITE &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; lv_extwg. &lt;/P&gt;
  &lt;P&gt;My problem is while execute this statement the output is empty. May i know why?&lt;/P&gt;
  &lt;P&gt;Please guide me to get a value for lv_extwg... by using mara and komp table.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Dec 2020 13:49:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-statement/m-p/12343204#M1992275</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2020-12-23T13:49:18Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-statement/m-p/12343205#M1992276</link>
      <description>&lt;P&gt;You're reading MARA with key matnr = lv_matnr and at the same time writing the result for MATNR into lv_matnr.&lt;/P&gt;&lt;P&gt;Somehow I don't think this is what you want... also, what is the value of lv_matnr to begin with?&lt;/P&gt;</description>
      <pubDate>Wed, 23 Dec 2020 14:23:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-statement/m-p/12343205#M1992276</guid>
      <dc:creator>abo</dc:creator>
      <dc:date>2020-12-23T14:23:05Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-statement/m-p/12343206#M1992277</link>
      <description>&lt;P&gt;We will fill TKOMP-EXTWG with the value from MARA?&lt;/P&gt;&lt;P&gt;TKOMP-EXTWG = MARA-EXTWG ?&lt;/P&gt;&lt;P&gt;need to fill the structure tkomp.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Dec 2020 14:33:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-statement/m-p/12343206#M1992277</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2020-12-23T14:33:55Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-statement/m-p/12343207#M1992278</link>
      <description>&lt;P&gt; &lt;SPAN class="mention-scrubbed"&gt;naveena_10&lt;/SPAN&gt; check your code as Andrea suggested: put a break point on the select and check how you read MARA table...&lt;/P&gt;&lt;P&gt;If this is the full code, you are reading with empty LV_MATNR: whatelse do you expect?&lt;/P&gt;</description>
      <pubDate>Wed, 23 Dec 2020 14:48:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-statement/m-p/12343207#M1992278</guid>
      <dc:creator>SimoneMilesi</dc:creator>
      <dc:date>2020-12-23T14:48:49Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-statement/m-p/12343208#M1992279</link>
      <description>&lt;P&gt;how to modify this code to get lv_extwg value..?&lt;/P&gt;</description>
      <pubDate>Wed, 23 Dec 2020 15:01:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-statement/m-p/12343208#M1992279</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2020-12-23T15:01:44Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-statement/m-p/12343209#M1992280</link>
      <description>&lt;P&gt;SELECT SINGLE extwg FROM mara INTO lv_extwg&lt;/P&gt;&lt;P&gt;WHERE matnr = lv_matnr.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Dec 2020 07:13:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-statement/m-p/12343209#M1992280</guid>
      <dc:creator>BhargavaTanguturi</dc:creator>
      <dc:date>2020-12-24T07:13:17Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-statement/m-p/12343210#M1992281</link>
      <description>&lt;P&gt;You can use the same variable in the WHERE as in the INTO. I've done it many times.&lt;/P&gt;&lt;P&gt;My guess is that data isn't there, or the lv_matnr is in external format and needs to go through that ALPHA conversion exit.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Dec 2020 14:41:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-statement/m-p/12343210#M1992281</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2020-12-24T14:41:48Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-statement/m-p/12343211#M1992282</link>
      <description>&lt;P&gt;It is a tiny bit more confusing, I know it works.&lt;/P&gt;&lt;P&gt;I agree on your hunch.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Dec 2020 14:44:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-statement/m-p/12343211#M1992282</guid>
      <dc:creator>abo</dc:creator>
      <dc:date>2020-12-24T14:44:24Z</dc:date>
    </item>
  </channel>
</rss>

