Currency Format conversion
Hi All,
Due to different country the amount value is printing as 10,50 in USD.
But the requiremnt is to print it as 10.50 in USD.
Please suggest how to do it.
Thank You,
Anuj Saraswat
Edited by: Anuj Saraswat on Dec 18, 2008 1:22 PM
if ur amt in is variable say v_amt1.
then
write like this
write v_amt1 currency 'USD'
to v_amt2.
or
v_waerk = 'USD' " of type currency key
write v_amt1 currency v_waerk
to v_amt2.
Similar Messages
-
Character format to currency format conversion?
Hai,
I have a field (char16) with value in the form 9800.50. How do I convert it into standard SAP currency type ( of the format 9.800,50 ) Is there any function module available ?
I have tried the FM "CHAR_FLTP_CONVERSION". But it can't convert decimals (like 9800.50)
Kindly help me. Thanks in advance..
Deepak.Hi,
Try this.
Call function 'BAPI_CURRENCY_CONV_TO_INTERNAL '
Exporting
currency = 'USD'
Amount External = V_Amount
Importing
Amount External = V_Amt
Reward if helpful.
Regards,
ramya -
Hi
Good day experts,
I've problem with Currency formate. In my client 101 i've 1,234,567.89 in Owndata.
But Functional side they've 1,234,567.89 in 103 client.
My problem is when the functional guys is entered data in currency field. if they double click in the currency field, they r getting extraa zeros and if they entered end of the position which is right then the digits are not allowing .
I've taken the data element which is 14 lenght of char. in this i've written the conversions for curr.
This is my conversions:
CONVERSION_EXIT_YMXAM_OUTPUT
DATA LV_16(16).
IF INPUT EQ SPACE.
LV_16 = '0.00'.
SHIFT LV_16 RIGHT DELETING TRAILING SPACE.
OUTPUT = LV_16.
ELSE.
OUTPUT = INPUT.
ENDIF.
CONVERSION_EXIT_YMXAM_INPUT:
DATA LV_AMNT TYPE YBET00.
PERFORM TEXT_TO_NUM
CHANGING
INPUT.
SHIFT input LEFT DELETING LEADING space.
CATCH SYSTEM-EXCEPTIONS CONVT_NO_NUMBER = 1
CONVT_OVERFLOW = 2
BCD_FIELD_OVERFLOW = 3.
LV_AMNT = INPUT.
ENDCATCH.
IF SY-SUBRC = 1.
MESSAGE 'Invalid Format' TYPE 'E'.
ELSEIF SY-SUBRC = 2 OR SY-SUBRC = 3.
MESSAGE 'Number contains too many digits' TYPE 'E'.
ENDIF.
WRITE lv_amnt TO output(17).
OUTPUT(14) = LV_AMNT .
MESSAGE output TYPE 'E'.
SHIFT output(18) RIGHT DELETING TRAILING space.
ENDFUNCTION.
*& Form text_to_num
FORM TEXT_TO_NUM CHANGING VALUE(IV_FLD) TYPE C.
DATA LV_DCPFM TYPE XUDCPFM.
SELECT SINGLE DCPFM INTO LV_DCPFM FROM USR01 WHERE BNAME = SY-UNAME.
CASE LV_DCPFM.
WHEN ' '.
TRANSLATE IV_FLD USING '. '.
WHEN 'X'.
TRANSLATE IV_FLD USING ', '.
WHEN 'Y'.
TRANSLATE IV_FLD USING '. '.
ENDCASE.
CONDENSE IV_FLD NO-GAPS.
Plz give me solution.
regards,
kkHi,
Thank for ur reply. Caa2 t.code, i've created the finance subscree. in the subcreen, i'vecurrency field which is Char(14).it extras the data from CI_FKKVKP stracture.
Wht i've to do for this problem.
regards
kk -
In Scripts how to print the values in currence format
Dear abap guru's,
I am working on Purchase Order Script, copy from the standard script, after that wrote a one perform , in that added one new field to script, but value is printed like this formate : 1000.00, but i want to print 1,000.00 like this currence format. let me know the any solution
thanks to all
raj.Hi ,
When you are populating the value in perform instead of assigning the value (using = ) pass it using WRITE TO.
Like : WRITE lw_total TO output-value.
Declare lw_total as currency field.
Regards,
Rajitha. -
Hi,
We are working with LAC, and we have an issue.
When we create an auction in SRM the currency format for the start price and the others is 1,234,567.89 (this is correct for us), but when we execute the applet (LAC) the format change 1.234.567,89
The user in SRM has the correct format 1,234,567.89 then, Why in the applet the format is different????
How can we change the format????
We are working with EP then, we execute the transaction bbp_auction since a Portal iview. Our single sign On between LAC and Portal was configurated, then we guess, we need to change the currency or number format in the Portal User, Is that correct?????
What user do we need to change (currency format)???? SRM user???? Portal user???? LAC user????
ThanksHi Claudia,
Check the following note :
Note 666849 - Running LAC in non-US locales
This may help you.
Thanks,
Pradeep. -
Help needed to display character vaiable in currency format
Hi Friends
In a SAP Script I am passing a currency field to the subroutine as an i/p parameter and since it gets converted to character format in subroutine because of 'itcsy' , ihave deleted the trailing zeroes and decimal points from the field and performed calculations on the field, now i need to pass this char field back to SAP script but i need to display that field in currency format with commas and decimal points in the script...how do i do that???
Thanks
Vishal.Hi Vishal,
When you pass the currency amount into the perform, no need to remove the trailing zeros and the decimal point.
Only thing you need to remove is the comma seperator as it gives a runtime error during calculation.
To convert it back to the format with comma, write the below command:
WRITE v_Item_total currency '2' to v_item_char.
CONDENSE v_item_char.
Here v_item_total is a number which is converted to comma seperated number and passed to char variable.
This char variable is then passed to the SCRIPT.
regards,
Gaurav. -
How to use currency format set
Hi All,
I have to use currency format set to mask the amount values to their respective currencies ,
i reviewed the Oracle XML Publisher Administration and Developer's Guide and followed all the steps mentioned there ,i m also quoting the same over here
To define a Currency Format Set:
1. Navigate to the Currencies page under the Administration tab. Select Create
Currency Format Set.
2. Enter a Name and a Code for the set. The Code is a unique identifier and cannot be
changed later. Select Apply.
3. The Currency Formats page will display for your newly created set.
To add currency formats to the Currency Format Set:
1. Select Add Currency Format to add a format to your set.
2. Select a Currency Name from the list.
Note: This list is generated from the FND currency table and
should include all ISO currencies. Additional currencies can be
added from the System Administrator responsibility.
3. Enter the Format Mask you wish to use for this currency and select Apply.
The Format Mask must be in the Oracle number format. The Oracle number format
uses the components "9", "0", "D", and "G" to compose the format, for example:
9G999D00 where
9 represents a displayed number only if present in data
G represents the group separator
D represents the decimal separator
0 represents an explicitly displayed number regardless of incoming data
See Using the Oracle Format Mask, Oracle XML Publisher Report Designer's Guide for
more information about these format mask components.
After a currency format has been created, you can update or delete it from the Currency
Formats page.
i followed all the above step ,i need to use germany currency ,i have also used the format-currency command in my RTF template,but still its not working ,i used 9G999D00 for masking .
Any hint would be very helpful ,thanks in advance .Please let me know if my question is not clear
Thanks
Prataphi all
Thanks ,this is resolved ,i just missed clearing cache ,after clearing the cache its working .
thanks
Pratap -
Currency format combined with if else issue
Hi all,
Basically, I need to get the value from if else statement, then use currency format to format the currency according to their currency code.
the following is my if else statement to show the A.PAY_PROMISE_AMT or A.PROMISE_AMT
<?xdofx:if A.PAY_PROMISE_AMT <> 0 then
A.PAY_PROMISE_AMT
else
A.PROMISE_AMT
end if?>
<?format-currency:value_*[this value I want to use is the value from the above if else statement];*currencycode; ‘false’?>
could anyone help me to combine those two statement to get the result I want?
Thanks in advance>
I tried your solution, but I got some error.
>
some?
try change
<>to
!=in my sample
what if you try IF without xdofx?
what will be result?
say
<?if:A.PAY_PROMISE_AMT!=0?> <?xdoxslt:set_variable($_XDOCTX, 'LVar', A.PAY_PROMISE_AMT)?> <?end if?>
<?if:A.PAY_PROMISE_AMT=0?> <?xdoxslt:set_variable($_XDOCTX, 'LVar', A.PROMISE_AMT)?> <?end if?>
<?format-currency: xdoxslt:get_variable($_XDOCTX, 'LVar');CURRENCY;'true'?>plz see
Working with xdofx:if and xdoxslt variable error -
RE: Oracle DATE data format conversion..
<C.M> Motta's question about dates and oracle>
Dealing with dates and Oracle is somewhat of a nuisance. Oracle is very
particular about how date strings are formatted, and if you get it wrong,
you get the (unhelpful) message that C.M. Motta showed us. However, if
you pass a DateTimeData to Oracle, Forte' does the right formatting for you.
If you do need to format the date prior to interacting with Oracle, use the
following format:
dd-mmm-yy <time component>
You can change the default format, but it is not easy.
If you customise Express generated code that interacts with an Oracle
database, again, make sure that you pass a DateTimeData, and not the
.TextValue.
Good luck!
Richard KirkDate: Wed, 06 Nov 1996 08:18:37 -0500
To: "C. M. Motta" <[email protected]>
From: Jim Milbery <[email protected]>
Subject: Re: Oracle DATE data format conversion..
Cc: [email protected]
Cheers:
Most likely what is happening is that you are using the default date
format of Oracle, and you are sending a four-character year. As follows:
SQL> insert into jimbo values ('01-dec-1997')
2 /
insert into jimbo values ('01-dec-1997')
ERROR at line 1:
ORA-01830: date format picture ends before converting entire inputstring
>
Oracle defaults to a format of 'dd-MON-yy'
You can either truncate the year, or manipulate the date to match the standard
database as follows:
insert into jimbo values (to_Date('01-jan-1997', 'DD-MON-YYYY'))
\jimbo
At 09:21 AM 11/6/96 -0200, you wrote:
Forte Users,
First, Id like to thank all those who answered my question on
droplist & SQL. I got just what I was looking for: its up and runnunig
now.
I have another question: Im trying to insert a DATE into an Oracle
database. The source date is:
data : DateTimeData = new;
data.SetCurrent();
So, when I try to insert data.Value or data.textvalue into DB, I
get the following exception:
ORA-01830: date format picture ends before converting entire
input string.
Are there any suggestions?
Thanks for your help,
C.M. Motta
====================================================================
Jim Milbery
Milbery Consulting Group
132 N. West St., Allentown, PA 18102
O: 610 - 432 - 5350 F: 610 - 432 - 5380
E-Mail : [email protected]
==================================================================== -
Advanced Format Conversion - PAL - NTSC question
I need to convert from DV PAL (@ 25fps) to DV NTSC (@ 23.98fps).
My first test conversion resulted in a DV file running at 29.97 fps.
Also, I seem unable to modify the speed settings in order to re-time from PAL to NTSC, which should run approximately 4% longer.
Can somebody guide me through how to achieve this?
G5, dual 2.7 Mac OS X (10.4.9) Final Cut Studio 2.0Marc:
AFAIK standard DV NTSC is 23.97 fps, why do you need 23.98?
The best free way I found is with Compressor Advanced format conversion, using the settings you'll find in this thread posted by Andynick:
http://discussions.apple.com/thread.jspa?messageID=3055477�
Export your timeline as Quicktime Movie, same settings (self contained if you have space) and use that in Compressor.
Hope that helps !
Alberto -
I was doing a spread sheet for a business proposal to my colleague in Philippines, was very disappointed to know that the currency format in Numbers for Mac is very limited to few countries only...
As Badunit suggests, in Numbers 2.3 you can turn on the preference that shows the full currency list.
Put a value in a cell and then choose Philippine Peso. Save the document. Open the document in Numbers 3.0 (if that is what you are working with) and you will still have access to that currency.
You might go to Numbers > Provide Numbers Feedback to let Apple know you need the option to use more currencies in Numbers 3.
SG -
Regarding Date Format Conversion
Hi,
In my project i am picking the date from the date picker which is a javascript program . Then i am displaying it on a jsp page .It is coming in mm/dd/yyyy format .I have to change it to dd/mm/yyyy format .
I have the code for date formatting conversion .
What my doubt is whether the code should be written inside the jsp page or in the javascript .
Thanks .Hi
<%@page language="java" import="java.sql.*,java.util.*,java.text.*" %>
<%SimpleDateFormat sdf= new SimpleDateFormat(dd/mm/yyyy );%>
<% java.util.Date temp_date = sdf.parse(PassYourDateHere); %>
use this with your jsp
Regards
Abhijith YS -
Currency format problem while exporting as excel
Hi
I have to create a report for which the currency format should be $#,##0.00 and -$#,##0.00 for negative numbers.
In the text form field of rtf template, I have selected number format and removed the portion ;($#,##0.00) from $#,##0.00;($#,##0.00).When I view the report as HTML the numbers are showing in proper format.($#,##0.00 or -$#,##0.00).But when the report is exported as excel ,the negative number format changes to ($#,##0.00) in red color.
Can anyone tell me how avoid this problem?
Thanks in advance
NaveenI think this is an Excel issue - you can right mouse click in Excel the column header and "Format Cells>Text"
You could also append a ' character to your numbers in BI Answers ie: '6035784010491980 which should give you the correct format in Excel.
eg. CONCAT( '''', CAST ( '6035784010491980 AS CHAR) )
There is also an MS Office plug in available for OBIEE this may give you further options. -
BInput Data mismatch with currency format
i am working with fs10 transaction
I want to sum up the balance amount with respect to all
companycode and post SUM to the bseg table using Batch input.
i defined sum variable as below and coded.
data : sum like glt0-hsl01. (currency format)
After all SUM operation.
I have done like this to diplay SUM in report first(to check SUM output)
SUM = SUM * 100.
write : sum decimals 0.
>>>>Now in report output i get value '17,222-'
if u see in fs10 screen we are getting same value.
but when i try to post in Batch input.
i have done like this below.(before posting i have checked
for negative value )
if sum < 0.
sum = sum *100.
compute sum = abs( sum )
now...
perform open_group................
perform bdc_field using 'bseg-wrbtr' (currency format)
sum.
when i execute this BI i get error in Amount(Sum)value
display screen. (saying something differs in length )
how to match the field.
ambichan.Hello,
Go to the Domain of the Field BSEG-WRBTR, which is WERT7. There you see the Output length as 16. So you decalre a local variable in BDC which is of CHAR16 in length to hold the value of WRBTR.
Hope this helps you.
Regds, Murugesh AS -
Print PO Price in Currency Format.
Hi Everybody,
I want Print PO Price in currency format in alv report how do i get all countries currency values.
anybody tell me.
thanks,
s.muthuHi Muthu
We can do it using the fields in populating the field catalog. Explore the existing fields of the same.
Another way to handle is declare the amt field as char and write the amt to this field using option CURRENCY. The the problem with this method arrives when you want to do totals and stuff.
Below code can help you understand in writing a field to another with currency option.
data: l_curr(20) type c,
l_amd type kbetr value '3333.23'.
write l_amd to l_curr currency 'USD'.
write:/ l_curr.
write l_amd to l_curr currency 'JPY'.
write:/ l_curr.
To know the currency of a country you can use table T005.
Kind Regards
Eswar
Maybe you are looking for
-
How Worklist/BPM knows which task flow to invoke at runtime
Hi, I use JDev 11.1.1.5 In my BPM, I had one Human task activitiy state. Then I create a task flow through "ADF Task Flow Based on Human Task". I found that there is no any configuration value for taskFlowFileLocation property in .task source file. H
-
hey, Its monday the 10th of september 2007. I currently have a intel iMac and am looking at purchasing a macbook as i think i would use a notebook quite a lot. I want to buy a macbook but am afraid that something new and better will come out the day
-
Websites jumbled up after update - help?
hi I updated to safari 6.0.5, and now ebay and other sites not displaying correctly, they are not aligned, picture don't display correctly. iTunes is the same, neither of the movie or music preview artwork is showing. i tried the other browsers, chor
-
When I´m on the internet I can not open new windows, not by ¨file new windows ¨ or by ctrl N. New tabs work but no new windows. It worls well with all other browsers.
-
Block scope (error?) message
Hi all, using the CC 5.9 compiler with patch CC: Sun C++ 5.9 SunOS_i386 Patch 124864-01 2007/07/25 I get the following message when compiling some C++ code (Geant4, v7.1p01) [10] (ExtNode::ExtNode #Nvariant 3())::___LCSH size 4 align 4 PTR strty t[2