on 06-30-2008 3:42 PM
Hi All,
I have a simple problem and I can't seem to find a way around it . My xml file is like this
<?xml version="1.0" encoding="UTF-8" ?>
- <EDIFACT>
- <UNB>
- <UNB01>
<UNB0101>UNOC</UNB0101>
<UNB0102>2</UNB0102>
</UNB01>
<UNB05>846</UNB05>
</UNB>
</EDIFACT>
The output file i need is
UNOC:2+846'
The content converison parameters i am using are
Recordset Structure: UNB,UNB01
UNB.fieldSeparator : +
UNB.endSeparator: '
UNB01.fieldSeparator: :
UNB01.endSeparator: +
When i use these parameters the result i am getting is
UNOC:2846
But i need
UNOC:2+846'
How can i achieve this . It seems so simple but i can't make XI to work, Is it a flaw in XI ?
Helpful replies will be rewarded with points.
Thanks in advance
Sudheer
Thank you
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi.....this is ur xml right...
<?xml version="1.0" encoding="UTF-8" ?>
- <EDIFACT>
- <UNB>
-<UNB01>
<UNB0101>UNOC</UNB0101>
<UNB0102>2</UNB0102>
-</UNB01>
-<UNB05>846</UNB05>
-</UNB>
</EDIFACT>
according to my understanding...UNB has 2 fileds UNB01,UNB05
UNB.fieldSeparator : +
UNB.endSeparator: ' => UNB01+UNB05'
UNB01.fieldSeparator: :
UNB01.endSeparator: + => UNB0101:UNB0102+
if u club them u shud get UNOC:2++846'
how is it that u are getting UNOC:2846
Try giving : Recordset Structure : UNB,UNB01,UNB05
UNB05.endSeperator: '
and remove UNB.endSeparator (i guess its not mandatory...)
If u dont mention UNB05 in record set sructure it will take it as a field of UNB01 and ends it with + as per UNB01.endSeparator: +
Either give UNB.endSeparator: ' or UNB05.endSeperator: '
Just tell me wat the output is now.....
Regards,
Deepika K.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Deepika
Logically when I give the parameters as mentioned earlier it should give UNOC:2846' NOT UNOC:2+846'
But the trouble is it is not working as it should . as soon as the processing enters UNB01 structure , it is ignoring all the previous parametes, Strangely it is giving + in the end instead of ' . Eventhough UNB.endSeparator is ' , this parameter is being ignored and UNB01.endSeparator = + is being applied there .
According to your suggestion if i give UNB05 as recordsettructure then I should give a fieldSeparator for it , which I don't have becos its juat a value not a structure.
Any Comments ?
Recordset Structure: UNB,UNB01
UNB.fieldNames=UNB01
UNB.fieldSeparator : +
UNB.endSeparator: '
UNB01.fieldNames=UNB0101,UNB0102
UNB01.fieldSeparator: :
UNB01.endSeparator: +
please check these
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Progirl
What other possibilities are there to achieve this ? We are trying not to use conversion agent or Seeburger adapter to keep it simple. Can't we achieve this without using them at all ? If so what is best , Conversion agent or see burger adapter? Which one is easier to implement ?
Thank you
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
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.