on 01-17-2011 11:31 PM
Hi,
I am doing a jdbc to file interface, the header should come once and only the details need to come and repeat for multiple headers.How should I design my input and output structures and need help in design part, the output file is given below
Input structure
ordern
customerno
customername
id
quantity
itemnumber
price
description
output
Header: orderno!customerno!customername!
Details: id!quantity!itemnumber!price!description
Output file
abc123!008976!jason
cda555!200!14567!234.00!bolt
tyd666!100!54657!250.00!nut
dhl777!350!56666!600.00!blade
xyz456!009875!chris
fgt456!345!09876!390.00!strings
hji211!400!065459!120.00!nut
rtz678!09764!pam
hji299!200!05342!400.00!bolt
oldl177!350!07856!200.00!blade
Thanks in advance
Edited by: guest xi on Jan 17, 2011 5:51 PM
Since input source is jdbc , you might have to follow jdbc sender structure.
<row> (1 to many)
<orderno>
<customerno>
<customername>
<id>
<quantity>
<itemnumber>
<price>
<description>
</row>
output structure
<Header> (1 to 1)
<orderno>
<customerno>
<customername>
</Header>
<Details> ( 1 to unbounded)
<id>
<quantity>
<itemnumber>
<price>
<description>
<Details>
To get flat file structure in output, please do the following in the file reciever adapter. Choose fcc as transport protocol and then
Recordset Structure Header,1,Details, *
Header.fieldSeparator !
Header.endSeparator 'nl'
Details.fieldSeparator !
Details.endSeparator 'nl'
For FCC, this link might be helpful
http://www.riyaz.net/blog/xipi-file-content-conversion-for-simple-structure/technology/sap/75/
http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/content.htm
Hope above information would be useful. If you want more information, you can contact us .
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.