2006 Dec 04 5:53 AM
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
2006 Dec 04 5:55 AM
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
2006 Dec 04 5:57 AM
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