on 08-08-2008 5:22 PM
Proxy to File (CSV)
I donot have a header in my target structure.
I want these elements in Header
ResourceID FirstName LastName Email
Values should be under them correspondingly.
I have used the foloowing for testing it is not working
1)
Records.addHeaderLine 1
Records.addHeaderLineElements ResourceID,FirstName,LastName,Email
Records.headerLineElementsSeparator ,
Records.headerLineElementsEndSeperator 'nl'
check this:
http://help.sap.com/saphelp_nw70/helpdata/en/d2/bab440c97f3716e10000000a155106/content.htm
NameA.addHeaderLine = 3
NameA.headerLine = <specify the header as static text here>
Thanks,
Beena.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
There is no error in Communication channel,
what I can see is, Header, not present when file is getting created.
This is what I exactly have in my Configuration
Line.fieldNames TotalRecords,Insertedrec,FailedRec
Line.fieldSeparator ,
Line.endSeprator 'nl'
Records.addHeaderLine 1
Records.headerLine ResourceId FirstName LastName Email
Records.fieldNames ResourceId,FirstName,LastName,Email
Records.fieldSeperator ,
Records.endSeperator 'nl'
DO I need delete these
Records.fieldNames ResourceId,FirstName,LastName,Email
Records.fieldSeperator ,
Records.endSeperator 'nl'
Line.fieldNames TotalRecords,Insertedrec,FailedRec
Line.fieldSeparator ,
Line.endSeprator 'nl'
Records.addHeaderLine 1
Records.headerLine ResourceId FirstName LastName Email
Records.fieldNames ResourceId,FirstName,LastName,Email
Records.fieldSeperator ,
Records.endSeperator 'nl'
You can have addHeaderLine for only one structure.
This specification is only permitted if exactly one structure is defined.
There are two structures in your configuration: Line,Records
You can add third structure in your target structure say header and map constant values in mapping.
Thanks,
Beena.
note that
.addHeaderLine 1 will take the values of the column names from the xml.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.