JPY Currency - Decimal Notation in SMARTFORMS
When outputing an amount field how do you ensure the correct number of decimal places is displayed in smartforms?
Hi Terry,
abap-coding is:
data: amount type bseg-wrbtr,
hval(20).
write amount to hval currency bkpf-waers.
regards Andreas
Similar Messages
-
Decimal notation in Smartforms
Hi,
We have two smart from USD in one smart form it is showing as 14,840.50 in USD whereas for other smart forms it is showing as 14.840,50 USD.and both the invoices has been raised for the same customer whose country is belgium and currency is USD.
As far as i know decimal notation done in User id in SU01 default tab and country specific also we do decimal notation.
At present we have 1.234,56 decimal notation for Belgium in country setting and 1,234.56 in user id setting.If i changed country setting to 1,234.56 thn it shows value as 14,840.50 in the second smartform also which is our requirement.But why there is a different presentation of decimal notation?On what basis decimal notation happens in SMARTFORMS.
Regards,
SATYAHi Satya,
You might want to check the language of the smartforms, the translations and the restricted language control in the form attributes.
hope it helps,
Edgar -
Asian (JPY) currency Decimal Places Issue
HI All,
Need your help, we have a program which creates a BDC session and when the user tries to process it it throws an errror for amount in asian currencies like JPY - no decimal places allowed for currency, in the background it calls the FBB1 transaction.
The original amount is in USD however after conversion when we store it back to amount field which is of type
"glpct-tslvt" it stores the amount in JPY currency with decimal places so for example :
USD amount = 93,214. 00
JPY amount = 115,021. 86
guess the amount is stored with decimals in BSEG table, so now when we try to process the session with the JPY amount with decimals it throws an error.
I have tried the
CALL FUNCTION 'CURRENCY_AMOUNT_SAP_TO_DISPLAY'
and
CALL FUNCTION 'BAPI_CURRENCY_GETDECIMALS'
it gives me the correct value for amount so for above example JPY amount = 115,021. 86 by using the mentioned two methods i am able to get the currency in this format 11502186.00 but still has two decimal places, i think it still will not work when we process the session for FBB1.
Need your help people, appreciate your co-operation.sorry to revive an old thread...but we are having an issue with JPY in our electronic bank statements.
the BAI format for our JPY account has for example 900 yen which according to our finance department is really 9 yen. the bank claims this is a known issue and the BAI format documentation seems to be confirming the bank's position in that the decimals are implied according to the currency code (whatever that means in SAP terms is a bit foggy to us).....
currently we wrote a custom code to suppress the last two zeros (when they are zeros) but i feel this error is caused either by a wrong setting in our currency or translation tables in SAP or something else since our feeling is that this should work right out of the box without any custom programming...any ideas???...where we shoudl start looking in our currency config....does the 100:1 or 1:1 translation ratio between JPY/USD make any difference...should we try and use a function module to convert the currency ...any ideas or hints are welcome
thanks
Ram
[email protected] -
Decimal Notation in SMARTFORMS to use plant default instead of user
Hi All,
Currently, the form is printed sometimes using user decimal notation and sometimes using plant.
For new plant, the default is still 123.456,00.
However, the user one is 123,456.00.
At times, when the user tried to print invoices and etc, it will come out as 123,456.00 but at times, it comes out as 123.456,00.
The form output should be using either plant or user.
Where is the settings which can be changed?
Thanks in advance for all your help.Hi,
The decimal notations depend on the country settings specified in the system.
Hence, you can override the settings by using program lines in smartforms in which you can write as below.
SET COUNTRY 'US'. ( example taken as US ).
So, whichever country decimal notation you want in the display you can set it like above.
Regards,
Ram -
Currency decimal notation conversion
I am getting finacial values from a subsidary company in comma notation instead of the decimal notation. It is clear that their user profiles are setup with this in mind and they don't want to change them. Is there a function out there that converts comma to decimal i.e. 123,45 -> 123.45?
Thanks,
KevinHI Kevin May
USE THIS CODE: IT TAKES CARE OF DECIMAL NOTATION BASED ON USER PROFILE.
WHAT EVER MAY BE THE USER PROFILE FOR DECIMAL NOTATION.
<b>
FIELD_NUM = 1,233.50
</b>
OR
<b>
FIELD_NUM = 1.233,50
</b>
OR
<b>
FIELD_NUM = 1 233,50
</b>
SELECT SINGLE DCPFM FROM USR01
INTO VAR_DCPFM WHERE BNAME EQ SY-UNAME.
IF VAR_DCPFM EQ 'X'.
REPLACE ALL OCCURRENCES OF ',' IN: FIELD_NUM WITH ''.
* TRANSLATE FIELD_NUM USING ','.
ELSEIF VAR_DCPFM EQ ''.
REPLACE ALL OCCURRENCES OF '.' IN: FIELD_NUM WITH ''.
* TRANSLATE FIELD_NUM USING '.'.
TRANSLATE FIELD_NUM USING ',.'.
ELSEIF VAR_DCPFM EQ 'Y'.
TRANSLATE FIELD_NUM USING ',.'.
ENDIF.
THIS CODE WILL WILL RESULT INTO : <b>
FIELD_NUM = 1233.50
</b>
CHEERS,
VIJAY RAHEJA -
Hi All
Today we noticed a difference in the way SAP handles a PO which has document currency JPY. The price displayed on screen for the PO was 790 JPY, but the value stored in the tables was 0.79. Any reason why this like this ? How does standard SAP handles such cases ?
Regards
KasiHi
There are certain currencies like JPY/Yen for which amounts are automatically handled by SAP. Currency JPY has 0 decimals. Refer TCURX table for the details of decimal places for currencies.
In the case of JPY, system automatically multiplies values when displayed from table to screen and divides vice versa.
FM 'CURRENCY_AMOUNT_SAP_TO_DISPLAY' is used for this conversion.
Amount 7900 JPY on screen will be stored as 79 in SAP tables.
Also, in the case of exchange rate conversions, the rate maintained are for 1:100 to USD (ex). while other currencies would hold 1:1 conversion rate.
You can also check with FI consultants for more details
Thanks
E.Avudaiappan -
How to maintain currency decimal notation
Hi all,
we want to display currency format 1,234,567.89
but we are getting current format as 1.234.567,89
we already maintained the required format in the USER PROFILE's DEFAULT
still we are getting this format 1.234.567,89
so is there any thing we have to set at SPRO level?
and also we have to maitain any thing more than these?
please let me know urgently
thanks in advanceHi Ramesh,
Check the transaction "OY01".
You can change your format of commas and decimal out here.
Reward points if it helps.
Regards
Karan -
Changing the Decimal Notation of Invoice Smartform
Hi Gurus,
Is there a way to change the decimal notation of Standard Invoice Smatform "LB_BIL_INVOICE" ?
I want to change the decimal notation of Smartform from "1.234.567,89" to "1,234,567.89".
Please reply.
Points will b awarded...
Thanx in Advance..there are 2 ways that you can set these
1. Go to SU01, change the defaults Decimal Notation to X 1,234,567.89
2. If you have done 1st step, the notation still didn't change, put the below code in the initialization of smart forms:
SET COUNTRY ' '.
These should solve your problem. -
Displaying Currency with three decimal places in smartform
hi abap experts~~
I'm wondering that how to convert numeric type to currency type.
for example below.
ex) 2346.856 --> 2.346,856
please help me to solve the problem..
Regards,
HimanshuHi Himanshu,
This depends on the SU3 settings of ur system. GO to
tcode SU3>Defaults->decimal notation..
There change to ur desired type and relogin.
The format will change... -
Decimal Notation IDR Currency on SAP Fiori
Dear Expert,
I had trouble with decimal notation on SAP Fiori. While I look My Spend on SAP Fiori, amount is different in ECC SAP with decimal notation.
In SAP Fiori : 98.130 IDR
In ECC SAP : 9.813.000 IDR
That's different on SAP Fiori and ECC SAP. I want amount in my Spend on SAP Fiori same with Amount in ECC SAP. I think SAP Fiori still pick the table (WRBTR) before calculate *100 with currency IDR, because ECC SAP automatic calculate *100 when IDR Currency.
( I think SAP Fiori like this piture, because it pick WRBTR table, and i want SAP Fiori pick Table in G/L Amount on ECC SAP)
How to solve this in SAP Fiori?
Thank YouHi Dattaraya,
If I change decimal place of currency code IDR on OY04, it will change value on ECC SAP. It's mean like on SAP Fiori and ECC SAP same 98.130 but it's wrong. I want in SAP Fiori same with amount on ECC SAP, IDR 9.8130.000. I think SAP Fiori still pick the table before calculate *100. How to solve it?
Thank You -
Sending Mail with HUF / JPY currency in Workflow
Hi Friends ,
I have the below requirement .
I have to send PO for approval throug Workflow . I am using " SO_NEW_DOCUMENT_SEND_API1" inside one method to send mail through Workflow .
My Requirement - For JPY / HUF currency PO , Price of PO has to be sent to the Approver which has to be displayed in the Format of Approver's User settings in the mail . Decimal Notation should be as per Approver's User settings.
My Issue - When the workflow triggers user WF-BATCH takes care of fetching the PO price as per its format .( Decimal notaion mentioned for WF-BATCH user ) . Now this has to be changed as per the Approvers formal ( decimal notation ) in the mail that is being sent to Approver after the method execution .
Brief clarification of the issue is mentioned below -
My WF-BATCH user has format of decimal notaion - (1.234.567,89) ,
Approver's has format of decimal notation - X (1,234,567.89)
The PO price in HUF currency is being picked by WF-BATCH user in the method as per its decimal notation .
This formal has to be changed to Approver's decimal notaion format in the method so that same format can be sent in the mail .
If any one has come across this type of requirement , guidance to solve this will be highly appreciated .
Thanks
PrabhuduttaHi,
You can solve in two ways.
1. Transfer the the value WF-INITIATOR to the method. Then update the Sy-uname start of the method or before the calling the " SO_NEW_DOCUMENT_SEND_API1".
SY-UNAME = lv_user ( where lv_user holds the wf-initiator value[leading US must be removed] )
( background user will be changed from WF-BATCH to wf initiator )
2. convert the date format by using the follwing methods before calling the FM " SO_NEW_DOCUMENT_SEND_API1".
/MRSS/RMOR_USER_CONVERT_DATE
CONVERT_DATE_TO_External
CONVERT_DATE_TO_INTERNAL
Hoping that this might help you.
Thanks and regards,
SNJY
Edited by: Sanju.pal on May 19, 2011 7:17 PM -
Change Decimal Notation Format
Hi All
We have a requirement to output currency and quantity fields in a smartform to a different format than is specified in the users settings.
This can be different depending on the country key of the vendor.
Does anyone know of a way to dynamically change the decimal notation of a smartform.
Thank you
DarrenHi,
Please check this function Module HRGPBS_HER_FORMAT_AMOUNT
or
You can use :
Write <CURRENCYFILED> to <new_field >USING CURRENCY 'USD'.
then you can use New-field in the smartform
Regards
Sudheer -
How to do setting of decimal notation and arithmatic and character note
Hi colleagues
I do have one problem
And the following setting tried in SAP netweaver so do not give any hint for Netweaver
The problem is stated as follows
in output type in Germany they use , instead of . the dot signifies point that is .
and we use , as a seperator in means suppose we have to write 2000 we write like wise means as per our requirement whether we need to mention 2.000 or 20.00 but in germany they use comma ,
so in output type display point the problems are increasing and they are not getting solved.
so it is the question of compatibility
what went wrong i am unable to understand
is there is any significance of country specific setting of decimal notation
or any thing need hint towards the same.Hi
For your output type assign a smartform and in the smartfrom write the program that the decimals should come like , instead of . then your requirement can be fulfilled
Also check in OY04 wheather you can maintain or not
Regards
Srinath -
How to get decimal notation in 'SU01'?
Hi guys,
You know that when we process the currency, it needs to know what the user have set the decimal notation.
You can run tcode 'SU01',click the tab 'default' to see it.
So how to get the user the setting?
Any function module ?
Welcome any ideas.
Thanks very much.
--James Liumake use if table
USR01
USR01-DCPFM XUDCPFM CHAR 1 0 Decimal notation
possible values:
1.234.567,89
X 1,234,567.89
Y 1 234 567,89
regards
Prabhu -
Purchase Order with JPY Currency
Hi Friends,
While raising PO with currency JPY, there is an unusual issue noticed in all POs. The netprice is getting truncated by 02 zeros in the end always.
For ex, if a PO with JPY currency is raised with netprice as 98000.00 (Ninety Eight thousand), table EKPO is getting updated with Netprice as 980.00 (Nine hundred eighty) only. This is happening for all POs raised with currency as JPY. But this is not the case for POs with INR, USD or EUR currency. This issue is happening for all POs with currency with JPY.
Can you pl proivde your expertise as to why this is happening?
Regards
Amitavafrom OSS note 1176399:
SAP format for amounts
In an SAP system, amounts (data type CURR) are always stored in the database using exactly two decimal places. It does not matter how many decimal places are actually allowed for the relevant currency.
However, amounts are displayed on screens as converted in accordance with their number of decimal places. The number of decimal places, and therefore the shift of the decimal point, is stored in the table TCURX.
Example
The currencies JPY (Japanese Yen) and TWD (Taiwanese Dollar) do not have any decimal places. An amount of 123456 JPY is stored on the database as 1234.56 JPY; however, on the screen (for example, in the PSA maintenance, in the query or in the LISTCUBE) it is displayed as 123,456 JPY (when using the comma as the thousand separator).
Maybe you are looking for
-
Dear Experts, I hv created a ztable containing following fields. MANDT MANDT Primary Key ZVEHICLE ZSDVEHICLE Primary Key ZDCODE ZDCODE Primary Key Z
-
Typeof == "movieclip" ...some weird issue (please help)
my movieclips (mc1, mc2, mc3, mc4, mc5, click) are this (mainMap.map.pan) deep. so when i am defining my movieclips i != "click" ie, should not be "click" movieclip inside mainMap.map.pan, however when i am tracing on rollover, it output "click" movi
-
Dear All, I want to create a report for PR with its creation date and the date the particular PR actually released. The creation date i can get from the request date in the Quantities/dates tab at item details. But the release date showing there is t
-
Why do the dock items do not enlarge when I position over the icon?
Why do the dock items do not enlarge when I position over the icon?
-
Disk Utility has been partitioning for about 3 hours now.
Ok so I wanted to partition my internal hard drive for time machine. So I went into Applications and opened up Disk Utility. I then Selected my internal hard drive, adjusted the partitions to the desired sizes and clicked apply. All the options graye