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
Similar Messages
-
Conversion of fixed length flat files to oracle table
hello friends
Please help me getting the code for conversion of fixed length flat files to oracle table
Should the tables be pre-defined ?????
In this case the de-limiters are variable length spaces and not commas.Please help me with the same
Regards,
-MaheshYou can use SQL*Loader to load fixed-width files into Oracle. Instructions on writing appropriate control files are in the Oracle Utilities manual
http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96652/ch03.htm#1004687
You can also use external tables, assuming you're using 9i or later (the syntax for external table definitions is nearly identical to the syntax for SQL*Loader control files).
You'll need to create a table definition in Oracle. You can either create a "normal" table and use SQL*Loader to populate it or you can create an external table definition.
Justin -
I need to write lots of data to a file. I retrieve the data from the DB. The data is not formatted correctly from the DB so I need to pad or truncate to fixed lengths. I need to perform this conversion for doubles ie 15 integer places 3 decimal. I also need to do this for Strings some string need to have length 10 others need a variety of lengths.
Does Java have a class to perform this transformation for me or do I have write my own class?Did you look at the answers to your previous post?
http://forum.java.sun.com/thread.jsp?forum=31&thread=258517 -
Can I get fixed length output after encryption using PBEwithMD5andDES?
Hi,
I am currently using "PBEWITHMD5ANDDES" algorithm to encrypt the string and later it is encoded using BASE64. I need to store the value in Database so I need output to be of fixed size. Currently output depends on the input string length. My input string can vary in length.
I cannot use Message digest for storing it database as I need to decode too.
SonalYou can't possibly have a fixed encrypted output size regardless of the input size and be able to recover the original. Just think about it for a bit. This would enable infinite compression.
PBEWITHMD5ANDDES uses PKCS5 padding and so produces an output which is (n+8)/8 blocks of 8 bytes so 1,2,3 ... 7 become 8 bytes, 8,9,10 ... 15 become 16 bytes etc etc etc. -
File Content conversion for Fiexed length output file
Hi,
I am Working on Idoc to File scenario.
I would like to know the content conversion partmenrts for the follwoing structure.
Structrure is as below:
Message Type
Header Record 1..unbounded
. Field1 0...1
. Field2 0...1
. Field3 0...1
.. Detaillines 0...unbounded
... Field3 0..1
... Field4 0..1
.. Detaillines2 0..unbounded
... Field6 0...1
... Field7 0...1
Can you please advise.
Regards,
Manoj KumarHi Manoj
Give the FCC parameter as
RecordSet Structure = Header,,Detaillnes,,Detaillines2,*
Header.endSeparator = 'nl'
Header.fieldFixedLengths = field length
Header.fieldFixedLengthType = char/byte
Header.fieldNames = field1,field2,field3,.....
Header.keyFieldValue = Header
Detaillnes.endSeparator = 'nl'
Detaillnes.fieldFixedLengths = field length
Detaillnes.fieldFixedLengthType = char/byte
Detaillnes.fieldNames = field1,field2,field3,.....
Detaillnes.keyFieldValue = Detaillnes
Detaillines2.endSeparator = 'nl'
Detaillines2.fieldFixedLengths = field length
Detaillines2.fieldFixedLengthType = char/byte
Detaillines2.fieldNames = field1,field2,field3,.....
Detaillines2.keyFieldValue = Detaillines2
The keyFieldValue should be the Value which identifies your record either as Header/Detaillines/Detaillnes2.
Regards
Santhosh
Message was edited by:
Santhosh Kumar V -
File Adapter problem for Fixed Length output file
Hi There!,
The following is my sample data format
ABCD 2345 03Accounting Swissland
ABCD 011234 1000Jack Gates 400000 03
ABCD 021234 1001Bill Welch 400000 03
In the first record has dept details:
DummyText, Row identifier(not given in case of dept), Identifier, Deptno, Deptname, Location
The second and third records are emp details:
DummyText,Row identifier, Identifier,EmptNo,Emp Name, Manager, Salary, Deptno.
Notice that the primary key is defined by the first three columns DummyText, Row identifier, Identifier.
When I use Native Format Builder from File Adapter and scan the first three columns I get all three records (i.e dept and both employees). I deleted the second employee and proceeded to finish the configuration. But, the problem I face is that the key value shows as "ABCD% 011234" for both the employee records where as I would like it to show as "ABCD 011234" for the first record and "ABCD 021234" for the second record.
How do I get around this problem?
Moreover if I have a group or recurring records and not just one record recurring. I mean assuming I have the following:
First row: Department
Second row: Employee
Thrid row: Manager
Fourth row: Employee
Fifth row: Manager
How do I get this done?
Does anyone have an idea where to find details of nxsd.
Thanks in Advance.Hi Manoj
Give the FCC parameter as
RecordSet Structure = Header,,Detaillnes,,Detaillines2,*
Header.endSeparator = 'nl'
Header.fieldFixedLengths = field length
Header.fieldFixedLengthType = char/byte
Header.fieldNames = field1,field2,field3,.....
Header.keyFieldValue = Header
Detaillnes.endSeparator = 'nl'
Detaillnes.fieldFixedLengths = field length
Detaillnes.fieldFixedLengthType = char/byte
Detaillnes.fieldNames = field1,field2,field3,.....
Detaillnes.keyFieldValue = Detaillnes
Detaillines2.endSeparator = 'nl'
Detaillines2.fieldFixedLengths = field length
Detaillines2.fieldFixedLengthType = char/byte
Detaillines2.fieldNames = field1,field2,field3,.....
Detaillines2.keyFieldValue = Detaillines2
The keyFieldValue should be the Value which identifies your record either as Header/Detaillines/Detaillnes2.
Regards
Santhosh
Message was edited by:
Santhosh Kumar V -
File Content conversion - IDOC to Fixed length File
Hi,
Scenario : SAP R/3(IDOC) -> XI -> Fixed Length file
IDOC is sending from SAP R/3, XI has to do the mapping and send a Fixed length File to /tmp in XI.
When I am using the message Protocol as "File" in the Receiver communication channel, XML file is writing to /tmp. When I am using "File Content Conversion" as a message protocol,Empty File is writing. Can anybody tell me why empty file is creating. Can we use File content Conversion in this scenario. Is there any additional parameter or settings required?
Receiver communication channel settings:
Message Protocol: File Content Conversion
File type : Binary
Recordstructure : MT_V_PER01
Name Value
MT_V_PER01.fieldFixedLengths 25,35
MT_V_PER01.fieldNames PERSNR,NAME
File Data Type : DT_V_PER01,
Message type : MT_V_PER01
IDOC type : WP_PER01.
Expecting your expert advice.
Thanks
vineeshHi Moorthy,
I am getting success messages in Audit log as below:
2006-09-29 12:08:53 Success Trying to put the message into the send queue.
2006-09-29 12:08:53 Success Message successfully put into the queue.
2006-09-29 12:08:53 Success The message was successfully retrieved from the send queue.
2006-09-29 12:08:53 Success The message status set to DLNG.
2006-09-29 12:08:53 Success The message was successfully transmitted to endpoint http://nslcxi08:8010/sap/xi/engine?type=entry using connection AFW.
2006-09-29 12:08:53 Success The message status set to DLVD.
2006-09-29 12:08:53 Success The message was successfully delivered.
I have checked the Payload maindocument,the IDOC structure contains data.
<?xml version="1.0" encoding="UTF-8" ?>
- <WP_PER01>
- <IDOC BEGIN="1">
- <EDI_DC40 SEGMENT="1">
<IDOCTYP>WP_PER01</IDOCTYP>
<MESTYP>WP_PER</MESTYP>
<STDMES>WP_PER</STDMES>
<SNDPOR>SAPLCD</SNDPOR>
<SNDPRT>LS</SNDPRT>
<SNDPRN>LCDCLNT210</SNDPRN>
<RCVPOR>LXDCLNT250</RCVPOR>
<RCVPRT>LS</RCVPRT>
<RCVPRN>LXDCLNT250</RCVPRN>
</EDI_DC40>
- <E1WPP01 SEGMENT="1">
<PERSNR>0000100006</PERSNR>
- <E1WPP02 SEGMENT="1">
<NAME>Consumer</NAME>
</E1WPP02>
</E1WPP01>
</IDOC>
</WP_PER01>
Thanks
Vineesh -
Issue with Xi File Receiver "Content Conversion" fixed length and kanji
I need to create a fixed length file for a customer that has kanji (SJIS) characters in it. The issue is when the length of the value is less than the fixed length. It is padding out with spaces, but it is putting 2 bytes per space instead of one (But it seems to have counted the padding in characters...).
.fieldFixedLengths: 8,6,40,40
.fixedLengthTooShortHandling: Cut
.fieldNames: date,time,name1,name2
Receiver, please don't answer for sender.
File AdapterPaul,
Can you please tell what is coming in the output file if the values are:
date: 062309
time: 2240
name1: hello
name2: hello2
When you put space here and if it is not showing correctly just to interpret you can use S which will stand for space.
---Satish -
Output file as a text file with tab delimited and fixed length fields
Hi all,
I have developed a custom report which outputs an excel file on the user desktop who executes that report.Now i need to create an additional (second) excel file with almost the same data as the first file.
Im using the FM GUI_DOWNLOAD to create the file.i need have the 2nd file as txt file(seperated by space/tab delimited) and also i want the fields to have fixed length.For this format of the file,what parameters do I need to pass to the FM ?
BR,
SRM Tech.Thanks for the prompt reply.
Also in the sel screen,Im entering the path where the o/p file needs to be downloadede.g. C:/Output_folder/Output.xls...Now if I need a text file,do I need to give the fielname as C:/Output_folder/Output.txt.? -
How to output non-fixed length field by DMEE?
Hi,
In DMEE, I need to set a fixed length for each field. If the source data length is less than what we set, it will ouput space to fill in rest of the place. Is that a way I could just out put exactly what I need? No extra space to be output.
Thank you!Hi
The extra spaces can be removed as follows:
In the transaction DMEE --> Head --> Format attributes --> Field type = 1
Best regards
Jean Daniel -
Content conversion parameters necessary for fixed length file
Hi,
I new to xi.The scenario is that i have to handle a fixed length file where the records repeat after every 80 characters.Can anyone help me as to how thw identify the start of every record based on length
thanks and regards ,
srinadhHi,
Hey i have a small doubt.My input is like this
99443 123213 232234 12312 127544 23423
Here i have four recorsetnames namely HEADER1,HEADER2,HEADER3,HEADER4,HEADER5,HEADER6 all the recordsets are of same size but the lengths of the fields in it vary so i specified the following parameters
HEADER1.fieldFixedLengths=1,3,1
HEADER1.fieldNames=value1,value2,value3
HEADER1.endseperator=" "
HEADER2.fieldFixedLengths=1,3,2
HEADER2.fieldNames=value1,value2,value3
HEADER2.endseperator=" "
MY OUPUT XML STRUCTURE SHOULD BE like this
<header1>
<value1>9<\value1>
<value2>944<\value2>
<value3>3<\value3>
<\header1>
<header2>
<value1>1<\value1>
<value2>232<\value2>
<value3>13<\value3>
<\header2>
Is the content conversion parameters i specified enough for that. I wanted to know how would it know the begin of the next recordset(ie the seperation between the two recordsets) .Please help me its vey urgent
Thanks in advance
Sriandh -
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 -
Interface output file : tab limited vs flat file with fixed length
hey guys,
any idea on difference b/w to file type : flat file with fixed length or tab limited file
thanksTab Delimited:
Two Field are seperated by a TAB
eg. SANJAY SINGH
First field is First Name and Second is Sir Name.
Nth field will be after N -1 tab
Fixed Length:
Every field has a fixed starting position and length
eg. SANJAY SINGH
Here First field start from Position 1 and has lenght 10 and 2nd field start from 11th postion and has lenght 10.
Fixed Length -> The lenght of each field is fixed, while in tab delimited the lenght of field is not fixed but we know it ends when the Seperatot (Tab) is encountered. -
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. -
Need to download a file which si space delimted and has fixed length char
Hi,
I have a custom report which downloads an output file in text format.I need the contents to be space delimited.My file data contains numbers as well as characters.I ahve pased the parameter WRITE_FIELD_SEPARATOR = ' ' in the FM.Hwoever the space is introduced only oif the column value is a character.If its a number/digit,the columns are not seperated by space.
Now my data appears like that:
0000101310179.28 +0827200808 DHLBSRF VISA AUG 2008US021SW111 RYAN,BICOVNY
I want my data to be like this :
0000101310 179.28 + 0827200808 DHLBSRF VISA AUG 2008 US02 1SW111 RYAN,BICOVNY
DO I need to pass any additinal parametre?Also for fixed length characrets,do i need to pack/unpack data before passing to the FM ?
Thanks.Hi,
try this way.
REPORT ztest_notepad.
DATA: BEGIN OF it_download OCCURS 0,
data TYPE string,
END OF it_download.
DATA: BEGIN OF it_vbrk OCCURS 0,
vbeln TYPE vbrk-vbeln,
fkart TYPE vbrk-fkart,
fktyp TYPE vbrk-fktyp,
netwr TYPE vbrk-netwr,
END OF it_vbrk.
DATA : l_netwr TYPE char21.
"START-OF-SELECTION.
START-OF-SELECTION.
SELECT vbeln
fkart
fktyp
netwr
FROM vbrk
INTO CORRESPONDING FIELDS OF TABLE it_vbrk
UP TO 100 ROWS.
LOOP AT it_vbrk.
l_netwr = it_vbrk-netwr.
CONCATENATE it_vbrk-vbeln
it_vbrk-fkart
it_vbrk-fktyp
l_netwr
INTO it_download-data
SEPARATED BY space.
APPEND it_download.
CLEAR it_download.
ENDLOOP.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
filename = 'C:\test.txt'
filetype = 'ASC'
TABLES
data_tab = it_download.
Thanks
Venkat.O
Maybe you are looking for
-
ECC to CRM Mapping Issue for vendor data
Hi, I am facing an issue for replicating vendor data from ECC to CRM. One of the vendor is not confirmed at ECC side and one vendor's time zone is not maintain in the master of time zone in CRM side. This may be the issue. But Where exact we can see
-
Basic structure question (applet GUI)
I need to have an applet that allows you to draw on top of various sized images. The images are stored in a jar file, and the HTML tells me (via a parameter with a list of image sizes) the size of each of the images (Width x Height). What you have is
-
Keep losing my effects tab.
Hi Every time I launch FCP my effects tab disappears. I go to window and click it and it comes up in a new window, not in a new tab that I can switch to from the browser tab. Then it disappears again when I relaunch. What's going on? Do I need to tra
-
Urgent requirement on adding context menu in strobe media player
i want add fullscreen and scale mode in strobe player context menu.. i have added these menu items to context menu in videoInfoOverlay action sctipt. but i dont know how to add code for full screen in context menu click event.. what code i ha
-
No "service" tab in control key
Hi all, We have a scenario for externally processed operation in production. Like we have a production order with 3 operations. last operation is externally processed. So we have created a externally processed control key. User requirement is service