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
Similar Messages
-
Hi
I want to know what are the conversions and what are the different types of conversions in abap
Regards
PavanHi
A conversion means data that is converted from one format to another format and from one system to another. So when you first implement SAP, you are actually replacing some of your legacy systems, but you are not completely trashing the data. You still need some of that data from the systems that are being replaced. So you pull the data out of your legacy systems and put them on some files. You then want to load that data into your new SAP system. That is when you write some programs which will read that data and load it into SAP. Imagine you had a home grown purchasing system. You are now replacing all that with SAP. But until SAP goes live, you want to keep using your home grown purchasing system. So during go live, you want to transfer the POs from your legacy system to SAP. Now a PO in your legacy system may not have the same fields as a PO in SAP. So you convert the data.
from sap help....
Conversion Rules for Elementary Data Types
There are ten predefined ABAP data types. There are 100 possible type combinations between these elementary data types. ABAP supports automatic type conversion and length adjustment for all of them except type D (date) and type T (time) fields which cannot be converted into each other.
The following conversion tables define the rules for converting elementary data types for all possible combinations of source and target fields.
C D F I N P STRING T X XSTRING
Source Type Character
Conversion table for source type C
Target
Conversion
C
The target field is filled from left to right. If it is too long, it is filled with blanks from the right. If it is too short, the contents are truncated from the right.
D
The character field must contain an 8-character date in the format YYYYMMDD .
F
The contents of the source field must be a valid representation of a type F field as described in Literals.
N
Only the digits in the source field are copied. The field is right-justified and filled with trailing zeros.
I, P
The source field must contain the representation of a decimal number, that is, a sequence of digits with an optional sign and no more than one decimal point. The source field can contain blanks. If the target field is too short, an overflow may occur. This may cause the system to terminate the program.
STRING
The occupied length of the source field is copied. All trailing spaces are truncated.
T
The character field must contain a six-character time in HHMMSS format.
X
Since the character field must contain a hexadecimal string, the only valid characters are 0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F. This string is packed as a hexadecimal number, transported left-justified, and filled with zeros or truncated on the right.
XSTRING
As for fields of type X, except that the target field is not filled with zeros.
Source Type Date
Conversion table for source type D
Target
Conversion
C
The date is transported left-justified without conversion.
D
Transport without conversion.
F
The date is converted into a packed number. The packed number is then converted into a floating point number (see corresponding table).
N
The date is transported left-justified without conversion and, if necessary, filled with zeros on the right.
I, P
The date is converted to the number of days since 01.01.0001.
STRING
The date is converted to a character field, which is then converted to a character string.
T
Not supported. Results in an error message during the syntax check or in a runtime error.
X
The date is converted to the number of days since 01.01.0001 in hexadecimal format.
XSTRING
As for fields of type X, except that only significant bytes are copied.
Source Type Floating Point Number
Conversion table for source type F
Target
Conversion
C
The floating point number is converted to the <mantissa>E<exponent> format and transported to the character field. The value of the mantissa lies between 1 and 10 unless the number is zero. The exponent is always signed. If the target field is too short, the mantissa is rounded. The length of the character field must be at least 6 bytes.
D
The source field is converted into a packed number. The packed number is then converted into a date field (see corresponding table).
F
Transport without conversion.
N
The source field is converted into a packed number. The packed number is then converted into a numeric text field (see corresponding table).
I, P
The floating point number is converted to an integer or fixed point value and, if necessary, rounded.
STRING
As for fields of type C, except that the maximum number of places is used for the mantissa (maximum precision). Despite this, different signs or exponents can lead to different string lengths.
T
The source field is converted into a packed number. The packed number is then converted into a time field (see corresponding table).
X
The source field is converted into a packed number. The packed number is then converted into a hexadecimal number (see corresponding table).
XSTRING
As for fields of type X, except that leading zeros are not copied.
Source Type Integer
Type I is always treated in the same way as type P without decimal places. Wherever type P is mentioned, the same applies to type I fields.
Source Type Numeric Text
Conversion table for source type N
Target
Conversion
C
The numeric field is treated like a character field. Leading zeros are retained.
D
The numeric field is converted into a character field. The character field is then converted into a date field (see corresponding table).
F
The numeric field is converted into a packed number. The packed number is then converted into a floating point number (see corresponding table).
N
The numeric field is transported right-justified and filled with zeros or truncated on the left.
I, P
The numeric field is interpreted as a number, and transferred to the target field, where it is right-justified, and adopts a plus sign. If the target field is too short, the program may be terminated.
STRING
As for fields of type C. The length of the character string matches the length of the numeric text.
T
The numeric field is converted into a character field. The character field is then converted into a time field (see corresponding table).
X
The numeric field is converted into a packed number. The packed number is then converted into a hexadecimal number (see corresponding table).
XSTRING
As for fields of type X, except that leading zeros are not copied.
Source Type Packed Number
If the program attribute Fixed point arithmetic is set, the system rounds type P fields according to the number of decimal places or fills them out with zeros.
Conversion table for source type P
Target
Conversion
C
The packed field is transported right-justified to the character field, if required with a decimal point. The last position is reserved for the sign. Leading zeros appear as blanks. If the target field is too short, the sign is omitted for positive numbers. If this is still not sufficient, the field is truncated on the left. ABAP indicates the truncation with an asterisk (*). If you want the leading zeros to appear in the character field, use UNPACK instead of MOVE.
D
The packed field value represents the number of days since 01.01.0001 and is converted to a date in YYYYMMDD format.
F
The packed field is accepted and transported as a floating point number.
N
The packed field is rounded if necessary, unpacked, and then transported right-justified. The sign is omitted. If required, the target field is filled with zeros on the left.
I, P
A packed field is converted to type I. The resulting four bytes are placed into the target field right-justified. If the target field is too short, an overflow occurs. If the target field is longer, it is filled with zeros on the left.
STRING
As for fields of type C, except that leading zeros are not generated.
T
The packed field value represents the number of seconds since midnight and is converted to a time in HHMMSS format.
X
A packed field is converted to type I. The resulting four bytes are placed into the target field right-justified and in big-endian format. If the target field is too short, it is truncated from the left. If the target field is longer than 4, it is filled with zeros on the left. Negative numbers are represented by the two's complement (= bit complement +1).
XSTRING
As for fields of type X, except that leading zeros are not generated.
Source Type String
Conversion table for source type STRING
Target
Conversion
C
The target field is filled from left to right. If it is longer than the string, it is filled with trailing spaces. If it is too short, the contents are truncated from the right.
D
The string must contain an 8-character date in the format YYYYMMDD .
F
The contents of the string must be a valid representation of a type F field as described in Literals.
N
Only digits in the string are copied. The field is right-justified and filled with trailing zeros. If the target field is too short, it is truncated from the left.
I, P
The string must contain the representation of a decimal number, that is, a sequence of digits with an optional sign and no more than one decimal point. The source field can contain blanks. If the target field is too short, an overflow may occur. This may cause the system to terminate the program.
STRING
The source string is copied to the target string unconverted.
T
The string must contain a six-character time in HHMMSS format.
X
Since the character field must contain a hexadecimal-character string, the only valid characters are 0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F. This character string is packed as a hexadecimal number, transported left-justified, and filled with zeros or truncated on the right.
XSTRING
As for target fields of type X, except that the field is not filled with zeros.
Source Type Time
Conversion table for source type T
Target
Conversion
C
The source field is transported left-justified without conversion.
D
Not supported. Results in an error message during the syntax check or in a runtime error.
F
The source field is converted into a packed number. The packed number is then converted into a floating point number (see corresponding table).
N
The date is converted into a character field. The character field is then converted into a numeric text field (see corresponding table).
I, P
The date is converted to the number of seconds since midnight.
STRING
The time is converted to a character field, which is then converted to a character string.
T
The date is transported left-justified without conversion and, if necessary, filled with zeros on the right.
X
The date is converted to the number of seconds since midnight in hexadecimal format.
XSTRING
As for fields of type X, except that only significant bytes are copied.
Source Type Hexadecimal Field
Conversion table for source type X
Target
Conversion
C
The value in the hexadecimal field is converted to a hexadecimal character string, transported left-justified to the target field, and filled with zeros.
D
The source field value represents the number of days since 01.01.0001 and is converted to a date in YYYYMMDD format.
F
The source field is converted into a packed number. The packed number is then converted into a floating point number (see corresponding table).
N
The source field is converted into a packed number. The packed number is then converted into a numeric text field (see corresponding table).
I, P
The value of the source field is interpreted as a hexadecimal number. It is converted to a packed decimal number and transported right-justified to the target field. If the hexadecimal field is longer than 4 bytes, only the last four bytes are converted. If it is too short, a runtime error may occur.
STRING
As for target fields of type C, except that the field is not filled with zeros. The length of the string is twice the length of the hexadecimal field.
T
The source field value represents the number of seconds since midnight and is converted to a time in HHMMSS format.
X
The value is transported left-justified and filled with X'00' on the right, if necessary.
XSTRING
The hexadecimal field is copied completely that is, trailing zeros are not truncated.
Source Type Byte Sequence
Conversion table for source type XSTRING
Target
Conversion
C
The value in the byte sequence is converted to a hexadecimal character string, transported left-justified to the target field, and filled with zeros.
D
The byte sequence value represents the number of days since 01.01.0001 and is converted to a date in YYYYMMDD format.
F
The content of the byte sequence is converted into a packed number. The packed number is then converted into a floating point number (see corresponding table).
N
The content of the byte sequence is converted into a packed number. The packed number is then converted into a numeric text field (see corresponding table).
I, P
The content of the byte sequence is interpreted as a hexadecimal number. It is converted to a packed decimal number and transported right-justified to the target field. If the byte sequence is longer than 4 bytes, only the last four bytes are converted. If it is too short, a runtime error may occur.
STRING
As for target fields of type C, except that the field is not filled with zeros. The length of the string is twice the length of the byte sequence.
T
The byte sequence value represents the number of seconds since midnight and is converted to a time in HHMMSS format.
X
The byte sequence is transported left-justified and filled with X'00' on the right, if necessary.
XSTRING
The source byte sequence is copied to the target byte sequence unconverted.
Conversion Rules for Internal Tables
Internal tables can only be converted into other internal tables. You cannot convert them into structures or elementary fields.
Internal tables are convertible if their line types are convertible. The convertibility of internal tables does not depend on the number of lines.
Conversion rules for internal tables:
Internal tables which have internal tables as their line type are convertible if the internal tables which define the line types are convertible.
Internal tables which have line types that are structures with internal tables as components are convertible according to the conversion rules for structures if the structures are compatible.
Conversion Rules for Structures
ABAP has one rule for converting structures that do not contain internal tables as components. There are no conversion rules for structures that contain internal tables. You can only make assignments between structures that are compatible.
You can combine convertible structures in the following combinations:
Converting a structure into a non-compatible structure
Converting elementary fields into structures
Converting structures into elementary fields
In each case, the system first converts all the structures concerned to type C fields and then performs the conversion between the two resulting elementary fields. The length of the type C fields is the sum of the lengths of the structure components. This rule applies to all operations using structures that do not contain internal tables.
If a structure is aligned, the filler fields are also added to the length of the type C field.
A non-aligned structure without filler fields:
If you convert a structure into a shorter structure, the original structure is truncated. If you convert a structure into a longer one, the parts at the end are not initialized according to their type, but filled with blanks.
It can make sense to assign a structure to another, incompatible, structure if, for example, the target structure is shorter than the source, and both structures have the same construction over the length of the shorter structure. However, numeric components of structures that are filled in incompatible assignments may contain nonsensical or invalid values that may cause runtime errors.
DATA: BEGIN OF FS1,
INT TYPE I VALUE 5,
PACK TYPE P DECIMALS 2 VALUE 2.26,
TEXT(10) TYPE C VALUE Fine text,
FLOAT TYPE F VALUE 1.234e+05,
DATA TYPE D VALUE 19950916,
END OF FS1.
DATA: BEGIN OF FS2,
INT TYPE I VALUE 3,
PACK TYPE P DECIMALS 2 VALUE 72.34,
TEXT(5) TYPE C VALUE Hello,
END OF FS2.
WRITE: / FS1-INT, FS1-PACK; FS1-TEXT, FS1-FLOAT, FS1-DATE.
WRITE: / FS2-INT, FS2-PACK, FS2-TEXT.
MOVE FS1 TO FS2.
WRITE: / FS2-INT, FS2-PACK, FS2-TEXT.
Don't forget to reward if useful... -
Patching ST_PI, open conversions in ABAP dictionary
Hello
during a patching of ST-21 2008 the tool stops at CHECK_REQUIREMENTS phase with the screen:
open conversions in ABAP dictionary
Some open conversion requests still exist in the ABAP Dictionary for the
following ABAP Dictionary objects. To avoid inconsistencies and loss of
data, you must process these conversions first.
Proceed as follows:
- Open a new session.
- Start the Database Utility (transaction SE14).
- Correct the inconsistencies for the specified objects.
- Repeat the import phase. If no more inconsistencies are found, the
import continues.
INDEX GLPCA-Z01
Now , no index exists in dictionary and database but in the past probably it existed and was cancelled . Anyway the table GLPCA is consistent in database and like runtime object.
I've activated it again but the problem is always the same
any idea?
thanks
Nicola- start transaction SE14
- use the menue to "DB Requests - Created with import"
Check if there are any outstanding conversions.
Markus -
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 -
SQL Command conversion in abap code
Hi,
I want to implement the UNION, INTERSECT and MINUS SQL commands in abap code. Please give me the appropriate solutions asap.
For Example:
select field1, field2, . field_n
from tables
<b>UNION</b>
select field1, field2, . field_n
from tables;
select field1, field2, . field_n
from tables
<b>MINUS</b>
select field1, field2, . field_n
from tables;
select field1, field2, . field_n
from tables
<b>INTERSECT</b>
select field1, field2, . field_n
from tables;
Thanks,
RaviHi Ravi
Check out this procedure...
DATA: FRANKFURT(4) TYPE X,
FRISCO(4) TYPE X,
INTERSECT(4) TYPE X,
UNION(4) TYPE X,
BIT TYPE I.
DATA: CARRID TYPE SPFLI-CARRID,
CARRIER LIKE SORTED TABLE OF CARRID
WITH UNIQUE KEY TABLE LINE.
DATA WA TYPE SPFLI.
SELECT CARRID FROM SCARR INTO TABLE CARRIER.
SELECT CARRID CITYFROM FROM SPFLI
INTO CORRESPONDING FIELDS OF WA.
WRITE: / WA-CARRID, WA-CITYFROM.
READ TABLE CARRIER FROM WA-CARRID TRANSPORTING NO FIELDS.
CASE WA-CITYFROM.
WHEN 'FRANKFURT'.
SET BIT SY-TABIX OF FRANKFURT.
WHEN 'SAN FRANCISCO'.
SET BIT SY-TABIX OF FRISCO.
ENDCASE.
ENDSELECT.
INTERSECT = FRANKFURT BIT-AND FRISCO.
UNION = FRANKFURT BIT-OR FRISCO.
SKIP.
WRITE 'Airlines flying from Frankfurt and San Francisco:'.
DO 32 TIMES.
GET BIT SY-INDEX OF INTERSECT INTO BIT.
IF BIT = 1.
READ TABLE CARRIER INDEX SY-INDEX INTO CARRID.
WRITE CARRID.
ENDIF.
ENDDO.
SKIP.
WRITE 'Airlines flying from Frankfurt or San Francisco:'.
DO 32 TIMES.
GET BIT SY-INDEX OF UNION INTO BIT.
IF BIT = 1.
READ TABLE CARRIER INDEX SY-INDEX INTO CARRID.
WRITE CARRID.
ENDIF.
ENDDO.
This produces the following output list:
The program uses four hexadecimal fields with length 4 - FRANKFURT, FRISCO, INTERSECT, and UNION. Each of these fields can represent a set of up to 32 elements. The basic set is the set of all airlines from database table SCARR. Each bit of the corresponding bit sequences representes one airline. To provide an index, the external index table CARRIER is created and filled with the airline codes from table SCARR. It is then possible to identify an airline using the internal index of table CARRIER.
In the SELECT loop for database table SPFLI, the corresponding bit for the airline is set either in the FRANKFURT field or the FRISCO field, depending on the departure city. The line number SY-TABIX is determined using a READ statement in which no fields are transported.
The intersection and union of FRANKFURT and FRISCO are constructed using the bit operations BIT-AND and BIT-OR.
The bits in INTERSECT and UNION are read one by one and evaluated in two DO loops. For each position in the fields with the value 1, a READ statement retrieves the airline code from the table CARRIER.
Comparing Bit Sequences
Use the following three operators to compare the bit sequence of the first operand with that of the second:
<operator>
Meaning
O
bits are one
Z
bits are zero
M
bits are mixed
The second operand must have type X. The comparison takes place over the length of the second operand. The first operand is not converted to type X.
The function of the operators is as follows:
O (bits are one)
The logical expression
<f> O <hex>
is true if the bit positions that are 1 in <hex>, are also 1 in <f>. In terms of set operations with bit sequences, this comparison is the same as finding out whether the set represented by <hex> is a subset of that represented by <f>.
Z (bits are zero)
The logical expression
<f> Z <hex>
is true if the bit positions that are 1 in <hex>, are 0 in <f>.
M (bits are mixed)
The logical expression
<f> M <hex>
is true if from the bit positions that are 1 in <hex>, at least one is 1 and one is 0 in <f>.
Caution: The following programs are no longer supported in Unicode systems:
REPORT demo_log_expr_bits .
DATA: text(1) TYPE c VALUE 'C',
hex(1) TYPE x,
i TYPE i.
hex = 0.
DO 256 TIMES.
i = hex.
IF text O hex.
WRITE: / hex, i.
ENDIF.
hex = hex + 1.
ENDDO.
The output is as follows:
00 0
01 1
02 2
03 3
40 64
41 65
42 66
43 67
Here, the bit structure of the character 'C' is compared to all hexadecimal numbers HEX between '00' and 'FF' (255 in the decimal system), using the operator O. The decimal value of HEX is determined by using the automatic type conversion during the assignment of HEX to I. If the comparison is true, the hexadecimal number and its decimal value are displayed on the screen. The following table shows the bit sequences of the numbers:
Thanks
Ashok -
Problem with numeric types in Abap Proxy
Hello,
We are having problems with some abap proxy calls. When a numeric type is filled with 0 the node it´s automatically removed and no value it's recived in XI. The only way I have found to avoid this problem it's to define the field with type string or change the cardinality to 1..1 instead of 0..1. It's there any way to maintain the type and the cardinality?? Maybe with a pattern??
Regards,
Alberto Pla.Hi Alberto
I had this problem, and I decided to use xsd:string instead of xsd:integer. This will solve the issue.
Anyway.. check this note:
[Note 1242795 - Mapping of XSD default values by ABAP Proxy Generation|https://service.sap.com/sap/support/notes/1242795]
Regards
Francesco -
Regarding Conversion Of ABAP program from non unicode to uni code
Hi Can you please let me know the procedure for converssion of non unicode to unicode?
Thanks in advance,
zuberaHi
The Link will be helpful to you.
Re: Upgrade 4.6 to ECC - What are the responsibilites
regarding Unicode influence in Standard programs
Very good document:
http://www.doag.org/pub/docs/sig/sap/2004-03/Buhlinger_Maxi_Version.pdf
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d37d1ad9-0b01-0010-ed9f-bc3222312dd8
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/589d18d9-0b01-0010-ac8a-8a22852061a2
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f8e316d9-0b01-0010-8e95-829a58c1511a
You need to use the transaction UCCHECK.
The report documentation is here
ABAP Unicode Scan Tool UCCHECK
You can use transaction UCCHECK to examine a Unicode program set for syntax errors without having to set the program attribute "Unicode checks active" for every individual program. From the list of Unicode syntax errors, you can go directly to the affected programs and remove the errors. It is also possible to automatically create transport requests and set the Unicode program attribute for a program set.
Some application-specific checks, which draw your attention to program points that are not Unicode-compatible, are also integrated.
Selection of Objects:
The program objects can be selected according to object name, object type, author (TADIR), package, and original system. For the Unicode syntax check, only object types for which an independent syntax check can be carried out are appropriate. The following object types are possibilities:
PROG Report
CLAS Class
FUGR Function groups
FUGX Function group (with customer include, customer area)
FUGS Function group (with customer include, SAP area)
LDBA Logical Database
CNTX Context
TYPE Type pool
INTF Interface
Only Examine Programs with Non-Activated Unicode Flag
By default, the system only displays program objects that have not yet set the Unicode attribute. If you want to use UCCHECK to process program objects that have already set the attribute, you can deactivate this option.
Only Objects with TADIR Entry
By default, the system only displays program objects with a TADIR entry. If you want to examine programs that don't have a TADIR entry, for example locally generated programs without a package, you can deactivate this option.
Exclude Packages $*
By default, the system does not display program objects that are in a local, non-transportable package. If you want to examine programs that are in such a package, you can deactivate this option.
Display Modified SAP Programs Also
By default, SAP programs are not checked in customer systems. If you also want to check SAP programs that were modified in a customer system (see transaction SE95), you can activate this option.
Maximum Number of Programs:
To avoid timeouts or unexpectedly long waiting times, the maximum number of program objects is preset to 50. If you want to examine more objects, you must increase the maximum number or run a SAMT scan (general program set processing). The latter also has the advantage that the data is stored persistently. Proceed as follows:
- Call transaction SAMT
- Create task with program RSUNISCAN_FINAL, subroutine SAMT_SEARCH
For further information refer to documentation for transaction SAMT.
Displaying Points that Cannot Be Analyzed Statically
If you choose this option, you get an overview of the program points, where a static check for Unicode syntax errors is not possible. This can be the case if, for example, parameters or field symbols are not typed or you are accessing a field or structure with variable length/offset. At these points the system only tests at runtime whether the code is sufficient for the stricter Unicode tests. If possible, you should assign types to the variables used, otherwise you must check runtime behavior after the Unicode attribute has been set.
To be able to differentiate between your own and foreign code (for example when using standard includes or generated includes), there is a selection option for the includes to be displayed. By default, the system excludes the standard includes of the view maintenance LSVIM* from the display, because they cause a large number of messages that are not relevant for the Unicode conversion. It is recommended that you also exclude the generated function group-specific includes of the view maintenance (usually L<function group name>F00 and L<function group name>I00) from the display.
Similarly to the process in the extended syntax check, you can hide the warning using the pseudo comment ("#EC *).
Applikation-Specific Checks
These checks indicate program points that represent a public interface but are not Unicode-compatible. Under Unicode, the corresponding interfaces change according to the referenced documentation and must be adapted appropriately.
View Maintenance
Parts of the view maintenance generated in older releases are not Unicode-compatible. The relevant parts can be regenerated with a service report.
UPLOAD/DOWNLOAD
The function modules UPLOAD, DOWNLOAD or WS_UPLOAD and WS_DOWNLOAD are obsolete and cannot run under Unicode. Refer to the documentation for these modules to find out which routines serve as replacements.
Regards
Anji -
Hi What are topics involved in Interfaces,Conversions in ABAP?
Please Explain me.
Thank u in advanceActually I am asking What are Interfaces?
What are Conversions in the sense of ABAP?
mean WE r using BDC for transferring from legacy to SAP, Does this a conversion technique?
Edited by: Srinivasa RAo on Oct 8, 2009 10:15 PM -
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 -
Script conversions to ABAP BADI's
Hello,
I am currently working on conversions of script logic files of BPC MS 7.0 into ABAP BADI's of BPC NW 7.5
Few of the keywords that I do not understand are:
GET, LOOKUP, FLD, XDIM_GETINPUTSET, FUNCTION
Also when I create the BADI, filter definition is part of it, so what values will the filter have.
Regards,
PankajHi Pankaj,
Filter name is like a keyword and the badi's in bpc are called using the filter names.
Please check the pdf for badi creation and can be easily found on sdn.
I would advise you not to convert everything in Badi's as some things can be retained in script logic in NW version also.
Creating BADI's can be quite complicated for tasks which could be written in few lines in script logic.
Hope this helps .
Regards,
Sachin -
XML to internal table conversion within ABAP mapping class
I am doing a ABAP mapping for file to Idoc. My requirement is to convert XML file into ABAP internal table (within ABAP mapping class). Is there any standard FM, method, transformation etc, which can be used here.
Thanks, DehraDehra,
Have you seen this weblogs which talks about this:
/people/r.eijpe/blog/2005/11/10/xml-dom-processing-in-abap-part-i--convert-an-abap-table-into-xml-file-using-sap-dom-approach
/people/r.eijpe/blog/2005/11/21/xml-dom-processing-in-abap-part-ii--convert-an-xml-file-into-an-abap-table-using-sap-dom-approach
/people/r.eijpe/blog/2006/02/19/xml-dom-processing-in-abap-part-iiia150-xml-dom-within-sap-xi-abap-mapping
/people/r.eijpe/blog/2006/02/20/xml-dom-processing-in-abap-part-iiib150-xml-dom-within-sap-xi-abap-mapping
Hope this helps you....
---Satish -
How to create numeric attribute using ABAP API
Hi experts
I'm trying to create a numeric attribute for a taxonomy table. In the how-to-examples there are only ways to create text attributes.
Those who have tried, please let me know the steps.
I have given below the code snippet which i tried to create numeric attribute. Please let me knw the missing link.
ls_num_attr_val-rating = 500.
APPEND ls_num_attr_val TO ls_ext_attr_info-characteristics.
ls_ext_attr_info-attr_info-attr_id-id = lv_attribute_id.
APPEND ls_ext_attr_info TO lt_ext_attr_info.
GET REFERENCE OF lt_ext_attr_info INTO lv_data.
ls_namevalue-value = lv_data.
ls_namevalue-code = 'ACCT'.
APPEND ls_namevalue TO ls_parameter-name_value_pairs.
lv_string = 'Customer 12'.
GET REFERENCE OF lv_string INTO lv_data.
ls_namevalue-value = lv_data.
ls_namevalue-code = 'CUST_NAME'.
APPEND ls_namevalue TO ls_parameter-name_value_pairs.
CALL METHOD lr_api->mo_core_service->create
EXPORTING
iv_object_type_code = 'ACCT_TYPE'
is_parameter = ls_parameter
iv_parent_id = 0
IMPORTING
ev_new_internal_id = lv_key.
Thanks
SwarnaDeepika
Edited by: SwarnaDeepika on Dec 19, 2009 4:38 PMHello Ashok,
[here|https://help.sap.com/javadocs/MDM/current/com/sap/mdm/examples/CreateField.html] is the Java API of the needed command.
There is also an example of how to create a field. You can use the class by replacing the strings for the server, repository, table, etc. to your needs.
If you want to create more than one field, simply use a loop, like the for-loop, while-loop, etc.
Hope this helps.
Best regards
Dominik
Maybe you are looking for
-
How can I use Automator to open and save Word docs with links?
Hi- I'm having trouble building a Workflow to open and save Word docs with links. My Workflow so far: 1. Get Finder items 2. Copy Finder items (to new folder) 3. Rename selected items 4. Open selected items (Word docs) Three problems occur. The first
-
In Adobe Acrobat Pro XI, is there a way to set defaults when combining files?
My specific problem; When I combine files, Adobe creates the bookmarks (which is desirable). These bookmarks however, always seem to default on "page width" view. I would prefer to have the bookmarks set to "fit page". It is very cumbersome to ed
-
please help me know what i should do! my ipod is saying i need to conect to itunes but when i do this the ipod isnt recongnised? i dont want to restore my ipod 4th gen because i havent saved all of my photos-i might lose them? ! please help me im so
-
Footer working on every page but index
i got the footer to work nicely except on my main page.. only the footer background shows but none of the divs: http://toddheymandirector.com/ click on REEL, MORE, etc it shows there THANKS!! todd
-
Solaris 10 x86 and 3Ware Escalade controller
Hi there, I would like to install Solaris 10 x86 on a server which uses an ATA-RAID-controller from 3ware (Escalade 7006-2). I haven't found any information on Solaris support for this controller so my question is if anyone of you has some experience