<?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: Error regarding quantity unit in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-regarding-quantity-unit/m-p/1327143#M167447</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;Even i use the unit the o/p dosn't show any thing&lt;/P&gt;&lt;P&gt;This is my write statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write:/ 'zorder : ', itab-zorder,&lt;/P&gt;&lt;P&gt; '  with quantity ', itab-zmenge UNIT itab-z340b-meins.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;o/p&lt;/P&gt;&lt;P&gt;zorder :  5700002246   with quantity      90 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let me know if iam wrong.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Jun 2006 21:10:56 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-06-06T21:10:56Z</dc:date>
    <item>
      <title>Error regarding quantity unit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-regarding-quantity-unit/m-p/1327134#M167438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the below statement in report program.WHEN I SYNTAX CHECK I DOESN'T SHOW ANY ERRORS&lt;/P&gt;&lt;P&gt; write:/ 'zorder : ', itab-zorder,&lt;/P&gt;&lt;P&gt;               '  with quantity ', itab-zQUAN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BUT WHEN I DO THE EXTENDED SYNTAX CHECK AT SE10 OR SE09 I.E WHEN I DO THE EXTENDED CHECK TO THE TRANSPORT OF THAT REPORT I GET THE FOLLWING ERROR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use addition UNIT when outputting ITAB-ZQUAN &lt;/P&gt;&lt;P&gt;Use auxiliary field when outputting with MESSAGE           &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ZQUANT  IS THE QUANTITY OF MATERIAL &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PLEASE LET ME KNOW IF I NEED TO DO ANY THING TO OVERCOME THIS.&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jun 2006 20:33:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-regarding-quantity-unit/m-p/1327134#M167438</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-05T20:33:01Z</dc:date>
    </item>
    <item>
      <title>Re: Error regarding quantity unit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-regarding-quantity-unit/m-p/1327135#M167439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All it is saying, is that it might be a good idea to give the UOM along with the quantity.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jun 2006 20:38:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-regarding-quantity-unit/m-p/1327135#M167439</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-06-05T20:38:13Z</dc:date>
    </item>
    <item>
      <title>Re: Error regarding quantity unit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-regarding-quantity-unit/m-p/1327136#M167440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;With quantity and currency value fields, you have to specify the unit when you are doing the WRITE for the system to get the correct number of decimal places to output. Without that, system will just use the default two decimals to output. If you are 200% sure that your values will always be of two decimal places, you don't have to worry about this, but if you are not sure, then you need a unit along with the quantity.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jun 2006 20:43:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-regarding-quantity-unit/m-p/1327136#M167440</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-05T20:43:30Z</dc:date>
    </item>
    <item>
      <title>Re: Error regarding quantity unit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-regarding-quantity-unit/m-p/1327137#M167441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your replies&lt;/P&gt;&lt;P&gt;Can you please tell me then how does my  write looks like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is my orginal write statement.&lt;/P&gt;&lt;P&gt;write:/ 'zorder : ', itab-zorder,&lt;/P&gt;&lt;P&gt;' with quantity ', itab-zQUAN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jun 2006 20:53:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-regarding-quantity-unit/m-p/1327137#M167441</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-05T20:53:56Z</dc:date>
    </item>
    <item>
      <title>Re: Error regarding quantity unit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-regarding-quantity-unit/m-p/1327138#M167442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Taken from ABAP Help.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;i&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;... UNIT unit&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This addition cannot be used together with the addition TIME ZONE. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Effect&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;This addition cuts off decimal places that have the value 0 and are outside the exactness of a unit of measure during output of data objects of data type p. For all other data types, except f, this addition is ignored. For unit, a three-digit, character-type field is expected that contains a unit key from the column MSEHI in the database table T006 in uppercase letters. The system determines the number of decimal places from the column DECAN in the corresponding row in the database table T006. If the content of unit is not found in T006, the addition is ignored. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the data type of dobj is p and has at least as many decimal places as specified by unit, and if no positions are thus cut off that are not equal to 0, then dobj is output with this number of decimal places. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the case of data objects of type f, the addition UNIT will be treated like the addition DECIMALS (see above). Here, the number of decimal places is determined by unit. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the addition UNIT is used with the length specification * or ** after AT, it is used first, and the output length is determined from the result. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the addition CURRENCY is used at the same time, this is used first for data type p and then the addition UNIT is used. In the case of data type f, the addition UNIT is ignored. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example &lt;/P&gt;&lt;P&gt;If no decimal places are specified for the number "PC" in T006, the output of the WRITE statement is "1234". &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA pack TYPE p DECIMALS 4 VALUE '1234.0000'. 
