on 06-12-2007 11:53 AM
Well i did it sometimes but this time i have no clue!
Scenario: IDoc2File
need a text-file. FCC looks like:
Recordset-Structure: ZeitRecordSet,ZeitDetailsStructure
ZeitDetailsStructure.endSeparator = 'nl'
ZeitDetailsStructure.fieldFixedLengths = 4,4,6,8,14,2,1
ZeitDetailsStructure.fieldNames = 'TAG','AUSWEISNR','SALDO','DUMMY01','DUMMY02','DUMMY03','DUMMY04'
ZeitDetailsStructure.fieldSeparator = 0
XML-Output looks like:
<?xml version="1.0" encoding="UTF-8"?>
<MTZEIT>
<ZeitRecordSet>
<ZeitDetailsStructure>
<AUSWEISNR>1775</AUSWEISNR>
<DUMMY01>** Y0000</DUMMY01>
<DUMMY02>00400FFFF00</DUMMY02>
<DUMMY04>.</DUMMY04>
</ZeitDetailsStructure>
<ZeitDetailsStructure>
<AUSWEISNR>1776</AUSWEISNR>
<DUMMY01>** Y0000</DUMMY01>
<DUMMY02>00400FFFF00</DUMMY02>
<DUMMY04>.</DUMMY04>
</ZeitDetailsStructure>
<ZeitDetailsStructure>
<AUSWEISNR>1777</AUSWEISNR>
<DUMMY01>** Y0000</DUMMY01>
<DUMMY02>00400FFFF00</DUMMY02>
<DUMMY04>.</DUMMY04>
</ZeitDetailsStructure>
</ZeitRecordSet>
</MTZEIT>
<b>Error: java.lang.Exception: Error(s) in XML conversion parameters found: Parameter 'ZeitRecordSet.fieldFixedLengths' or 'ZeitRecordSet.fieldSeparator' is missing
</b>
What might be the problem because the needed fields are given!!!
thx in advance, Jens
Ähh, no,
ZeitDetailsStructure.fieldSeparator is given, not ZeitRecordSet.fieldSeparator
Regards,
Udo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
back again:
I am little confused because my output doesn't look like expected.
Instead of 'DUMMY01','AUSWEISNR','DUMMY02','TAG','DUMMY03','SALDO','DUMMY04'
i get
AUSWEISNR,DUMMY01 etc.
The sequence is mixed up and i have no clue why. Any idea?! does it have to be in alphabetical order?!
br Jens
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Raj,
looks like:
<?xml version="1.0" encoding="UTF-8"?>
<MTZEIT>
<ZeitRecordSet>
<ZeitDetailsStructure>
<TAG>1106</TAG>
<AUSWEISNR>1775</AUSWEISNR>
<SALDO>+820</SALDO>
<DUMMY01>** Y0000</DUMMY01>
<DUMMY02>00400FFFF00</DUMMY02>
<DUMMY03>AB</DUMMY03>
<DUMMY04>.</DUMMY04>
</ZeitDetailsStructure>
</ZeitRecordSet>
</MTZEIT>
Funny thing i found out: first i had this structure in target data type, i changed it and thought the output-structure would change also. But it is still the same structure (old one). Is there a cache-refresh necessary or do i have to make a completly new target data type with my preferred structure?!
Again XI plays along with me
br, Jens
my fault, thx 2 all
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
<i>
ZeitDetailsStructure.endSeparator = 'nl'
ZeitDetailsStructure.fieldFixedLengths = 4,4,6,8,14,2,1
ZeitDetailsStructure.fieldNames = 'TAG','AUSWEISNR','SALDO','DUMMY01','DUMMY02','DUMMY03','DUMMY04'
ZeitDetailsStructure.fieldSeparator = 0</i>
>>>
provide only fieldFixedLengths or fieldSeparator !!! only on of the two should be provided.
Also no need of providing fieldNames option.
Ref:
http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/content.htm
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 | |
10 | |
7 | |
6 | |
6 | |
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.