on 06-14-2007 3:23 PM
Hi, well i am trying FCC IDoc to File. FCC i already discussed quite extensive with no result. So i checked the other parts of my scenario where i found out that only one of my source segments in the idoc is mapped.
Source:
<?xml version="1.0" encoding="UTF-8"?>
<ZBC01_OUTPUT_ZEIT>
<IDOC BEGIN="1">
<EDI_DC40 SEGMENT="1">
<TABNAM>EDI_DC40</TABNAM>
...
<SERIAL>20070612110222</SERIAL>
</EDI_DC40>
<ZBC01_OUTPUT_ZEIT SEGMENT="1">
<DUMMY01>** Y0000</DUMMY01>
<AUSWEISNR>1775</AUSWEISNR>
<DUMMY02>00400FFFF00</DUMMY02>
<TAG>1306</TAG>
<DUMMY03>01</DUMMY03>
<SALDO>+90000</SALDO>
<DUMMY04>.</DUMMY04>
</ZBC01_OUTPUT_ZEIT>
<ZBC01_OUTPUT_ZEIT SEGMENT="1">
<DUMMY01>** Y0000</DUMMY01>
<AUSWEISNR>1776</AUSWEISNR>
<DUMMY02>00400FFFF00</DUMMY02>
<TAG>1306</TAG>
<DUMMY03>03</DUMMY03>
<SALDO>+4</SALDO>
<DUMMY04>.</DUMMY04>
</ZBC01_OUTPUT_ZEIT>
<ZBC01_OUTPUT_ZEIT SEGMENT="2">
<DUMMY01>** Y0000</DUMMY01>
<AUSWEISNR>1777</AUSWEISNR>
<DUMMY02>00400FFFF00</DUMMY02>
<TAG>1306</TAG>
<DUMMY03>02</DUMMY03>
<SALDO>+820</SALDO>
<DUMMY04>.</DUMMY04>
</ZBC01_OUTPUT_ZEIT>
</IDOC>
</ZBC01_OUTPUT_ZEIT>
Target-Output in test environment:
<?xml version="1.0" encoding="UTF-8"?>
<MTZEIT>
<ZeitRecordSet>
<ZeitDetailsStructure>
<DUMMY01>** Y0000</DUMMY01>
<AUSWEISNR>1775</AUSWEISNR>
<DUMMY02>00400FFFF00</DUMMY02>
<TAG>1306</TAG>
<DUMMY03>01</DUMMY03>
<SALDO>+90000</SALDO>
<DUMMY04>.</DUMMY04>
</ZeitDetailsStructure>
</ZeitRecordSet>
</MTZEIT>
So it's only the first segment of the source.
The source datatype (IDoc) has the occurence of 1.999999999 and the attributes in it 0..1.
The target has
Occurence
MTZEIT 1..1
-ZeitRecordSet 1..unbounded
--ZeitDetailsStructure 1..unbounded
---DUMMY01 0..unbounded
---AUSWEISNR 0..unbounded
---others 0..unbounded
The Output should contain all segmets given from source. What is wrong?
br Jens
Jens,
In the IDoc you have two segments ZBC01_OUTPUT_ZEIT: the root node and also the first data segment in the IDoc. Did you map the right ZBC01_OUTPUT_ZEIT segment to the output?
Kind regards,
Koen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sumit
Well my problem is not solved, unfortunately i am not able to put the single given segments among each other in the target file.
RecordsetStructure:ZeitRecordSet, ZeitDetailsStructure
ZeitDetailsStructure.fieldFixedLengths = 8,4,14,4,2,6,1
ZeitDetailsStructure.fieldNames = 'DUMMY01','AUSWEISNR','DUMMY02','TAG','DUMMY03','SALDO','DUMMY04'
ZeitDetailsStructure.fieldSeparator = 'nl'
ZeitRecordSet.endSeparator='nl'
the target file is written like:
Y0000177500400FFFF00 13060190000. ** Y0000177600400FFFF00 1306034 . ** Y0000177700400FFFF00 130602+820 .
any ideas?!
########
Solved it on my own now....thx !
########
Message was edited by:
Jens S
Hi Jens,
<i>Well my problem is not solved, unfortunately i am not able to put the single given segments among each other in the target file.</i>
what does this mean ?
<i>
Y0000177500400FFFF00 13060190000. ** Y0000177600400FFFF00 1306034 . ** Y0000177700400FFFF00 130602+820 .</i>
This is the way your target file is supposed to be written. If there are multiple records in the target side then multiple lines will be there in the file. In your case a single row is present since ZeitDetailsStructure appears only once in the target side.There could be problem with the way you are mapping not with FCC.
You can remove the below parameter from FCC ..
ZeitDetailsStructure.fieldSeparator = 'nl' . this is not required.
Regards,
Sumit
User | Count |
---|---|
94 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.