<?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 hi    sapscript pl help in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/hi-sapscript-pl-help/m-p/1952622#M392286</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all&lt;/P&gt;&lt;P&gt;my code is given below::&lt;/P&gt;&lt;P&gt;data:&lt;/P&gt;&lt;P&gt;    zlv_netpr type netpr,&lt;/P&gt;&lt;P&gt;    zlv_netwr type netwr,  &lt;/P&gt;&lt;P&gt;    zlv_diff     type netpr,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Loop at TABLE in_tab.&lt;/P&gt;&lt;P&gt;    case in_tab-name.&lt;/P&gt;&lt;P&gt;       when 'ITAB-NETPR'.&lt;/P&gt;&lt;P&gt;          MOVE in_tab-value TO zlv_netpr.   "  HERE I AM GETTING ERROR.'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*( in_tab-value is an amount field in sapscript.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       when 'ITAB-NETWR'.&lt;/P&gt;&lt;P&gt;          MOVE in_tab-value TO zlv_netwr.&lt;/P&gt;&lt;P&gt;    endcase.&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;zlv_diff = zlv_netpr - zlv_netwr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  READ TABLE out_tab with key name = 'ITAB-DIFF' .&lt;/P&gt;&lt;P&gt;  out_tab-value = zlv_diff.&lt;/P&gt;&lt;P&gt;  MODIFY out_tab INDEX sy-tabix.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the above code is in the calling program of PERFORM.&lt;/P&gt;&lt;P&gt;I AM GETTING ERROR and error is 'in_tab-value'  cannot be interprete as number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am passing amout field from SAPSCRIP FORM to calling program i.e. 'PERFORM AND FORM'  INSIDE FORM.  &lt;/P&gt;&lt;P&gt;I HAVE TO CALCULATE IN SIDE 'FORM' OF CALLING PROG, BUT IT IS GIVING ERROR- CANNOT CONSIDER AS NUMBER.&lt;/P&gt;&lt;P&gt;IF I CHANGE THE DATA TYPE OF PASSING FIELDS TO CHAR THEN I AM NOT ABLE TO DO CALCULATION .&lt;/P&gt;&lt;P&gt;PL CORRECT THE ABOVE CODE SO THAT I CAN DO CALCULATIONS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PL HELP AS THIS HAS BEEN PENDING FOR LONG.&lt;/P&gt;&lt;P&gt;THANX&lt;/P&gt;&lt;P&gt;ROCKY&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 02 Mar 2007 07:50:23 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-03-02T07:50:23Z</dc:date>
    <item>
      <title>hi    sapscript pl help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hi-sapscript-pl-help/m-p/1952622#M392286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all&lt;/P&gt;&lt;P&gt;my code is given below::&lt;/P&gt;&lt;P&gt;data:&lt;/P&gt;&lt;P&gt;    zlv_netpr type netpr,&lt;/P&gt;&lt;P&gt;    zlv_netwr type netwr,  &lt;/P&gt;&lt;P&gt;    zlv_diff     type netpr,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Loop at TABLE in_tab.&lt;/P&gt;&lt;P&gt;    case in_tab-name.&lt;/P&gt;&lt;P&gt;       when 'ITAB-NETPR'.&lt;/P&gt;&lt;P&gt;          MOVE in_tab-value TO zlv_netpr.   "  HERE I AM GETTING ERROR.'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*( in_tab-value is an amount field in sapscript.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       when 'ITAB-NETWR'.&lt;/P&gt;&lt;P&gt;          MOVE in_tab-value TO zlv_netwr.&lt;/P&gt;&lt;P&gt;    endcase.&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;zlv_diff = zlv_netpr - zlv_netwr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  READ TABLE out_tab with key name = 'ITAB-DIFF' .&lt;/P&gt;&lt;P&gt;  out_tab-value = zlv_diff.&lt;/P&gt;&lt;P&gt;  MODIFY out_tab INDEX sy-tabix.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the above code is in the calling program of PERFORM.&lt;/P&gt;&lt;P&gt;I AM GETTING ERROR and error is 'in_tab-value'  cannot be interprete as number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am passing amout field from SAPSCRIP FORM to calling program i.e. 'PERFORM AND FORM'  INSIDE FORM.  &lt;/P&gt;&lt;P&gt;I HAVE TO CALCULATE IN SIDE 'FORM' OF CALLING PROG, BUT IT IS GIVING ERROR- CANNOT CONSIDER AS NUMBER.&lt;/P&gt;&lt;P&gt;IF I CHANGE THE DATA TYPE OF PASSING FIELDS TO CHAR THEN I AM NOT ABLE TO DO CALCULATION .&lt;/P&gt;&lt;P&gt;PL CORRECT THE ABOVE CODE SO THAT I CAN DO CALCULATIONS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PL HELP AS THIS HAS BEEN PENDING FOR LONG.&lt;/P&gt;&lt;P&gt;THANX&lt;/P&gt;&lt;P&gt;ROCKY&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Mar 2007 07:50:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hi-sapscript-pl-help/m-p/1952622#M392286</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-02T07:50:23Z</dc:date>
    </item>
    <item>
      <title>Re: hi    sapscript pl help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hi-sapscript-pl-help/m-p/1952623#M392287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi rocky..&lt;/P&gt;&lt;P&gt;try this out...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:&lt;/P&gt;&lt;P&gt;zlv_netpr type c,&lt;/P&gt;&lt;P&gt;zlv_netwr type c,&lt;/P&gt;&lt;P&gt;zlv_diff type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at  in_tab.&lt;/P&gt;&lt;P&gt;case in_tab-name.&lt;/P&gt;&lt;P&gt;when 'ITAB-NETPR'.&lt;/P&gt;&lt;P&gt;MOVE in_tab-value TO zlv_netpr. " HERE I AM GETTING ERROR.'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*( in_tab-value is an amount field in sapscript.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when 'ITAB-NETWR'.&lt;/P&gt;&lt;P&gt;MOVE in_tab-value TO zlv_netwr.&lt;/P&gt;&lt;P&gt;endcase.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the fields of in_tab and out_tab are always character types... &lt;/P&gt;&lt;P&gt;try to move into  zlv_netpr of type c of sufficient length.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let me know if it helps u..&lt;/P&gt;&lt;P&gt;sai ramesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Mar 2007 07:57:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hi-sapscript-pl-help/m-p/1952623#M392287</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-02T07:57:45Z</dc:date>
    </item>
    <item>
      <title>Re: hi    sapscript pl help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hi-sapscript-pl-help/m-p/1952624#M392288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DATA: lf_arbid TYPE afvgd-arbid,&lt;/P&gt;&lt;P&gt;        lf_arbpl TYPE crhd-arbpl.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thats how i do it:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE in_tab WITH KEY 'AFVGD-ARBID'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CHECK sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  lf_arbid = in_tab-value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;never ran into problems with that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Florian Kemmer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Mar 2007 07:57:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hi-sapscript-pl-help/m-p/1952624#M392288</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-02T07:57:55Z</dc:date>
    </item>
  </channel>
</rss>