WRITE pack NO-GROUPING UNIT 'PC'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/i&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REgards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jun 2006 22:06:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-regarding-quantity-unit/m-p/1327138#M167442</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-06-05T22:06:16Z</dc:date>
    </item>
    <item>
      <title>Re: Error regarding quantity unit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-regarding-quantity-unit/m-p/1327139#M167443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Suchi , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; can u tell which field ur ref.for the Qty Field.&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;Rao&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jun 2006 06:47:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-regarding-quantity-unit/m-p/1327139#M167443</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-06T06:47:41Z</dc:date>
    </item>
    <item>
      <title>Re: Error regarding quantity unit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-regarding-quantity-unit/m-p/1327140#M167444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prabhu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;iam using a z field which is like menge.&lt;/P&gt;&lt;P&gt;please let me how would my write should look like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is my orginal statment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; write:/ itab-zorder,&lt;/P&gt;&lt;P&gt;             50 itab-zmenge.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;waiting for ur replies&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;suchi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jun 2006 14:44:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-regarding-quantity-unit/m-p/1327140#M167444</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-06T14:44:01Z</dc:date>
    </item>
    <item>
      <title>Re: Error regarding quantity unit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-regarding-quantity-unit/m-p/1327141#M167445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Suchitra,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check Rich's reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check in your Z-table, you must have UoM field associated with your menge field. Check in the tab 'Currency/Quantity Fields' in SE11. Select that field also and store in your internal table itab. And then do this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE: itab-menge UNIT itab-uom.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where uom is the actual field name of the UoM field in Z-table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jun 2006 14:48:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-regarding-quantity-unit/m-p/1327141#M167445</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-06T14:48:14Z</dc:date>
    </item>
    <item>
      <title>Re: Error regarding quantity unit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-regarding-quantity-unit/m-p/1327142#M167446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi suchitra,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write:/ 'zorder:',itab-zorder,&lt;/P&gt;&lt;P&gt;        'with quantity :',itab-zquan UNIT c_un.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here c_un is any dummy unit that you can use.   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Bujji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jun 2006 14:49:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-regarding-quantity-unit/m-p/1327142#M167446</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-06T14:49:54Z</dc:date>
    </item>
    <item>
      <title>Re: Error regarding quantity unit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-regarding-quantity-unit/m-p/1327143#M167447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;Even i use the unit the o/p dosn't show any thing&lt;/P&gt;&lt;P&gt;This is my write statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write:/ 'zorder : ', itab-zorder,&lt;/P&gt;&lt;P&gt; '  with quantity ', itab-zmenge UNIT itab-z340b-meins.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;o/p&lt;/P&gt;&lt;P&gt;zorder :  5700002246   with quantity      90 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let me know if iam wrong.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jun 2006 21:10:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-regarding-quantity-unit/m-p/1327143#M167447</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-06T21:10:56Z</dc:date>
    </item>
    <item>
      <title>Re: Error regarding quantity unit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-regarding-quantity-unit/m-p/1327144#M167448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;Even i use the unit the o/p dosn't show any thing&lt;/P&gt;&lt;P&gt;This is my write statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write:/ 'zorder : ', itab-zorder,&lt;/P&gt;&lt;P&gt; '  with quantity ', itab-zmenge UNIT itab-z340b-meins.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;o/p&lt;/P&gt;&lt;P&gt;zorder :  5700002246   with quantity      90 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let me know if iam wrong.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jun 2006 21:14:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-regarding-quantity-unit/m-p/1327144#M167448</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-06T21:14:50Z</dc:date>
    </item>
    <item>
      <title>Re: Error regarding quantity unit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-regarding-quantity-unit/m-p/1327145#M167449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Suchitra,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your o/p looks quite good. What's the problem?&lt;/P&gt;&lt;P&gt;Note that WRITE ..UNIT..  statement willl not output the UoM itself, it will just help output the quantity in a correct format and value.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jun 2006 21:54:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-regarding-quantity-unit/m-p/1327145#M167449</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-06T21:54:34Z</dc:date>
    </item>
  </channel>
</rss>

