Numeric Conversion
What is the function to convert a numeric to a string ?
I have a table laid out in a multiplcation table format and
each cell is defined as numeric because I have to do calculations
across each row and down each column. However, if the cell does not
contain a value, it displays zero. Now I am getting complaints that
the layout is too busy and if the cell is zero, they want it to
display blank, not zero. So I need to convert each cell to a string
and then cfset to blank space if zero.
Is there an easy and universal way to do this to all the
cells or do I have to do each one individually ?
Thanks for any help.
I think you will need to do the check for each cell. Being
"string" or "numeric" type will not change the display. Unless you
store the value of the multiplication in a variable before it is
displayed, I think your best bet is to use a CFIF and check the
value (<CFIF value NEQ 0>#value#</CFIF> ) at time of
display.
I would need to see some code to give a better answer though.
CR
Similar Messages
-
Hello everybody,
Good Day to all.
I have a very strange problem in my UDF. I have a Matrix whitch is bound to a Table data source like this:
Table = oForm.DataSources.DataTables.Add("Lines")
Table.Columns.Add("ID", SAPbouiCOM.BoFieldsType.ft_Integer)
Table.Columns.Add("DocEntry", SAPbouiCOM.BoFieldsType.ft_Integer)
Table.Columns.Add("DocNum", SAPbouiCOM.BoFieldsType.ft_AlphaNumeric, 255)
Table.Columns.Add("codi_loca", SAPbouiCOM.BoFieldsType.ft_AlphaNumeric, 10)
Table.Columns.Add("codi_arti", SAPbouiCOM.BoFieldsType.ft_AlphaNumeric, 25)
Table.Columns.Add("quan_movi", SAPbouiCOM.BoFieldsType.ft_Float)
Table.Columns.Add("data_tran", SAPbouiCOM.BoFieldsType.ft_Date)
Table.Columns.Add("hora_tran", SAPbouiCOM.BoFieldsType.ft_Date)
Matrix = oForm.Items.Item("6").Specific
Column = Matrix.Columns.Item("V_-1")
Column.DataBind.Bind("Lines", "ID")
Column = Matrix.Columns.Item("V_0")
Column.DataBind.Bind("Lines", "DocNum")
Column = Matrix.Columns.Item("V_1")
Column.DataBind.Bind("Lines", "codi_loca")
Column = Matrix.Columns.Item("V_2")
Column.DataBind.Bind("Lines", "codi_arti")
Column = Matrix.Columns.Item("V_3")
Column.DataBind.Bind("Lines", "quan_movi")
I then fill the table using this SQL
Dim Matrix As SAPbouiCOM.Matrix
Dim Table As SAPbouiCOM.DataTable
Dim SQL As String = ""
SQL += "DECLARE @Lines TABLE(" & vbNewLine
SQL += " ID INT IDENTITY(1,1) PRIMARY KEY NOT NULL," & vbNewLine
SQL += " DocEntry INT," & vbNewLine
SQL += " DocNum NVARCHAR(255)," & vbNewLine
SQL += " codi_loca NVARCHAR(10)," & vbNewLine
SQL += " codi_arti NVARCHAR(25)," & vbNewLine
SQL += " quan_movi DECIMAL(19,6)," & vbNewLine
SQL += " data_tran DATETIME," & vbNewLine
SQL += " hora_tran DATETIME)" & vbNewLine
SQL += "INSERT INTO @Lines(DocEntry, DocNum, codi_loca, codi_arti, quan_movi, data_tran, hora_tran)" & vbNewLine
SQL += "SELECT T0.DocEntry," & vbNewLine
SQL += " T1.SeriesName + '\' + convert(nvarchar, T0.DocNum) as DocNum," & vbNewLine
SQL += " T2.codi_loca," & vbNewLine
SQL += " T2.codi_arti," & vbNewLine
SQL += " T2.quan_movi," & vbNewLine
SQL += " T2.data_tran," & vbNewLine
SQL += " T2.hora_tran" & vbNewLine
SQL += " FROM ORDR T0 INNER JOIN" & vbNewLine
SQL += " NNM1 T1 ON (T0.Series = T1.Series) INNER JOIN" & vbNewLine
SQL += " EXTERNALDATABASE.dbo.zz_historico_movimento_artigo T2 ON (T1.SeriesName + '\' + convert(nvarchar, T0.DocNum) = T2.nume_docu)" & vbNewLine
SQL += " WHERE T2.tipo_docu = 'OE'" & vbNewLine
SQL += " AND T2.codi_tran = 'SC'" & vbNewLine
SQL += " AND T0.DocStatus = 'O'" & vbNewLine
SQL += " AND T0.DocEntry = 449" & vbNewLine
SQL += " ORDER BY T2.codi_loca" & vbNewLine
SQL += "SELECT ID, DocEntry, DocNum, codi_loca, codi_arti, quan_movi, data_tran, hora_tran from @Lines order by codi_loca" & vbNewLine
Table = oForm.DataSources.DataTables.Item("Lines")
Table.ExecuteQuery(SQL)
Matrix = oForm.Items.Item("6").Specific
Matrix.LoadFromDataSource()
The Data is beeing loaded correcty and the numeric values are ok in the Table,
But on the SAP BO Application the quan_movi column insted of displaying numbres, it displays funny characters
Like you can see on this [PrintScreen|http://i283.photobucket.com/albums/kk291/hyperbyte2/SAPJap.jpg]
Can any one find anything wrong with my code that explains the numeric conversion failure.
Thanks in Advance
Pedro Gomes
SINFIC SAHi Pedro,
first of all - official it is not allowed to move data with recordsets. if you want to license your addon you will have problems.
second - split the query.
"move" the data in a own recordset and be sure that your executequery only contains the raw select.
the last step is to control if the data you receive from the fields is the same type like the defined column.
regards
David -
Hi
I am using the sqldf package in R to do some joins of my data table as follows:
p1<-sqldf("SELECT t3.* FROM p as t3 JOIN (SELECT userid, MAX(type) as LastActivityType FROM p GROUP BY userid) t4 ON t3.userid = t4.userid AND t3.type = t4.LastActivityType")
However , I am getting the error mentioned in the subject line
The error doesn't appear when I change the column names from t3.* and limit it to a subset of column names ( t3.userid, t3.LastActivity....).
Surprisingly though, I have another similar sql script in the same code block which runs just fine.
My code runs fine in RStudio, so I guess there's some incompatibility with the Azure environment somewhere. For reference, the sqldf package and its dependencies (imported separately as a zip) is compatible with R 3.1.2
Can someone help me solve this?
Thanks in advance!!Hi AK
Thanks for the quick response
So I checked the following:
1) Downloaded the dataset from AML from the step just previous to where my sql script appears, fed it into RStudio with stringsAsFactors=FALSE and thereupon ran the sql script. It works without any issues. It works fine if I dont set stringsAsFactors
as false as well
2) Checked the CRAN documentation on the sqldf package, it mentions that the package is valid for versions>=R3.1.0
3)All 4 dependencies were included. Only one was preinstalled. The output log says:
warning: package 'proto' is in use and will not be installedso I removed the package 'proto' just in case it was causing trouble.Nothing Works :/I am pasting the output log, could you have a look and see if I am missing anything obvious?Thanks a ton!UpasanaOutput Log:Record Starts at UTC 11/27/2014 07:38:27:
Run the job:"/dll "ExecuteRScript, Version=5.1.0.0, Culture=neutral, PublicKeyToken=69c3241e6f0468ca;Microsoft.MetaAnalytics.RDataSupport.ExecuteRScript;Run" /Output0 "..\..\Result Dataset\Result Dataset.dataset" /Output1 "..\..\R Device\R Device.dataset" /dataset1 "..\..\Dataset1\Dataset1.csv" /bundlePath "..\..\Script Bundle\Script Bundle.zip" /rStreamReader "script.R" "
Starting process 'C:\Resources\directory\275cc759e61f4dbf889cde5e5cba0835.SingleNodeRuntimeCompute.Packages\AFx\5.1\DllModuleHost.exe' with arguments ' /dll "ExecuteRScript, Version=5.1.0.0, Culture=neutral, PublicKeyToken=69c3241e6f0468ca;Microsoft.MetaAnalytics.RDataSupport.ExecuteRScript;Run" /Output0 "..\..\Result Dataset\Result Dataset.dataset" /Output1 "..\..\R Device\R Device.dataset" /dataset1 "..\..\Dataset1\Dataset1.csv" /bundlePath "..\..\Script Bundle\Script Bundle.zip" /rStreamReader "script.R" '
[ModuleOutput] DllModuleHost Start: 1 : Program::Main
[ModuleOutput] DllModuleHost Start: 1 : DataLabModuleDescriptionParser::ParseModuleDescriptionString
[ModuleOutput] DllModuleHost Stop: 1 : DataLabModuleDescriptionParser::ParseModuleDescriptionString. Duration: 00:00:00.0050545
[ModuleOutput] DllModuleHost Start: 1 : DllModuleMethod::DllModuleMethod
[ModuleOutput] DllModuleHost Stop: 1 : DllModuleMethod::DllModuleMethod. Duration: 00:00:00.0000572
[ModuleOutput] DllModuleHost Start: 1 : DllModuleMethod::Execute
[ModuleOutput] DllModuleHost Start: 1 : DataLabModuleBinder::BindModuleMethod
[ModuleOutput] DllModuleHost Verbose: 1 : moduleMethodDescription ExecuteRScript, Version=5.1.0.0, Culture=neutral, PublicKeyToken=69c3241e6f0468ca;Microsoft.MetaAnalytics.RDataSupport.ExecuteRScript;Run
[ModuleOutput] DllModuleHost Verbose: 1 : assemblyFullName ExecuteRScript, Version=5.1.0.0, Culture=neutral, PublicKeyToken=69c3241e6f0468ca
[ModuleOutput] DllModuleHost Start: 1 : DataLabModuleBinder::LoadModuleAssembly
[ModuleOutput] DllModuleHost Verbose: 1 : Trying to resolve assembly : ExecuteRScript, Version=5.1.0.0, Culture=neutral, PublicKeyToken=69c3241e6f0468ca
[ModuleOutput] DllModuleHost Verbose: 1 : Loaded moduleAssembly ExecuteRScript, Version=5.1.0.0, Culture=neutral, PublicKeyToken=69c3241e6f0468ca
[ModuleOutput] DllModuleHost Stop: 1 : DataLabModuleBinder::LoadModuleAssembly. Duration: 00:00:00.0067974
[ModuleOutput] DllModuleHost Verbose: 1 : moduleTypeName Microsoft.MetaAnalytics.RDataSupport.ExecuteRScript
[ModuleOutput] DllModuleHost Verbose: 1 : moduleMethodName Run
[ModuleOutput] DllModuleHost Information: 1 : Module FriendlyName : Execute R Script
[ModuleOutput] DllModuleHost Information: 1 : Module Release Status : Release
[ModuleOutput] DllModuleHost Stop: 1 : DataLabModuleBinder::BindModuleMethod. Duration: 00:00:00.0106972
[ModuleOutput] DllModuleHost Start: 1 : ParameterArgumentBinder::InitializeParameterValues
[ModuleOutput] DllModuleHost Verbose: 1 : parameterInfos count = 5
[ModuleOutput] DllModuleHost Verbose: 1 : parameterInfos[0] name = dataset1 , type = Microsoft.Numerics.Data.Local.DataTable
[ModuleOutput] DllModuleHost Start: 1 : DataTableCsvHandler::HandleArgumentString
[ModuleOutput] DllModuleHost Stop: 1 : DataTableCsvHandler::HandleArgumentString. Duration: 00:00:13.1522942
[ModuleOutput] DllModuleHost Verbose: 1 : parameterInfos[1] name = dataset2 , type = Microsoft.Numerics.Data.Local.DataTable
[ModuleOutput] DllModuleHost Verbose: 1 : Set optional parameter dataset2 value to NULL
[ModuleOutput] DllModuleHost Verbose: 1 : parameterInfos[2] name = bundlePath , type = System.String
[ModuleOutput] DllModuleHost Verbose: 1 : parameterInfos[3] name = rStreamReader , type = System.IO.StreamReader
[ModuleOutput] DllModuleHost Verbose: 1 : parameterInfos[4] name = seed , type = System.Nullable`1[System.Int32]
[ModuleOutput] DllModuleHost Verbose: 1 : Set optional parameter seed value to NULL
[ModuleOutput] DllModuleHost Stop: 1 : ParameterArgumentBinder::InitializeParameterValues. Duration: 00:00:13.1845731
[ModuleOutput] DllModuleHost Verbose: 1 : Begin invoking method Run ...
[ModuleOutput] Microsoft Drawbridge Console Host [Version 1.0.2108.0]
[ModuleOutput] [1] 56000
[ModuleOutput]
[ModuleOutput] The following files have been unzipped for sourcing in path=["src"]:
[ModuleOutput]
[ModuleOutput] Name Length Date
[ModuleOutput]
[ModuleOutput] 1 sqldf_0.4-10.zip 71667 2014-11-21 11:38:00
[ModuleOutput]
[ModuleOutput] 2 chron_2.3-45.zip 107752 2014-11-21 11:38:00
[ModuleOutput]
[ModuleOutput] 3 DBI_0.3.1.zip 153831 2014-11-21 11:38:00
[ModuleOutput]
[ModuleOutput] 4 gsubfn_0.6-6.zip 348505 2014-11-21 11:38:00
[ModuleOutput]
[ModuleOutput] 5 proto_0.3-10.zip 458519 2014-11-21 11:38:00
[ModuleOutput]
[ModuleOutput] 6 RSQLite_1.0.0.zip 1211130 2014-11-21 11:38:00
[ModuleOutput]
[ModuleOutput] Loading objects:
[ModuleOutput]
[ModuleOutput] port1
[ModuleOutput]
[ModuleOutput] [1] "Loading variable port1..."
[ModuleOutput]
[ModuleOutput] package 'gsubfn' successfully unpacked and MD5 sums checked
[ModuleOutput]
[ModuleOutput] Loading required package: proto
[ModuleOutput]
[ModuleOutput] [1] TRUE
[ModuleOutput]
[ModuleOutput] package 'DBI' successfully unpacked and MD5 sums checked
[ModuleOutput]
[ModuleOutput] [1] TRUE
[ModuleOutput]
[ModuleOutput] package 'RSQLite' successfully unpacked and MD5 sums checked
[ModuleOutput]
[ModuleOutput] [1] TRUE
[ModuleOutput]
[ModuleOutput] package 'sqldf' successfully unpacked and MD5 sums checked
[ModuleOutput]
[ModuleOutput] [1] TRUE
[ModuleOutput]
[ModuleOutput] Loading required package: tcltk
[ModuleOutput]
[ModuleOutput] Error in asfn(rs[[i]]) : need explicit units for numeric conversion
[ModuleOutput]
[ModuleOutput] In addition: Warning messages:
[ModuleOutput]
[ModuleOutput] 1: In strptime(x, format, tz = tz) :
[ModuleOutput]
[ModuleOutput] unable to identify current timezone 'C':
[ModuleOutput]
[ModuleOutput] please set environment variable 'TZ'
[ModuleOutput]
[ModuleOutput] 2: In strptime(x, format, tz = tz) : unknown timezone 'localtime'
[ModuleOutput]
[ModuleOutput] 3: package 'gsubfn' was built under R version 3.1.2
[ModuleOutput]
[ModuleOutput] 4: package 'DBI' was built under R version 3.1.2
[ModuleOutput]
[ModuleOutput] 5: package 'RSQLite' was built under R version 3.1.2
[ModuleOutput]
[ModuleOutput] 6: package 'sqldf' was built under R version 3.1.2
[ModuleOutput]
[ModuleOutput] 7: In strptime(xx, f <- "%Y-%m-%d %H:%M:%OS", tz = tz) :
[ModuleOutput]
[ModuleOutput] unknown timezone 'localtime'
[ModuleOutput]
[ModuleOutput] DllModuleHost Stop: 1 : DllModuleMethod::Execute. Duration: 00:02:41.0341394
[ModuleOutput] DllModuleHost Error: 1 : Program::Main encountered fatal exception: Microsoft.Analytics.Exceptions.ErrorMapping+ModuleException: Error 0063: The following error occurred during evaluation of R script:
[ModuleOutput] ---------- Start of error message from R ----------
[ModuleOutput] R script execution failed. Please click on "View Output Log" in the properties pane for full details.
[ModuleOutput] ----------- End of error message from R -----------
Module finished after a runtime of 00:02:41.1766291 with exit code -2
Module failed due to negative exit code of -2
Record Ends at UTC 11/27/2014 07:41:12. -
Textual to numeric conversion in Lookout 5.0
Does anyone knows how get textual-to-numeric conversion in Lookout?
Lookout is capable of converting text to numeric data automatically. For example, if you connect a TextEntry object to a Pot object and then enter a number into the TextEntry object that number will be displayed in the Pot. Depending on where your text is coming from, you might have to an intermediate Text object to retrieve the number out of the string using something like the MID function (take a look at the Lookout help for all of the text functions).
JR A. -
Revision: 12293
Revision: 12293
Author: [email protected]
Date: 2009-11-30 13:23:52 -0800 (Mon, 30 Nov 2009)
Log Message:
Fix ASC-3726: implement ECMA-262 style numeric conversions for constant numerics.
Tests: asc,flex,tamarin checkin tests
Review: Jeff Dyer (src), Chris Peyer (tests)
Ticket Links:
http://bugs.adobe.com/jira/browse/ASC-3726
http://bugs.adobe.com/jira/browse/ECMA-262
Modified Paths:
flex/sdk/trunk/modules/asc/src/java/macromedia/asc/semantics/ConstantEvaluator.java
Added Paths:
flex/sdk/trunk/modules/asc/src/java/macromedia/asc/util/NumericConversions.java
Removed Paths:
flex/sdk/trunk/modules/asc/test/compiler/as3/Definitions/Function/InvDefClPrivInstMethArg ValIntErr.err
flex/sdk/trunk/modules/asc/test/compiler/as3/Definitions/Function/InvDefClPrivInstMethArg ValUintErr.err
flex/sdk/trunk/modules/asc/test/compiler/as3/Definitions/Function/InvDefClPubInstMethArgV alIntErr.err
flex/sdk/trunk/modules/asc/test/compiler/as3/Definitions/Function/InvDefClPubInstMethArgV alUintErr.err
flex/sdk/trunk/modules/asc/test/compiler/as3/Definitions/Function/InvDefInstMethArgValErr .err
flex/sdk/trunk/modules/asc/test/compiler/as3/Definitions/Function/InvDefInstMethArgValuin tErr.err
flex/sdk/trunk/modules/asc/test/compiler/as3/Definitions/Function/InvDefMethArgValErr.err
flex/sdk/trunk/modules/asc/test/compiler/as3/Definitions/Function/InvDefMethArgValuintErr .err
flex/sdk/trunk/modules/asc/test/compiler/as3/Definitions/Function/InvDefPackMethArgValErr .err
flex/sdk/trunk/modules/asc/test/compiler/as3/Definitions/Function/InvDefPackMethArgValUin tErr.err
flex/sdk/trunk/modules/asc/test/compiler/as3/Definitions/Function/InvDefStatMethArgValErr .err
flex/sdk/trunk/modules/asc/test/compiler/as3/Definitions/Function/InvDefStaticMethArgValU intErr.err
flex/sdk/trunk/modules/asc/test/compiler/as3/Definitions/Function/InvIntClDefInstMethArgU intErr.err
flex/sdk/trunk/modules/asc/test/compiler/as3/Definitions/Function/InvPubClPrivInstMethArg ValIntErr.err
flex/sdk/trunk/modules/asc/test/compiler/as3/Definitions/Function/InvPubClPrivInstMethArg ValUintErr.err
flex/sdk/trunk/modules/asc/test/compiler/as3/Definitions/Function/InvPubClPubInstMethArgV alUintErr.err
flex/sdk/trunk/modules/asc/test/compiler/as3/Definitions/Function/InvPubClPubInstMethArgV alintErr.err -
Exponential to Numeric Conversion in ABAP
Hi,
This is regrardng the conversion of Exponential to Numeric values in ABAP.I have an exponential Value 4.8E+47 .I want to convert to numerical .If i use the Exponential Function ,It is agian yielding another Exponent value.
If the Power is more than 47,then there could be multiple steps and In all the case ,it is giving exponent values only.
But I need the numeric value which later should rounded off to 3 decimals.
Please guide me if there is any Function module or a way to resolve this issue.
Regards,
Kranti Yamparala.Hey Vikas,
did you ever try the given FM there? First of all there is no FM called "QSS0_FLTP_TO_CHAR_CONVERSION" in every system, as you maybe take notice of the prefix. There are just these FMs called " CHAR_FLTP_CONVERSION" or "FLTP_CHAR_CONVERSION". Maybe you mean them. But, nevertheless these are not easy to use FM. Maybe you should try and read the other postings in advance.
As I said in my post - and this is the fastest way - you just have to move. That's all. No FM, no Method no nothing ...
Just:
e_output = l_float = i_input.
Yavuz -
Numeric conversion in fixed length outputs
I have a requirement to right justify all numeric fields in a fixed length file content conversion..Due to the fixed length nature the numeric fields are stating from the positions defined in the file content conversion..Is it possible for them to be right justfied though we give them starting postions??
-TeresaHi,
Simplest way would be to write a user defined function, where you append spaces to the variable based on length.
string b;
int size = a.length();
int diff = 5 - size;
b = a;
for(int i = 0; i <= diff;i++)
b = " " + b;
return b;
Hope it helps,
Naveen -
Abt char to numeric conversion
There is a field named bcode in data base that is of char length 3 , i want 1 to 10 insert in dat field, is it possible , i know yes , so tell me dat field is behaving like character when i m selecting values from selection screen , what i want when i m entering 1 to 7 it should show only then as a numeric field do , how we can do dat? tell me in details?
Then follow Sandipan Ghosh's suggestion above. Read the database table into an internal table, convert the character numeric data to integer. Change your select option to be integer.
Or create a table, e.g. z_numtab, with two fields - CH3 type CHAR 3, and INT type INT1. Populate it with all the numbers 0-999. Then use it to convert the select option to a series of equalities.
DATA: num TYPE c LENGTH 3,
int TYPE i.
DATA: lt_numtab TYPE STANDARD TABLE OF z_numtab.
SELECT-OPTIONS: s_num FOR num.
RANGES: r_num FOR i.
FIELD-SYMBOLS: <ls_numtab> TYPE z_numtab.
AT SELECTION-SCREEN..
LOOP AT s_num.
IF s_num-low CN ' 0123456789' OR s_num-high CN ' 0123456789'.
MESSAGE e000(s1) WITH 'Numerics only'.
ENDIF.
ENDLOOP.
START-OF-SELECTION.
LOOP AT s_num.
r_num-option = s_num-option.
r_num-sign = s_num-sign.
r_num-low = s_num-low.
r_num-high = s_num-high.
APPEND r_num.
ENDLOOP.
SELECT * FROM z_numtab INTO TABLE lt_numtab WHERE int IN r_num.
REFRESH s_num.
s_num-sign = 'I'.
s_num-option = 'EQ'.
LOOP AT lt_numtab ASSIGNING <ls_numtab>.
s_num-low = <ls_numtab>-ch3.
ENDLOOP.
SELECT * FROM dbtab INTO TABLE lt_dbtab WHERE bcode IN s_num.
matt -
Hello,
I am calling a subrouting from SAP SCRIPT.
But in the subroutine I am not able to change the currecy value to integer.
FORM cal_Tot tables ntwr structure itcsy
tot structure itcsy.
DATA value type vbap-netwr.
value = ntwr-value.
ENDFORM.
If the value of ntwr-value is 300.0 its working but
if the value of ntwr-value is 1,345.0 this is giving runtime error.
How can store 1,345 into variable valueHi ,
Chk this one
report zcurr.
data: input type bapicurr-bapicurr .
data: c(20) type c.
data: output(15) type p decimals 2.
c = '12,345.78'.
clear sy-subrc.
while sy-subrc = 0.
replace ',' with space into c.
endwhile.
condense c no-gaps.
input = c.
call function 'BAPI_CURRENCY_CONV_TO_INTERNAL'
exporting
currency = 'INR'
amount_external = input
max_number_of_digits = 25
importing
amount_internal = output
RETURN = -
Numeric or value error: character to number conversion error
I'm having problems inserting a value from a date picker field (DD-MON-YYYY HH MI )
i'm submitting this value to a packaged procedure that accepts this field as VARCHAR2 .
on the insert, i do a to_date( P_DATE, 'DD-MON-YYYY HH:MI PM' )
and i get the numeric conversion error.
If I change the to_date on the procedure side, I get the :could not read the end of the format mask - which I've found threads about on this site.
I've tried using HH24 and different formats, but I get one of the two above errors on the insert.
If I don't fill in the datepicker field at all, it works fine.
help is appreciated !
BillHere is the trace anyway:
*** ACTION NAME:(application 4000, page 1) 2004-09-24 12:58:44.052
*** MODULE NAME:(HTML DB) 2004-09-24 12:58:44.052
*** SERVICE NAME:(TOPS) 2004-09-24 12:58:44.052
*** SESSION ID:(151.1) 2004-09-24 12:58:44.052
*** 2004-09-24 12:58:44.052
ksedmp: internal or fatal error
ORA-06502: PL/SQL: numeric or value error: character to number conversion error
Current SQL statement for this session:
declare
rc__ number;
begin
owa.init_cgi_env(:n__,:nm__,:v__);
htp.HTBUF_LEN := 255;
null;
null;
null;
null;
f(p=>:p);
if (wpg_docload.is_file_download) then
rc__ := 1;
wpg_docload.get_download_file(:doc_info);
null;
null;
null;
commit;
else
rc__ := 0;
null;
null;
null;
commit;
owa.get_page(:data__,:ndata__);
end if;
:rc__ := rc__;
end;
----- PL/SQL Call Stack -----
object line object
handle number name
6A3C4A00 532 package body FLOWS_010500.WWV_FLOW_UTILITIES
6A3C4A00 2502 package body FLOWS_010500.WWV_FLOW_UTILITIES
6A3C4A00 2748 package body FLOWS_010500.WWV_FLOW_UTILITIES
6A0E63C8 991 package body FLOWS_010500.WWV_FLOW_FORMS
6A11675C 932 package body FLOWS_010500.WWV_FLOW_DISP_PAGE_PLUGS
6A11675C 247 package body FLOWS_010500.WWV_FLOW_DISP_PAGE_PLUGS
6A4B54E0 8341 package body FLOWS_010500.WWV_FLOW
6A2A99F0 102 procedure FLOWS_010500.F
6A2B9E54 10 anonymous block
----- Call Stack Trace -----
calling call entry argument values in hex
location type point (? means dubious value)
ksedmp+524 CALLrel ksedst+0 1
ksedmptracecb+15 CALLrel _ksedmp+0 C
_ksddoa+118 CALLreg 00000000 C
ksdpcg+143 CALLrel ksddoa+0
ksdpec+180 CALLrel ksdpcg+0 1966 6D7D208 1
__PGOSF3__ksfpec+11 CALLrel _ksdpec+0 0
8
_kgerev+77 CALLreg 00000000 7474210 1966
kgerec1+18 CALLrel kgerev+0 7474210 6DCE5EC 1966 1
6D7D260
peirve+465 CALLrel kgerec1+0
pevmCVTCN+346 CALLrel _peirve+0
pfrinstrCVTCN+36 CALLrel pevmCVTCN+0 6E6E604 71CE370 7160F0C
pfrrunno_tool+51 CALL??? 00000000
pfrrun+1834 CALLrel pfrrun_no_tool+0 6E6E604 6A3C010A 6E6E640
plsqlrun+1051 CALLrel _pfrrun+0 6E6E604
peicnt+179 CALLrel plsql_run+0 6E6E604 1 0
kkxexe+477 CALLrel peicnt+0
opiexe+4896 CALLrel kkxexe+0 6A2B9E54
kpoal8+1705 CALLrel opiexe+0 49 3 6D7E06C
_opiodr+977 CALLreg 00000000 5E 14 6D7E7CC
_ttcpip+1827 CALLreg 00000000 5E 14 6D7E7CC 0
_opitsk+1098 CALL??? 00000000
opiino+938 CALLrel opitsk+0 0 0 747ABC0 6DEFB14 D8 0
_opiodr+977 CALLreg 00000000 3C 4 6D7FBBC
opidrv+479 CALLrel opiodr+0 3C 4 6D7FBBC 0
sou2o+45 CALLrel opidrv+0 3C 4 6D7FBBC
opimai+237 CALLrel sou2o+0
OracleThreadStart@ CALLrel opimai+0
4+899
77E7D338 CALLreg 00000000 -
I simply wish to take several numbers (controls) multiply them together but then I need the answer to be converted into the form of a string (ascii).
Is there a VI available to do this ??Hi sammy,
Right-click on the diagram and have a look around the String functions palette - specifically the String/Numeric conversion functions.
Cheers.
"Inside every large program is a small program struggling to get out." (attributed to Tony Hoare) -
Implicit and explicit Type conversion using Type object in heap
Hi,
I am surprised how Implicit and explicit Type conversion works using Type object in heap. for example when implicit type conversion occur what pointer it returns to object and similarly with explicit type conversion.Hello,
>> I am surprised how Implicit and explicit Type conversion works using Type object in heap.
For Implicit conversions: Typical examples are conversions from smaller to larger integral types, and conversions from derived classes to base classes. For the first one, the reference would be different which means it would return a different pointer to
a new object. For the reference type, it actually points to the same memory location, you could use the object.ReferenceEquals() to check it.
For Explicit conversions (casts):Typical examples include numeric conversion to a type that has less precision or a smaller range, and conversion of a base-class instance to a derived class. For first one, it would perform the same with implicit conversions.
While for the conversion of conversion of a base-class instance to a derived class, actually, there's no built-in way to do this conversion.
Regards.
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
When using the numeric conversion functions, such as to I16, what determines whether a number greater than the upper limit is coerced to the upper limit or is wrapped around from the lower limit?
> When using the numeric conversion functions, such as to I16, what
> determines whether a number greater than the upper limit is coerced to
> the upper limit or is wrapped around from the lower limit?
>
In general, LV will coerce the way that the CPU does. Integers to
integer will take the lower portion, performing a modulo operation.
Float to integer will pin, typically to the correctly signed maxInt.
If it is important to your algorithm, build a quick test VI.
Greg McKaskle -
Since the email conversion on 15/09/2014 my son cannot access his emails in Czech Republic. He has a sub account on my BT Account. I can access his account in the UK. He has had numerous conversations with BT but they have not got an answer as yet. He needs this access for his business and is getting a little vociferous about it. That is why I am trying to be tactful. Does anyone have a possible solution.
I'm having problems with the new BT Mail. I'm unable to forward emails with pictures. BT have been as much use as a chocolate teapot.
The way I have got around this is set up a new non BT web mail account (I've used Yahoo) in the settings of his BT Mail account go to Mail - Auto forward - tick the auto forward box and put in his new email address also tick the box for keep copy just in case he can access his mail eventually.
Then log into his new web mail account and his BT mail will be there. Just remember that if he replies it will come from his new account.
Also he will not have access to any of his BT folders.
As you can access his account I suggest you set up his new account as you should be able to import his contacts.
Not the ideal solution but it works for me.
Another solution may be to set up his BT Mail in Windows Mail which isn't web based. I have no problems with that at all.
Regards
Keith -
Lvc_t_nkey t - ype conversion
friends,
I have a requirement where I need to convert value from field lvc_t_nkey to an integer after using function:
call method gd_tree_order->GET_SELECTED_NODES
How can I convert lvc_t_nkey to an another integer variable ?
assigning directly to another type results in syntax error in systems 5.0 and above.
Thanks,
kartikHello Karthik
The following code sample shows how to do your task:
*& Form GET_SELECTED_NODES
* text
* --> p1 text
* <-- p2 text
FORM get_selected_nodes .
* define local data
DATA:
lt_nodes TYPE lvc_t_nkey,
ld_nkey TYPE lvc_s_nkey,
ld_num(12) TYPE n.
TYPES: BEGIN OF l_ty_s_key.
TYPES: key TYPE i.
TYPES: END OF l_ty_s_key.
DATA:
ls_key TYPE l_ty_s_key,
lt_keys TYPE STANDARD TABLE OF l_ty_s_key.
CALL METHOD g_alv_tree->get_selected_nodes
CHANGING
ct_selected_nodes = lt_nodes
EXCEPTIONS
cntl_system_error = 1
dp_error = 2
failed = 3
OTHERS = 4.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
LOOP AT lt_nodes INTO ld_nkey.
* Numeric conversion
* MOVE ld_nkey TO ld_num.
* ls_key-key = ld_num.
MOVE ld_nkey TO ls_key-key.
APPEND ls_key TO lt_keys.
ENDLOOP.
LOOP AT lt_keys INTO ls_key.
WRITE: / ls_key-key.
ENDLOOP.
ENDFORM. " GET_SELECTED_NODES
Regards
Uwe
Maybe you are looking for
-
SSO UIDPW not working for external Popup Window but works with SAPLOGONTICK
Dear Experts, I have an issue with SSO user mapping (UIDPW), but the same scenario is working with SAPLOGONTICKET. Some list gets displayed in the Web Dynpro ABAP iView which has the hyperlinks where on click on the hyper link it opens a external pop
-
AccAD 2.2: Support Package Stack 02 available
Hello, Support-Package-Stack 02 for AccAD 2.2 seems to be released now. At least I can see it in the Download area on SMP :o) But there are no notes about it yet. Will there be Release notes for SPS02, which bugfixes and new features are in it? Best
-
I cannot install adobe reader on window XP
-
Mac Pro & RAID Card configuration
hello- i've got a 2 x 2.26 Quad Core Xeon Mac Pro with an Apple RAID card in it 1 x 1TB system drive and 3 x 2TB media drive for video question: can i have the system drive separate from the RAID card and just create a 6TB RAID0 array for the media d
-
Tried hard restart, tried launching from other aps, very frustrating. I don't have any idea what all is in my library, so I don't want to delete the app.