<?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: Data Conversion from decimal to currency field in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-conversion-from-decimal-to-currency-field/m-p/852437#M46497</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Krishna,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;i think the problem is inside BAPI_PO_CREATE1 in which bapimepoitem-net_price has a different length of type with mepoitem-netpr. &lt;/P&gt;&lt;P&gt;in my point of view, mepoitem-netpr would only accept  11 characters(9 + 2 decimals.), but the bapimepoitem-net_price has a length greater than of mepoitem-netpr.&lt;/P&gt;&lt;P&gt;so in the codes of FM 'MAP2I_BAPIITEM_TO_ITEM' in BAPI_PO_CREATE1:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TRY.&lt;/P&gt;&lt;P&gt;MOVE bapimepoitem-net_price&lt;/P&gt;&lt;P&gt;TO mepoitem-netpr .&lt;/P&gt;&lt;P&gt;ENDTRY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the program would possible dump, because of the inconsistency.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if i would create manualy a PO in ME21N, i could have a net price of 11 characters with no decimals( curr=IDR). but in the program using BAPI_PO_CREATE_PO1, only the first 9 characters of the netprice are taken into the PO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please advise, we need this asap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;many thanks..&lt;/P&gt;&lt;P&gt;Richard&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Dec 2008 16:07:58 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-12-12T16:07:58Z</dc:date>
    <item>
      <title>Data Conversion from decimal to currency field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-conversion-from-decimal-to-currency-field/m-p/852433#M46493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using BAPI_PO_CHANGE FM. in that i am passing net price (NET_PRICE) = (NEW_PRICE). But NET_PRICE type is DEC | 28 | 9 and NEW_PRICE type is CURR | 11 | 2. it will work or i have to convert type of NEW_PRICE. How to convert type of NEW_PRICE?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any other FM for changing PO item price. Please let me know&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Parag&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Dec 2004 06:28:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-conversion-from-decimal-to-currency-field/m-p/852433#M46493</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-12-24T06:28:24Z</dc:date>
    </item>
    <item>
      <title>Re: Data Conversion from decimal to currency field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-conversion-from-decimal-to-currency-field/m-p/852434#M46494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Parag,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will have to convert NEW_PRICE to the type of NET_PRICE. Since the target is of greater length specification than the source, you can use a simple move statement. I think there will not be any problem of truncation.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data: new_price type BPREI      value &amp;lt;some value&amp;gt;,
      net_price type BAPICUREXT.  

move new_price to net_price.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anand Mandalika.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Dec 2004 06:40:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-conversion-from-decimal-to-currency-field/m-p/852434#M46494</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-12-24T06:40:47Z</dc:date>
    </item>
    <item>
      <title>Re: Data Conversion from decimal to currency field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-conversion-from-decimal-to-currency-field/m-p/852435#M46495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Expert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to add to this trail..&lt;/P&gt;&lt;P&gt;i also have a issue in creating PO upload program using BAPI_PO_CREATE1, with regards to the net price.&lt;/P&gt;&lt;P&gt;If the specified CUrrency has a decimal of 2. the program works perfectly. But when using a currency with no decimals,(like IDR). if the specified net price has a length of 10 of 11. (ex. 1234567890), the program would only get the first 9 digits from the given net price. PO created would have an item with net price 123,456,789. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;could anyone advise me on how could i make the net price in the PO to 11 chars if currency is IDR??&lt;/P&gt;&lt;P&gt;please advise.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE in populating the net price in bapi, &lt;/P&gt;&lt;P&gt;in FM 'MAP2I_BAPIITEM_TO_ITEM'.   &lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------" /&gt;&lt;P&gt;TRY.&lt;/P&gt;&lt;P&gt;    MOVE bapimepoitem-net_price&lt;/P&gt;&lt;P&gt;      TO mepoitem-netpr                                              .&lt;/P&gt;&lt;P&gt;  ENDTRY.&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------" /&gt;&lt;P&gt;they have different data type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bapimepoitem-net_price is type DEC 28 with decimals 9.&lt;/P&gt;&lt;P&gt;mepoitem-netpr is type CURR 5.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Dec 2008 11:05:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-conversion-from-decimal-to-currency-field/m-p/852435#M46495</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-12T11:05:12Z</dc:date>
    </item>
    <item>
      <title>Re: Data Conversion from decimal to currency field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-conversion-from-decimal-to-currency-field/m-p/852436#M46496</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;   Always pass the same format as allowed in Fun Mod, else dump will come.&lt;/P&gt;&lt;P&gt;you can later change it to whatever format you want,&lt;/P&gt;&lt;P&gt;declare one variable of required format &amp;amp; pass the value to it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Krishna..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Dec 2008 11:20:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-conversion-from-decimal-to-currency-field/m-p/852436#M46496</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-12T11:20:18Z</dc:date>
    </item>
    <item>
      <title>Re: Data Conversion from decimal to currency field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-conversion-from-decimal-to-currency-field/m-p/852437#M46497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Krishna,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;i think the problem is inside BAPI_PO_CREATE1 in which bapimepoitem-net_price has a different length of type with mepoitem-netpr. &lt;/P&gt;&lt;P&gt;in my point of view, mepoitem-netpr would only accept  11 characters(9 + 2 decimals.), but the bapimepoitem-net_price has a length greater than of mepoitem-netpr.&lt;/P&gt;&lt;P&gt;so in the codes of FM 'MAP2I_BAPIITEM_TO_ITEM' in BAPI_PO_CREATE1:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TRY.&lt;/P&gt;&lt;P&gt;MOVE bapimepoitem-net_price&lt;/P&gt;&lt;P&gt;TO mepoitem-netpr .&lt;/P&gt;&lt;P&gt;ENDTRY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the program would possible dump, because of the inconsistency.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if i would create manualy a PO in ME21N, i could have a net price of 11 characters with no decimals( curr=IDR). but in the program using BAPI_PO_CREATE_PO1, only the first 9 characters of the netprice are taken into the PO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please advise, we need this asap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;many thanks..&lt;/P&gt;&lt;P&gt;Richard&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Dec 2008 16:07:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-conversion-from-decimal-to-currency-field/m-p/852437#M46497</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-12T16:07:58Z</dc:date>
    </item>
  </channel>
</rss>

