<?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: how to do column calculation in smartforms using table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-do-column-calculation-in-smartforms-using-table/m-p/7559885#M1564218</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;retreived the five column ( POSNR MATNR FKIMG VRKME NETWR )  values by providing code in GLOBAL SETTINGS -- INITIALISATION (TAB)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT POSNR MATNR FKIMG VRKME NETWR  INTO CORRESPONDING FIELDS OF TABLE&lt;/P&gt;&lt;P&gt;   ITAB FROM VBRP WHERE VBELN EQ PVBELN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And in  MAIN AREA-----Table -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; DATA (Tab) provided&lt;/P&gt;&lt;P&gt;Loop &lt;/P&gt;&lt;P&gt; Internal Table   ITAB  TO  WA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Created Text at each cell as &lt;/P&gt;&lt;P&gt;WA-POSNR(for Cell 7),&lt;/P&gt;&lt;P&gt;WA-MATNR (for Cell 8),&lt;/P&gt;&lt;P&gt;WA-FKIMG(for CELL9),&lt;/P&gt;&lt;P&gt;WA-VRKME(for Cell 10),&lt;/P&gt;&lt;P&gt;UPRICE(for Cell 11),&lt;/P&gt;&lt;P&gt;WA-NETWR(for Cell 12)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Jan 2011 10:55:39 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-01-11T10:55:39Z</dc:date>
    <item>
      <title>how to do column calculation in smartforms using table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-do-column-calculation-in-smartforms-using-table/m-p/7559881#M1564214</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;In Smartform Table..I created main area ( as TABLE) having  columns  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;POSNR(CELL7),   MATNR(CELL8),  FKIMG(CELL9),  VRKME(CELL10),  UPRICE(CELL11),  NETWR(CELL12)....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here UPRICE--- Calculate this field as Unit price = Amount / Billed Qty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For this....I created a Flow Logic at CELL11 &lt;/P&gt;&lt;P&gt;CELL11(Right click)&lt;/P&gt;&lt;P&gt;CREATE---FLOW LOGIC -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt;PROGRAM LINE&lt;/P&gt;&lt;P&gt;Provided code:&lt;/P&gt;&lt;P&gt;UPRICE = WA-NETWR / WA-FKIMG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its showing the run time error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Reference field WA-NETWR unknown in form&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what i have to do now for calculating UPRICE in this case...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;offer removed by moderator&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Lohit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Thomas Zloch on Jan 11, 2011 11:36 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jan 2011 09:41:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-do-column-calculation-in-smartforms-using-table/m-p/7559881#M1564214</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-11T09:41:52Z</dc:date>
    </item>
    <item>
      <title>Re: how to do column calculation in smartforms using table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-do-column-calculation-in-smartforms-using-table/m-p/7559882#M1564215</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;The workarea WA is the destination structure in TableArea declaration?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jan 2011 10:39:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-do-column-calculation-in-smartforms-using-table/m-p/7559882#M1564215</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-11T10:39:19Z</dc:date>
    </item>
    <item>
      <title>Re: how to do column calculation in smartforms using table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-do-column-calculation-in-smartforms-using-table/m-p/7559883#M1564216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lohit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Move the wa-NETWR Value to another field declared locally in the Progeam Logic and use the declared variable for calculation.&lt;/P&gt;&lt;P&gt;It happens for CURR / QUAN fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Preyansh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jan 2011 10:45:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-do-column-calculation-in-smartforms-using-table/m-p/7559883#M1564216</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-11T10:45:26Z</dc:date>
    </item>
    <item>
      <title>Re: how to do column calculation in smartforms using table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-do-column-calculation-in-smartforms-using-table/m-p/7559884#M1564217</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;The error is because of the NETWR is type of currency .&lt;/P&gt;&lt;P&gt;So you need to give a reference for this wa_netwr field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For doing this you can give the reference as currency against wa_netwr in the table where you are looping this .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this might be helpful to solve your issue&lt;/P&gt;&lt;P&gt;With Regards,&lt;/P&gt;&lt;P&gt;Sumodh.P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jan 2011 10:55:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-do-column-calculation-in-smartforms-using-table/m-p/7559884#M1564217</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-11T10:55:04Z</dc:date>
    </item>
    <item>
      <title>Re: how to do column calculation in smartforms using table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-do-column-calculation-in-smartforms-using-table/m-p/7559885#M1564218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;retreived the five column ( POSNR MATNR FKIMG VRKME NETWR )  values by providing code in GLOBAL SETTINGS -- INITIALISATION (TAB)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT POSNR MATNR FKIMG VRKME NETWR  INTO CORRESPONDING FIELDS OF TABLE&lt;/P&gt;&lt;P&gt;   ITAB FROM VBRP WHERE VBELN EQ PVBELN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And in  MAIN AREA-----Table -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; DATA (Tab) provided&lt;/P&gt;&lt;P&gt;Loop &lt;/P&gt;&lt;P&gt; Internal Table   ITAB  TO  WA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Created Text at each cell as &lt;/P&gt;&lt;P&gt;WA-POSNR(for Cell 7),&lt;/P&gt;&lt;P&gt;WA-MATNR (for Cell 8),&lt;/P&gt;&lt;P&gt;WA-FKIMG(for CELL9),&lt;/P&gt;&lt;P&gt;WA-VRKME(for Cell 10),&lt;/P&gt;&lt;P&gt;UPRICE(for Cell 11),&lt;/P&gt;&lt;P&gt;WA-NETWR(for Cell 12)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jan 2011 10:55:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-do-column-calculation-in-smartforms-using-table/m-p/7559885#M1564218</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-11T10:55:39Z</dc:date>
    </item>
    <item>
      <title>Re: how to do column calculation in smartforms using table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-do-column-calculation-in-smartforms-using-table/m-p/7559886#M1564219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Preyansh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I declared locally in the Program Logic as below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : PNETWR TYPE VBRP-NETWR,&lt;/P&gt;&lt;P&gt;             PFKIMG TYPE VBRP-FKIMG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PNETWR = WA-NETWR.&lt;/P&gt;&lt;P&gt;PFKIMG = WA-FKIMG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UPRICE =  PNETWR / PFKIMG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Same error is coming...&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Can u explain me clearly plz.. i dont know much about CURR / QUAN fields..&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jan 2011 13:11:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-do-column-calculation-in-smartforms-using-table/m-p/7559886#M1564219</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-11T13:11:22Z</dc:date>
    </item>
    <item>
      <title>Re: how to do column calculation in smartforms using table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-do-column-calculation-in-smartforms-using-table/m-p/7559887#M1564220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In Global Definition -&amp;gt; Currency/Quant. Fields put your WA-NETWR and define the field as quantity or currency&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2011 05:16:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-do-column-calculation-in-smartforms-using-table/m-p/7559887#M1564220</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-15T05:16:14Z</dc:date>
    </item>
  </channel>
</rss>

