Mapping issue after Content Conversion in PI 7.1
Hi Experts
I am working on a File (Fixed format) to proxy , Data is getting converted in the File Content and conversion and passing to mapping as xml data , But the when the mapping happens no values are being returned on the target side
When I load the data (xml ) file from sxmb_moni on the sender side all nodes shows in red color though file content happened without issues
please provide the inputs how to map with the values
Thanks
PR
A couple of checkpoints for you:
1. When you load the XML from SXMB_MONI in the test tab of message mapping it turns red..this means the constructed XML (from CC content conversion) doesnt match the one (XSD) defined in your ESR/IR. In this case you have to check again thoroughly the file content conversion fields values/field length in the sender Communication chaneel.
2. Once you rectify the error above then you can test the mapping in ESR message mapping.
Similar Messages
-
Java mapping and no content conversion
Hi all,
I have a file to idoc scenario. The file is in flat idoc format and I've made my own java mapping that gets the flat file and converts it to idoc xml format.
I don't use content conversion in the sender file adapter because I don't wan't the file to be converted to xml before the java mapping processes it. But with this configuration my scenario fails in the interface determination step, as it doesn't find an xml to apply the java mapping.
Is there a way to make it work as I want? (with my java mapping and not applying content conversion?) If not, is there a way to put all the file in a single xml tag using content conversion?
I mean something like this:
<FILE>
</FILE>
This way it would be easy for my java mapping to remove the tags and work with the flat file as it does now.
Thanks in advance.Thanks Stephan for your answer.
In fact I have the defined that interface, as well as a dummy data type and message type that uses it. I still get the error though. My guess is that, as I don't use content conversion in file adapter (message protocol is file) the outbound message is in fact not in xml format, and it cannot identify it in interface determination. That's my guess but perhaps I'm wrong?
This is the error I'm getting:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
- <!-- Interface Determination
-->
- <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
<SAP:Category>XIServer</SAP:Category>
<SAP:Code area="IF_DETERMINATION">CX_ID_PLSRV</SAP:Code>
<SAP:P1>No interface determination found for outbound interface http://********.****/EDELIVERY.SI_OUT_A_0596_RECADV: Error while determining root tag of XML: BOM / charset detection failed</SAP:P1>
<SAP:P2 />
<SAP:P3 />
<SAP:P4 />
<SAP:AdditionalText />
<SAP:Stack>Error when determining the inbound interface: No interface determination found for outbound interface http://********.****/EDELIVERY.SI_OUT_A_0596_RECADV: Error while determining root tag of XML: BOM / charset detection failed No interface determination found for outbound interface http://********.****/EDELIVERY.SI_OUT_A_0596_RECADV: Error while determining root tag of XML: BOM / charset detection failed Error while determining root tag of XML: BOM / charset detection failed Error while parsing an XML stream: 'BOM / charset detection failed'.</SAP:Stack>
<SAP:Retry>M</SAP:Retry>
</SAP:Error>
Any idea? -
Proxy - ABAP mapping - file with content conversion
Scenario goes from ECC (proxy) to XI then I do ABAP mapping. I have tested the ABAP mapping with SXI_mapping_test transaction. My ABAP mapping puts the payload back into XML and then the data goes to a file adapter where I also use content conversion. If I do not do the content conversion the data comes out correct in XML. When I change to content conversion I get 20 blank lines. Is it possible to do content conversion from ABAP mapping?
Any help would be greatly appreciated.
Thanks
Skip FordHi,
Have you checked whether the blank lines you got in the XML files are from the blank nodes or elements which you created in ABAP mapping?
If it is, then just create your elements or nodes whenever there are corresponding values in your ABAP mapping.
e.g.
If l_sender_service is NOT initial.
elementsender = odocument->create_simple_element(
name = 'SenderService'
value = l_sender_service
parent = msgtype ).
endif.
Regards,
Lim... -
Character integrity issue after data conversion in database/JDBC
Hi
I am using oracle 9i with the following NLS setting:
NLS_LANGUAGE :AMERICANS
NLS_CHARACTERSET : UTF8
NLS_NCHAR_CHARACTERSET :AL16UTF16
I am running on Linux with this as my environment Language:
Lang: en_US.UTF8
I am sending hindi characters in XML file (UTF-8 encoding) to my java application to be stored in the database. In my xml file, I give this encoding (ignore the double quotes, reason for putting in the quotes so that the browser will not interpret it)
"न";"म";"स";"्";"त";"े"
But the characters appeared unreadable in the database. When I use Select DUMP to check the characters encoding:
Typ=1 Len=12 CharacterSet=UTF8: 0,28,0,2e,0,38,0,4d,0,24,0,47
When I retrieve data from the database via my application, the weird characters will appear.
However, if i manually input the hindi characters into the column of the table, then the Hindi characters appear correctly. When I do a DUMP to check, this is what I get:
Typ=1 Len=12 CharacterSet=UTF8: 9,28,9,2e,9,38,9,4d,9,24,9,47
When I check the unicode chart here http://www.unicode.org/charts/PDF/U0900.pdf, the second DUMP result is correct. When I retrieve data from the database via my application, the correct hindi string appear.
I understand that in Java the encoding is in UTF-16 and Oracle JDBC will convert from UTF-16 to UTF-8 before storing in my database and vice versa. The thing that puzzles me is why correct hindi string appears on my web interface when that the same conversion is used to extract the data from the database. At first I suspect it is the conversion problem in JDBC when the UTF-16 characters get truncated to UTF-8 when I try to store the data to database. But when good data is stored in the database, the extraction seems to be correct albeit that it is going through the same conversion.
I read from several threads of this forum and also the Oracle Globalization Support article but I cannot find an answer to my question.
Can anyone help? Thanks.
Edited by: user13085722 on May 10, 2010 1:12 AM
Edited by: user13085722 on May 10, 2010 1:16 AMA couple of checkpoints for you:
1. When you load the XML from SXMB_MONI in the test tab of message mapping it turns red..this means the constructed XML (from CC content conversion) doesnt match the one (XSD) defined in your ESR/IR. In this case you have to check again thoroughly the file content conversion fields values/field length in the sender Communication chaneel.
2. Once you rectify the error above then you can test the mapping in ESR message mapping. -
Hi All,
My scenario is Proxy to File scenario.
I used content conversion for generating flatfile in receiver side.
In FCC i used fieldFixed Lengths, The flatfile is generated. I gave the Target Directory as AL11 directory(NFS).
In my scenario length of Header is 622 characters.
But am getting the file Upto 512 characters. After That I am not getting any fields in the Header, Remaining fields are cut.
Same I checked with SFTP server with same Content Conversion.It is working good and I am getting complete Header with 622 characters.
Can you please suggest what should I do to get the 622 character in NFS, It is accepting only 512 characters in NFS.
Reagrds,
SatishSatish,
In addition to Amit,
AL11 transaction is used to display all the SAP Directories.When you double click on a directory, you will able to see all the files in the directories. But you can not view the complete content of the file from AL11 as there are some restrcitions in it. Even if you download the file from AL11 itself, the actual file won't be downloaded and you will see the file name along with the path inside the downloaded file as same as you can see it in Al11. So if you need the complete and actual file, you need to download the file from the OS level. You can take help from your basis team to download the file.
Thanks,
A.B -
Issue in content conversion .fieldSeparator
Hello !!
I am trying to post a file with * delimiter and for that I am using the below content conversion :
record.fieldNames -
f1,f2,f3,f4,f5
record.fieldSeparator -
all the fields under record are optional. When the sending system is sending the data as
<record>
<f1> 111</f1>
<f5> 555 </f5>
</record>
The file is created as follows :
111*555
I want that file should be created as
111*****555
"***" for the missing f2,f3,f4 fields , so that the receiving system wouldnt take 555 as f2 field value.
Thanks
PeeruHi Peeru,
Not sure how are you converting this data but to get this, you need to have empty tags.
<record>
<f1> 111</f1>
</f2>
</f3>
</f4>
<f5> 555 </f5>
</record>
If you are using any XSD or WSDL to do this mapping, that should take care of this
Thanks
-Kulwant
Also in mapping you can specify to create EMPTY element if no input is found. That way this is easy
Edited by: Kulwant Bhatia on Nov 6, 2008 5:20 PM -
Issue with content conversion in receuver communication channel
Hi,
I am trying to configure receiver communication channel with file adapter and content conversion.
File structure is simple, as shown below:
MT_EmployeeDetails
Employee_rec
Employee_rec_struct
EmpNo
EmpName
Address
It should have generated file in the following format:
1101 xxxx xxxxx
1102 xxxx xxxxx
1103 xxxx xxxxx
But it is generating flat file as shown below:
1101 1102 1103 1104
Basically it is populating only first field in the target field. But I could see that the xml file is properly getting
generated in sxmb_moni.Also, when i tried to generate xml file without FCC, it is creating file properly.
following are the parameters I am using:
Employee_rec_struct.fielSeparator '0x09'
Employee_rec_struct.endSeparator 'nl'
pls let me know whetehr i need to add any other parameters in FCC.Hi,
Can u please provide with the exact structure of target... i know u have mentioned it already...
But the hierarchy and occurence is nt clear..
Like
Mt
---Employee(1)
Records(0..unbounded)
Name(1)
Age(1)
So that others here,can easily get vt exactly u want and give the solution....
If ur structure is like..
MT_EmployeeDetails
---Employee_rec
Employee_rec_struct(0..unbounded)
EmpNo
EmpName
Address
Then,
Use,
Employee_rec_struct.fieldSeparator '\t'
end separator is optional... by default its new line characcter.. no need of giving....
U should be giving the recordStructure as Employee_rec_struct,*
If still nt solved do post
Babu -
Workflow Attachment Issue after UTF8 conversion
I have custom worklow with an html attachment. It worked fine until UTF8 conversion is done. Now the attachment is missing from the email message at all.
Any suggestions you may have would be greatly appreciated. Thanks in advance!Default HTML Attachment
I am not sure if UTF8 conversion has anything to do with the HTML attachment missing. If you are on 11.5.9, the HTML attachment with the e-mail notification is driven by the Notification Preference that the user has. Following are the possible notification preferences that a user can select.
MAILHTML - HTML mail with attachments
MAILHTM2 - HTML mail
MAILATTH - Plain text mail with HTML attachments
MAILTEXT - Plain text mail
SUMMARY - Plain text summary mail
QUERY - Do not send me mail
SUMHTML - HTML summary mail
If the user has MAILHTM2, the default HTML attachments are not sent. You need to have MAILHTML to receive default HTML attachments.
Custom Attachment
If you had written your own PLSQL Document API to generate a HTML attachment to the notification, you will have to check if the web-based notification accessible from Self-Service is visible. Check the workflow definition if the Document Type attribute for the HTML attachment is still available in the DB and that the Attach Content check box is checked.
Hope this helps
Vijay -
Multi mapping and File Content Conversion
Hi,
I've created a similar interface to the the one in this blog
/people/jin.shin/blog/2006/02/07/multi-mapping-without-bpm--yes-it146s-possible
In the Config, I receive a CSV and use FCC in the File Adapter to build the XML file. Because of the multimapping, XI adds the following to my Message Mapping
<ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge">
<ns0:Message1>
Do I need to add this XML to the FCC??No,you dont need to add extra tags.
Those tags are only for XI internal processing.
Thanx
Aamir -
Mapping Issue. Parsing problem to target Fields based on condition.
Hi All,
File to Idoc scenario.
My file looks like below.
HD 89650 28/01/11 "Presciber tan"
AF "disc-rsn"
RK "007287001" A
KE disc-code "007287"
KE addr-num "001"
DF fax-num ""
DF in-out "I"
DF phone-2 "23221"
AF "drs"
RK "007287" A
KE dr-num "00221"
KE addr-num "001"
DF affil "OPSM"
DF rec-stat "A"
DF phone-2 "12444"
AF "disc-rsn"
RK "dr-addraddress-1 17287|1EN" A
KE disc-code "008287"
KE field-name "address-1"
KE element " 1"
DF in-out "I"
DF phone-2 "1232"
DF post-code "3109"
DF provider-num "5349201J"
DF rec-stat "A"
T 24
I need to capture and create target segments only for the values "AF "disc-rsn"".And pass all the relavant rows (RK,KE,DF...) which are under "AF "disc-rsn"" to the target fields.
I'm struggling to parse the value to the output structure as RK,KE,DF will be present under anywhere like "AF drs", "AF disc-rsn" etc.
I'm able to create the target segments (2 Zdisc segments as 2 "AF disc-rsn" present in the file), but unable to parse the field values to the target fields.
Ex: DF phone-2 is present in 8th, 15th,22nd row. I need to pass only 8th and 22nd rows to the target fields.
After content conversion, My Source XML looks like below.
<?xml version="1.0" encoding="utf-8" ?>
- <MT_DiscountDetails>
- <HD>
<KeyField>HD</KeyField>
<HDRow>89650 28/01/11 "Presciber tan"</HDRow>
</HD>
- <AF>
<KeyField>AF</KeyField>
<AFRow>"disc-rsn"</AFRow>
</AF>
- <RK>
<KeyField>RK</KeyField>
<RKRow>"007287001" A</RKRow>
</RK>
- <KE>
<KeyField>KE</KeyField>
<KERow>disc-code "007287"</KERow>
</KE>
- <KE>
<KeyField>KE</KeyField>
<KERow>addr-num "001"</KERow>
</KE>
- <DF>
<KeyField>DF</KeyField>
<DFRow>fax-num ""</DFRow>
</DF>
- <DF>
<KeyField>DF</KeyField>
<DFRow>in-out "I"</DFRow>
</DF>
- <DF>
Is there any way I can acheive my mapping based on the above condition?? Kindly suggest me.
Thank you for your time.
Regards
DeepthiNot required. Using Java function. Solved the issue.
-
File content conversion is not creating the exact strcuture as Datatype
Hi,
We are facing issue .
I have sender DT type
<FIle_DT>
< HeaderDetail>
<Field1>
<Field2>
<Linietemdetails>
<Field1>
<Field2>
</Linietemdetails>
</ HeaderDetail>
</File_DT>
but when I am preocessing the file content conversion - > when its pulling the data from the file this structure become
<FIle_DT>
< HeaderDetail>
<Field1>
<Field2>
</ HeaderDetail>
<Linietemdetails>
<Field1>
<Field2>
</Linietemdetails>
</File_DT>
I want same above one after content conversion. I tired allt he options availble . please help
In file content conversion I give
RecordSet Structure -->HeaderDetail,,LineItemDetail,
HeaderDetail.keyFieldValue H
HeaderDetail.endSeparator 'nl'
HeaderDetail.fieldFixedLengths 1,4,8,25
HeaderDetail.keyFieldInStructure ignore
LineItemDetail.keyFieldValue L
LineItemDetail.endSeparator 'nl'
LineItemDetail.fieldFixedLengths 1,3,1,10,10,24,3,25
LineItemDetail.keyFieldInStructure ignore
LineItemDetail.keepIncompleteFields YES
ignoreRecordsetName true
Please help
regards
RamHi Babu,
Thanks a lot for your input.
Actually My requirement is this its file to Multiple idoc scenarios.
Here I am getting flat file HeaderDetails and LinItemdetails. its having Multiple Headerdetail then Line Item Details, I want to create idoc for each HeaderDetail and all the Next LineItemdetails should go to that IDoc. If we can find some solution then it will also work for me.
For ex.
My source would be
FIle_DT>
< HeaderDetail1>
<Field1>
<Field2>
</ HeaderDetail>
<Linietemdetails11>
<Field1>
<Field2>
</Linietemdetails11>
<Linietemdetails12>
<Field1>
<Field2>
</Linietemdetails12>
< HeaderDetail2>
<Field1>
<Field2>
</ HeaderDetail>
<Linietemdetails21>
<Field1>
<Field2>
</Linietemdetails21>
<Linietemdetails22>
<Field1>
<Field2>
</Linietemdetails22>
< HeaderDetail3>
<Field1>
<Field2>
</ HeaderDetail>
<Linietemdetails31>
<Field1>
<Field2>
</Linietemdetails>
</File_DT>
I want target structure like this .
<Idoc>
<HeaderDetail1>
<LineItemdetail11>
<LineItemdetail12>
<LineItemdetail13>
</Idoc>
<Idoc>
<HeaderDetail2>
<LineItemdetail21>
<LineItemdetail22>
<LineItemdetail23>
</Idoc>
<Idoc>
<HeaderDetail3>
<LineItemdetail31>
</Idoc>
If anyway you can help me how to go and how to do this grouping then it would be really great for me.
regards
ram -
Content Conversion- Same keyfield value for two different sub structure
Hi,
I have a scenario where the key field value for the 2 substructure of record structure is same.
MY XML structure is like this :
<documentName>
<recordset>
<Header>
<field-nameA1>
<field-nameA2>
<field-nameA3>
<ITM1>
<field-nameB1>
<field-nameB2>
<field-nameB3>
<ROW1>
<field-nameB1>
<field-nameB2>
<field-nameB3>
<ITM2>
<field-nameB1>
<field-nameB2>
<field-nameB3>
<ROW2>
<field-nameB1>
<field-nameB2>
<field-nameB3>
The sample text file is given below where line no. 3 and 5 are different substructure(For ROW1 and ROW2 respectively) with same keyfield value.
"HDR",399,"file",20050302,100642,3289
"ITM1",2,3,4,5,6,7,8,9,10
"ROW",3,4,5,6
"ITM2",2,3,4,5,6,7,8,9,10
"ROW",7,8,9,10
After content conversion I get a XML structure in which there is no ROW2 and all data within the fields of ROW2 are put under ROW1 as the key field values are identical.
In the records only the first field is constant (e.g. ROW).
How to handle such a scenario?
Regards
Satish ChauhanUnless you can somehow expand the key, I don't know that this is possible. The key implies uniqueness - and in your case, unfortunately, it isn't. Is there any way to edit the structure to make it more unique for you? Do you have any control or ability to change that?
Maybe if you add unique keys in your mapping, you can strip them off with content conversion on the way out using the parameter keyFieldInStructure=ignore? -
Sender content conversion problem
Hi all,
I am working on a file>XIrfc scenario.
I need to convert the simple structure flat file to xml file.
Flat file format
74723123-45-678902100977 00000000001130200800000 M N
i have done below configuration,
DT_BNI1012.fieldFixedLengths : 5,11,2,12,5,5,8,5,5,1,1,1,1,1,14,1,1
DT_BNI1012.endSeparator : 'nl'
DT_BNI1012.fieldNames : bplan,ssn,rec_id,pernr,eepct,bcpct,begda,apbp,sup_per,e_ind,p_frq,md_flag,cgdp,nqdc,filler1,hc_ind,filler2
Everything is working file & i am able to see the xml file in CC monitoring(RWB).
But, final file is getting truncated at recordset.
Any idea, what am i missing...... ?????Below is my payload , after content conversion,
<?xml version="1.0" encoding="utf-8" ?>
- <ns:MT_BNI1012 xmlns:ns="http://*******.com/******">
- <Record>
- <DT_BNI1012>
<bplan>74723</bplan>
<ssn>123-45-6789</ssn>
<rec_id>02</rec_id>
<pernr />
<eepct />
<bcpct />
<begda />
<apbp />
<sup_per />
<e_ind />
<p_frq />
<md_flag />
<cgdp />
<nqdc />
<filler1 />
<hc_ind />
<filler2>N</filler2>
</DT_BNI1012>
- <DT_BNI1012>
<bplan>74723</bplan>
<ssn>123-45-6789</ssn>
<rec_id>02</rec_id>
<pernr>102727</pernr>
<eepct>00000</eepct>
<bcpct>00000</bcpct>
<begda>11302008</begda>
<apbp>00000</apbp>
<sup_per />
<e_ind />
<p_frq>B</p_frq>
<md_flag />
<cgdp />
<nqdc />
<filler1 />
<hc_ind />
<filler2>N</filler2>
</DT_BNI1012>
- <DT_BNI1012>
<bplan>74723</bplan>
<ssn>123-45-6789</ssn>
<rec_id>02</rec_id>
<pernr />
<eepct />
<bcpct />
<begda />
<apbp />
<sup_per />
<e_ind />
<p_frq />
<md_flag />
<cgdp />
<nqdc />
<filler1 />
<hc_ind />
<filler2 />
</DT_BNI1012>
- <DT_BNI1012>
<bplan>74723</bplan>
<ssn>123-45-6789</ssn>
<rec_id>02</rec_id>
<pernr>103571</pernr>
<eepct>00000</eepct>
<bcpct>00000</bcpct>
<begda>11302008</begda>
<apbp>00000</apbp>
<sup_per />
<e_ind />
<p_frq>M</p_frq>
<md_flag />
<cgdp />
<nqdc />
<filler1 />
<hc_ind />
<filler2 />
</DT_BNI1012>
- <DT_BNI1012>
<bplan>74723</bplan>
<ssn>123-45-6789</ssn>
<rec_id>02</rec_id>
<pernr />
<eepct />
<bcpct />
<begda />
<apbp />
<sup_per />
<e_ind />
<p_frq />
<md_flag />
<cgdp />
<nqdc />
<filler1 />
<hc_ind />
<filler2 />
</DT_BNI1012>
- <DT_BNI1012>
<bplan>74723</bplan>
<ssn>123-45-6789</ssn>
<rec_id>02</rec_id>
<pernr>129930</pernr>
<eepct>00000</eepct>
<bcpct>00000</bcpct>
<begda>11302008</begda>
<apbp>00000</apbp>
<sup_per />
<e_ind />
<p_frq>M</p_frq>
<md_flag />
<cgdp />
<nqdc />
<filler1 />
<hc_ind />
<filler2 />
</DT_BNI1012>
- <DT_BNI1012>
<bplan>74723</bplan>
<ssn>123-45-6789</ssn>
<rec_id>02</rec_id>
<pernr />
<eepct />
<bcpct />
<begda />
<apbp />
<sup_per />
<e_ind />
<p_frq />
<md_flag />
<cgdp />
<nqdc />
<filler1 />
<hc_ind />
<filler2 />
</DT_BNI1012>
- <DT_BNI1012>
<bplan>74723</bplan>
<ssn>123-45-6789</ssn>
<rec_id>02</rec_id>
<pernr>103613</pernr>
<eepct>00000</eepct>
<bcpct>10000</bcpct>
<begda>11302008</begda>
<apbp>00000</apbp>
<sup_per />
<e_ind />
<p_frq>B</p_frq>
<md_flag />
<cgdp />
<nqdc />
<filler1 />
<hc_ind />
<filler2 />
</DT_BNI1012>
- <DT_BNI1012>
<bplan>74723</bplan>
<ssn>123-45-6789</ssn>
<rec_id>02</rec_id>
<pernr />
<eepct />
<bcpct />
<begda />
<apbp />
<sup_per />
<e_ind />
<p_frq />
<md_flag />
<cgdp />
<nqdc />
<filler1 />
<hc_ind />
<filler2>N</filler2>
</DT_BNI1012>
- <DT_BNI1012>
<bplan>74723</bplan>
<ssn>123-45-6789</ssn>
<rec_id>02</rec_id>
<pernr>100977</pernr>
<eepct>00000</eepct>
<bcpct>00000</bcpct>
<begda>11302008</begda>
<apbp>00000</apbp>
<sup_per />
<e_ind />
<p_frq>M</p_frq>
<md_flag />
<cgdp />
<nqdc />
<filler1 />
<hc_ind />
<filler2>N</filler2>
</DT_BNI1012>
- <DT_BNI1012>
<bplan>74723</bplan>
<ssn>TT112040800</ssn>
<rec_id>06</rec_id>
<pernr>000060000000</pernr>
<eepct>00000</eepct>
<bcpct>00000</bcpct>
<begda>00</begda>
<apbp />
<sup_per />
<e_ind />
<p_frq />
<md_flag />
<cgdp />
<nqdc />
<filler1 />
<hc_ind />
<filler2 />
</DT_BNI1012>
</Record>
</ns:MT_BNI1012>
But, i am receiving output file as ,
<?xml version="1.0" encoding="UTF-8" ?>
- <ns0:MT_BNI1012 xmlns:ns0="http://*******.com/******">
<Record />
</ns0:MT_BNI1012>
Dunno.....wat is going wrong........
Edited by: san485 on Nov 4, 2010 9:38 PM
Edited by: san485 on Nov 4, 2010 9:39 PM -
File Content Conversion : Sender Channel
Hi
I am trying to do content conversion in the Sender Channel from a flat file to a XML.
My Target XML(message structure) looks like
<H1>
<H2>
<D>Detail Record</D>
<L1>line</L1>
<L1>line</L1>
</H2>
<H2>
<D>Detail Record</D>
<L1>line</L1>
<L1>line</L1>
</H2>
</H1>
Here the element <H2> is only needed to group <D> and the following <L1> elements of each new occurrence of <D>.
Now my problem is that the element <H2> is not getting created.
and the message after content conversion is looking as follows
<H1>
<D>Detail Record</D>
<L1>line</L1>
<L1>line</L1>
<D>Detail Record</D>
<L1>line</L1>
<L1>line</L1>
</H1>
What should I do to get the desired result.@Yes Bhavesh you are right.
Hi Jai,
I am trying the other way round.i.e from flat file to a XML message.As I said I was trying to do it for Sender Channel where is the after content conversion I want a XML file.The example is a what I framed out of my actual problem.
if flat file is as follows ,
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
DetailRecord1
Line1
Line2
Line3
DetailRecord2
Line4
Line5
then the XML must look like
<H1>
<H2>
<D>DetailRecord1</D>
<L1>Line1</L1>
<L1>Line2</L1>
<L1>Line3</L1>
</H2>
<H2>
<D>DetailRecord2</D>
<L1>Line4</L1>
<L1>Line5</L1>
</H2>
</H1>
I identify the different types records in the flat file
as follows,
Record starting with "Detail" is considered as <D> element
Record starting with "Line" is considered as <L> element.
Hope I did clarify. -
Problem with file content conversion for multiple substrcture. Please help!
Hi Experts,
I am using file content conversion in file sender communication channel. The input file is a flat file with data like this:
A01 AA8I0NBVDA 20090704 84900
A02 AA8I0NBVDA 20090704 84900
A03 AA8I0NBVDA 20090704 84900
I want the data in sender side after content conversion to be like this:
<ns:Receive_Schedules xmlns:ns="http://mynamespace">
<ScheduleData>
<line>A01 AA8I0NBVDA 20090704 84900</line>
<line>A02 AA8I0NBVDA 20090704 84900</line>
<line>A03 AA8I0NBVDA 20090704 84900</line>
</ScheduleData>
</ns:Receive_Schedules>
I have tried many options in file content conversion but getting the data like this:
<ns:Receive_Schedules xmlns:ns="http://mynamespace">
<ScheduleData>
<line>A01 AA8I0NBVDA 20090704 84900</line>
</ScheduleData>
<ScheduleData>
<line>A02 AA8I0NBVDA 20090704 84900</line>
</ScheduleData>
<ScheduleData>
<line>A03 AA8I0NBVDA 20090704 84900</line>
</ScheduleData>
</ns:Receive_Schedules>
Following are the settings/properties have configured in content conversion:
Document Name Receive_Schedules
Document namespace http://mynamespace
Document Offset <no value>
Recordset Name <no value>
Recordset namespace <no value>
Recordset structure ScheduleData,*
Recordset sequence Ascending
Recordsets per message 1
Key field Name <no value>
Key Field Type String
ignoreRecordsetName true
ScheduleData.endSeparator 'nl'
ScheduleData.fieldNames line
ScheduleData.fieldSeparator 'nl'
How to get the desired message? What changes I need to do in content conversion settings? Please help!
thanks
Gopal
Edited by: GOPAL BALIGA on Jul 1, 2009 12:11 PMHi Ranjan,
My structure is like what you ahve defined.
scheduledata...1.1
...line....0...Unbound
I also tried the parameters you gave but still getting the same.
<ns:Receive_Schedules xmlns:ns="http://mynamespace">
<ScheduleData>
<line>A01 AA8I0NBVDA 20090704 84900</line>
</ScheduleData>
<ScheduleData>
<line>A02 AA8I0NBVDA 20090704 84900</line>
</ScheduleData>
<ScheduleData>
<line>A03 AA8I0NBVDA 20090704 84900</line>
</ScheduleData>
</ns:Receive_Schedules>
Following are the settings/properties have configured in content conversion:
Recordset structure ScheduleData,* -
> Is the value correct?
Recordset sequence Ascending -
> Is the value correct?
Recordsets per message 1 -
> Is the value correct?
ignoreRecordsetName true
ScheduleData.fieldSeparator nl
ScheduleData.fieldNames line
ScheduleData.endSeparator nl
Edited by: GOPAL BALIGA on Jul 2, 2009 5:28 AM
Maybe you are looking for
-
Hi experts, When I post a down payment to one-time vendor, the system responded that: Special GL indicator to vendor is not define. How could I fix this error? Please help me! Thanks in advance!
-
Subscreen in a selection screen
hi, How to create subscreens in aselection screen and how to access the values entered in sub screen.
-
How can I get iWork for my MBP 2011
How can I get iWork for my MacBook Pro 15" late 2011? The Up-to-Date programme doesn't operate for this model iWork is now free for iOS - can I get it for Mavericks 10.9.4? Thanks Philip
-
ITunes not using all speakers (4 surround and a woofer)
iTunes will not play music on all speakers. I know at one time it did, but it's like it does it when it wants to. Even if the song doesn't have surround or anything, I'd like it to play from all speakers. ***?
-
Where is the constructor?
Hi, I am going through the Swing tutorials and the first sample appication has thrown me for a loop (no pun intended.) In the following code there is an inner class to SwingApplication but why isn't there a constructor such as SwingApplication (); im