04-14-2008 10:32 AM
Hi All,
While creating a z-table for currency or quantity field we need to define reference table and reference field.
Can anyone explain why do we need to define it and whether that refence table should be a standard SAP table or a z-table?
Thanks in advance,
Sunanda.
04-14-2008 10:35 AM
Hi,
The reference table and reference field are the fields which specify the currency key or Unit of Measure. Suppose if the user specifies a currency amount say 1000$, the currency amount field would indicate the amount 1000 and the currency key indicates that the currency specified is in Dollars.
A reference field is needed for all currency and quantity fields as the figures in this field need a currency or unit. If you have no reference field and table for fields of this kind you will get a syntax error. This syntactic constraint reflects a semantic fact: A figure in a field does not tell you a lot if you do not know to which quantities or currencies the figure is related: It does not suffice to know that you have, for example, five items, but you need to know if you have five meters, five Euros, five pound etc. And this information is provided the reference field and table.
Reference: http://www.sap-abap4.com/abap/qa-sap-abap-dictionary-23/
<REMOVED BY MODERATOR>
regards,
Ramya
Edited by: Alvaro Tejada Galindo on Apr 14, 2008 4:58 PM
04-14-2008 10:36 AM
04-14-2008 10:37 AM
Hi ,
we need to give reference field to currency/quantity fields,
refernce table and reference field can be anything:
standard SAP or Ztable
Hope it helps,
Regards,
Talwinder