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 field for quantity/currency

Former Member
0 Kudos

why s that we need to give a reference field for quantity and currency based fields alone

7 REPLIES 7

Former Member
0 Kudos

Hi,

This is because a qty must have a unit of measure, like an amount ( €, $, £, ... ) in order to use conversion functionnality.

Erwan

Former Member
0 Kudos

p291102
Active Contributor
0 Kudos

Hi,

We are just defining the quantity format and currency format like database table fields which are already defined by SAP.

Example:

In SAP quantity fields of data are like this

123.000 like that only.

The decimal places are minimum will be 3.

Thanks,

Shankar

anversha_s
Active Contributor
0 Kudos

hi,

The reference field is used for the output, the output/input format of a currency field depends on the value of its reference field.

For example if you create a screen using the field KONV-KBETR :

the reference field is RV61A-AWEI1:

if you set RV61A-AWEI1 = 3

the value in KONV-KBETR is beeing shown with 3 decimals

So you could see 3,000 but this value is automatically stored as 30.00

if you set RV61A-AWEI1 = 2

the value in KONV-KBETR is beeing shown with 2 decimals

All this convertions are automatically made in according to the value setted in reference field.

You can see this using the statament WRITE with options CURRENCY, try this:


PARAMETERS P_KBETR LIKE KONV-KBETR.

WRITE: P_KBETR CURRENCY '3'.
WRITE: / P_KBETR CURRENCY '2'.
WRITE: / P_KBETR CURRENCY '1'.

Rgds

Anver

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.

regards,

keerthi

Former Member
0 Kudos

Hi,

<b>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.</b>

0 Kudos

Ok , which reference table & reference field is used for INR(Indian rupees) in ztable . tell me also can i make also itself.

Dhananjay