Fixed record length with GUI_DOWNLOAD
Hi All,
In our current system we set global variables GLOBAL_FIXLEN_* by calling form SET_FIXLEN(SAPLGRAP). This allows us to create ASCII download files using function module WS_DOWNLOAD that have a fixed record length of 160 as required by the bank.
We are now going to a unicode system and WS_DOWNLOAD is being replaced by GUI_DOWNLOAD. How can I continue to create a fixed record length of 160 using this function module? I cannot find any similar GLOBAL_FIXLEN* variables in GUI_DOWNLOAD.
Thanks in advance for suggestions,
Kirsten
Hi,
Kirsten,
I find form "set_trail_blanks" also not available in GUI_DOWNLOAD.
FYI
aRs
Similar Messages
-
How to load unicode data files with fixed records lengths?
Hi!
To load unicode data files with fixed records lengths (in terms of charachters and not of bytes!) using SQL*Loader manually, I found two ways:
Alternative 1: one record per row
SQL*Loader control file example (without POSITION, since POSITION always refers to bytes!)<br>
LOAD DATA
CHARACTERSET UTF8
LENGTH SEMANTICS CHAR
INFILE unicode.dat
INTO TABLE STG_UNICODE
TRUNCATE
A CHAR(2) ,
B CHAR(6) ,
C CHAR(2) ,
D CHAR(1) ,
E CHAR(4)
) Datafile:
001111112234444
01NormalDExZWEI
02ÄÜÖßêÊûÛxöööö
03ÄÜÖßêÊûÛxöööö
04üüüüüüÖÄxµôÔµ Alternative2: variable length records
LOAD DATA
CHARACTERSET UTF8
LENGTH SEMANTICS CHAR
INFILE unicode_var.dat "VAR 4"
INTO TABLE STG_UNICODE
TRUNCATE
A CHAR(2) ,
B CHAR(6) ,
C CHAR(2) ,
D CHAR(1) ,
E CHAR(4)
) Datafile:
001501NormalDExZWEI002702ÄÜÖßêÊûÛxöööö002604üuüüüüÖÄxµôÔµ Problems
Implementing these two alternatives in OWB, I encounter the following problems:
* How to specify LENGTH SEMANTICS CHAR?
* How to suppress the POSITION definition?
* How to define a flat file with variable length and how to specify the number of bytes containing the length definition?
Or is there another way that can be implemented using OWB?
Any help is appreciated!
Thanks,
Carsten.Hi Carsten
If you need to support the LENGTH SEMANTICS CHAR clause in an external table then one option is to use the unbound external table and capture the access parameters manually. To create an unbound external table you can skip the selection of a base file in the external table wizard. Then when the external table is edited you will get an Access Parameters tab where you can define the parameters. In 11gR2 the File to Oracle external table can also add this clause via an option.
Cheers
David -
Hi All,
I' am trying to write data into application server using Transfer statement.
Sometimes data would not be present in last fields, so the file length is varying.
How to have fixed file length?
regards,
AravindIf you are downloading the file to application server with TRANSFER statement and LENGTH option, your spaces will be there at the end of the record. Just do not try to look at the file from within SAP environment (like using AL11). Try to get the file to your desktop and you can see that it will have those spaces.
If you using GUI_DOWNLOAD, then set the parameter TRUNC_TRAILING_BLANKS_EOL to SPACE (it is defaulted to 'X'). -
Sql loader - Data loading issue with no fixed record length
Hi All,
I am trying to load the following data through sql loader. However the records # 1, 3 & 4 are only loading succesfully into the table and rest of the records showing as BAD. What is missing in my syntax?
.ctl file:
LOAD DATA
INFILE 'C:\data.txt'
BADFILE 'c:\data.BAD'
DISCARDFILE 'c:\data.DSC' DISCARDMAX 50000
INTO TABLE icap_gcims
TRAILING NULLCOLS
CUST_NBR_MAIN POSITION(1:9) CHAR NULLIF (CUST_NBR_MAIN=BLANKS),
CONTACT_TYPE POSITION(10:11) CHAR NULLIF (CONTACT_TYPE=BLANKS),
INQUIRY_TYPE POSITION(12:13) CHAR NULLIF (INQUIRY_TYPE=BLANKS),
INQUIRY_MODEL POSITION(14:20) CHAR NULLIF (INQUIRY_MODEL=BLANKS),
INQUIRY_COMMENTS POSITION(21:60) CHAR NULLIF (INQUIRY_COMMENTS=BLANKS),
OTHER_COLOUR POSITION(61:75) CHAR NULLIF (OTHER_COLOUR=BLANKS),
OTHER_MAKE POSITION(76:89) CHAR NULLIF (OTHER_MAKE=BLANKS),
OTHER_MODEL_DESCRIPTION POSITION(90:109) CHAR NULLIF (OTHER_MODEL_DESCRIPTION=BLANKS),
OTHER_MODEL_YEAR POSITION(110:111) CHAR NULLIF (OTHER_MODEL_YEAR=BLANKS)
data.txt file:
000000831KHAN
000000900UHFA WANTS NEW WARRANTY ID 000001017OHAL
000001110KHAP
000001812NHDE231291COST OF SERVICE INSPECTIONS TOO HIGH MAXIMA 92 MK
000002015TPFA910115CUST UPSET WITH AIRPORT DLR. $200 FOR PLUGS,OIL,FILTER CHANGE. FW
Thanks,Hi,
Better if you have given the table structure, I check your script it was fine
11:39:01 pavan_Real>create table test1(
11:39:02 2 CUST_NBR_MAIN varchar2(50),
11:39:02 3 CONTACT_TYPE varchar2(50),
11:39:02 4 INQUIRY_TYPE varchar2(50),
11:39:02 5 INQUIRY_MODEL varchar2(50),
11:39:02 6 INQUIRY_COMMENTS varchar2(50),
11:39:02 7 OTHER_COLOUR varchar2(50),
11:39:02 8 OTHER_MAKE varchar2(50),
11:39:02 9 OTHER_MODEL_DESCRIPTION varchar2(50),
11:39:02 10 OTHER_MODEL_YEAR varchar2(50)
11:39:02 11 );
Table created.
11:39:13 pavan_Real>select * from test1;
no rows selected
C:\Documents and Settings\ivy3905>sqlldr ara/ara@pavan_real
control = C:\control.ctl
SQL*Loader: Release 9.2.0.1.0 - Production on Sat Sep 12 11:41:27 2009
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
Commit point reached - logical record count 5
11:42:20 pavan_Real>select count(*) from test1;
COUNT(*)
5 control.ctl
LOAD DATA
INFILE 'C:\data.txt'
BADFILE 'c:\data.BAD'
DISCARDFILE 'c:\data.DSC' DISCARDMAX 50000
INTO TABLE test1
TRAILING NULLCOLS
CUST_NBR_MAIN POSITION(1:9) CHAR NULLIF (CUST_NBR_MAIN=BLANKS),
CONTACT_TYPE POSITION(10:11) CHAR NULLIF (CONTACT_TYPE=BLANKS),
INQUIRY_TYPE POSITION(12:13) CHAR NULLIF (INQUIRY_TYPE=BLANKS),
INQUIRY_MODEL POSITION(14:20) CHAR NULLIF (INQUIRY_MODEL=BLANKS),
INQUIRY_COMMENTS POSITION(21:60) CHAR NULLIF (INQUIRY_COMMENTS=BLANKS),
OTHER_COLOUR POSITION(61:75) CHAR NULLIF (OTHER_COLOUR=BLANKS),
OTHER_MAKE POSITION(76:89) CHAR NULLIF (OTHER_MAKE=BLANKS),
OTHER_MODEL_DESCRIPTION POSITION(90:109) CHAR NULLIF (OTHER_MODEL_DESCRIPTION=BLANKS),
OTHER_MODEL_YEAR POSITION(110:111) CHAR NULLIF (OTHER_MODEL_YEAR=BLANKS)
data.txt
000000831KHAN
000000900UHFA WANTS NEW WARRANTY ID 000001017OHAL
000001110KHAP
000001812NHDE231291COST OF SERVICE INSPECTIONS TOO HIGH MAXIMA 92 MK
000002015TPFA910115CUST UPSET WITH AIRPORT DLR. $200 FOR PLUGS,OIL,FILTER CHANGE. FW
CUST_NBR_MAIN CONTACT_TYPE INQUIRY_TYPE INQUIRY_MODEL INQUIRY_COMMENTS OTHER_COLOUR OTHER_MAKE OTHER_MODEL_DESCRIPTION OTHER_MODEL_YEAR
000000831 KH AN NULL NULL NULL NULL NULL NULL
000000900 UH FA WANTS NEW WARRANTY ID 000001017OHAL NULL NULL NULL NULL
000001110 KH AP NULL NULL NULL NULL NULL NULL
000001812 NH DE 231291C OST OF SERVICE INSPECTIONS TOO HIGH MAXI MA 92 MK NULL NULL NULL
000002015 TP FA 910115C UST UPSET WITH AIRPORT DLR. $200 FOR PLU GS,OIL,FILTER C HANGE. FW NULL NULL- Pavan Kumar N
Edited by: Pavan Kumar on Sep 12, 2009 11:46 AM -
Truncate record length with sqlloader?
I'm trying to figure it out, but sqlloader documentation does not mention this...
I'm loading my data from the delimited file, the records are not fixed length, so I can't use "position" instruction. Here is the error:
Record 63: Rejected - Error on table ACCESSTEST, column REFERER
ORA-02359: Field in data file exceeded maximum specified length
Question: how do I tell sqlloader to truncate the record that does not fit?
Thank you in advance!try using substring within your controlfile
example:
memo CHAR(250) "SUBSTR(:memo,1,250)"
using this substring within your control file, you will only get the first 250 characters of the memo field.
hope this helps. -
Converting fixed-record length file to XML
Hello all
I am trying to convert a fixed length flat file to XML.
I believe the only required information for such a coversion is- the element or field names, their data types, and the fixed length of each field.
I do not want to generate a xsl document by hand. Just looking if there are any open source tools which can help me out here.
Let me know if you guys have done this before.
Thanks
Mahesh :)It all depends on the fixed length file format and the amount of money you are willing to spend. From what I can tell there's not much in the way of free tools for converting stuff like this. It's just not very sexy.
-
Transfer records to UNIX with different record length
Hi all,
I have the following problem. I have to transfer records to a UNIX file. The maximum length of a record is 2000. The records are TAB seperated. I also have records which have a length less then 2000. When i look at the file in Excel the last field is always very large. Isn't there a way to only transfer the real length of the record. I have tried to transfer the record in Binary an Text mode. I used the Length statement, but nothing worked for me.
Hope anyone can help me.
Greetings MaartenHi Maarten,
"Transfer" with "length" option should work. I am not sure what you passed as length to the "transfer" command. Did you used a fixed length of 2000 or did you actually found out the record length of each record and passed that value?
Scenario 1.
Here in this scenario, you will always have the last field set to maximum length.
loop at itab.
transfer itab-record to file length 2000.
endloop.
Scenario 2.
In this second scenario, you should have your excel's last field set to the maximum occupied length of that field.
loop at itab.
v_len = strlen( itab-record ).
transfer itab-record to file length v_len.
endloop.
Hope this helps.
Srinivas -
Schema for File with Multiple Fixed Records using Native Schema builder
Hi All:
The below is the sample file format which i need to read through file adapter
HeaderReacord
FailureOrderRecord
ChildFailureRecord
ChildFailureRecord
SuccessOrderRecord
SuccessOrderRecord
HeaderReacord
FailureOrderRecord
ChildFailureRecord
In the above file, totally three records are repeatedly present with fixed length eg. HeaderReacord length is 50, SuccessOrderRecord and FailureOrderRecord length is 100, ChildFailureRecord length is 25. The file may have more than one header group i.e. A single header group contain one HeaderReacord, more than one SuccessOrderRecord, more than one FailureOrderRecord and more than one ChildFailureRecord after each FailureOrderRecord.
I have created the below xsd for this scenario and get the below output. Kindly tell how to do this in Native builder using fixed length type for different fixed records options
<xsd:element name="BatchOrder">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="OrderGroupCollection" type="OrderGroup" minOccurs="1" maxOccurs="unbounded"
nillable="false"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:complexType name="OrderGroup">
<xsd:sequence>
<xsd:element name="HeaderRecord" type="xsd:string" minOccurs="1" maxOccurs="1"
nillable="false"/>
<xsd:element name="RecordList" type="RecordList" minOccurs="1" maxOccurs="unbounded"
nillable="false"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="RecordList">
<xsd:sequence>
<xsd:element name="OrderRecord" type="xsd:string" minOccurs="1" maxOccurs="1"
nillable="false"/>
<xsd:element name="ChildErrorRecord" type="xsd:string" minOccurs="0"
maxOccurs="unbounded" nillable="true"/>
</xsd:sequence>
</xsd:complexType>
Output:
=======
<BatchOrder>
<OrderGroupCollection>
<OrderGroup>
<HeaderRecord>HeaderReacord</HeaderRecord>
<RecordList>
<OrderRecord>FailureOrderRecord</OrderRecord>
<ChildErrorRecord>ChildFailureRecord</ChildErrorRecord>
<ChildErrorRecord>ChildFailureRecord</ChildErrorRecord>
<ChildErrorRecord>SuccessOrderRecord</ChildErrorRecord>
<ChildErrorRecord>SuccessOrderRecord</ChildErrorRecord>
<ChildErrorRecord></ChildErrorRecord>
<ChildErrorRecord>HeaderReacord</ChildErrorRecord>
<ChildErrorRecord>FailureOrderRecord</ChildErrorRecord>
<ChildErrorRecord>ChildFailureRecord</ChildErrorRecord>
</RecordList>
</OrderGroup>
</OrderGroupCollection>
</BatchOrder>you cant acheive this heirarchy using the file adapters cont. conv, cos it supports only to a single level.
Maybe you can have a module or use the conversion agent !!
Some good reads on the Conv. agent!!!
/people/william.li/blog/2006/03/17/how-to-get-started-using-conversion-agent-from-itemfield
/people/paul.medaille/blog/2005/11/18/conversion-agent-a-free-lunch
/people/alexander.bundschuh/blog/2006/03/14/integrate-sap-conversion-agent-by-itemfield-with-sap-xi
/people/paul.medaille/blog/2005/11/17/more-on-the-sap-conversion-agent-by-itemfield -
PXI 5105 - min record length varies with number of initialized channels
Hello everyone,
I'm having a hard time with this issue. Why the record length I acquire with "niScope Multi Fetch Cluster" varies, depending on how many channels I initialize? I.E., I want to fetch 20k data points per channel. If I configure and acquire from 1, 2, 4 or 8 channels, the record length of all signals is 20k points. However, If I configure 3, 5, 6 or 7 channels, the record length is 19934 points. Always 66 points less than the desired value, doesn't metter the configured record length, its always 66 points less. Doesn't metters which channels I initialize, only the amount of channels (it seems to be 2^n). And this is the record length immediately after the data acquisition block. To make things worse, the block "niScope Actual Record Length" returns the desired amount of points, and not the amount I'm actually reading.
Why is this happening?
If this rule is correct, I can figure out a solution.
Best Regards,Hello Giovanno,
Please, to this question,contact the technical support in your country so that engineers will help you.
Thank You.
Rita Souza
Engenharia de Aplicações
National Instruments Brazil -
Writing Datalog Files with record length
How do I write a Datalog File with a record length of 128 int16s?
Each I16 number in LabVIEW that you write uses 2 bytes because 8 bits equals 1 byte. If you write 128 numbers, the file will be 256 bytes long. You can modify the VI to write I32 (4 bytes) or I8 (1 byte) just by changing the representation of the number. You also need to change the subVI that does the actual writing (Write File+ [I16].vi). Be sure to rename the VIs that you change. I would think that your Fortran program would work as long as the data types match.
-
I can not record audio with the internal microphone or a external microphone? What is the fix?
jw000.w wrote:
I do appologize and appreciate it! Im and running OS X
Please click on the following link & do the necessary in providing the info previously requested.
http://support.apple.com/kb/HT1758 How to identify iMac models
Click on the Apple>About This Computer. The window will tell you which version OS is currently installed on your iMac.
=========================
It would help us to know which computer model you have, which OS you're using, how much RAM, etc. You can have this info displayed on the bottom of every post by completing your system profile and filling in the information asked for.This will help in providing you with the proper and/or correct solutions.
Thank You. -
Fixed note length in piano roll
Hello ,is there any way to draw notes with a fixed length in the piano roll rather than using the last edited note's length?
In other words,i want the default note length not to automatically change every time i draw/edit a new note (with a different length).
Im quite sure this cannot be done, but i thought i should ask to confirm...
I also feel i want to say my opinion on that,you dont have to read it or answer back to it:
I find this way of editing very confusing and counter creative ,it sure adds extra thinking proccess.While you are drawing notes it
constantly keeps your mind away from your melody line since in every step, you have to stop some milliseconds and think
"which side should i drag to resize now given the new facts left or right?"....
And extra (unnecessary) thinking always acts against creativity.
I think it seems very logical the way i said that and that objectively, irrelevant to any personal preferences, this way of editing
,even if i doesnt annoy everyone ,it is indeed counter creative.
Especcially if one really does a lot of editing rather than recording.
I wish there was an option for that in the preferences, maybe something very simple like a checkbox "Automaticaly define default note" to uncheck.
Im sure it would be only a few hours of programming for the developers to do something like that, but it would be such a saver for people
who edit a lot or for people coming from other DAWS, or for anyone that simply cant get used to it because they feel it anti-intuitive / unatural...
There...i shared my thoughts, at least i feel a better know...!
(However if you read my opinion i d like to hear what other people (that do a lot of editing) feel )You can use the transform tool but it's "after the fact". Simply rubberband a group of notes to be changed and use the Transform tool under the piano roll's "function" menu. Choose "Fixed Note Length" then set the parameter box to the value you need.
There's also this workaround: Find a note of the correct length already in the sequence or create temporary notes of the correct length. I'm assuming by "draw" you mean using the pencil tool. Move the pencil over the *center of note with the length you need, left mouse click and hold for a second, until the pencil turns into a hand, you will now have the length set for drawing new notes. The pencil tool is still selected so you don't have any additional selections to make.
Yes, it's a hassle, but once you get used to it you will find it's faster than what you've been doing.
*slight correction: when moving the pencil tool over the *center of a note, it will change into the pointer arrow, left click and hold and it will change into the hand, move the pointer away and it goes back to the pencil. -
How to create variable record length target file in SAP BODS
Hi All
I have a requirement to create target file which will have various record layout; meaning different record length (similar to cobol file format), but this is for the target. Please let me know what is the best practice and how to solution this requirment.
Thanks
AshHi Shiva,
Thanks for your feedback. My issue is that I have 10 different detail records (each record type is fixed length).
For each customer account, I have to write to file the header record, the detail records in the exact order, then continue with next account and so on and then write the trailer record. I have given sample layout below. Highlighted text is the record identifier in this exmaple while the underlineds are account numbers. Fields are fixed length right padded with space or 0.
220700000000SA00 Wednesday 2014-12-12 ASA00034 334 000 ---> (this is header)
220700000010SA10 AAb 00000+000000+ Akab xxxx bb 0000000000943 3433 --> (detail rec)
220700000010SA14 AAA 00034354 DDD 000000000+ --> (detail rec)
220700000010SA15 888e a88 00000000+ --> (detail rec)
. . . . . remaining detail records
220700000012SA10 AAb 00000+000000+ Akab xxxx bb 0000000000943 3433 --> (detail rec)
220700000012SA14 AAA 00034354 DDD 000000000+ --> (detail rec)
220700000012SA15 888e a88 00000000+ --> (detail rec)
. . . . . remaining detail records
220700000000SA99 Wednesday 2014-12-12 d334 000 --> (trailer is header) -
How to fix the length of select list box?
Halo, i am doing the research. I need to find out what is the method to fix the length of select list box. This is b'cos i can set the length of select list due to different length of record(s)/data(s).
Another question to select list box. What is the maximum length of the select list box?? Can i enter the character with 255 lenght??
Thank you very much..... a prompt reply will be appreciate!!Thanks for ur reply! actually that answer that you gave is right, but i also need to know what is the maximum lenght of character in the select list box?? any idea to that??
Meanwhile, i also need to know how can i make the character display in select list box dynamically?? that means i can change the font style or font size??
Anyway, thanks for ur answer.
bscs. -
OL 5.6 mcelog - warning: record length longer than expected
OS: Oracle Linux 5.6 x86_64 UEK 2.6.32-100 under Virtualbox.
Problem: root mail account filling up with cron messages:
/etc/cron.hourly/mcelog.cron:
mcelog: warning: record length longer than expected. Consider update.
Apparently this issue is still present in OL 5.6 as it was in OL 5.5:
mcelog-error in mail from hourly cron job using Unbreakable Kernel
The following may not be the correct or best way to fix the problem, but it works for me:
rpm -ivh http://public-yum.oracle.com/repo/OracleLinux/OL5/6/base/x86_64/mcelog-0.9pre-1.30.el5.src.rpm
cd /usr/src/redhat/SOURCES/
tar zxvf mcelog-0.9pre.tar.gz
cd mcelog-0.9pre
Test:
/usr/sbin/mcelog --ignorenodev --filter >> /var/log/mcelog
mcelog: warning: record length longer than expected. Consider update.
./mcelog --ignorenodev --filter >> /var/log/mcelog
(quiet)
Implement:
mv /usr/sbin/mcelog /usr/sbin/mcelog.orig
cp /usr/src/redhat/SOURCES/mcelog-0.9pre/mcelog /usr/sbin/mcelogRegards.Username:SQL*Loader-350: Syntax error at line 14.What is line 14 in your script?
Thanks,
Hussein
Maybe you are looking for
-
Getting Error when createing Table control in Module Pool.
Hi expert , i am creating a module pool program . i want to crate line item value for that i have created table control on screen 200 . but when i am activation to that giving error below mention. The field "ZFBDCHALLAN-EBELN" is not assigned to a l
-
Hi Experts, I have created an entity service with remote persistensy(web service).I am mapping a data field from entity service to a date filed in external service(web service).In web service, date is declared as java.sql.date. i mapped to minimum va
-
In adobe framemaker 8, my coworkers and I print book files which are 200-300 pages long with about 10-15 figures. The problem is that it takes me 4 mintues to print it, one coworker takes 30 minutes to print and another coworker 3 hours to print the
-
ACS 5.5 RADIUS OUTBOUND Attributes Injection feature
Hello I'm having a look at the RADIUS OUTBOUND Attributes Injection feature for the External Proxy service in ACS version 5.5.0.46. The use case is: ACS uses the External Proxy service to authenticate wireless users with certain domain suffixes Somet
-
Hi, How do I find the size of a JPEG when I'm working on it (I know how to once it's saved). When I look at, for instance, a 5 MB JPEG, it will read something like 27 MB on the size at the bottom of the window. I understand the size reduces, but is t