<?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: list process orders and work orders in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/list-process-orders-and-work-orders/m-p/2631933#M605242</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;   Is there any table from which we can get work orders(aufnr) based on work center (arbpl ).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 05 Aug 2007 18:52:51 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-08-05T18:52:51Z</dc:date>
    <item>
      <title>list process orders and work orders</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/list-process-orders-and-work-orders/m-p/2631932#M605241</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 am listing maintenance work orders, maintenance work centers ( arbpl or vaplz ) and process orders based on production work center ( arbpl ) and start dat.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;First im trying to get objid from CRHD based on work center ( arbpl ) and then,&lt;/P&gt;&lt;P&gt;AUFPL OBJNR  from AFVC based on arbid  and then,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AUFNR VAPLZ from CAUFV based on aufpl and s_date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;these are the select statements for maintenance work orders.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; SELECT objid&lt;/P&gt;&lt;P&gt;  FROM crhd&lt;/P&gt;&lt;P&gt;  INTO TABLE crhd_tab[]&lt;/P&gt;&lt;P&gt;  WHERE arbpl IN s_arbpl.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT aufpl objnr aplfl vornr INTO CORRESPONDING FIELDS OF TABLE lts_objnr[]&lt;/P&gt;&lt;P&gt;  FROM afvc&lt;/P&gt;&lt;P&gt;  FOR ALL ENTRIES IN crhd_tab[]&lt;/P&gt;&lt;P&gt;  WHERE arbid = crhd_tab-objid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT gstrp aufnr vaplz ktext INTO TABLE it_tab1&lt;/P&gt;&lt;P&gt;  FROM caufv&lt;/P&gt;&lt;P&gt;  FOR ALL ENTRIES IN lts_objnr[]&lt;/P&gt;&lt;P&gt;  WHERE aufpl = lts_objnr-aufpl&lt;/P&gt;&lt;P&gt;  AND gstrp IN s_date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also i wrote separate select statement for listing process orders.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT a&lt;SUB&gt;gstrp a&lt;/SUB&gt;aufnr a&lt;SUB&gt;ernam  c&lt;/SUB&gt;arbpl&lt;/P&gt;&lt;P&gt;  INTO TABLE it_tabp FROM caufv AS a&lt;/P&gt;&lt;P&gt;  INNER JOIN afru AS b ON a&lt;SUB&gt;aufnr = b&lt;/SUB&gt;aufnr&lt;/P&gt;&lt;P&gt;  INNER JOIN crhd AS c ON b&lt;SUB&gt;arbid = c&lt;/SUB&gt;objid&lt;/P&gt;&lt;P&gt;  WHERE&lt;/P&gt;&lt;P&gt;  a~gstrp IN s_date&lt;/P&gt;&lt;P&gt;  AND c~arbpl IN s_arbpl.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and  im collecting both the orders in final internal tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i enter only date in selection screen im getting both process orders and work orders, maintenance work centers.&lt;/P&gt;&lt;P&gt;But when i enter date and work center, its displaying only process orders.&lt;/P&gt;&lt;P&gt;I looked into the tables but unable to find the relation between maintenance work orders, maintenance work center and production work center.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2007 21:02:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/list-process-orders-and-work-orders/m-p/2631932#M605241</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-02T21:02:14Z</dc:date>
    </item>
    <item>
      <title>Re: list process orders and work orders</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/list-process-orders-and-work-orders/m-p/2631933#M605242</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;   Is there any table from which we can get work orders(aufnr) based on work center (arbpl ).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 Aug 2007 18:52:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/list-process-orders-and-work-orders/m-p/2631933#M605242</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-05T18:52:51Z</dc:date>
    </item>
  </channel>
</rss>

