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
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 -
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 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 -
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 -
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 -
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 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 -
Doubt regarding Sender adapter file content conversion to RFC
Hi Experts,
Below is the my Source and Target XML structure ( i have creaated source structure same as target RFC structure), This scenario is working fine when i give XML file as input. File -> XI -> RFC , xml file is able to update the information in R3.
How should i configure sender file adapter for file content conversion for above structure(in this case input is fixed lenth text), and i could able to change source structure according to our req, without changing target RFC strucuture.
<?xml version="1.0" encoding="UTF-8"?>
<ns0:MT_HSA_IDNumber xmlns:ns0="urn:passhe.com/UpdateIdNumberISA32">
<COMMIT_I>X</COMMIT_I>
<IDENTIFICATION>
<STUDENT>6500001191</STUDENT>
<ID_TYPE>FS0030</ID_TYPE>
<ID_NUMBER>testxml</ID_NUMBER>
<VALID_FROM>20070421</VALID_FROM>
<VALID_TO>20091231</VALID_TO>
</IDENTIFICATION>
</ns0:MT_HSA_IDNumber>
I have configured sender file adapter with FCC like :
Document name as: MT_HSA_IDNumber
Document name space as: urn:passhe.com/UpdateIdNumberISA32
Record structure as: COMMIT_I,1,IDENTIFICATION,1
COMMIT_I.fieldNames : COMMIT_I
COMMIT_I.fieldFixedlengths: 1
IDENTIFICATION.fieldNames: STUDENT,ID_TYPE,ID_NUMBER,VALID_FROM,VALID_TO
IDENTIFICATION.fieldFixedlengths: 12,6,60,8,8
i am getting error like this: even when i change source structure like below metioned:
<?xml version="1.0" encoding="UTF-8"?>
<ns0:MT_HSA_IDNumber xmlns:ns0="urn:passhe.com/UpdateIdNumberISA32">
<COMMIT>
<COMMIT_I>X</COMMIT_I>
</COMMIT>
<IDENTIFICATION>
<STUDENT>6500001191</STUDENT>
<ID_TYPE>FS0030</ID_TYPE>
<ID_NUMBER>idnumber1</ID_NUMBER>
<VALID_FROM>20070421</VALID_FROM>
<VALID_TO>20091231</VALID_TO>
</IDENTIFICATION>
</ns0:MT_HSA_IDNumber>
Conversion initialization failed: java.lang.Exception: java.lang.Exception: java.lang.Exception: Error(s) in XML conversion parameters found: Parameter 'COMMIT_I.fieldFixedLengths' or 'COMMIT_I.fieldSeparator' is missing Consistency check: no. of arguments in 'COMMIT_I.fieldFixedLength' does not match 'COMMIT_I.fieldNames' (0 <> 1)
Please help me out
thanks
dhanushHi Dhanush,
Try giving the Sender FCC this way for the source structure you have mentioned above.
Record structure as: COMMIT,1,IDENTIFICATION,1
COMMIT.fieldNames : COMMIT_I
COMMIT.fieldFixedlengths: 1
Hope this helps.
Thanks and Regards,
Induja -
Key field values for file content conversion at sender communicationchannel
Hi all,
I am working on scenario File to Idoc.In this scenario at the sender side we configure the file content conversion for .CSV file.
In the flat file i am having more than one orders, XI will pick the file and creates a separate Idoc for each sales order at r/3.
We have similar fields "Order Item Number" both header and item.
If we got '00000' on the Header item then it should create a new idoc at the r/3 side other wise it will create line item.
Order item number will be 00000 for header but it will differ from order item to item.
source structure
Order Header
Order type
Sold-to-code
PO number
Order item number
Order date
AdresName1
AdresName2
Street and House number
Postal Code
City
Country Code
Filler
Order Item
Order type
Sold-to-code
PO number
Order item number
Order date
Product code
Order quantity
Item text
Filler
Now I have some questions....
I don't have standard filed values to give the key fileds at source structure.
I need to create the Idoc at r/3 system for each individual record.
Is it possible to create new idoc with out using the Key filed value?
If it is possible then how can i proceed with fcc?
please give me your valuable suggestions
Best Regards,
satya
Edited by: satyatanuku on Mar 3, 2010 1:41 PM
Edited by: satyatanuku on Mar 3, 2010 1:42 PM
Edited by: satyatanuku on Mar 3, 2010 1:44 PMHi,
Just check the Content Conversion Parameters- Recordset Structure.
If you have filled in this parameter with
Header,1,Item,1
then change it to
Header,1,Item,3
Regards
Chandra -
Receiver File Adapter - Content Conversion
Hi,
I don't quite get this:
I have a structure
<?xml version="1.0" encoding="UTF-8"?>
<AnElement1>
<AnElement2>
Bla bla bla
</AnElement2>
</AnElement1>
I want to convert this to a flat file with a line containing
Bla bla bla
In te receiver file adapter I define the following:
In the 'Content Conversion Parameters'
Recordset Structure : AnElement2
Name Value
AnElement2.addHeaderLine 0
AnElement2.fieldSeparator 'nl'
AnElement2.endSeparator 'nl'
This results in an Empty file each time indicating some error somewhere.
What am I missing?
Thanks
AndreHi Andre,
Just check the link <a href="http://help.sap.com/saphelp_nw04/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/frameset.htm">File content conversion</a>
Also check out this web log <a href="/people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2 to TXT</a>
Is there any error log shown in File adapter ?
Regards,
Keith
Message was edited by: keith thompson -
Error in reciever file content conversion
Hi
I have the following error in the file content conversion
Could not process due to error: java.lang.Exception: Exception in XML Parser (format problem?):'java.lang.Exception: Message processing failed in XML parser: 'Conversion configuration error: Unknown structure '' found in document', probably configuration error in file adapter (XML parser error)'
my content conversion is :
Recordset Structure : FI_Banks_Header_MT,Line
FI_Banks_Header_MT.fieldSeparator = 'nl'
FI_Banks_Header_MT.fieldSeparator = ;
my xml is :
<FI_Banks_Lines_MT>
****<Line>
<FIELD1>12799</FIELD1>
<FIELD2>721042</FIELD2>
<FIELD3>0620</FIELD3>
<FIELD4>20.06.06</FIELD4>
<FIELD5>5575688</FIELD5>
****</LINE>
</FI_Banks_Lines_MT>
The file gets ok !!! but I still get this error in adapter monitor after the file is converted all the time
any1 managed to solve it ? thx , ShaiHey sorry for the previous one...
try out this...
Recordset Structure : FI_Banks_Lines_MT
FI_Banks_Lines_MT.endSeparator = 'nl'
FI_Banks_Lines_MT.fieldSeparator = ;
hope this helps !!!...
Cheers.,
Esha
Maybe you are looking for
-
My audio says that is working but it is not, how would i fix that?
I'm not good with computers
-
Amber button not always working
I recently had my screen replaced due to pixel issues. Since getting it back my amber light at times either doesn't work no matter how many times you click on it, or it isn't there at all. This happens in many programs: mail, internet connect, Browse
-
Execute Enterprise Manager Console
I am running my Oracle 9.2 on Linux Red Hat 8.0. I would like to know how can I execute the Enterprise Manager Console without having to launch a terminal and type in "oemapp console"?? Is that anyway to launch the Enterprise Manager Console GUI?? Th
-
Reports Selection screen varients... can we transport?
Hello Experts I know we can transport varients of programs and function modules Can we also transport varients created for selection screens of bex queries? If yes how to collect them? Regards Sudeep
-
How do I listen to U2 Songs of Innocence?
It has disappeared from the library but in iTunes Store it says that it has been bought (köpt), and still I can only listen to previews. Also all songs are "bought" Regards