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

Former Member
0 Likes
2,363

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

7 REPLIES 7
Read only

Former Member
0 Likes
1,202

Hi,

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

Erwan

Read only

Former Member
0 Likes
1,202
Read only

p291102
Active Contributor
0 Likes
1,202

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

Read only

anversha_s
Active Contributor
0 Likes
1,202

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

Read only

Former Member
0 Likes
1,202

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

Read only

Former Member
0 Likes
1,202

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>

Read only

0 Likes
1,202

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

Dhananjay