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
thanks
Tab 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.
Similar Messages
-
3 flat files grouped into 1 flat file
Hi XI Gurus!
IS there a way to merge the contents of all 3 flat files (source) to 1 flat file without using BPM? And IF I have to use BPM, could you please give me a general idea on how I can go on about it? After merging, I have to map the fields to an IDOC (target). Thanks so much for this.
Regards,
SAPenthusiastHi,
If you are not looking out for some specific thing and want to add second file at the end of first file and so on, then write a shell script to merge all files in one and then use that shell script in file adapter with option RUN OS Command before processing or you can use output file directly with File to IDoc mapping with FCC.
Assumption of this approach -
1. I assume that your flat files have same structure so that when you use FCC, it will parse all fields.
If this is not the case and all flat files have different structures then you have to use BPM for merging it. As suggested above, you have to use BPM Collect pattern of SAP BAsis component of your ESR or you have to create something similar BPM.
For your scenario using BPM, you have to merge the files first and after merging it, that is output file of the scenario, you have to create another scenario for mapping merged file to Idoc.
In case of BPM
You will have 2 scenario - FIle to file (Merge flat file in One)
2nd will be file to Idoc.
Regards
Aashish Sinha -
Flat file with fixed lengths to XI 3.0 using a Central File Adapter---Error
Hi
According to the following link
/people/michal.krawczyk2/blog/2004/12/15/how-to-send-a-flat-file-with-fixed-lengths-to-xi-30-using-a-central-file-adapter
In Adapter Monitor I got the following error,
In sender Adapter,
Last message processing started 23:47:35 2008-10-25, Error: Conversion of complete file content to XML format failed around position 0 with java.lang.Exception: ERROR converting document line no. 1 according to structure 'Substr':java.lang.Exception: Consistency error: field(s) missing - specify 'lastFieldsOptional' parameter to allow this
last retry interval started 23:47:35 2008-10-25
length 15,000 secs
some one help me out ?
Thanks
Ramfrom the blog you referenced -
<u> /people/michal.krawczyk2/blog/2004/12/15/how-to-send-a-flat-file-with-fixed-lengths-to-xi-30-using-a-central-file-adapter
<b>goto step 4</b>
<u>additional parameters</u>
add as the last entry
<recordset structure>.lastFieldsOptional Yes
e.g.,
Substr.lastFieldsOptional Yes -
Send a flat file with fixed lengths to XI 3.0 using a Central File Adapter?
Hello,
I'm wondering if someone have experience setting up conversion for different record structures. The example shown,
/people/michal.krawczyk2/blog/2004/12/15/how-to-send-a-flat-file-with-fixed-lengths-to-xi-30-using-a-central-file-adapter,
(in a greate way) only picture one kind of structure.
How should it be done if the file would contain
10Mat1
20100PCS
The first record structure has columns
ID(2),Material(10)
The second redcord structure has columns
ID(2),Quantity(3), Unit of messure (3)
Brgds
Kalle
Message was edited by: Karl BergstromThe configuration would be like follows:
Content Conversion Parameters:
Document Name: <your message type name>
Document Namespace: <your message type namespace>
Document Offset: <leave empty>
Recordset Name: <any name>
Recordset Namespace: <leave empty>
Recordset Structure: row1,,row2,
Recordset Sequence: any
Recordsets per Message: *
Key Field Name: ID
Key Field Type: String
Parameters for Recordset Structures:
row1.fieldNames ID,Material
row1.fieldFixedLengths 2,10
row1.keyFieldValue 10
row2.fieldNames ID,Quantity,UOM
row2.fieldFixedLengths 2,3,3
row2.keyFieldValue 20
Instead of row1 and row2 you can choose any name.
Regards
Stefan -
safari version 2.0.3 (417.9.2)
File Download limited to 4 files at a time... the rest are pending...
- it did not used to be this way -
- is there a way to up the limit to more than 4 things at a time - if so how?I believe 4 is the Safari limit. To be sure, go to your User Library>Safari folder and trash the downloads.plist file. Restart Safari and try multiple downloads. Trashing this file resets the Safari Download function and clears any corruption in the file.
If 4 is the limit, you'll have to try a 3rd party application such as SpeedDownload, which offers much more download flexibility and features than Safari.
One word of caution, if you try SpeedDownload but decide it is not for you, make sure you uninstall all of its components, especially any in your Internet-Plug-ins or InputManagers folder in either the Main or User Library, and the YazSoft preference file in your Preferences Folder. I know the app. comes with an uninstall feature, however, always good to double check. -
I have one requirement .which is JMS XML file should convert to Flat file
HI Gurus,
My Scenario is
sender SAP ---> receiver MF( Mainframe) ..
I have one requirement i will get IDOC from SAP sender pass throw PI to Mainframe... which is recevier's JMS XML file should convert to Flat file...
plz guide me any related suggestion and related links .... how to achieve..
Thanks in advance..>
> My Scenario is
> sender SAP ---> receiver MF( Mainframe) ..
>
> I have one requirement i will get IDOC from SAP sender pass throw PI to Mainframe... which is recevier's JMS XML file should convert to Flat file...
>
Where is MQ coming in to picture here, You receiving data from SAP and sending Main Frame system,as per your post.
so we can SAP->PI-->MAINFRAMES.most of the times we sent data to main frame system in the form of test files,so you can use receiver adapter file and use file content conversion.
thats it.
Regards,
Raj -
Flat file to Oracle: Dynamic flat file name
Hi,
I am doing a transformation from flat file to oracle.
At one place there is requirement like flat file name is dynamic.
*eg. D:\ Flat DB\ Sample<Date>.txt
examples may be like Sample09012012,Sample08012012 *
As in physical schema we specify name of file is there any way by which we can specify dynamic file name.
as stated above.
Any help and suggestions would be appreciated.Hi,
Yes you can specify a variable in the file name ( the resource name filed) .
You need to refresh the variable in a package and then use the interface to pick data from the file .
Thanks,
Sutirtha -
3 flat files grouped into 1 flat file ID config
Hi XI Gurus,
Just a follow up to my question before:
I have this scenario:
Source 3 flat files - merge through BPM - map to IDOC - send to ECC
Now, I need to configure them in Integration Directory.
I would need 3 Communication channels for the 3 different text files right?
How will I do the Sender Agreement? Should I create 3 for each flat file? OR just one for the merged file? IF I create 1 sender agreement for every comm channel, what will be my receiver for each? it cannot be ecc, since i am not yet sending the flat file. it should be merged first.
I'm not sure how to proceed with the Rec Agreement, Sender Agreement, Interface Det and Rec Determination.
Sorry about this. I'm really new at BPM.
Thanks!
Regards,
SAPenthusiastYou need three sender communication channels and three sender agreement. In mapping you will merge in to single target idoc file. So you will have single receiver comm channel and single receiver agreement. Create 3 receiver determination and 3 interface determination too. Refere SDN for file merge using BPM scenarios
Basically you need to create 3 receivers using fork then transformation and finally single send step. You can also use correlation alongwith fork using a block for receivers. THis is just a hint. -
Doubts In creating rule file for the given flat file.
Dear All,
How to create the rule file for following data. Kindly guide us to proceed further.
"Sales" "COGS" "Margin" "Marketing" "Payroll" "Misc" "Total Expenses" "Profit" "Opening Inventory" "Additions" "Ending Inventory" "Margin %" "Profit %"
"100-10" "New York"
"Jan" "Actual" 678 271 407 94 51 0 145 262 2101 644 2067 60.02949852507374 38.64306784660767
"Feb" "Actual" 645 258 387 90 51 1 142 245 2067 619 2041 60 37.98449612403101
"Mar" "Actual" 675 270 405 94 51 1 146 259 2041 742 2108 60 38.37037037037037
"Qtr1" "Actual" 1998 799 1199 278 153 2 433 766 2101 2005 2108 60.01001001001001 38.33833833833834
"Apr" "Actual" 712 284 428 99 53 0 152 276 2108 854 2250 60.1123595505618 38.76404494382022
"May" "Actual" 756 302 454 105 53 1 159 295 2250 982 2476 60.05291005291006 39.02116402116403
"Jun" "Actual" 890 356 534 124 53 0 177 357 2476 1068 2654 60 40.1123595505618
"Qtr2" "Actual" 2358 942 1416 328 159 1 488 928 2108 2904 2654 60.05089058524173 39.35538592027142
"Jul" "Actual" 912 364 548 127 51 0 178 370 2654 875 2617 60.08771929824561 40.57017543859649
"Aug" "Actual" 910 364 546 127 51 0 178 368 2617 873 2580 60 40.43956043956044
"Sep" "Actual" 790 316 474 110 51 1 162 312 2580 758 2548 60 39.49367088607595
"Qtr3" "Actual" 2612 1044 1568 364 153 1 518 1050 2654 2506 2548 60.03062787136294 40.19908116385911
"Oct" "Actual" 650 260 390 91 51 1 143 247 2548 682 2580 60 38
"Nov" "Actual" 623 249 374 87 51 0 138 236 2580 685 2642 60.03210272873194 37.88121990369181
"Dec" "Actual" 699 279 420 97 51 1 149 271 2642 671 2614 60.08583690987125 38.76967095851216
"Qtr4" "Actual" 1972 788 1184 275 153 2 430 754 2548 2038 2614 60.04056795131846 38.23529411764706
Thanks And regards
SaiHi,
Create 1 text file in this way, the file is tab separated. The first line is Header line. So do a setting to skip that line while you are loading a data.(Options -> Data Source Property -> Header -> No of lines to skip 1)
"Product" "market" "Period" "Scenario" "Sales" "COGS" "Margin"..... "Profit %"
100-10 New York Jan Actual 678 271 407 94 51 0 145 262 2101 644 2067 60.02949853 38.64306784660767
100-10 New York Feb Actual 645 258 387 90 51 1 142 245 2067 619 2041 60 37.98449612403101
and copy paste all your complete data lines below this and save your text file.
Create 1 rule file and open this text file in it and then provide a field settings one by one. Do the necessary settings also.
Hope this helps.
regards
SST..... -
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 -
I have an input file, which is fixed length format. I need to configure the Sender File Adapter for a fixe length file(i.e each field length is available and I need to mention that in my sender file Adapter)
Can anyone suggest an appropriate blog, that explains my scenario.
(I searched this web and it keep on hanging)Hi Naveen
check these links
/people/venkat.donela/blog/2005/06/08/how-to-send-a-flat-file-with-various-field-lengths-and-variable-substructures-to-xi-30
for sender conversion (check the sub links in this topic)
http://help.sap.com/saphelp_nw04/helpdata/en/0b/9a50465ccf84479e39a6d50c90fb3f/frameset.htm
and my reply to your previous post for idoc to flat file.
Regerds
Vishnu -
Adapter file receiver - file with fix length record
Hi everybody,
In the file adapter receiver, I want to create a fixed length record file .
Each record need to have the same size.
How is it possible, because I have a file which contains variable legnth depending of the lenght of message?
exemple:
<mess>
<row>1234567</row>
<row>123456789A</row>
</mess>
give the file
1234567<CR>
123456789A<CR>
<CR> means carriage return
and I want a file like
1234567 <CR>
123456789A<CR>
with the same lenth of record (10 in the example).
Can anyone help me, ,please?
Kind regards.
E. KoralewskiHi Eric,
Create a value user defined function with one input argument a and name it is inputpad. Then add the following code:
Imports: java.*;
while (a.length()<Integer.parseInt("10"))
a= a +" " ;
return String;
Here I am assuming your fixed length for the field is 10. If it is more or less then change the number. Now in your mapping do all your logic and then in the final add this like:
input ---> your logic --> inputpad udf --> target.
Regards,
---Satish -
How to process file with fixed length using MFL in OSB
Hi Team,
I need to translate this file using MFL. its fixed lenght[each line is having 81 chars] file in below format.
Please help me to process this in OSB using MFL.
==================================================================
START
[email protected]
[email protected]
END
Subject : CALIFORNIA STEEL IND Renege #00424523 Hse580 CTH580
BODY:
User_ID: LARRY014
Xpd2 Hse/Customer # : 580/1196310
Xpd Order Number: 580094624
Customer E-Mail: [email protected]
Customer E-Mail 2:[email protected]
Customer Phone : 9093506458
Dear Salesperson,
gexprosupply.com Order # : 00424523
gexprosupply.com User ID : LARRY014
Customer CALIFORNIA STEEL IND has entered order 00424523
through gexprosupply.com.
THIS ORDER HAS RENEGED for the following reason(S):
I. ORDER LEVEL
NOTE SEGMENTS FOUND IN INPUT - SENTRY
CDF REQUIRED CUSTOMER - ORDER RENEGED
II. ITEM/LINE LEVEL
LINE # ECOM LINE NAED QTY STATUS ALLOW SUBS
Please resolve the renege and release the order in Sentry
01 as soon as possible. Thank you.
EMAIL-END
==================================================================
Thanks
Reddy
Edited by: 913248 on Feb 8, 2012 2:07 PM
Edited by: 913248 on Feb 8, 2012 2:08 PMHi Prabu,
thanks a lor fro you replay.......
the above file is having mail content[from id, to id, subject and body] i need to read this file using OSB and need to sent to the respective email id.
the file format is :
it will have
0- its a fixed length in each line [81 chars]
1--"START" tag....starting of the email
2--after START, the email ID is "FROM" email ID
3-after "FROM" emailid, 3rd line onwards....will have "TO email IDs
4-"END"---end of the email IDs
5- "Subject " ...will have subject of the email
6-"BODY".... the email body will start in this tag
7-"EMAIL-END"..end of the email....
so my requirement is ..i need to read above file in OSB and send notification emai.
Thanks
Reddy -
I am using Firefox 30.0. I open a page that has links on it to see some PDF files. When I click on the link, Firefox use to open a new tab and display the PDF file. Now a new tab is opened, nothing gets displayed, and the new tab closes. What setting do I need to change in order to see the PDF file.
Firefox Menu > Settings > Application
*Search for "PDF" > Change the Action to "Preview in Firefox" -
How to find database files location (from system flat files)
Hi all,
Is there anyone who could help me to understand the Oracle database starting mechanism. I'm looking the doc for a few days, but it lacks some details...
I'm currently using Oracle 10g on RedHat, and my database has been created using DBCA. While the installation process, DBCA allows to use a customized location for "*all the database files*". I've chosen */data*.
Now, when I'm looking in my /etc/oratab file, I can see: mydb:$ORACLE_HOME:N
I guess the startup process of Oracle reads /etc/oratab (or I didn't understand its utility...) and then goes to $ORACLE_HOME to find the database infos. In this directory, I can see a directory named hostname_mydb/ and dbs/
The dbs/ directory contains my pfile (initmydb.ora) which contains some parameters such as control files, but nothing about the parent directory of my database files, ie:
control_files= /data/oradata/mydb/control01.ctl,....*
but no DB_CREATE_FILE_DEST as I could expect if the db was created through OMF.
The hostname_mydb/ contains nothing but a sysman directory.
I wonder how Oracle process knows where are the .dbf files or the "parent directory of database files" ? Does anyone have a clue?
I know it is possible to ask through sqlplus for .dbf location but I don't think it's the way used for the startup process (or at least, I hope there is another way)
Thanks! (and sorry if the question seems obvious or stupid...)907899 wrote:
Thank you very much CPKT for all these details. It helps me to see clearer!
You are right, I have configure an Oracle Enterprise Manager and I didn't notice this directory was related to it...
And as I first thought, many data are in the binary control file. I just thought Oracle was a more simple system :)
You mention an Architecture Guide for DBA, is it the Database Concepts manual mentioned in the first reply or is it another manual (I can't find it, but obviously I have to improve my searching technique...)
Thanks!=================================================
Learning how to look things up in the documentation is time well spent investing in your career. To that end, you should drop everything else you are doing and do the following:
Go to tahiti.oracle.com.
Drill down to your product and version.
<b><i><u>BOOKMARK THAT LOCATION</u></i></b>
Spend a few minutes just getting familiar with what is available here. Take special note of the "books" and "search" tabs. Under the "books" tab you will find the complete documentation library.
Spend a few minutes just getting familiar with what <b><i><u>kind</u></i></b> of documentation is available there by simply browsing the titles under the "Books" tab.
Open the Reference Manual and spend a few minutes looking through the table of contents to get familiar with what <b><i><u>kind</u></i></b> of information is available there.
Do the same with the SQL Reference Manual.
Do the same with the Utilities manual.
You don't have to read the above in depth. They are <b><i><u>reference</b></i></u> manuals. Just get familiar with <b><i><u>what</b></i></u> is there to <b><i><u>be</b></i></u> referenced. Ninety percent of the questions asked on this forum can be answered in less than 5 minutes by simply searching one of the above manuals.
Then set yourself a plan to dig deeper.
- Read a chapter a day from the Concepts Manual.
- Take a look in your alert log. One of the first things listed at startup is the initialization parms with non-default values. Read up on each one of them (listed in your alert log) in the Reference Manual.
- Take a look at your listener.ora, tnsnames.ora, and sqlnet.ora files. Go to the Network Administrators manual and read up on everything you see in those files.
- When you have finished reading the Concepts Manual, do it again.
Give a man a fish and he eats for a day. Teach a man to fish and he eats for a lifetime.
=================================
Maybe you are looking for
-
Can I have 2 ipod nanos on same computer but with separate itune libraries?
Have both ipods installed on my pc but want to be able to download songs separately into my ipod and my daughters ipod.
-
Webutil is not working well in the browser
hi everybody I have a problem in my Forms. First, I was doing Form and I wanted to add picture for item and I want the picture to be saved in database through pressing on button and a browser open and select the image to be saved in database. and if
-
Right handed page in document has moved up
I am working on a document provided to me by my client. There are 120 pages within the document. Page 53 has moved up about 1/4 of an inch next to the left page 52. None of the other pages in the document appear to have moved like this one. I checked
-
Webdynpro for ABAP and Portal Integration
Hi Experts, we created a WebDynpro for ABAP application for portal. The application will modify/update few fields in backend sap HR table PA0006 (infotype 6) . The end user (portal user) should be able to update his data in backend with the iview cr
-
Videos from iPod not importing on Mac pc
SSo we recently bought a Mac pc and I was using iMovie and was completely new to it, so I go and plug my iPod into the Mac and all goes well, go onto import videos on iMovie, but when chose the video I have imported, it doesn't pop up in the editing