<?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 Transformations - end routine in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/transformations-end-routine/m-p/3204174#M763816</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;My Question is wrt. Transformations in BW.&lt;/P&gt;&lt;P&gt;I have an end routine where I want to fill some keyfigures in the target cube based on some condition. For eg Keyfigure1 has to be filled only if the org is usa or canada or if the org value exists as entry in a zorg field in a ztable after reading the table.&lt;/P&gt;&lt;P&gt;Only for these selected orgs, keyfigure is to be populated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried by myself and wrote some code but I dont know why the code is not being executed at all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me in writing the code. I would be happy if anyone can write along with the declaration.&lt;/P&gt;&lt;P&gt;I will assign points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Aryaman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 Dec 2007 18:58:32 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-12-28T18:58:32Z</dc:date>
    <item>
      <title>Transformations - end routine</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transformations-end-routine/m-p/3204174#M763816</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;My Question is wrt. Transformations in BW.&lt;/P&gt;&lt;P&gt;I have an end routine where I want to fill some keyfigures in the target cube based on some condition. For eg Keyfigure1 has to be filled only if the org is usa or canada or if the org value exists as entry in a zorg field in a ztable after reading the table.&lt;/P&gt;&lt;P&gt;Only for these selected orgs, keyfigure is to be populated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried by myself and wrote some code but I dont know why the code is not being executed at all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me in writing the code. I would be happy if anyone can write along with the declaration.&lt;/P&gt;&lt;P&gt;I will assign points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Aryaman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Dec 2007 18:58:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transformations-end-routine/m-p/3204174#M763816</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-28T18:58:32Z</dc:date>
    </item>
    <item>
      <title>Re: Transformations - end routine</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transformations-end-routine/m-p/3204175#M763817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Where are you writing the code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the end routine, you need to work on RESULT_PACKAGE internal table as this is the output of the transformation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Send your code from the end routine, it will help us to help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sanjeev&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Dec 2007 19:20:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transformations-end-routine/m-p/3204175#M763817</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-28T19:20:00Z</dc:date>
    </item>
    <item>
      <title>Re: Transformations - end routine</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transformations-end-routine/m-p/3204176#M763818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sanjeev,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your quick response. &lt;/P&gt;&lt;P&gt;Here is my code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(The whole logic is if the org is usa or can or any of the values in the field zstorg in table zretail, amount1 has to be zero and amount2 has to be same as the amount3 in result fields)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES : BEGIN OF t_rorg,&lt;/P&gt;&lt;P&gt;   rorg TYPE zretail_org-zstorg&lt;/P&gt;&lt;P&gt;   END OF t_rorg.&lt;/P&gt;&lt;P&gt;DATA: i_rorg TYPE STANDARD TABLE OF t_rorg.&lt;/P&gt;&lt;P&gt;    DATA: w_rorg  TYPE t_rorg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: i_result TYPE STANDARD TABLE OF &lt;U&gt;ty&lt;/U&gt;s_TG_1.&lt;/P&gt;&lt;P&gt;DATA: w_result TYPE &lt;U&gt;ty&lt;/U&gt;s_TG_1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at RESULT_PACKAGE assigning &amp;lt;RESULT_FIELDS&amp;gt;.&lt;/P&gt;&lt;P&gt; if w_result-/bic/zorg = 'USA' or&lt;/P&gt;&lt;P&gt; w_result-/bic/zorg = 'CAN' &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &amp;lt;RESULT_FIELDS&amp;gt;-/bic/zamount1 = 0.&lt;/P&gt;&lt;P&gt; &amp;lt;RESULT_FIELDS&amp;gt;-/bic/zamount2 = &amp;lt;RESULT_FIELDS&amp;gt;-/bic/amount3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Elseif.&lt;/P&gt;&lt;P&gt;READ TABLE i_rorg INTO w_rorg&lt;/P&gt;&lt;P&gt;        WITH KEY rorg = RESULT_FIELDS&amp;gt;-/bic/zorg&lt;/P&gt;&lt;P&gt;        BINARY SEARCH.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;           &amp;lt;RESULT_FIELDS&amp;gt;-/bic/zamount1 = 0.&lt;/P&gt;&lt;P&gt; &amp;lt;RESULT_FIELDS&amp;gt;-/bic/zamount2 = &amp;lt;RESULT_FIELDS&amp;gt;-/bic/zamount3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        endif.&lt;/P&gt;&lt;P&gt;Endif.&lt;/P&gt;&lt;P&gt; endloop.&lt;/P&gt;&lt;P&gt; REFRESH result_package.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please correct me if I am wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Aryaman&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Aryaman Krishna on Dec 29, 2007 12:14 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Aryaman Krishna on Dec 29, 2007 12:14 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Dec 2007 23:03:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transformations-end-routine/m-p/3204176#M763818</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-28T23:03:09Z</dc:date>
    </item>
  </channel>
</rss>

