<?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: Coding buck.. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/coding-buck/m-p/4694510#M1103311</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;Paste your code so that we can troubleshoot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Karthik D&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Nov 2008 07:45:24 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-11-12T07:45:24Z</dc:date>
    <item>
      <title>Coding buck..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/coding-buck/m-p/4694508#M1103309</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 have requirements in my program that...&lt;/P&gt;&lt;P&gt;In one case there is sales order and sales order Item number ..&lt;/P&gt;&lt;P&gt;for each sales order item, there is one production order..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In another case for one sales order item number, there are more than one production orders...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to display the production orders with respect to sales order item number correctly....&lt;/P&gt;&lt;P&gt;In my coding i used FOR ALL ENTRIES for the production orders with respect to sales order item with the table AUFK...and later i read the internal table with READ statement..But problem occurs when there is more than one production order for the same sales order number and item number..&lt;/P&gt;&lt;P&gt;I am unable to retrieve it in coding..&lt;/P&gt;&lt;P&gt;Please help me out..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Viju&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Nov 2008 07:07:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/coding-buck/m-p/4694508#M1103309</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-12T07:07:51Z</dc:date>
    </item>
    <item>
      <title>Re: Coding buck..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/coding-buck/m-p/4694509#M1103310</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;just check when yor are using FOR ALL ENTRIES form AUFK you are also selecting Sales order number and Sales Order Item number from AUFK , it shud be like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select AUFNR&lt;/P&gt;&lt;P&gt;          KDAUF   &lt;/P&gt;&lt;P&gt;         KDPOS&lt;/P&gt;&lt;P&gt;from AUFK&lt;/P&gt;&lt;P&gt;inot table i_aufk&lt;/P&gt;&lt;P&gt;for all entries in i_vbap&lt;/P&gt;&lt;P&gt;where kdauf = i_vbap-vbeln&lt;/P&gt;&lt;P&gt;  and kdpos = posnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;secondly, by using the READ statement you will get only one entry ie the first entry which it finds for that Sales Order Item Number, so you would have to LOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;type: begin of t_aufnr,&lt;/P&gt;&lt;P&gt;           aufnr type aufk-aufnr,&lt;/P&gt;&lt;P&gt;        end of t_aufnr.&lt;/P&gt;&lt;P&gt;data: g_kdpos type aufk-kdpos,&lt;/P&gt;&lt;P&gt;        i_aufnr type standard table of t_aufnr.&lt;/P&gt;&lt;P&gt;        &lt;/P&gt;&lt;P&gt;loop at i_aufk into wa_aufk.&lt;/P&gt;&lt;P&gt;if g_kdpos is initial.         " For the 1st rec&lt;/P&gt;&lt;P&gt;    g_kdpos = wa_aufk-kdpos.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;   if g_kdpos = wa_aufk-kdpos.&lt;/P&gt;&lt;P&gt;      move wa_aufk-aufnr to wa_aufnr-aufnr.&lt;/P&gt;&lt;P&gt;       append wa_aufnr to i_aufnr.&lt;/P&gt;&lt;P&gt;  else.&lt;/P&gt;&lt;P&gt;      refresh i_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;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Nov 2008 07:41:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/coding-buck/m-p/4694509#M1103310</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-12T07:41:44Z</dc:date>
    </item>
    <item>
      <title>Re: Coding buck..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/coding-buck/m-p/4694510#M1103311</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;Paste your code so that we can troubleshoot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Karthik D&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Nov 2008 07:45:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/coding-buck/m-p/4694510#M1103311</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-12T07:45:24Z</dc:date>
    </item>
    <item>
      <title>Re: Coding buck..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/coding-buck/m-p/4694511#M1103312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Please display the code. So that the problem can be identified.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Nov 2008 07:48:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/coding-buck/m-p/4694511#M1103312</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-12T07:48:48Z</dc:date>
    </item>
  </channel>
</rss>

