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

Similar Messages

  • Char to numeric conversion

    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 value

    Hi ,
    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 conversion error

    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 SA

    Hi 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

  • Error in asfn(rs[[i]]) : need explicit units for numeric conversion

    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.

  • Char to Date conversion problem - again!

    Hi,
    in order to make date selection 'more attractive' for end users I have been tasked with presenting a text field with 'January 2010', 'February 2010' etc to the end users for their prompts.
    So far so easy...
    However, I then need to use the values to derive either dates, or years, or date numbers.
    This all works fine during development when I am testing using a default parameter thus; -
    '@{MYMONTHYEAR}{September 2010}' - which is fed into various very complex functions.
    BUT - when I try to use the report in conjunction with the parameter I get; -
    'The evaluation of the index 6 expression on row count -1 failed. [nQSError: 46046] Datetime value 2010/09/01 does not match the specifiied format'
    However, cast('2010/09/01' as date) works fine... and convoluted as the logic of my functions is, the fundamental char to date conversion is exactly in this format.
    Anyone shed any light on this, give me a guaranteed way to handle char to date conversion?
    thanks,
    Robert.

    Hi,
    I tried your workaround case when 1=2... but I still get the same error....
    Not when I have the format from my default value, but when I get the value from a dashboard prompt in a page.
    The full error is; -
    Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 46046] Datetime value 2012/09/01 does not match the specified format. (HY000)
    SQL Issued: SELECT s_0, s_1, s_2, s_3, s_4, s_5, s_6, s_7, s_8, s_9, s_10, s_11, s_12, s_13, s_14, s_15, s_16, s_17, s_18, s_19, s_20, s_21, s_22, s_23, s_24, s_25, s_26, s_27, s_28, s_29, s_30, s_31, s_32, s_33, s_34, s_35, s_36, s_37, s_38, s_39, s_40, s_41, s_42, s_43, s_44, s_45, s_46, s_47, s_48, s_49, s_50, s_51, s_52, s_53, s_54, s_55, s_56, s_57 FROM ( SELECT 0 s_0, "Vivaldi Detail"."Product Global Hierarchy"."Tobacco Category Groups" s_1, "Vivaldi Detail"."Product Global Hierarchy"."Tobacco Category" s_2, "Vivaldi Detail"."Product Global Hierarchy"."Total Tobacco Products" s_3, FILTER("Vivaldi Detail"."Fact Sales Detail"."SOM %" USING ("Vivaldi Detail"."Time"."Year" =cast((cast(right('September 2012',4) as integer)-1) as char(4)))) s_4, FILTER("Vivaldi Detail"."Fact Sales Detail"."SOM %" USING ("Vivaldi Detail"."Time"."Year" =cast((cast(right('September 2012',4) as integer)-2) as char(4)))) s_5, FILTER("Vivaldi Detail"."Fact Sales Detail"."SOM %" USING ("Vivaldi Detail"."Time"."Year" =cast((cast(right('September 2012',4) as integer)-3) as char(4)))) s_6, FILTER(FILTER("Vivaldi Detail"."Fact Sales Detail"."SOM %" USING ("Vivaldi Detail"."Time"."Year" =cast((cast(right('September 2012',4) as integer)-1) as char))) USING "Vivaldi Detail"."Time"."Month Number" <=month(CASE WHEN 1=2 THEN CURRENT_DATE ELSE cast(right('September 2012',4)||'/'||CASE left('September 2012',LOCATE(' ','September 2012')-1) WHEN 'January' THEN '01/01' WHEN 'February' then '02/01' when 'March' then '03/01' when 'April' then '04/01' when 'May' then '05/01' when 'June' then '06/01' when 'July' then '07/01' when 'August' then '08/01' when 'September' then '09/01' when 'October' then '10/01' when 'November' then '11/01' ELSE '12/01' END as date)END)) s_7, FILTER(FILTER("Vivaldi Detail"."Fact Sales Detail"."SOM %" USING ("Vivaldi Detail"."Time"."Year" =right('September 2012',4))) USING "Vivaldi Detail"."Time"."Month Number" <=month(CASE WHEN 1=2 THEN CURRENT_DATE ELSE cast(right('September 2012',4)||'/'||CASE left('September 2012',LOCATE(' ','September 2012')-1) WHEN 'January' THEN '01/01' WHEN 'February' then '02/01' when A brief sample of a typical formula which causes this is; -
    FILTER(FILTER(FILTER("Fact Sales Detail"."SOM %" USING ("Time"."Year" =   right('@{MYEAR}{September 2010}',4))) USING ("Time"."Month Number" = 2)) USING "Time"."Month Number" <= month(CASE WHEN 1=2 THEN CURRENT_DATE ELSE cast(right('@{MYEAR}{September 2010}',4)||'/'||CASE left('@{MYEAR}{September 2010}',  LOCATE(' ','@{MYEAR}{September 2010}') -1) WHEN 'January' THEN '01/01'  WHEN 'February' then '02/01' when 'March' then '03/01' when 'April' then '04/01' when 'May' then '05/01' when 'June' then '06/01' when 'July' then '07/01' when 'August' then '08/01' when 'September' then '09/01' when 'October' then '10/01' when 'November' then '11/01' ELSE '12/01' END as date)  END    ))The September 2010 default being EXACTLY what is selected from the dashboard prompt when testing. It does not error, but returns no data in isolation, but when when from the prompt it errors...
    And the date format, if fed into a cast ('2012/09/01' as date) does not error.
    Anyone help - this is really driving me mad, syntax is good - it should work!!!
    thanks,
    Robert.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • [svn:fx-trunk] 12293: Fix ASC-3726: implement ECMA-262 style numeric conversions for constant numerics.

    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??
    -Teresa

    Hi,
    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

  • Converting char to numeric value

    I have table with social security no. but application does not
    have any validation for data so i get all different kinds of
    data like...
    123-24-0988
    123458900
    n/a
    N
    f234-90-8877
    12 345 6789
    Now i want to remove all '-' and alpha char from value and just
    want to remain only nuemric characters so i can use it as where
    parameter.
    Is their any function that i can use for this or any other logic
    that i can use for this?
    Thanks

    As demonstrated in a previous discussion regarding checking for
    numeric values, translate does not produce the proper results
    when you translate it to a null value. However, you can achieve
    the desired results, by translating to spaces, then replacing
    the spaces:
    UPDATE table_name
    SET ssn = REPLACE (TRANSLATE (LOWER
    (ssn), 'abcdefghijklmnopqrstuvwxyz- ', ' '), ' ', '');

  • CHAR vs NUMERIC

    Hello everyone.
    I'm confused about this two data types, I want to store a numeric 4 digits code and I want to choose the best one of them (CHAR(4) vs NUMERIC(4,0)), but I don't know what's the difference, could someone explain me? 
    Thank you
    Ivan Dario Ospina C#.NET, T-SQL Developer

    If you don't plan to do any math operations with this code, e.g. this code is some sort of the identifier, then CHAR(4) will be a good choice.
    You should always first start from figuring out a business purpose of the column in order to find good type.
    For every expert, there is an equal and opposite expert. - Becker's Law
    My blog
    My TechNet articles

  • Char to float conversion

    Hi,
    I am holding float value in a variable which i want to convert it into float again.
    Help Will be rewarded

    hi,
    u can take a float variable and move char into it directly.
    float1 = char1.

  • How to covert exponent figure in char to numerical value

    Hi all,
    I am getting value 3.0000000000000000E+01 in one of char field in the output of my report , But I want it to be display as '30' . Please help , and tell how to convert the value
    Thanks and regards,
    V.Kumar

    Hello,
    - You will find below the code that will answer to your question :
    REPORT ztest.
    DATA : wv_count TYPE sy-dbcnt.
    DATA : wv_fltp  TYPE imrg-readg.
    DATA : wv_char  TYPE char22 VALUE '3.000000000000E+01'.
    MOVE   wv_char  TO wv_fltp.
    WRITE  wv_fltp  TO wv_char EXPONENT 0 DECIMALS 0.
    WRITE / wv_char.
    Cordialement,
    Chaouki.

  • In LSMW converting the value from char to numeric

    Hi All
    I have a file in which NTGEW is stored as "2,5"
    system does not accept probably the this and when I go to the Step 11
    of convert data I am getting the dump
    I guess I need to set up the conversion rules in Step 5.
    Can you tell me how to do that

    Hi      Amolsonaikar         
    GO TO Step 5
    Place the cursor on the source field name
    click on the Rule button on Function bar...
    Then selection abap code
    and write a code.
    Assuming NTGEW is system field
    and source field is zNTGEW
    and structure is zcmm
    if not  ZCMM-zNTGEW is initial.
    REPLACE ALL OCCURRENCES OF REGEX ',' IN ZCMM-ZCUT_CODE WITH '.'.
    Zxxx-NTGEW = ZCMM-zNTGEW.
    ENDIF.
    try with above code...
    it will solve your issue
    Thanks
    RAMESH

  • Reg : CHAR to FLTP conversion

    Hi All,
    I want to convert char value '55.5'  to floating point value.
    I tried using the below function modules. These two function modules does not accept the decimals .
    CHAR_FLTP_CONVERSION
    CHAR_FLTP_CONVERSION_TO_SI
    can any one suggest how can i convert the decimal char values ('55.55') to floating point values.
    thanks
    Vijay

    hi
    data:pack type p deimals 2.
    first pass char value to pack and then from pack pass it to floting point variable.
    Regards
    Neha

Maybe you are looking for

  • Valuation Price error in Scheduling Agreement

    Hello Experts, I am getting inflated valuation while doing MIGO for delivery schedule. It always comes as more than price of material in scheduling agreement and varies from 1.5 times to 4 times. Example Material Moving Average price: 3 stock : 0 Pur

  • Printers and communication error messages

    I have a Mac Pro w/5 gig memory. I have 3 Epson printers attached a Wacom Tablet and a scanner attached also. The problem is with Epson R1800 and the Epson 7800. The 7800 will tell me Communication error every time I disrupt the computer. For example

  • Throw out old mini DV cassettes?

    Over the years I have created a number of movies and subsequently saved these back onto the tape and then created a DVD in iDVD. I now have 22 cassettes and 22 DVDs. The original footage has been deleted. I presume that if I wanted another copy of on

  • Problems creating software components in SLD

    Hi, I am using <b>NW2004s SP06</b>. While configuring NWDI, I was defining Product and Software components in the SLD. 1) I am unable to create products for SAP Systems in the catalog. Whenever I select a new product the message always says new produ

  • Ipad will not load new email

    ipad will not load any new emails.  i have one through outlook and one gmail.  neither will load anything new.