<?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: Query in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/query/m-p/1510600#M235518</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Srinu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Firstly u have to select unique batch number from MSEG as same batch may be split. Once u have found the batch connect it to the table AFPO. For each unique record found in AFPO select header table AFKO and get collect the qty in field GAMNG.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 Aug 2006 12:36:28 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-08-04T12:36:28Z</dc:date>
    <item>
      <title>Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query/m-p/1510597#M235515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi friends,&lt;/P&gt;&lt;P&gt;       Could u please send me details how can we write this Query&lt;/P&gt;&lt;P&gt; Once the Batch is selected. Select the process order(AFPO-AUFNR) from the table AFPO where the batch number(CHARG) selected from MSEG equals the batch number(CHARG) from AFPO. Select the total amount(AFKO-GAMNG) where the procress order(AFKO-AUFNR) equals the procress order selected from AFPO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;srinu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Aug 2006 11:33:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query/m-p/1510597#M235515</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-04T11:33:23Z</dc:date>
    </item>
    <item>
      <title>Re: Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query/m-p/1510598#M235516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SELECT A&lt;SUB&gt;AUFNR, B&lt;/SUB&gt;CHARG, B&lt;SUB&gt;MATNR, A&lt;/SUB&gt;GMANG&lt;/P&gt;&lt;P&gt;INTO ITAB&lt;/P&gt;&lt;P&gt;FROM AFKO AS A INNER JOIN AFPO AS B&lt;/P&gt;&lt;P&gt;ON A&lt;SUB&gt;AUFNR = B&lt;/SUB&gt;AUFNR&lt;/P&gt;&lt;P&gt;WHERE B~CHARG = P_CHARG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anurag&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Aug 2006 12:07:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query/m-p/1510598#M235516</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-04T12:07:53Z</dc:date>
    </item>
    <item>
      <title>Re: Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query/m-p/1510599#M235517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;select *&lt;/P&gt;&lt;P&gt;from mseg&lt;/P&gt;&lt;P&gt;into table it_mseg&lt;/P&gt;&lt;P&gt;where&lt;/P&gt;&lt;P&gt;&amp;lt;your where condition&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if not_it_mseg[] is initial.&lt;/P&gt;&lt;P&gt;select aufnr&lt;/P&gt;&lt;P&gt;       charg&lt;/P&gt;&lt;P&gt;from afpo&lt;/P&gt;&lt;P&gt;into it_afpo&lt;/P&gt;&lt;P&gt;for all entries in it_mseg&lt;/P&gt;&lt;P&gt;where charg = it_mseg-charg.&lt;/P&gt;&lt;P&gt;if not it_afpo[] is initial.&lt;/P&gt;&lt;P&gt;select aufnr&lt;/P&gt;&lt;P&gt;       gamng&lt;/P&gt;&lt;P&gt;   from afko&lt;/P&gt;&lt;P&gt;into table it_afko&lt;/P&gt;&lt;P&gt;for all entries in it_afpo&lt;/P&gt;&lt;P&gt;where aufnr = it_afpo-aufnr.&lt;/P&gt;&lt;P&gt;endif.&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;ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Aug 2006 12:14:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query/m-p/1510599#M235517</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-04T12:14:16Z</dc:date>
    </item>
    <item>
      <title>Re: Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query/m-p/1510600#M235518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Srinu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Firstly u have to select unique batch number from MSEG as same batch may be split. Once u have found the batch connect it to the table AFPO. For each unique record found in AFPO select header table AFKO and get collect the qty in field GAMNG.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Aug 2006 12:36:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query/m-p/1510600#M235518</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-04T12:36:28Z</dc:date>
    </item>
    <item>
      <title>Re: Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query/m-p/1510601#M235519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi srinu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:begin of itab1 occurs 0,&lt;/P&gt;&lt;P&gt;CHARG like MSEG-CHARG,&lt;/P&gt;&lt;P&gt;end of itab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:begin of itab2 occurs 0,&lt;/P&gt;&lt;P&gt;aufnr like afpo-aufnr,&lt;/P&gt;&lt;P&gt;charg like afpo-charg,&lt;/P&gt;&lt;P&gt;end of itab2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:begin of itab3 occurs 0,&lt;/P&gt;&lt;P&gt;GAMNG like afko-gamng,&lt;/P&gt;&lt;P&gt;aufnr like afko-aufnr,&lt;/P&gt;&lt;P&gt;end of itab3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select charg from mseg into table itab1.&lt;/P&gt;&lt;P&gt;select aufnr charg from afpo into table itab2&lt;/P&gt;&lt;P&gt;   for all entries in itab1&lt;/P&gt;&lt;P&gt;    where charg = itab1-charg.&lt;/P&gt;&lt;P&gt;select GAMNG aufnr from afko into table itab3&lt;/P&gt;&lt;P&gt;  for all entries in itab2&lt;/P&gt;&lt;P&gt;    where aufnr = itab2-aufnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please reward me if it helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sowjanya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Aug 2006 12:48:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query/m-p/1510601#M235519</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-04T12:48:44Z</dc:date>
    </item>
  </channel>
</rss>

