<?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: amount value error while reading itab in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/amount-value-error-while-reading-itab/m-p/6201055#M1376046</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ajay,&lt;/P&gt;&lt;P&gt;you would be using some FM to upload data to some internal table. in this internal table, define fields as strings or char type data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;define a temp variable of type P decimals 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then when you pass the internal table to some other final table, for the amount field,&lt;/P&gt;&lt;P&gt;first pass it to the temp variable. then pass this temp variable to the actual field of type betrg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: p1 type i value '576',
      p2 type p DECIMALS 2,
      p3 TYPE betrg.

"p3 from p2 and p2  from p1
p3 = p2 = p1.

WRITE / : p1, p2 , p3.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 Sep 2009 09:28:41 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-09-25T09:28:41Z</dc:date>
    <item>
      <title>amount value error while reading itab</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/amount-value-error-while-reading-itab/m-p/6201048#M1376039</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;&lt;/P&gt;&lt;P&gt;I am reading internal table which has been created by upload of excel. the amount field in the excel was in two format one was '2552.09' and other was '2552' when i transfer to betrg feild it is correct for  '2552.09' but for '2552' is '25.52' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How i can resolve this. It may be 25.00 or 25 as value in excel but i need that sould be same as 25.00 in betrg field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pls suggest me a solution &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Sep 2009 08:08:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/amount-value-error-while-reading-itab/m-p/6201048#M1376039</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-25T08:08:15Z</dc:date>
    </item>
    <item>
      <title>Re: amount value error while reading itab</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/amount-value-error-while-reading-itab/m-p/6201049#M1376040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Before moving it to betrg field , move it to type p varaible with decimals 2 and then move it to betrg.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Sep 2009 08:41:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/amount-value-error-while-reading-itab/m-p/6201049#M1376040</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-25T08:41:25Z</dc:date>
    </item>
    <item>
      <title>Re: amount value error while reading itab</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/amount-value-error-while-reading-itab/m-p/6201050#M1376041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;loop at the table which you have uploaded from excel,&lt;/P&gt;&lt;P&gt;and pass the amount fields to field of type p decimals 2&lt;/P&gt;&lt;P&gt;then you pass this p field to betrg .&lt;/P&gt;&lt;P&gt;endloop&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Sep 2009 08:52:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/amount-value-error-while-reading-itab/m-p/6201050#M1376041</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-25T08:52:37Z</dc:date>
    </item>
    <item>
      <title>Re: amount value error while reading itab</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/amount-value-error-while-reading-itab/m-p/6201051#M1376042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __default_attr="blue" __jive_macro_name="color"&gt;Hi, 
&amp;lt;li&amp;gt;Define BETRG field in Internal table with type C length 18, then upload.

Thanks
Venkat.O&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Sep 2009 08:54:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/amount-value-error-while-reading-itab/m-p/6201051#M1376042</guid>
      <dc:creator>venkat_o</dc:creator>
      <dc:date>2009-09-25T08:54:48Z</dc:date>
    </item>
    <item>
      <title>Re: amount value error while reading itab</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/amount-value-error-while-reading-itab/m-p/6201052#M1376043</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;When you are reading betrg value from excel, move it into char format betrg field in your internal table then you create a function module and convert it into required format like ( decimal notation formats )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;N.NNN,NN&lt;/P&gt;&lt;P&gt;N,NNN.NN&lt;/P&gt;&lt;P&gt;N NNN NNN,NN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and also provide this decimal notation foarmt  in selection screen, at that time of data upload based on decimal notation and delimiter, convert it into required format in that function module. once the data is converted required format move the betrg field it into your actual internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Karthik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Sep 2009 09:02:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/amount-value-error-while-reading-itab/m-p/6201052#M1376043</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-25T09:02:50Z</dc:date>
    </item>
    <item>
      <title>Re: amount value error while reading itab</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/amount-value-error-while-reading-itab/m-p/6201053#M1376044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i didnt understant how to impliment  wht you said . My problem has not resolved yet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Sep 2009 09:23:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/amount-value-error-while-reading-itab/m-p/6201053#M1376044</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-25T09:23:53Z</dc:date>
    </item>
    <item>
      <title>Re: amount value error while reading itab</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/amount-value-error-while-reading-itab/m-p/6201054#M1376045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i tried to covert it in temp type p decimals 2 . but  there also value 567 became 5.67 but i want it should be 567.00 .. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pls suggest something &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Sep 2009 09:25:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/amount-value-error-while-reading-itab/m-p/6201054#M1376045</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-25T09:25:44Z</dc:date>
    </item>
    <item>
      <title>Re: amount value error while reading itab</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/amount-value-error-while-reading-itab/m-p/6201055#M1376046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ajay,&lt;/P&gt;&lt;P&gt;you would be using some FM to upload data to some internal table. in this internal table, define fields as strings or char type data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;define a temp variable of type P decimals 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then when you pass the internal table to some other final table, for the amount field,&lt;/P&gt;&lt;P&gt;first pass it to the temp variable. then pass this temp variable to the actual field of type betrg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: p1 type i value '576',
      p2 type p DECIMALS 2,
      p3 TYPE betrg.

