Probelm with file conversion
Hi
Iam doing File-XI-File scenario,where i send .txt file from source to Target with out any changes.
I simply pick it form source directory and place in Target.
Now if there is any Space between charcters inSource ,it is replacing with '#' in target.
No file content conversion is used.
Please help....
Edited by: Dinesh on Mar 6, 2008 3:33 PM
Hi,
From the content it seems that ur file is : separated. I think u need to use the FCC.
USe:
NameA.fieldSeparator
If you make an entry here, the system expects that the structure contains the specified character string (one or more characters) as a separator between the individual columns.
If you have not made an entry for fieldFixedLengths, this is the only specification to identify the individual columns in a row.
If you made a specification for fieldFixedLengths, the extra length of the separator is taken into account, but no further consistency checks are performed.
Thnx
Chirag
Similar Messages
-
Sender File Adapter with file conversion
Hi guys,
Im using a Sender File adapter with file conversion. The message to be processed has a structure with fixed lengths and in your content are some values that needs to be ignored.
An example:
value1 <b>value2</b> value3
I want to ignore <b>value 2</b> but I cant find a parameter for that! Do I need to define dummy fields on my data type and ignore those fields during mapping? Or there is a specific parameter for that?
Thanks in advance,
Ricardo.hi,
there always is another way:)
you can import the whole line to one field
and cut it inside the adapter module
(then you can define start and stop of the substring that you need to use)
but of course it's not standard even though it's quite easy to achieve in java
Regards,
michal
<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a> -
Sender File Adapter with file conversion Multimapping
Hello all,
i have to use multimapping with the file sender adapter
XML for multimapping ist like this
ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge">
<ns0:Message1>
<ns1:KVNR_Senden_MT xmlns:ns1="urn:lsv.de/SENDER">
<Inhalt>
<KE/>
<VF/>
<BBNRAB/>
<BBNREP/>
<VERNR/>
<ED/>
<FEKZ/>
in File adapter
DocumentName Messages
RecordsetName Inhalt
Recorset Struc Inhalt,20
Inhalt.fieldFixedLength 4,5,6.....
Inhalt.fieldNames KE,VF,.....
but were can I generate Message1?????
any Hints?
regards
ralfsorry but the message tags will not be add dynamically
i have change an existing message mapping 1:1 with file content conversion
into a multimapping.
by changing into multimapping the message was surrounded with
<ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge">
<ns0:Message1>.......
no changing in File Adapter an in the IE there was an error
com.sap.aii.utilxi.misc.api.BaseRuntimeException geworfen: RuntimeException in Message-Mapping transformatio~.
if i added the stuct
<ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge">
<ns0:Message1>.......
by hand and it works???
so i think i had to add
<ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge">
<ns0:Message1>.......
to the file content conversion but i don't know how to do it???
Ralf -
Hello everyone.
I have a problem. In my database, i have a lot of artwork done with indesign 9.2.2. Since a while now I upgraded indesign and now I have the latest version 10.1.0.71 but I can't open my indesign artwork made with indesign 9.2.2.
When I try, a dialog box appear and says : " La conversion a échoué : les données du fichier ne correspondent pas aux données attendues".
What should I do ?
Thank you in advanceHi,
Ideally all files created in 9.2.2 should open fine in versions greater than itself.
Did you happen to have some 3rd party plugin in 9.2.2 which is missing in 10.1 ? That can be one of the reasons for such errors.
Are the files still opening in version 9.2.2? (assuming you still have 9.2.2)
If there are no 3rd party plugins involved you can share the file with us at [email protected] and we can have a look and figure out the cause of the problem.
Regards
Javed -
Difficulty with file conversion
Hi all,
I'm a brand new mac user so please forgive my ignorance... I'm having issues with converting mts files for use within FCP.. I've tried Wondershare Video Converter and Smart Converter...both with very bad quality results...
There's no problem with importing the files directly from the camera's built in memory....but when I use the SDHC card, either from within the camera or inserted into the Mac, they show up as files that I need to convert..
I hope this makes sense and that someone will have some ideas
Thanks..Try this thread, and let us know if you still need help:
https://discussions.apple.com/thread/3722458?start=0&tstart=0 -
Help with FILE CONVERSION please.
I inherited a zillion .wpd files (family recipes). Is there a fast, efficient, and easy way to do a mass conversion from .wpd format to something I can read on my MacBook Pro?
Thanks!This might work:
http://www.ehow.com/how_5864325_translate-wpd-files-mac.html
Or I believe Open office handles word perfect files. -
Need help with file conversion
New to JMS. I want to take data which has been put into XML form, validate it, put it into a Topic (Oracle's AQ is the implementation), have a subscriber grab it and use XSL to map the elements to DB columns and insert all the data into the DB.
This way, I hope to reuse the same inserter, and just use a different mapping for each XML doc.
I am having trouble in the area of converting the files, and/or the Document objects you get from parsers, to and from Strings so that I can put them into, and get them out of, TextMessages.
What is the best way to go about this? Any and all advice would be appreciated.
-ErikYou may want to check out the XML Journal article by Dave Chappell, co-author of The Java Message Service, called JMS and XSLT for E-Business Messaging.
http://www.sys-con.com/xml/article.cfm?id=122
and the related code available for free download
http://www.sonicsoftware.com/cgi-bin/sonic.cgi/dx_view_entry.w?entry_id=58 -
File conversion and append file in receiver file adapter
Hi
I have a batch IDoc -> XI(3.0) -> file scenario with file conversion to create a flat CSV-like file. The problem is that because of the amount of data sent from R/3 (~20000 employees), the idoc is split into several idocs. In my receiver file adapter I want to append all the idocs contained in this data transfer to one flat file, before transmitting to FTP server.
For the next batch transfer (the next day) XI should start all over and create a new file and append all idocs contained in that transfer before transmitting the flat file to FTP server.
Can this be done using the 'Use Temporary File' and 'Append' options in the FTP connection Parameters in the comm-channel?
It is not an option to append the file in the FTP-server, because the files in the destination folder are moved immediately after arrival, so the file will be moved before file adapter can append all the files.
Does anyone have any suggestions to how to solve this?
Br
KennethHi Kenneth
Did you ever get a solution to this problem?
Regards
Russel Irvine
[email protected] -
Problem with File Content Conversion
Hi All
I am facing a problem with file content conversion.
This is my sample file structure:
Header_Record (Occurance - 1)
Field1 in Header
Field2 in Header
Item(Occ-1 to n)
Field3 in Item
Field4 in Item
<<ItemType>> (Structure in Item) (Occ - 0 to n)
<<Field5>> in ItemType
<<Field6>> in ItemType
<<ItemTypeCategory>> (Structure in ItemType)(Occ - 0 to n)
<<<<Field7>>>> in ItemTypeCategory
<<<<Field8>>>> in ItemTypeCategory
Footer_Record (Occurance-1)
Field9
Field10
There is a key field 'Type' in all the above records with unique value in each record.
Now, I defined Field content conversion as follows:
Recordset Structure: Header_Record,1,Item, * , ItemType, * ,ItemTypeCategory, * ,Footer_Record,1
Recordset Sequence: Ascending
KeyField Name: Type
Following are parameters defiled:
Header_Record.Keyfieldvalue: 00
Header_Record.fieldseperator: ,
Header_Record.fieldnames: Field1,Field2
Header_Record.endseperator: 'nl'
Item.keyfieldvalue: 05
item.fieldseperator: ,
item.fieldfieldnames: field3,field4
item.endseperator: 'nl'
ItemType.keyfieldvalue: 10
itemType.fieldseperator: ,
itemType.fieldfieldnames: field5,field6
itemType.endseperator: 'nl'
ItemTypecategory.keyfieldvalue: 15
itemTypecategory.fieldseperator: ,
itemTypecategory.fieldfieldnames: field7,field8
itemTypecategory.endseperator: 'nl'
Footer.keyfieldvalue: 20
Footer.fieldseperator: ,
Footer.fieldfieldnames: field5,field6
Footer.endseperator: 'nl'
Now, i pass the following file:
00,111
05,222
10,333
15,444
20,555
What i expect out of my FCC is this (Sample output to show the hierarchy of field values):
00,111
05,222
<<10,333>>
<<<<15,444>>>>
20,555
But, I am getting this output (Hierarchy is missing. All the structures are in the same order without hierarchy):
00,111
05,222
10,333
15,444
20,555
Field values are being identified according to field content conversion, but, the hierarchy of the fields is missing.
Can you please tell me how should i change my FCC config?
Sorry for this long question.
Many Thanks
Chandra
Edited by: Chandra Sekhar H on Jan 30, 2009 7:10 PM
Edited by: Chandra Sekhar H on Jan 30, 2009 7:16 PM
Edited by: Chandra Sekhar H on Jan 30, 2009 7:17 PMYou will always get a flat structure from FCC. If you want hierarchichal strucuture, you have to create a target and map. You will get only like -
Root
--Recordset
Group1
Fields
Grop2
Fields
Group3
Fields
VJ -
Problem with file content conversion in receiver file adapter
Hi All
I have a problem with file content conversion in receiver file adapter.
This is my recordset structure: Header_Record,1,Claim_Record,*,Check_Rec,1
These are the content conversion parameters:
Header_Record.fieldSeparator = ,
Header_Record.endSeparator = 'nl'
Claim_Record.fieldSeparator = ,
Claim_Record.endSeparator = 'nl'
Check_Rec.fieldSeparator = ,
Check_Rec.endSeparator = 'nl'
In SXMB_MONI, i can see that the data is correctly extracted from proxy, and correctly mapped to receiver message, and i see a checkered flag (success).
But, Adapter status is RED with the following error message:
Conversion initialization failed: java.lang.Exception: java.lang.Exception: Error(s) in XML conversion parameters found: Parameter '1.fieldFixedLengths' or '1.fieldSeparator' is missing
In communication channel monitoring, i get the following error message:
Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: Channel has not been correctly initialized and cannot process messages
What is going wrong here? Can anyone please tell me?
Thanks
ChandraPosted in Incorrect forum.
Posted again in Process Integration forum -
Dynamic file name in receiver - empty line problem with content conversion
Hi,
I do a variable substitution from a filename node in my xml structure. Because I don't want to have the the filename in my flatfile i supress the output with the conversion parameters:
filename.fixedLengthTooShortHandling = Cut
filename.fieldFixedLengths = 0
It's working but: the adapter is puting an empty line at the end of the file. If I even put the filename node at the top of the xml struture it generates the empty line at the top of the flatfile.
Anyone has an idea? is there an other way to set the filename or how can I supress this empty line( I have to) ?
Regrads
J.Jorg,
Actually speaking we cannot get rid of this with XI. You have to write a OS script to remove this.
Else
you add one more parameter as .endSeparator as backspace ie., 0x08. It will definitely remove the line but I think it is putting a square box at the end of previous line. Please check by giving this and let us know the updates.
Regards,
---Satish -
Problems with content conversion in File Receiver Adapter
Hello, everybody.
I have a RFC-to-File scenario with file content conversion. Everything is working well except that my file is generated with 2 blank lines at the top of it.
The function module has 3 importing parameters (1 optional) and the file content comes from an internal table.
Is it caused by the function module parameters? If yes, how can I avoid this, once I really need them? If not, does anyone have any idea?
Thanks a lot,
Marcos.Hi, Raj.
Here they are the function module parameters:
Importing parameters:
ICARRIER TYPE CHAR1
FPATH TYPE IPATH
IFILE LIKE VBAK-BNAME
Tables
IYLASDS_RECPT LIKE YLASDS_RECPT
The structure YLASDS_RECPT has only one field with a single line of the file. I am using this field as the <i>Recordset Name</i> inside file adpater parameters.
There is no mapping between RFC and FTP messages.
Thanks a lot,
Marcos. -
File Sender adapter with File content conversion
Hi
I'm having problems picking up a flat file that has some junk characters in the file.
I'm usign a file sender adapter with file content conversion. The adapters shows the following error-
Conversion of complete file content of to XML format failed around position 0: sun.io.MalformedInputException
this is the sample data with junk char's -
A20099201009999009999060815160505051700130008151vÿÿÿÿ³ r 0OK0476 31N016227241915840IV 00840 ÿÿÿ ÿ ÿÿÿÿÿÿÿÿ ÿ ÿÿÿ
There is not much in the file content conversion. This is a fixed length file, I'm just pickign it up & passing it to an inbound proxy. All my processing is in the proxy.
I'd appreciate any suggestions.
Thanks
RachanaHi Rachana,
Do you use a specific "encoding" like UTF-8 or ISO-8859-1 in your Sender CC?
To be simple, Encoding is linked to country, you can find all "iso-nnnn" via google or some of them in sap help.
http://help.sap.com/saphelp_nw2004s/helpdata/en/e3/94007075cae04f930cc4c034e411e1/content.htm
Moreover, with your source file opened thanks to Notepad (for instance), use option "save UNDER", you will the encoding use by your file
Mickael -
Handling flat file conversion with spaces inbetween at sender side
Hi,
I am facing some problem in configuring the sender JMS adapter file content conversion. Please find the structure of my file below
010AG 07/17/2007 000130800 TOZ07/17/200710:48:46
010AU 07/17/2007 006682800 TOZ07/17/200710:48:46
010-Record key
AG-Metal code
07/17/2007 -price Date
000130800 -pricevalue
TOZ-Unitofmessure
07/17/200710:48:46-Unitofmessure
there are 2spaces inbeween 1and 2nd fields and one space beween 2nd and 3rd ,one space between 3rd and 4th fileds
I declared my source data strucute like below
<source_MT>
<PriceData>
<Metal code>
<price Date>
<pricevalue>
<Unitofmessure>
<shipDate>
</priceData>
</source_MT>
I am using this PDF to configure my serder communication channel https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/50061bd9-e56e-2910-3495-c5faa652b7
. but i got struck up in declaring these two fields as i need deal with spaces.
xml.NameA.fieldNames
xml.NameA.fieldFixedLengths
It would be great if sombody tell me how ican decalre content conversion rules for the file
Thanks
sudheerHi,
Please check some links on FCC.
Introduction to simple(File-XI-File)scenario and complete walk through for starters(Part1)
Introduction to simple (File-XI-File)scenario and complete walk through for starters(Part2)
File Receiver with Content Conversion
Content Conversion (Pattern/Random content in input file)
NAB the TAB (File Adapter)
Introduction to simple(File-XI-File)scenario and complete walk through for starters(Part1)
Introduction to simple (File-XI-File)scenario and complete walk through for starters(Part2)
How to send a flat file with various field lengths and variable substructures to XI 3.0
Content Conversion (Pattern/Random content in input file)
NAB the TAB (File Adapter)
File Content Conversion for Unequal Number of Columns
Content Conversion ( The Key Field Problem )
The specified item was not found.
File Receiver with Content Conversion
http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/content.htm
Regards,
Phani -
Sender File adapter File Conversion with key fields
Please help me guys, I already spent way too much time on this!
I checked a couple of BLOGs and I think I'm doing the right thing except I'm not getting the result I would expect.
I'm trying to create an IDoc using the from a flat file.
I get the following error:
During the application mapping com/sap/xi/tf/_MM_TEST_ a com.sap.aii.utilxi.misc.api.BaseRuntimeException was thrown: RuntimeException in Message-Mapping transformatio~
The Source file is this:
H
L0015
The file adapter does create the XML below (looks fine):
<ns:MT_SINGLE xmlns:ns="http://PPSC_TO_BO_INVOICE">
<HEADER>
<ID>H</ID>
</HEADER>
<LINE>
<ID>L</ID>
<SITE>0015</SITE>
</LINE>
</ns:MT_SINGLE>
When I test the map in IR, with the XML that this file adapter created (above) it works fine!
Also if I take away the HEADER from the source structure everything works fine and I can create the IDoc, therefore I think something must be wrong in the file conversion, the mapping is so simple there is nothing to fail there.
The file conversion parameters that I have:
Document Name: MT_SINGLE
Document Namespace: http://PPSC_TO_BO_INVOICE
Document Offset:
Recordset Name:
Recordset Namespace:
Recordset Structure: HEADER,1,LINE,*
Recordset Sequence: Ascending
Recordset per Message:
Key Field name: ID
Key Field Type: String (Case-Sensitive)
LINE.fieldNames: ID,SITE
LINE.fieldFixedLengths: 1,4
LINE.keyFieldValue: L
HEADER.fieldNames: ID
HEADER.fieldFixedLengths: 1
HEADER.keyFieldValue: H
What am I doing wrong???
Any help is much appreciated.
Thanks,
Viktor VargaHi Viktor,
Basic rules:
1. Down load XML payload(output From Adapter) and test it in IR mapping program. If it is working there is no reason why it will fail in Runtime. Also Check Cache is up to date.
Generally the problem lies with namespace.
Hope this helps
Regards,
Satish
Maybe you are looking for
-
Photoshop Elements 9 and cannot open Raw files from my Canon EOS 1000D camera.
I am using Photoshop Elements 9 on a Windows 7 based PC and would like to know why I cannot open Raw files produced by my Canon EOS 1000D camera. I have checked the version of the plug in as 6.5 for raw files which is supposed to open .cr2 files and
-
Replace Navigationbar with UISegmentedControl
Hi friends, I am using navigation based application, in this i want to replace Navigationbar with UISegmentedControl i tried using below code -(void) viewDidLoad { NSArray *buttonNames = [NSArray arrayWithObjects:[UIImage imageNamed:@"email.png"],[UI
-
Webservice not ready - no response
Hi! I hope I am in the right place to ask my question. I have a mobile Flex project in which I have to work with WSDL. I followed some tutorials and think that I should have everything needed to communicate with the server (the code there is implemen
-
Mountain Lion Mail - Can't see time machine recovered mailboxes
If anyone can please help! Somehow upgrading to mountain lion I lost mail. I recovered these from time-machine. For a while I could see them in the left-most pane under a heading called Time Machine. But in archiving some old content this folder-h
-
Can't share purchases with my family from family share
I Setup family share but we all can't download each others bought apps. you're supposed to find it under purchased apps but I only can see my own bought apps.