Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Reference Table and Reference field

Former Member
0 Kudos

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.

3 REPLIES 3

Former Member
0 Kudos

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

Former Member

Former Member
0 Kudos

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