<?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: How to read Process Orders in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-read-process-orders/m-p/2685477#M621033</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Max,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    Thanks alot for the quick replies, how to join tj02t and the rest of table's i am not able to find any related fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;babu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Aug 2007 15:21:34 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-08-23T15:21:34Z</dc:date>
    <item>
      <title>How to read Process Orders</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-read-process-orders/m-p/2685472#M621028</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;&lt;/P&gt;&lt;P&gt;  I got confusion in reading process orders for the list of material numbers which is in internal table, my functional gave the following tables and wants to me perform join..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;caufv,afpo and just&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what is the relation between this table,if any body give code sample i appreciate it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;babu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Aug 2007 14:44:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-read-process-orders/m-p/2685472#M621028</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-23T14:44:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to read Process Orders</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-read-process-orders/m-p/2685473#M621029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi babu,&lt;/P&gt;&lt;P&gt;do you mean jest OR just?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you mean jest, try SQVI with a join and insert these tables than&lt;/P&gt;&lt;P&gt;you get the information.&lt;/P&gt;&lt;P&gt;I think it's aufnr and objnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Dieter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Aug 2007 14:54:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-read-process-orders/m-p/2685473#M621029</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-23T14:54:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to read Process Orders</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-read-process-orders/m-p/2685474#M621030</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;PRE&gt;&lt;CODE&gt;SELECT * FROM CAUFV INTO TABLE T_CAUFV
                  FOR ALL ENTRIES IN T_ITAB
                      WHERE PLNBEZ = T_ITAB-MATNR.
IF SY-SUBRC = 0.
  SELECT * FROM AFPO INTO TABLE T_AFPO
        FOR ALL ENTRIES IN T_CAUFV
              WHERE AUFNR = T_CAUFV-AUFNR.
  
  SELECT * FROM JEST INTO TABLE T_JEST
       FOR ALL ENTRIES IN T_CAUFV
              WHERE OBJNR = T_CAUFV-OBJNR.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Aug 2007 14:54:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-read-process-orders/m-p/2685474#M621030</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-23T14:54:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to read Process Orders</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-read-process-orders/m-p/2685475#M621031</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;   In addition to that i must read the process orders which does not have the status 'TECO' 'DLFL','CLSD' 'DLV', from where i will got these status.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plz help me out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards&lt;/P&gt;&lt;P&gt;babu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Aug 2007 15:02:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-read-process-orders/m-p/2685475#M621031</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-23T15:02:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to read Process Orders</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-read-process-orders/m-p/2685476#M621032</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 believe the status code is in table TJ02T, it should be the short text TXT04.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So u should check the real code ISTAT linked to your status: TECO, DLFL, CLSD, DLV:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT * FROM CAUFV INTO TABLE T_CAUFV
                  FOR ALL ENTRIES IN T_ITAB
                      WHERE PLNBEZ = T_ITAB-MATNR.
IF SY-SUBRC = 0.
  SELECT * FROM AFPO INTO TABLE T_AFPO
        FOR ALL ENTRIES IN T_CAUFV
              WHERE AUFNR = T_CAUFV-AUFNR.
    
  SELECT * FROM JEST INTO TABLE T_JEST
       FOR ALL ENTRIES IN T_CAUFV
              WHERE OBJNR = T_CAUFV-OBJNR.
ENDIF.

SELECT * FROM TJ02T WHERE SPRAS = SY-LANGU
                      AND ( TXT04 = 'TECO' OR 
                            TXT04 = 'DLFL' OR 
                            TXT04 = 'CLSD' OR
                            TXT04 = 'DLV' ).  
  R_STAT(3)  = 'IEQ'.
  R_STAT-LOW = TJ02T-ISTAT.
  APPEND R_STAT.
ENDSELECT.

LOOP AT T_CAUFV.
  LOOP AT T_JEST WHERE OBJNR = T_CAUFV-OBJNR
                   AND STAT  IN R_STAT.
    EXIT.
  ENDLOOP.
  IF SY-SUBRC = 0.
    DELETE T_AUFNR.
    DELETE T_JEST WHERE OBJNR = T_CAUFV-OBJNR.
    DELETE T_AFPO WHERE AUFNR = T_CAUFV-AUFNR. 
  ENDIF.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Aug 2007 15:11:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-read-process-orders/m-p/2685476#M621032</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-23T15:11:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to read Process Orders</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-read-process-orders/m-p/2685477#M621033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Max,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    Thanks alot for the quick replies, how to join tj02t and the rest of table's i am not able to find any related fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;babu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Aug 2007 15:21:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-read-process-orders/m-p/2685477#M621033</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-23T15:21:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to read Process Orders</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-read-process-orders/m-p/2685478#M621034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SELECT * FROM CAUFV INTO TABLE T_CAUFV&lt;/P&gt;&lt;P&gt;                  FOR ALL ENTRIES IN T_ITAB&lt;/P&gt;&lt;P&gt;                      WHERE PLNBEZ = T_ITAB-MATNR.&lt;/P&gt;&lt;P&gt;IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;  SELECT * FROM AFPO INTO TABLE T_AFPO&lt;/P&gt;&lt;P&gt;        FOR ALL ENTRIES IN T_CAUFV&lt;/P&gt;&lt;P&gt;              WHERE AUFNR = T_CAUFV-AUFNR.&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;  SELECT * FROM JEST INTO TABLE T_JEST&lt;/P&gt;&lt;P&gt;       FOR ALL ENTRIES IN T_CAUFV&lt;/P&gt;&lt;P&gt;         &amp;lt;b&amp;gt;     WHERE OBJNR = T_CAUFV-OBJNR&lt;/P&gt;&lt;P&gt;                   and  stat in ('TECO' ,'DLFL','CLSD', 'DLV').&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Aug 2007 15:25:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-read-process-orders/m-p/2685478#M621034</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-23T15:25:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to read Process Orders</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-read-process-orders/m-p/2685479#M621035</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;The link between CAUFV and JEST is field OBJNR: JEST-OBJNR = CAUFV-OBJNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The link between JEST and TJ02T are the fields STAT and ISTAT:&lt;/P&gt;&lt;P&gt;TJ02T-ISTAT = JEST-STAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Aug 2007 15:32:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-read-process-orders/m-p/2685479#M621035</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-23T15:32:36Z</dc:date>
    </item>
  </channel>
</rss>

