<?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: report in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/3311120#M793069</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; Do as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select  matnr  stlnr  werks  &lt;/P&gt;&lt;P&gt;   INTO CORRESPONDING FIELDS OF TABLE  itab&lt;/P&gt;&lt;P&gt;   FROM MAST&lt;/P&gt;&lt;P&gt; WHERE  stlan = '1'&lt;/P&gt;&lt;P&gt;      AND  STLAL = '01'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to check whether itab data exist in STKO, and you want to delete the records of unavailable data from itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at itab.&lt;/P&gt;&lt;P&gt; Select  stlnr  into  g_f_stlnr&lt;/P&gt;&lt;P&gt;   FROM  STKO&lt;/P&gt;&lt;P&gt; WHERE  stlnr = itab-stlnr&lt;/P&gt;&lt;P&gt;      AND  datuv = sy-datum&lt;/P&gt;&lt;P&gt;      AND  loekz  &amp;lt;&amp;gt;  'X'&lt;/P&gt;&lt;P&gt;      AND stlst = '1'.&lt;/P&gt;&lt;P&gt;  If sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;     Delete  itab.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;Endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Jan 2008 05:28:10 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-01-23T05:28:10Z</dc:date>
    <item>
      <title>report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/3311119#M793068</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;i have to keep this in a loop.&lt;/P&gt;&lt;P&gt;i am fetching the fields records for  MATNR ,STLNR ,WERKS from the MAST table with the STLAN = 1 and STLAL = 01.  &lt;/P&gt;&lt;P&gt;now i ahve to check above the material list with the STKO table with STLNR ,DATUV=SY-datum,LOEKZ NE X and STLST = 1.&lt;/P&gt;&lt;P&gt;plse help me how to do the checking. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with regards&lt;/P&gt;&lt;P&gt;aaryaa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jan 2008 05:21:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/3311119#M793068</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-23T05:21:36Z</dc:date>
    </item>
    <item>
      <title>Re: report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/3311120#M793069</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; Do as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select  matnr  stlnr  werks  &lt;/P&gt;&lt;P&gt;   INTO CORRESPONDING FIELDS OF TABLE  itab&lt;/P&gt;&lt;P&gt;   FROM MAST&lt;/P&gt;&lt;P&gt; WHERE  stlan = '1'&lt;/P&gt;&lt;P&gt;      AND  STLAL = '01'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to check whether itab data exist in STKO, and you want to delete the records of unavailable data from itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at itab.&lt;/P&gt;&lt;P&gt; Select  stlnr  into  g_f_stlnr&lt;/P&gt;&lt;P&gt;   FROM  STKO&lt;/P&gt;&lt;P&gt; WHERE  stlnr = itab-stlnr&lt;/P&gt;&lt;P&gt;      AND  datuv = sy-datum&lt;/P&gt;&lt;P&gt;      AND  loekz  &amp;lt;&amp;gt;  'X'&lt;/P&gt;&lt;P&gt;      AND stlst = '1'.&lt;/P&gt;&lt;P&gt;  If sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;     Delete  itab.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;Endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jan 2008 05:28:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/3311120#M793069</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-23T05:28:10Z</dc:date>
    </item>
    <item>
      <title>Re: report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/3311121#M793070</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;select matnr werks stlnr from mast into table i_mast (using the where clause).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now you can select data from STKO (Bom Header) using for all entries in i_mast.&lt;/P&gt;&lt;P&gt;check not i_mast[] is initial.&lt;/P&gt;&lt;P&gt;select (field list) from stko&lt;/P&gt;&lt;P&gt;into table i_stko&lt;/P&gt;&lt;P&gt;for all entries in i_mast &lt;/P&gt;&lt;P&gt;where stlty = 'M' (for material bom)&lt;/P&gt;&lt;P&gt;and stlnr = i_mast-stlnr.&lt;/P&gt;&lt;P&gt;*and any additional conditions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shyam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jan 2008 05:28:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/3311121#M793070</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-23T05:28:20Z</dc:date>
    </item>
  </channel>
</rss>