"p3 from p2 and p2  from p1
p3 = p2 = p1.

WRITE / : p1, p2 , p3.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Sep 2009 09:28:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/amount-value-error-while-reading-itab/m-p/6201055#M1376046</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-25T09:28:41Z</dc:date>
    </item>
    <item>
      <title>Re: amount value error while reading itab</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/amount-value-error-while-reading-itab/m-p/6201056#M1376047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;field in internal table is of betrg type. but its not working for them if the value is absolut. it converts 2456 into 24.56 .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Sep 2009 09:31:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/amount-value-error-while-reading-itab/m-p/6201056#M1376047</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-25T09:31:52Z</dc:date>
    </item>
    <item>
      <title>Re: amount value error while reading itab</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/amount-value-error-while-reading-itab/m-p/6201057#M1376048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;change the field to string,&lt;/P&gt;&lt;P&gt;and then upload&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Sep 2009 09:35:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/amount-value-error-while-reading-itab/m-p/6201057#M1376048</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-25T09:35:57Z</dc:date>
    </item>
    <item>
      <title>Re: amount value error while reading itab</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/amount-value-error-while-reading-itab/m-p/6201058#M1376049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Saumyaprakash.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it_data TYPE STANDARD TABLE OF alsmex_tabline,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; data : l_amt_text(20) type c .&lt;/P&gt;&lt;P&gt;data : l_betrg type pa0009-betrg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fM i m using is 'ALSM_EXCEL_TO_INTERNAL_TABLE'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT it_data INTO wa_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CASE wa_data-col.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;      WHEN '0015'.&lt;/P&gt;&lt;P&gt;        l_amt_text = wa_data-value.&lt;/P&gt;&lt;P&gt;        REPLACE ',' in l_amt_text WITH ''.&lt;/P&gt;&lt;P&gt;        CONDENSE l_amt_text .&lt;/P&gt;&lt;P&gt;        break 259411 .&lt;/P&gt;&lt;P&gt;        l_betrg = l_amt_text .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is sample pice of my code whicj is not working&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Sep 2009 09:36:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/amount-value-error-while-reading-itab/m-p/6201058#M1376049</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-25T09:36:48Z</dc:date>
    </item>
    <item>
      <title>Re: amount value error while reading itab</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/amount-value-error-while-reading-itab/m-p/6201059#M1376050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello Ajay&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Move your field into char type then covert it into required format for that create a function module use decimal notation and separtor for identifaition which format you wants to convert&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Karthik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Sep 2009 09:38:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/amount-value-error-while-reading-itab/m-p/6201059#M1376050</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-25T09:38:28Z</dc:date>
    </item>
    <item>
      <title>Re: amount value error while reading itab</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/amount-value-error-while-reading-itab/m-p/6201060#M1376051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;even string has not worked.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Sep 2009 09:42:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/amount-value-error-while-reading-itab/m-p/6201060#M1376051</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-25T09:42:10Z</dc:date>
    </item>
    <item>
      <title>Re: amount value error while reading itab</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/amount-value-error-while-reading-itab/m-p/6201061#M1376052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;put a break point where you are assigning it to the l_betrg and see both values&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Sep 2009 10:22:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/amount-value-error-while-reading-itab/m-p/6201061#M1376052</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-25T10:22:19Z</dc:date>
    </item>
  </channel>
</rss>

