Conversion from CHARacter to CURRENCY ???
Hi Experts,
Pls. let me know that, How to convert a CHAR acter field to CURRENCY field?
Is there any FM? or How to get it done?
thanq
Hi Srini,
check this.
DATA: P_DBMTR TYPE DMBTR.
DATA: C_VALUE(20).
c_value = '123,456.78'.
Convert to amount
replace all OCCURENCES of ',' in c_value with ' '.
condense c_value.
move c_value to P_DBMTR.
kindly reward if found helpful.
cheers,
Hema.
Similar Messages
-
Conversion failed when converting date and/or time from character string
Hi experts,
I'm trying running a query in Microsoft Query but it gives the following error message:
"conversion failed when converting date and/or time from character string"
when asks me the data I'm inserting 31-01-2014
i've copy the query form the forum:
SELECT T1.CardCode, T1.CardName, T1.CreditLine, T0.RefDate, T0.Ref1 'Document Number',
CASE WHEN T0.TransType=13 THEN 'Invoice'
WHEN T0.TransType=14 THEN 'Credit Note'
WHEN T0.TransType=30 THEN 'Journal'
WHEN T0.TransType=24 THEN 'Receipt'
END AS 'Document Type',
T0.DueDate, (T0.Debit- T0.Credit) 'Balance'
,ISNULL((SELECT T0.Debit-T0.Credit WHERE DateDiff(day, T0.DueDate,'[%1]')<=-1),0) 'Future'
,ISNULL((SELECT T0.Debit-T0.Credit WHERE DateDiff(day, T0.DueDate,'[%1]')>=0 and DateDiff(day, T0.DueDate,'[%1]')<=30),0) 'Current'
,ISNULL((SELECT T0.Debit-T0.Credit WHERE DateDiff(day, T0.DueDate,'[%1]')>30 and DateDiff(day, T0.DueDate,'[%1]')<=60),0) '31-60 Days'
,ISNULL((SELECT T0.Debit-T0.Credit WHERE DateDiff(day, T0.DueDate,'[%1]')>60 and DateDiff(day, T0.DueDate,'[%1]')<=90),0) '61-90 Days'
,ISNULL((SELECT T0.Debit-T0.Credit WHERE DateDiff(day, T0.DueDate,'[%1]')>90 and DateDiff(day, T0.DueDate,'[%1]')<=120),0) '91-120 Days'
,ISNULL((SELECT T0.Debit-T0.Credit WHERE DateDiff(day, T0.DueDate,'[%1]')>=121),0) '121+ Days'
FROM JDT1 T0 INNER JOIN OCRD T1 ON T0.ShortName = T1.CardCode
WHERE (T0.MthDate IS NULL OR T0.MthDate > ?) AND T0.RefDate <= ? AND T1.CardType = 'C'
ORDER BY T1.CardCode, T0.DueDate, T0.Ref1Hi,
The above error appears due to date format is differnt from SAP query generator and SQL server.
So you need convert all date in above query to SQL server required format.
Try to convert..let me know if not possible.
Thanks & Regards,
Nagarajan -
I have a table-valued function that run in sql 2005 and when try to execute in sql 2008 r2, return the next "Conversion failed when converting date and/or time from character string".
USE [Runtime]
GO
/****** Object: UserDefinedFunction [dbo].[f_Pinto_Graf_P_Opt] Script Date: 06/11/2013 08:47:47 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE FUNCTION [dbo].[f_Pinto_Graf_P_Opt] (@fechaInicio datetime, @fechaFin datetime)
-- Declaramos la tabla "@Produc_Opt" que será devuelta por la funcion
RETURNS @Produc_Opt table ( Hora datetime,NSACOS int, NSACOS_opt int)
AS
BEGIN
-- Crea el Cursor
DECLARE cursorHora CURSOR
READ_ONLY
FOR SELECT DateTime, Value FROM f_PP_Graficas ('Pinto_CON_SACOS',@fechaInicio, @fechaFin,'Pinto_PRODUCTO')
-- Declaracion de variables locales
DECLARE @produc_opt_hora int
DECLARE @produc_opt_parc int
DECLARE @nsacos int
DECLARE @time_parc datetime
-- Inicializamos VARIABLES
SET @produc_opt_hora = (SELECT * FROM f_Valor (@fechaFin,'Pinto_PRODUC_OPT'))
-- Abre y se crea el conjunto del cursor
OPEN cursorHora
-- Comenzamos los calculos
FETCH NEXT FROM cursorHora INTO @time_parc,@nsacos
/************ BUCLE WHILE QUE SE VA A MOVER A TRAVES DEL CURSOR ************/
WHILE (@@fetch_status <> -1)
BEGIN
IF (@@fetch_status = -2)
BEGIN
-- Terminamos la ejecucion
BREAK
END
-- REALIZAMOS CÁLCULOS
SET @produc_opt_parc = (SELECT dbo.f_P_Opt_Parc (@fechaInicio,@time_parc,@produc_opt_hora))
-- INSERTAMOS VALORES EN LA TABLA
INSERT @Produc_Opt VALUES (@time_parc,@nsacos, @produc_opt_parc)
-- Avanzamos el cursor
FETCH NEXT FROM cursorHora INTO @time_parc,@nsacos
END
/************ FIN DEL BUCLE QUE SE MUEVE A TRAVES DEL CURSOR ***************/
-- Cerramos el cursor
CLOSE cursorHora
-- Liberamos los cursores
DEALLOCATE cursorHora
RETURN
ENDYou can search the forums for that error message and find previous discussions - they all boil down to the same problem. Somewhere in your query that calls this function, the code invoked implicitly converts from string to date/datetime. In general,
this works in any version of sql server if the runtime settings are correct for the format of the string data. The fact that it works in one server and not in another server suggests that the query executes with different settings - and I'll assume for
the moment that the format of the data involved in this conversion is consistent within the database/resultset and consistent between the 2 servers.
I suggest you read Tibor's guide to the datetime datatype (via the link to his site below) first - then go find the actual code that performs this conversion. It may not be in the function you posted, since that function also executes other functions.
You also did not post the query that calls this function, so this function may not, in fact, be the source of the problem at all.
Tibor's site -
SAP query error - 1). [Microsoft][SQL Server Native Client 10.0][SQL Server]Conversion failed when converting date and/or time from character string. 'Received Alerts' (OAIB)
SELECT
CASE WHEN T0.DocStatus = 'O' THEN 'OPEN'
WHEN T0.DocStatus = 'C' THEN 'CLOSED' END AS 'Document Status',
T0.DocDate AS 'Posting Date',
T0.DocNum AS 'Doc.No',
T0.NumAtCard,
T0.TransId AS 'Trans. No.',
T0.Comments AS 'Remarks',
T0.CardCode AS 'Offset Acct',
T0.CardName AS 'Offset Acct Name',
sum(T0.DocTotal) + (T0.WTSum) as 'DocTotal',
T3.DueDate AS 'Cheque Date',
T3.CheckSum AS 'Amount'
FROM ODPO AS T0 LEFT OUTER JOIN
VPM2 AS T1 ON T0.ObjType = T1.InvType AND T0.DocEntry = T1.DocEntry LEFT OUTER JOIN
OVPM AS T2 ON T2.DocEntry = T1.DocNum LEFT OUTER JOIN
VPM1 AS T3 ON T2.DocEntry = T3.DocNum
where T0.DocDate>='[%0]' and T0.DocDate<='[%1]'Hi,
Try this:
SELECT
CASE WHEN T0.DocStatus = 'O' THEN 'OPEN'
WHEN T0.DocStatus = 'C' THEN 'CLOSED' END AS 'Document Status',
T0.DocDate AS 'Posting Date',
T0.DocNum AS 'Doc.No',
T0.NumAtCard,
T0.TransId AS 'Trans. No.',
T0.Comments AS 'Remarks',
T0.CardCode AS 'Offset Acct',
T0.CardName AS 'Offset Acct Name',
sum(T0.DocTotal) + (T0.WTSum) as 'DocTotal',
T3.DueDate AS 'Cheque Date',
T3.CheckSum AS 'Amount'
FROM ODPO T0 LEFT OUTER JOIN
VPM2 T1 ON T0.ObjType = T1.InvType AND T0.DocEntry = T1.DocEntry
LEFT OUTER JOIN
OVPM T2 ON T2.DocEntry = T1.DocNum LEFT OUTER JOIN
VPM1 T3 ON T2.DocEntry = T3.DocNum
where T0.DocDate >= '[%0]' and T0.DocDate <='[%1]'
group by T0.DocStatus,T0.DocDate ,
T0.DocNum ,
T0.NumAtCard,
T0.TransId ,
T0.Comments ,
T0.CardCode,
T0.CardName ,
T0.WTSum ,
T3.DueDate ,
T3.CheckSum
Thanks & Regards,
Nagarajan -
Benefits Service - Error occurred during currency conversion from to USD
I am attempting to run the add beneficiaries service in employee self servie and receive the following error message "Error occurred during currency conversion from blank to USD
Has anyone come across this error before?Both are set up properly. This error only happens on some US teammate records. It seems to occur after we do a refresh of our QA environment from our produciton environment
-
Conversion error, from character set 4102 to character set 4103
Hi,
We've developed a JCO server(in Java) with an ABAP report the function provided by the JCO server.
MetaData:
static {
repository = new Repository("SMSRepository");
fmeta = new JCO.MetaData("ZSMSSEND");
fmeta.addInfo("TO", JCO.TYPE_CHAR, 255, 0, 0, JCO.IMPORT_PARAMETER, null);
fmeta.addInfo("CONTENT", JCO.TYPE_CHAR, 255, 0, 0, JCO.IMPORT_PARAMETER, null);
fmeta.addInfo("RETN", JCO.TYPE_CHAR, 255, 0, 0, JCO.EXPORT_PARAMETER, null);
repository.addFunctionInterfaceToCache(fmeta);
Server parameters:
Properties prop = new Properties();
prop.put("jco.server.gwhost","shaw2k07");
prop.put("jco.server.gwserv","sapgw01");
prop.put("jco.server.progid","JCOSERVER01");
prop.put("jco.server.unicode","1");
srv = new SMSServer(prop,repository);
If we run JCO server in both my client machine(from developer studio) and in the WAS machine(stand alone Java program), everything is ok. In the Abap side, the SM59 unicode test return the destination is an unicode system, and the ABAP report call the function can run smoothly.
But we package this JCO server to a web application and deploy to WAS, problem occured. The SM59 unicode test still say the destination is an unicode system. But the ABAP report runs with an ABAP DUMP:
Conversion error between two character set
RFC_CONVERSION_FIELD
Conversion error "RETN" from character set 4102 to character set 4103
A conversion error occurred during the execution of a Remote Function
Call. This happened either when the data was received or when it was
sent. The latter case can only occur if the data is sent from a Unicode
system to a non-Unicode system.
I read the jrfc.trc log, it shows it receives data in unicode 4103(that's ok), but send data in unicode 4102(that's the problem).4102 is UTF-16 Big Endian and 4103 UTF-16 Little Endian. Our system is windows on intel 32 aritechture, so based on Note 552464, it should be 4103.
Why it sends data (Java JCO server send output parameter to ABAP) in 4102?????
What's the problem??? Thank you very much!!
Best Regards,
Xiaoming Yang
Message was edited by:
Xiaoming YangHello Experts,
Any replies on this?
I am also getting a similar kind of error.
Do you have any idea on this?
Thanks and Best Regards,
Suresh -
URGENT:currency conversion from oracle financials 10.7 to 11i
Hey all, Any one has the idea about the currency conversion from oracle financials 10.7 to 11i?? how to handle it?? do we need seperate code for currency conversion or is there any software that we can use??
<BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by Shenba ([email protected]):
Hey all, anyone has idea how the currency conversion is handled during upgrade of
for oracle financials 10.7 to 11i. Is there any software available or do we need to do coding for currency conversion.
Thanks<HR></BLOCKQUOTE>
null -
Amount conversion from company code to another currency?
Hi all,
I want to develop a report report in which I need to convert the amount from company code currency to foreign currency.
but before that should it be converted from company code currency to group currency which is standardized one?
means suppose I have company code currency GBP , grp currency USD and user selects EUR for amount currency.
then should I go like this: GBP to USD then USD to EUR.
I am using the FM : CONVERT_AMOUNT_TO_CURRENCY.
rgds,
MadhuriHi,
Check out this thread...
Currency Conversion
Regards,
Lydia -
Conversion of character sets (UCS2 of MSSQL to AL32UTF8 of Oracle Warehouse
Hi all,
I installed my enviroment as below.
Server:
Windows 7 Professional
SQL Server 20012
Character Set: UCS2
Client:
Linux REDHAT 5
Oracle Warehouse 11gR2 (11.2.0.1)
Oracle Database Gateway for MSSQL Server 11.2.0.1
Character Set:AL32UTF8
I installed the gateway for connecting the Oracle Warehouse with MSSQL DB. However, the characters are not readable, because the character of MSSQL DB is coded via one byte character, and the Oracle character is coded like multibyte character.
Input:
Table name on the MSSQL DB: Table_Name
Output:
Table name on the Oracle Warehouse Import Wirzard:◊T◊a◊b◊le◊_◊N◊a◊m◊e
It causes error by importing the table, because the OWB doesn't allow the unreadable characters of table name.
Do you have an idea for resolving it.
Thanks and kind regards,
HipOk, I have changed it as you wrote:
HS_FDS_CONNECT_INFO=100.30.4.157:1433//bob
HS_FDS_TRACE_LEVEL=255
HS_FDS_RECOVERY_ACCOUNT=RECOVER
HS_FDS_RECOVERY_PWD=RECOVER
HS_TRANSACTION_MODEL=READ_ONLY
HS_LANGUAGE=american_america.we8mswin1252
HS_NLS_NCHAR=UCS2
HS_NLS_LENGTH_SEMANTICS=CHAR
and I also added the listern.ora:
(SID_DESC =
(SID_NAME=bob)
(ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_2)
(ENVS=LD_LIBRARY_PATH=/u01/app/oracle/product/11.2.0/dbhome_2/dg4msql/driver/lib;/u01/app/oracle/product/11.2.0/dbhome_2/lib)
(PROGRAM=dg4msql)
tnsname.ora:
bob =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
(CONNECT_DATA = (SID = bob))
(HS = OK)
SQL> select * from all_users@bob;
USERNAME USER_ID CREATED
public 0 08-APR-03
dbo 1 08-APR-03
guest 2 08-APR-03
INFORMATION_SCHEMA 3 13-APR-09
sys 4 13-APR-09
db_owner 16384 08-APR-03
db_accessadmin 16385 08-APR-03
db_securityadmin 16386 08-APR-03
db_ddladmin 16387 08-APR-03
db_backupoperator 16389 08-APR-03
db_datareader 16390 08-APR-03
db_datawriter 16391 08-APR-03
db_denydatareader 16392 08-APR-03
db_denydatawriter 16393 08-APR-03
14 rows selected.
The Oracle Warehouse Builder still has the same error by the conversion of character sets.
Hip -
Problem in price conversion from INR to USD- Urgent
Dear All,
In the export sales scenario, we are having the contract with customer in INR and based on that value only the excise invoice should be raised. After 2-3 days commercial invoice is to be raised based on the exchange rate applicable on that date.
I have created sales order in INR, did proforma invoice based on order then delivery document & then excise invoice based on proforma order. Then to raise the commercial invoice, i go to change mode of order to change the currency from INR to USD. The conversion from INR to USD is not happening correctly, it is showing the lesser value than the actual value.
I have maintained exchange rate type as BLB under CIN company code settings & then assigned same in sales data of customer master. The exchange rate is also maintained in OB08 for M as well as BLB type but still the conversion is not happening correctly.
Can anybody please suggest me the cause & solution for this urgently.
Thanks & Regards,
AntimaHi
When you change the copy control settings it will consider the exchange rate that is maintained at the time of billing.
i.e. if you have order of a previous day and billing of some other day then in that case if the exchange rate is changing on the billing date then it will consider the exchange rate of the billing date.
Hence when you are creating the billing document check the exchange rate getting picked (Whether it is on the billing date or order date).
I didnt get your other problem. Do you want to change the decimal places in the Currency? (You are in big trouble. If that is so). The settings for the same is available in customising SAP Netweaver > General Settings > Currencies > Set Decimal Places.
BE EXTREMELY CAREFUL BEFORE USING THIS.
Please clarify your doubt if that is not the case.
Regards
Sunil -
Characterset conversion from US7ASCII to WE8ISO5589P1
Hi,
I need to do a Character set conversion from US7ASCII to WE8ISO5589P1 on a 10g database. I need to make the proper analysis before doing this conversion. Kindly let me know of any links/urls/metalink note ids where i can find relevant docmentation and understand on this so that i can continue with the conversion.
Regards,
Amby.Start here:
http://www.oracle.com/technology/tech/globalization/pdf/TWP_Character_Set_Migration_Best_Practices_10gR2.pdf
Also, consider migrating to WE8MSWIN1252 in place of WE8ISO8859P1. If you have Windows clients, then WE8MSWIN1252 should be used anyway. Even if you do not have Windows clients, WE8MSWIN1252 is a binary superset of WE8ISO8859P1 and can hold all WE8ISO8859P1 codes + ca. 15 characters more. It is better to use it in case Windows clients are used in future.
-- Sergiusz -
Getting ÿþ as saved conversations from Lync in Outlook in Office 2013
Hi,
I've been trying to get to the bottom of this and have found similar posts, but no one seems to have an answer.
When I IM someone using Lync 2013, they get a pop up notification but instead of the message they see ÿþ<. Once they open the chat window, they can see my typed text. Occasionally, certain people can't see the first line of my chat, but as
long as they keep the chat window open, they can see everything new I type.
All my conversations that are saved in outlook show ÿþ< for the text and are unreadable. I've disabled the saving of conversations because they have become worthless.
I believe it has to do with BOM but have not been able to find a way to fix this.
If I copy a conversation from the chat window and paste it into Microsoft Word it shows ÿþ<, but if I paste it into notepad the conversation appears.
(I had inserted a screenshot here, but am unable to because I am unable to figure out how to get my account "verified")
I've tried changing the preferred encoding for outgoing messages: to Unicode (UTF-8) in Outlook, but this had no effect and I can't find a similar option in Lync 2013.
(I had inserted a screenshot here, but am unable to because I am unable to figure out how to get my account "verified")
I enabled logging for Lync and the event IDs that come up are 1, 11 and 12, to which I cannot find any information for at the moment.
Any help and or suggestions would be appreciated.Hi,
Did the issue happen only for you or for multiple users?
Please try to delete Lync User Profile and information on Registry, then repair Office 2013.
The path of Lync User Profile: %UserProfile%\AppData\Local\Microsoft\Office\15.0\Lync
The path for information on Registry: HKCU\Software\Microsoft\Office\15.0\Lync\[email protected]
Then test the issue again.
Best Regards,
Eason Huang
Eason Huang
TechNet Community Support -
Removing Null values from character string
Hi All,
Can i remove NULL values (hexadecimal - 0000) from character string. I am uploading a file from presentation layer (shared server) and getting NULL values in many fields which i want to remove.
please assist.
Thanks for you help..
Regards,
MohaiyuddinHi,
Most likely, nobody needed it, but if anybody in future will need the solution for related problem - here's solution:
data: lv_nullchar type xstring value '0'.
shift lv_xstring right deleting trailing lv_nullchar in byte mode.
shift lv_xstring left deleting leading lv_nullchar in byte mode.
This hack deleting null chars in lv_xstring at end file and at begining of file. Works perfect for me, where i also worked with files. -
Project Conversion from 11.03 to R12- need help
Hi All,
I need some information regarding conversion from 11.03 to R12 along with Capital Project's conversion, do we need to take care Asset Assignment and Assets information at the time of Project Conversion. Iam doing Project and Task conversion different. Is there any good mapping document or Conversion FD, if any body have please send my mail ID. [email protected]
Thanks for your help.
Thanks,
Srini..Usually only Open Invoices and Unapplied Receipts are migrated from Old system to New Instance.
Post Migration Reconciliation shall be tough in that scenario. Reconsider/Rediscuss with Client.
Migration can be done using APIs or Custom Scripts using Standard Interfaces.
Hope this is helpful
Regards,
Sridhar -
Since downloading Firefox 4, I am having problems archiving gmail conversations from my inbox view (either one or several conversations) as it says "No Conversations Selected" when I have selected one or several. Also, when I go to enter a new event in google calendar, I have to click the cursor in the box to type the event (it used to let me just start typing) or else it flips out and starts jumping to day view or another month. Does anyone know how to fix either of these?
I have had this problem; but while trying to fix another problem, I reset my preferences for Firefox and it fixed this problem as well. To reset preferences, follow this link: http://support.mozilla.com/en-US/kb/Resetting%20preferences
Maybe you are looking for
-
Need to find out the list of objects under a Transport
Hi , My requriement is to programatically find the list of objects under the Transport. I tried using the table E071 but no luck is there any FM or table which gives me the list of objects assigned to the transport request Regards, kk
-
How do I update my Nvidia graphics drivers on Bootcamp using Windows 8.1
Hey all, I have been running bootcamp with my MacBook Pro with retina display, mid 2013 model for quite some time, but only recently did the windows 8.1 update from windows 8. I have been prompted by some games, namely Fifa 15, to update to the lates
-
"unknown error" when trying to login iTunes 11
Hey everyone, I'm getting an "unknown error." when I'm trying to login iTunes 11. When I enter my apple ID and password I the same window pops up again with "Unknown error." in red. When I try to login again I get the popup with "Did you forget your
-
Developing a report from data in CMC
Hi, I do a daily monitoring task that is monitoring all the servers of Web Intelligence in production environment whose status is 'Success'. Source of the data is a BI system. After monitoring I have to manually calculate(using calculator) the time t
-
Can't get DNSCrypt working with PDNSD
Has anyone got DNSCrypt working with PDNSD? I have been looking for instructions with no luck so far. Would love to hear if anyone has got these working toegether.