<?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 SimulateAllocation/ Discrepency Report in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/simulateallocation-discrepency-report/m-p/2384782#M529851</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 a tech. spec with me and I have to complete a report, can you help me out to write code for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Based on the entries on the screen , populate the item details in the screen into an internal table itab_item and header into an internal table itab_header. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The values should be populated in the report as shown in the attached Format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Discrepancy report can be generated only for the line items where Plan is blank.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at itab_item.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   GL_Account                 =  itab_item-gl_account.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Account Description     = Description of the GL Account.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Internal Order / Cost Center        =   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Plan start                      =  Select AUFNR  from ZPOOLOWNER table where ZZVALID_TO = itab_item-        start_alloc_from and ZZPOOL = itab_item-pool.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Pool                              =  itab_item-pool&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Account                        =  itab_item-account.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Start allocation period   = itab_item-zzvalid_fr&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Ownership as per start allocation = Select ZZOWNER from ZPOOLOWNER table where ZZVALID_TO =  itab_item-        start_alloc_from and ZZPOOL = itab_item-pool.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    Allocation as per start allocation = Multiply itab_item-amount with ownership as per start allocation.&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;   End allocation period   = itab_item-zzvalid_to&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Ownership as per end allocation = Select ZZOWNER from ZPOOLOWNER table where ZZVALID_FR =       itab_item-end_alloc_from and ZZPOOL = itab_item-pool.&lt;/P&gt;&lt;P&gt;    Allocation as per end allocation = Multiply itab_item-amount with ownership as per end allocation.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;   Variation =  Allocation as per end allocation - Allocation as per start allocation&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;   Discrepancy  = Depends on change in plan . If Plan is added in the end alloc say Plan is ended.&lt;/P&gt;&lt;P&gt;   If Plan is not there in the end allocation say Plan is defunded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   NR  Plan: Select ZZBILLTYPE from ZPBILLMASTER where PLAN = itab_item-plan and itab_item- gl_account .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Jun 2007 19:35:13 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-06-04T19:35:13Z</dc:date>
    <item>
      <title>SimulateAllocation/ Discrepency Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simulateallocation-discrepency-report/m-p/2384782#M529851</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 a tech. spec with me and I have to complete a report, can you help me out to write code for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Based on the entries on the screen , populate the item details in the screen into an internal table itab_item and header into an internal table itab_header. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The values should be populated in the report as shown in the attached Format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Discrepancy report can be generated only for the line items where Plan is blank.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at itab_item.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   GL_Account                 =  itab_item-gl_account.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Account Description     = Description of the GL Account.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Internal Order / Cost Center        =   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Plan start                      =  Select AUFNR  from ZPOOLOWNER table where ZZVALID_TO = itab_item-        start_alloc_from and ZZPOOL = itab_item-pool.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Pool                              =  itab_item-pool&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Account                        =  itab_item-account.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Start allocation period   = itab_item-zzvalid_fr&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Ownership as per start allocation = Select ZZOWNER from ZPOOLOWNER table where ZZVALID_TO =  itab_item-        start_alloc_from and ZZPOOL = itab_item-pool.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    Allocation as per start allocation = Multiply itab_item-amount with ownership as per start allocation.&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;   End allocation period   = itab_item-zzvalid_to&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Ownership as per end allocation = Select ZZOWNER from ZPOOLOWNER table where ZZVALID_FR =       itab_item-end_alloc_from and ZZPOOL = itab_item-pool.&lt;/P&gt;&lt;P&gt;    Allocation as per end allocation = Multiply itab_item-amount with ownership as per end allocation.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;   Variation =  Allocation as per end allocation - Allocation as per start allocation&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;   Discrepancy  = Depends on change in plan . If Plan is added in the end alloc say Plan is ended.&lt;/P&gt;&lt;P&gt;   If Plan is not there in the end allocation say Plan is defunded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   NR  Plan: Select ZZBILLTYPE from ZPBILLMASTER where PLAN = itab_item-plan and itab_item- gl_account .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jun 2007 19:35:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simulateallocation-discrepency-report/m-p/2384782#M529851</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-04T19:35:13Z</dc:date>
    </item>
    <item>
      <title>Re: SimulateAllocation/ Discrepency Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simulateallocation-discrepency-report/m-p/2384783#M529852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The specs look pretty complete. Why don't you try coding it and get back to the forum if you have problems?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jun 2007 21:18:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simulateallocation-discrepency-report/m-p/2384783#M529852</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-04T21:18:43Z</dc:date>
    </item>
  </channel>
</rss>

