Content Conversion on complex structures
Has anyone gotten content conversion to work on more than just simple parent/child structures? We are able to do
Recordset
--LineA
--LineB
--LineC
etc etc
But we'd like "grandchildren" in our records -
Recordset
--Header01 (1)
DetailA1 (unbounded)
DetailA2 (unbounded)
DetailA3 (unbounded)
DetailB1 (unbounded)
DetailB2 (unbounded)
DetailB3 (unbounded)
We can't figure out how to specify this structure. I have seen several people ask the same question. We currently accomplish it by setting up all the structures to be on the same level, and then in mapping we add context changes, but wondering if we're just missing some step in content conversion setup we could take advantage of.
Hi Amanda,
I have an input file with the following structure
Header 1..unbounded
..Item 1..unbounded
....ItemCond 0..unbounded
....AddFields 0..unbounded
..HeadCond 0..unbounded
..Tender 0..unbounded
I need to map this to an IDOC of the following structure :-
E1WPB01
..E1WPB02
....E1WPB03
....E1WPB04
....E1WXX01
..E1WPB05
..E1WPB06
In order to convert the XML created by file file adapter into a format suitable for mapping to the IDOC structure we are about to start work on a Java program to perform the conversion. Obviously performance is a concern. Are you saying that this can be solved by adding context changes?
Regards
Ian
Similar Messages
-
File Content Conversion for complex structure
Hi
I have a requirement to repeat a structure consisting of three lines i.e the segment containing these 3 lines will have occurrence 0....unbounded and will be repeated in the File multiple times ,
What is the level that can be handled in File Content Conversion's recordset structure ?
My issue is that the structure is
Dt_File -> Repeating Level1->Level2 ->Field1
->Level2a->Field3
-> Level2b->Field5
where the first level is DT_File
under which I have RepeatingLevel1 as a SubElement
and under Repeating level I have Level2 , Level2a and Level2b at its subelementsl
and under Level2 I have Field1 , Under Level2a i have Field3 and under Levle 2b i have Field5
How do i handle this in the Content Conversion ?? as in how do I create my Recordset Structure ?? as it just handles one level below the Document Name (i,e) Message Type)
Is it possible ??? or should i consider some other way to constuct my data type ??
Thanks
DevHi Tarang
My DT according to the target file structure is this :
DT_File
>Main1(1,1)
>Main2(1,1)
>Main3(0...unbounded)
>Record1(1,1)
>Field1
>Field2
>Field3
>Record2(1,1)
>Field4
>Field5
>Record3(1,1)
>Field6
>Field7
SO I want to confirm if the receiver FCC will be - Main1,Main2,Main3,Record1,Record2,Record3
Record1.fieldSeparator ,
Record1.endSeparator 'nl'
Record2.fieldSeparator ,
Record2.endSeparator 'nl'
Record3.fieldSeparator ,
Record3.endSeparator 'nl'
or Main1,Main2,Record1,Record2,Record3
Thanks
Dev -
How to use content conversion for Complex structure
Hi All,
I want to know how to use content conversion for the following complex structure:
Data
...Details 1 to Unbound
.....Header 1 to 1
.......HF1
.......HF2
.......HF3
.......ITEM 1 to unbound
.........ITF1
.........ITF2
all are of type string.
Thanks & Regards,
Viswanath
Message was edited by: Viswanath MenteHi,
In the content conversion,
give ur
1.document name as message type
2.give ur recordstructure as Details,,Header,1,ITEM,
3.mention ur keyfield.
conversion parameter
Header.fieldFixedLength - give the field lengths
Header.fieldNames=mention all the field name
Header.keyField=enter the value of keyfield
Header.endSeparator='nl'
repeat the same for Item
regards
jithesh -
File Content Conversion - Creating Mulitple structured Flat Files
Hello,
I am trying to create a flat file using File content Conversion.For simple XML strcutures like
<Header>
</Header>
<Item>
</Item>
<Trailer>
</Trailer>
the file content conversion works fine. But whe the XML structure gets complicated like
<Header>
</Header>
<Item>
<Item_Detail>
</Item_Detail>
</Item>
<Trailer>
</Trailer>
or
<Header>
</Header>
<Item>
<Item_Detail_1>
<Item_Detail_2>
</Item_Detail_2>
</Item_Detail_1>
</Item>
<Trailer>
</Trailer>
I am not able to create the correct flat file with the Item_Detail information.How can I do the same ?
Regards,
Sandeepwell same in the receiver side too....
REF: http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/content.htm
and sorry abt the earlier blogs, u can chk out the one below ....
/people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion -
File Content Conversion with Multiple structures
Here is the scenario
Legacy to XI -> XI to R/3 (App Server)
txt file and fixed length.
<b>Test file</b>
100WELCOME 0430000960603201321
2000000000040008000803
<b>Table2</b>
RecordType
PriorityCode
Destination
BankOrginNo
CreationDate
CretionTime
Spaces
<b>Table2</b>
RecordType
Destination
BankOrginNo
ReferenceCode
ServiceCode
RecordLength
CharactersPerBlock
PartialCompression
CompressionSpaces
<b>Content Conversion Parameters:</b>
Document Name: Details
RecordsetName : recordset
Recordsetstructure : Table1,1,Table2,*
Recordsetsequence: Ascending
RecordsetperMessage: *
Keyfieldname : KF
Kefieldtype : String(Case-Sensitive)
Table1.keyFieldValue :'1'
Table1.fieldFixedLengths:1,2,10,10,6,4,47
Table1.fieldNames :RecordType,PriorityCode,Destination,BankOrginNo,CreationDate,CretionTime,Spaces
Table2.keyFieldValue :'2'
Table2.fieldFixedLengths: 1,10,10,10,3,3,4,1,38
Table2.fieldNames:RecordType,Destination,BankOrginNo,ReferenceCode,ServiceCode,RecordLength,CharactersPerBlock,PartialCompression,CompressionSpaces
ignoreRecordsetName :true
When I am trying with first structure it is working fine, where as 2 structures it is not.
in the adopter monitoring it show it pics the file from Legacy(file adopter display green), where as SXMB_MONI it is not showing any thing.
can any body help on this do I need to maintain any other parameters for file content conversion.
Thanks
MHI,
I can see that.
The number of characters in the file for TABLE2 is lesser then the number of field size given.
for eg. if the table2 fixed field length sum is 20 ,your file contains only 10 characters. Please give complete data for table2
Test file
100WELCOME 0430000960603201321
<b>2000000000040008000803</b>
Table2.fieldFixedLengths: 1,10,10,10,3,3,4,1,38
Ragards
vijaya
Message was edited by: vijaya kumari -
Content conversion-source XSD structure
hi expert,
I am doing content conversion from pdf to xml using content master studio.I have export the XSD file from source or target message type(IR). I have completed IR and ID including module configuration for transformation. now i am import the XSD file in content conversion master studio. also deployment was completed.I put the deployment folder under content master engine(c:\programfiles\SAP\ContentAgent\ServiceDB).but source(pdf) file is not polling from sender communication channel.
my doubt is " XSD structure was different while generaing from XI(IR) machine" its given unique id for each element. also alert message comes" the namespace http://www.w3.org/2001/XMLschema already carries a different alias" while import the XSD file in conversion master studio.The problem is with XDS File, use same file for Conversion Program and Design Interfaces.
Sandeep -
How to do Content Conversion for this structure?
Hi,
Urgent required. I have the following structure as below. There is a headerData, itemData and textData. The data that wll come into headerData could be more than one, and the same applies to the itemData and textData. The File adapter is not able to pick this file structure. It is a fixed length file at the receiver end. Could any one tell me how to do the File Content Conversion (FCC) for the structure without using the FCC module. Points to be awarded to best answer. Thaanks in advance.
The structure :
<headerData>
aaaaa
bbbb
cccc
</headerData>
<headerData>
aaaaa
bbbb
cccc
</headerData>
<headerData>
aaaaa
bbbb
cccc
</headerData>
<itemData>
fff
ggg
hhh
</itemData>
<itemData>
fff
ggg
hhh
</itemData>
<itemData>
fff
ggg
hhh
</itemData>
<textData>
fff
ggg
hhh
</textData>
<textData>
fff
ggg
hhh
</textData>
<textData>
fff
ggg
hhh
</textData>HI,
Use the following content conversion:
I assume the data coming in the file is of below format:
Here the key field name is K for 01,02 and 03
01,aa,bb,cc
01,aa,bb,cc
02,ff,gg,hh
02,ff,gg,hh
03,hh,ff,hh
03,hh,ff,hh
If you data in the file is coming in the above way then your FCC will be
Recordse strucutre: headerData,,temData,,textData,*
Keyfield Name: K
headerData.fieldNames: a,b,c
headerData.fieldSeparator: ,
headerData.endSeparator: 'nl'
headerData.keyFieldValue: 01
Similarly for itemData and text Data
Refer the below weblog for the same:
/people/venkat.donela/blog/2005/06/08/how-to-send-a-flat-file-with-various-field-lengths-and-variable-substructures-to-xi-30
Thnx
Chirag Gohil -
Receiver File content conversion with nested structure
Hi Guys,
I have the below nested structure and have to convert it using receiver file content conversion.
<Header> [o, unbounded]
<A>a</A>
<B>b</B>
</Header>
<record> [0, unbounded]
<field1>
<X1>x</X1>
<Y1>y</Y1>
</field1>
<field2>
<X2>x</X2>
<Y2>y</Y2>
</field2>
</record>
The file is a comma separated one. Please let me know how to configure the content conversion.
ThanksHi Mukesh,
Have a look at the Shabz's blog for the receiver File content conversion : File Adapter (Receiver) - Are we "really" sure about the concepts?
Thanks,
Pooja -
How to do a sender File Content Conversion with this structure ?
Hi SDN,
I have a flat file with this format :
header1
header2
headerN
detail1
detail2
detailM
header and detail are strings with differents lengths.
There is no key field.
What are the method to do a FCC with this structure ?
thanks in advance
GregHi,
Here is my test data :
3D10512224046N350 106500002000020083,450072413090545023500280242
3D10512224142N388 63400012000120138,050062213030641032902310041
3D10512224143N355 191600009000080333,850062914360806045901430124
3D105122230127/014046N 106501080015301051222084500170000,6894840047,4027610101
3D105122233970/014046N 106501090011001051222105800110000,6895330047,3884300102
3D105122228864/014142N 63402050008301051222065900080000,7999170047,3951100101
3D105122210381/014142N 63401073011001051222071500190000,7397000047,3853100102
3D105122210668/014142N 63403070011591051222081200100000,8302500047,3871200103
3D105122210342/014142N 63405073011591051222082700130000,8269000047,3866200104
3D105122223934/014142N 63404073011301051222085100120000,8365170047,3757800105
3D105122210380/014142N 63409063011591051222092900120000,9868670047,3974300106
3D105122201670/014142N 63406050011591051222100000110000,9861830047,5372000107
3D105122210514/014142N 63410073011001051222103300070000,9895830047,4272700108
3D105122201339/014142N 63407090014301051222105300190000,9831410047,4126660109
3D105122204940/014142N 63408073014301051222111700150001,0161500047,4243200110
3D105122225675/014142N 63411090012001051222121100191000,7733330047,3888700111
3D105122205447/014142N 63401080012001051222123800061000,7442170047,3867100112
3D105122216716/014143N 191601080011001051222074300091000,2266940047,8758400101
3D105122222952/014143N 191601073011301051222081800360000,3559120047,9371010102
3D105122225232/014143N 191601063014001051222090600130000,4123830047,8753300103
3D105122216516/014143N 191601083012001051222095700080000,4648000047,8643300104
3D105122230377/014143N 191601070012001051222100700040000,4714830047,8638500105
3D105122221885/014143N 191601073012001051222104500130000,5358330048,0378500106
3D105122208380/014143N 191601071517001051222122500110000,5779500047,7382700107
3D105122224171/014143N 191601070011001051222124300081000,6140330047,7543800108
There is no key code because the data are different depending on the companies in my group.
Greg -
Can we use content conversion for this structure
Hi,
could any one help me on this
MT_Type
Segment(0-unbounded)
field1
field2
field3
Segment 2(0-unbounded)
field1
field2
Segment 3(0-unbounded)
field1
field2
thanks in advanceHi Avinash,
is this possible by using the Message Transformation Bean for the folowing structure
MT_Type
Segment 1
Segment2
field 1
field2
Segment3
field1
field2
Is there possibilty to do it by FCC. If not which ll suit better
thanks for your response -
File sender with content conversion and ignoreRecordsetName
Him,
I have an scenario with a compressed file sender with content conversion.
In my sender cc i have:
1 AF_Modules/PayloadZipBean Local Enterprise Bean unzip
2 AF_Modules/MessageTransformBean Local Enterprise Bean transform
3 CallSapAdapter Local Enterprise Bean 2
In module configuration, I have also added:
xml.ignoreRecordsetName --> true
But RecordsetName is not removed from XML
Why?
thanks, in advance
CarmeHi,
No need to enter anything in module configuration. Just specify following Name-Value pair in the table provided on the Content Conversion tab of your file adapter.
Add a row with Name = ignoreRecordsetName and Value = true (Both case-sensitive)
For details, see [this link|http://help.sap.com/saphelp_nw04/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/content.htm].
[some more here|http://www.riyaz.net/blog/index.php/2008/02/20/xipi-file-content-conversion-for-complex-structures/]
Regards,
Riyaz -
Required help for Identifying diff. items in file content conversion.
Hi All,
I've to use a file content conversion parameters for a .txt file in which there are two objects. One is a header and the other is a item detail.
How do we get or mark the difference between both so that XI recognizes the particular line is a Header and the other is a Item detail
Thanks in Advance.
Regards,
Sree.Hi
Make use of a field which is common to header and item line which will always hold different values for header and item. Or otherwise if possible, add an extra field in the header and item lines, say 'Key' and use it in the 'Key Field Name' parameter in the adapter configuration. See this for details - [File Content Conversion for Complex Structures|http://www.riyaz.net/blog/index.php/2008/02/20/xipi-file-content-conversion-for-complex-structures/].
Regards,
Riyaz -
File Content Conversion on the Receiving side
Is there a way in which if I want a Pipe Delimited File as a result, after the last field also I get a pipe with next record starting in the next line.
Hi,
For | (Pipe), use corresponding hex code as fieldSeparator i.e. 0x7C as fieldSeparator.
For FCC on receiver side refer -
[Simple FCC|http://www.riyaz.net/blog/index.php/2008/02/19/xipi-file-content-conversion-for-simple-structure/], [Complex FCC|http://www.riyaz.net/blog/index.php/2008/02/20/xipi-file-content-conversion-for-complex-structures/]
For separotor at the end of line you can try using a dummy field or use combination of pipe and newline i.e. '0x7C' and '0x0D' (stands for carriage return) or 'nl' as endSeparator
Edit: You might consider using 'nl' as beginSeparator parameter and 0x7C as endSeparator. This will do the trick. However, this would add a blank line in the beginning of the file.
Hope this helps.
Regards,
Riyaz
Edited by: Riyaz Sayyad on Aug 21, 2008 3:00 PM -
Content conversion: Substructures?
Hey experts,
We're currently working with an XML structure that we have to convert in a flat file format, we're familiar with the content conversion feature but we always worked with simple structures at the same level
for example:
header (1.1)
line (1.unbounded)
footer(1.1)
(all at the same level, but line is 0.unbounded)
resulting:
header,12,3
line,12313,12,1
line,12314,13,2
line,12315,14,3
footer,1,39,4
- But this time we need a more complex structure that contains substructures for example:
header (1.1)
header/batchheader (0.unbounded)
header/batchheader/entrydetails (0.unbounded)
header/batchheader/batchcontrol (0.unbounded)
header/filecontrol (1.1)
- How do we create substructures as "batchheader" (or "entrydetails" within the substructure) using content conversion???
Any help would be appreciated,
Thanks in advance!Hi Alexes,
You can find in the below links for complex structures for FCC.
http://www.riyaz.net/blog/xipi-file-content-conversion-for-complex-structures/
http://www.riyaz.net/blog/index.php/2008/05/20/xipi-convert-flat-file-to-deeply-nested-xml-structures-using-only-graphical-mapping/
Regards,
Leela -
File content conversion for file with hierarchical structure
Hi
I want to read a flat file in the following message structure using file content conversion.
Message structure is :
01 ( occurence = 1)
_ 1B (occurence = unbounded)
_ 1G (occurence = unbounded)
_1H (occurence = 1)
_1N ( occurence = unbounded)
99 (occurence = 1, trailer record)
In short there will be one 01 ( header record) in file. There will multiple 1B records. Under one 1B record there will multiple 1G records. Under each 1G record there will be one 1H recoprd and multiple 1N record. At the end there will one 99 record.
File format : Fixed length
Data in the text file would be as follows :
01Test
1BF0001MS005 4855390859
1GF000172075F31501 GBPINV 040806
1HF000172075F
1NF000172075F0011MS0051125002FOOUKSTFOOD
1NF000172075F0021MS0056540003ICOMSIEARCA
1BF0111TT005 3454390859
1GF011172075F31501 INRINV 040806
1HF011172075F
1NF011172075F0011MS0051125002FOOUKSTFOOD
1NF011172075F0021MS0056540003ICOMSIEARCA
99002187004855390859
Is it possible to do above using file content conversion or is there any method to do it. Please suggest.
Thanks
Varunyou 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
Maybe you are looking for
-
Startup page does not dislay correctly
Hi all i inastalled the APEX 4.0 application and i had some admin priviledges errors. Thus i uninstalled APEX As well as the Oracle XE database application. When installing it for the second time (and consequent times) as administrator, i do not get
-
Manual reservation for order category 10 not allowed
why cant i make any manual reservations for a production order? is this possible or i can i configure the system to allow this?
-
Format of weblogic.store.Admin "dump -deep" XML output file?
Does anyone know where I can find a detailed description of the format of the XML file created by using the "dump -deep" command within the Store Administration utility? I ran into a problem with stuck messages in a SAF persistent store on WebLogic 1
-
First post on here, but hopefully I can get a definitive answer. I've received conflicting reports about this and Best Buy's Mobile Guide says the phone is "coming soon," but I want to verify that I'll be able to purchase this on Sunday, as I need th
-
Not able to connect to the database while configuring the Hyperion Planning
Hi all, I am trying to configure Hyperion Planning, i am getting error while connection to the database, and i am not able to connect to the sqlserver management studio using sql server authentication mode, while installing sql server i selected as w