I need to create a file from the file receiver adapter that corresponds to an inbound message that uses mode FILE2XMBWITHSTRUCTURECONVERSION. This option is not available with the inbound adapter, only the FILE2XMBWITHROWCONVERSION mode. What is the process to output a file with a complex structure?
Hi,
If I understand your problem correctly then you need to have an output file Adapter?
You need to define a header node and item node as seen below in the Adapter config:
This is how you do it:
##File Adapter specific parameters (example, see docu)
file.sourceDir= /tmp
file.sourceFilename=complex2.txt
#file.processingMode=setAttribute
#ile.processingMode=delete
#file.processingMode=archive
file.processingMode=test
#file.archiveDir=c:/temp_archive
file.pollInterval=900
##xml conversion properties if mode FILE2XMBWITHROWCONVERSION specified (example, see docu)
xml.recordsetStructure=Header,1,Item,*
xml.recordsetName=row
xml.recordsetsPerMessage=1
xml.documentName=Resultset
#xml.fieldFixedLengths=
xml.Header.processFieldNames=fromConfiguration
xml.Item.processFieldNames=fromConfiguration
xml.Header.fieldNames=ID,EMPID,NAME
xml.Item.fieldNames=ID,SKILLS
xml.keyFieldName=ID
xml.keyFieldType=CaseSensitiveString
xml.Header.keyFieldValue=H
xml.Item.keyFieldValue=I
xml.Header.fieldSeparator= ;
xml.Item.fieldSeparator= ;
Cheers
Ashish
It is not possible to have a structured file output.
It works only with XI 3.0 J2EE file adapter, but not with J2SE file adapter at all.
Regards
Stefan
Hi Johan
If I have understood your problem correctly you wish to output multiple record types to a file using an outbound file adapter within XI 2.0, if so I have posted a reply to this question, the message can be found using URL :-
https://www.sdn.sap.com/sdn/collaboration.sdn?node=linkFnode6-1&contenttype=url&content=https://outbounding-complex-text-files
Please let me know how you get on as I remember how frustrating I found this.
All the best
Ian Passfield
Add a comment