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

about Currency and Quantity Fields

former_member577909
Participant
0 Likes
658

How does the Currency and Quantity fields are set to a field in a Table, created in SE11

can you please send examples of each

Thankyou

How does the Currency and Quantity fields are set to a field in a Table, created in SE11

can you please send examples of each

Thankyou

2 REPLIES 2
Read only

Former Member
0 Likes
617

Hi Bhaskar

When in SE11, select the tab "Currency/Quantity Fields".

When you are in the tab, the fields which require reference fields will be open. Here we set the respective reference fields.

Hope this helps.

Kind Regards

Eswar

Read only

anversha_s
Active Contributor
0 Likes
617

hi,

its same like any other field.

but one difference :- <i>the reference field is requires.</i>

<i>why reference field?</i>

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'.

Hope u gor the idea

Rgds

Anver