<?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: Problem while creating with QUAN and CURR data type fields in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-creating-with-quan-and-curr-data-type-fields/m-p/8188930#M1624990</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;John, thank you very much for your input. I have one quick question. If I need a field TOT_PRICE of data type CURR of length 13 with 2 decimal places, I can still create a new field called KWAER and reference my PRICE field to KWAER, although KWAER is of length 5 with 0 decimal places? Just curious if the length must match, or it is enoough that the data type is same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again pal.&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Aug 2011 14:53:21 GMT</pubDate>
    <dc:creator>former_member803985</dc:creator>
    <dc:date>2011-08-19T14:53:21Z</dc:date>
    <item>
      <title>Problem while creating with QUAN and CURR data type fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-creating-with-quan-and-curr-data-type-fields/m-p/8188921#M1624981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to create a Z table. A couple of fields are of data type QUAN and CURR, which need to have reference table and reference field. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Field               DataType     Length     Decimal&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; TOT_QTY       QUAN            15                 3&lt;/P&gt;&lt;P&gt; PRICE              CURR             16                2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For reference table and fields, I found a Table HRPAD23 which has a field called N_QUANTITY (15,3) that matches my TOT_QTY field's data type and it also has a field called UN_PRICE that matches my PRICE field's data type. But when I use them as reference, and try to activate the table, I get an error "combination reference table/field does not exist". How do I fix this? Can anybody help me? Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: martin99 on Aug 18, 2011 9:16 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Aug 2011 19:16:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-creating-with-quan-and-curr-data-type-fields/m-p/8188921#M1624981</guid>
      <dc:creator>former_member803985</dc:creator>
      <dc:date>2011-08-18T19:16:16Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while creating with QUAN and CURR data type fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-creating-with-quan-and-curr-data-type-fields/m-p/8188922#M1624982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Martin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To be precise, you should create and populate these ref fields in your table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And so for Total qty - create an additional field VRKME that has data element VRKME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also - for Price - create an additional field WAERK that has data element WAERK&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Look at table VBAP - as a reference point (fields KWMENG and NETWR).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Aug 2011 19:27:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-creating-with-quan-and-curr-data-type-fields/m-p/8188922#M1624982</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-18T19:27:35Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while creating with QUAN and CURR data type fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-creating-with-quan-and-curr-data-type-fields/m-p/8188923#M1624983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ahh yes - and once you add the 2 new fields, use the new fields as the reference fields versus the SAP ones that you were mentioning.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Aug 2011 19:31:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-creating-with-quan-and-curr-data-type-fields/m-p/8188923#M1624983</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-18T19:31:45Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while creating with QUAN and CURR data type fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-creating-with-quan-and-curr-data-type-fields/m-p/8188924#M1624984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Martin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I doubt that you need to add 2 extra fields in your table as suggested in the last post by John.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your error is very CLEAR that you seem to be use wrong combination of reference table and field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For QTY field,&lt;/P&gt;&lt;P&gt;use ref table  -  HRPAD23.              ref field- UNIT&lt;/P&gt;&lt;P&gt;OR&lt;/P&gt;&lt;P&gt;ref table - VBAP                       ref field - VRKME&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For PRICE field,&lt;/P&gt;&lt;P&gt;use ref table - PAD25                  ref field - KWAER&lt;/P&gt;&lt;P&gt;OR&lt;/P&gt;&lt;P&gt;ref table - T77REFDOC                                     ref field - CURRENCY&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It should work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Diwakar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Aug 2011 03:20:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-creating-with-quan-and-curr-data-type-fields/m-p/8188924#M1624984</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-19T03:20:27Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while creating with QUAN and CURR data type fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-creating-with-quan-and-curr-data-type-fields/m-p/8188925#M1624985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;D,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are correct that the fields do not need to added to make the table activate - but to make the table TRULY CORRECT and INDEPENDENT from other tables/objects, the 2 fields should added.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Aug 2011 13:11:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-creating-with-quan-and-curr-data-type-fields/m-p/8188925#M1624985</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-19T13:11:29Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while creating with QUAN and CURR data type fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-creating-with-quan-and-curr-data-type-fields/m-p/8188926#M1624986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Diwa &amp;amp; John, Thanks a lot you both. It solved my problem. I didn't create the two nea fields but added the right combination of reference table and field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Aug 2011 13:27:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-creating-with-quan-and-curr-data-type-fields/m-p/8188926#M1624986</guid>
      <dc:creator>former_member803985</dc:creator>
      <dc:date>2011-08-19T13:27:05Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while creating with QUAN and CURR data type fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-creating-with-quan-and-curr-data-type-fields/m-p/8188927#M1624987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Martin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just remember that without the 2 fields added, your table is not truly correct in SAP's, databasing, and object-oriented eyes.  You should really follow SAP Best Practices and add the two fields - your employer/client would expect Best Practices to be used (I hope).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Aug 2011 13:31:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-creating-with-quan-and-curr-data-type-fields/m-p/8188927#M1624987</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-19T13:31:36Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while creating with QUAN and CURR data type fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-creating-with-quan-and-curr-data-type-fields/m-p/8188928#M1624988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    Thanks for your advice. I'd like to follow the best practices. Now, should I add two extra fields to my table and reference my fields to these two new fields? Are these like dummy fields in my table? As I have not done this before, if you could educate me on this I'd appreciate it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Aug 2011 14:07:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-creating-with-quan-and-curr-data-type-fields/m-p/8188928#M1624988</guid>
      <dc:creator>former_member803985</dc:creator>
      <dc:date>2011-08-19T14:07:12Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while creating with QUAN and CURR data type fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-creating-with-quan-and-curr-data-type-fields/m-p/8188929#M1624989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Martin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Review the fields in table VBAP.    You can see how SAP creates their tables with the same reqs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your case - you will want to create the two new fields in your custom table - and then point your QUAN and CURR fields (in the same custom table) to the 2 new fields.  This makes your table truly independent.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also - The new fields are not dummy fields - you should populate them with the correct values "USD", for example. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This seems like extra work - and it can be skipped if Best Practices are not desired - but this makes the table its own self-sustaining object.  It is the best idea; and it only takes a few extra keystrokes and mouse clicks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Aug 2011 14:12:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-creating-with-quan-and-curr-data-type-fields/m-p/8188929#M1624989</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-19T14:12:23Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while creating with QUAN and CURR data type fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-creating-with-quan-and-curr-data-type-fields/m-p/8188930#M1624990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;John, thank you very much for your input. I have one quick question. If I need a field TOT_PRICE of data type CURR of length 13 with 2 decimal places, I can still create a new field called KWAER and reference my PRICE field to KWAER, although KWAER is of length 5 with 0 decimal places? Just curious if the length must match, or it is enoough that the data type is same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again pal.&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Aug 2011 14:53:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-creating-with-quan-and-curr-data-type-fields/m-p/8188930#M1624990</guid>
      <dc:creator>former_member803985</dc:creator>
      <dc:date>2011-08-19T14:53:21Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while creating with QUAN and CURR data type fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-creating-with-quan-and-curr-data-type-fields/m-p/8188931#M1624991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Martin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Think of this way - CHAR(8) and CHAR(20) are both character fields - but they are very different aside from that.  Length and data type are two distinct attributes of variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As a Comp Sci Professor, I can recite from my lecture materiasl - variables have 3 attributes:&lt;/P&gt;&lt;P&gt;- a variable name&lt;/P&gt;&lt;P&gt;- a length&lt;/P&gt;&lt;P&gt;- a data type&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should reference fields with the same data type AND the same length.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Aug 2011 15:02:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-creating-with-quan-and-curr-data-type-fields/m-p/8188931#M1624991</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-19T15:02:42Z</dc:date>
    </item>
  </channel>
</rss>

