<?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: select quirey in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-quirey/m-p/1509693#M235141</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Divya , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;its not the right approach or right way ? .U can do it on ur own i know ? just follow the way u want the output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;first get all the data  from AFPO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from afpo where matnr in S_matnr.&lt;/P&gt;&lt;P&gt;and for that order list get details from AFKO&lt;/P&gt;&lt;P&gt;and finall get the data from AUSP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;prabhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 Aug 2006 11:16:29 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-08-04T11:16:29Z</dc:date>
    <item>
      <title>select quirey</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-quirey/m-p/1509691#M235139</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;plz help me in writing select quiries for the following given specifications&lt;/P&gt;&lt;P&gt;All the tables and fields are given for ur information&lt;/P&gt;&lt;P&gt;plz help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;					&lt;/P&gt;&lt;P&gt;1.Batch # (Lot No.)	AFPO- CHARG	CHAR	10	The Process Order(AFPO-AUFNR) passed by the transaction will be used to select the batch number(CHARG).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.	Part No. (NDC # and unit amount)	AFPO- MATNR	CHAR	18	The Process Order(AFPO-AUFNR) passed by the transaction will be used to select the material number(MATNR).&lt;/P&gt;&lt;P&gt;Include dashes&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;3.	Page No. 	AFPO-AUFNR	CHAR	12	The process order(AFPO-AUFNR) is being passed by the transaction.&lt;/P&gt;&lt;P&gt;Extract last digit from the order number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4.	Bottle Amount	AFPO- MATNR	CHAR	18&lt;/P&gt;&lt;P&gt;	Last two digits of the material number(AFPO-MATNR) should be converted to a single digit and concatenated with a &amp;#147;C&amp;#148;. &lt;/P&gt;&lt;P&gt;Ex. 0378-0357-01&lt;/P&gt;&lt;P&gt;      01 = 1C. &lt;/P&gt;&lt;P&gt;Bottle Amount = 1C.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5.	Quantity 	AFKO- GAMNG	CHAR	17	Select the total amount(AFKO-GAMNG) where the procress order(AFKO-AUFNR) equals the procress order selected from AFPO-AUFNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;6.	Strength	AUSP-ATWRT	CHAR	10	Select the Characteristic Value (AUSP-ATWRT), where  the Internal characteristic(AUSP-ATINN) equals &amp;#145;CASE_LABEL_DESC_LINE5&amp;#146;, the Class type (AUSP-KLART) equals &amp;#145;001&amp;#146;, and the Object(AUSP-OBJEK) = the material number&amp;#146;s Finished product material number(AFPO-MATNR).&lt;/P&gt;&lt;P&gt;Adjust AFPO-MATNR, remove the last 3 digits from the material number, then change the -01 at the end to -00.&lt;/P&gt;&lt;P&gt;Ex. &lt;/P&gt;&lt;P&gt;0378-0457-01-C1&lt;/P&gt;&lt;P&gt;0378-0457-01&lt;/P&gt;&lt;P&gt;0378-0457-00.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;divya&lt;/P&gt;&lt;P&gt;points sure&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Aug 2006 10:54:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-quirey/m-p/1509691#M235139</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-04T10:54:46Z</dc:date>
    </item>
    <item>
      <title>Re: select quirey</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-quirey/m-p/1509692#M235140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;plz someone help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Aug 2006 11:04:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-quirey/m-p/1509692#M235140</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-04T11:04:40Z</dc:date>
    </item>
    <item>
      <title>Re: select quirey</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-quirey/m-p/1509693#M235141</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Divya , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;its not the right approach or right way ? .U can do it on ur own i know ? just follow the way u want the output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;first get all the data  from AFPO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from afpo where matnr in S_matnr.&lt;/P&gt;&lt;P&gt;and for that order list get details from AFKO&lt;/P&gt;&lt;P&gt;and finall get the data from AUSP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;prabhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Aug 2006 11:16:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-quirey/m-p/1509693#M235141</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-04T11:16:29Z</dc:date>
    </item>
    <item>
      <title>Re: select quirey</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-quirey/m-p/1509694#M235142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try the below logic.&lt;/P&gt;&lt;P&gt;&lt;/P&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 A~AUFNR = P_AUFNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT ITAB.&lt;/P&gt;&lt;P&gt;ITFIN-BATCH = ITAB-CHARG(10).&lt;/P&gt;&lt;P&gt;ITFIN-PARTNO = ITAB-MATNR.&lt;/P&gt;&lt;P&gt;ITFIN-PAGENO = ITAB-AUFNR. (NOT SURE OF YOUR SPECS)&lt;/P&gt;&lt;P&gt;CONCATENATE ITAB-MATNR+17(1) 'C' INTO ITFIN-BOTAMT. &lt;/P&gt;&lt;P&gt;ITFIN-QTY = ITAB-GAMNG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT ATWRT INTO ITFIN-STRENGTH FROM AUSP&lt;/P&gt;&lt;P&gt;WHERE AUSP-ATINN = &amp;#145;CASE_LABEL_DESC_LINE5&amp;#146;&lt;/P&gt;&lt;P&gt;KLART = &amp;#145;001&amp;#146; OBJEK = ITAB-MATNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPEND ITFIN.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anurag&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Anurag Bankley&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Aug 2006 11:26:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-quirey/m-p/1509694#M235142</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-04T11:26:07Z</dc:date>
    </item>
  </channel>
</rss>

