Application Development and Automation 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: 
Read only

Reference Field

Former Member
0 Likes
469

Hi All,

What does a reference field mean?

Thanks & Regards,

<b>Anil Kumar</b>

2 REPLIES 2
Read only

RaymondGiuseppi
Active Contributor
0 Likes
446

Hi Anil, look at <a href="http://http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCDWBDIC/BCDWBDIC.pdf">BC - ABAP Dictionary</a>

<b>Reference Fields and Reference Tables</b>

You must specify a reference table for fields containing quantities (data type QUAN) or currency
amounts (data type CURR).
This reference table must contain a field with the format for the currency key (data type CUKY) or
unit of measure (data type UNIT). This field is called the reference field of the output field. The
reference field can also reside in the table itself.
A field is only assigned to the reference field at program runtime. For example, if a field is filled
with currency amounts, the corresponding currency is determined from the assigned reference
field, that is the value entered in this field at the moment defines the currency.

Regards

Read only

Former Member
0 Likes
446

Hi

<b>Reference field</b> for currency and qty fields

Field of the reference table, containing the applicable quantity unit or currency.

A field containing currency amounts (data type CURR) must be assigned a reference field including the currency key (data type CUKY).

A field containing quantity specifications (data type QUAN) must be assigned a reference field including the associated quantity unit (data type UNIT).

Reward if usefull